First Commit
This commit is contained in:
78
.obsidian/plugins/smart-connections/data.json
vendored
Normal file
78
.obsidian/plugins/smart-connections/data.json
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"env_data_dir": ".smart-env",
|
||||
"new_user": false,
|
||||
"legacy_transformers": false,
|
||||
"enable_mobile": false,
|
||||
"actions": {
|
||||
"lookup": true
|
||||
},
|
||||
"system_prompts_folder": "smart prompts",
|
||||
"smart_chat_folder": "smart-chats",
|
||||
"smart_chat_folder_last": "smart-chats",
|
||||
"chat_model_platform_key": "custom_local",
|
||||
"open_router": {
|
||||
"api_key": "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",
|
||||
"model_name": "meta-llama/llama-3-70b-instruct",
|
||||
"description": "Meta: Llama 3 70B Instruct",
|
||||
"type": "API",
|
||||
"endpoint": "https://openrouter.ai/api/v1/chat/completions",
|
||||
"streaming": true,
|
||||
"adapter": "OpenRouter",
|
||||
"fetch_models": true,
|
||||
"default_model": "mistralai/mistral-7b-instruct:free",
|
||||
"signup_url": "https://accounts.openrouter.ai/sign-up?redirect_url=https%3A%2F%2Fopenrouter.ai%2Fkeys",
|
||||
"key": "meta-llama/llama-3-70b-instruct",
|
||||
"max_input_tokens": 8192,
|
||||
"actions": false,
|
||||
"multimodal": false,
|
||||
"raw": {
|
||||
"id": "meta-llama/llama-3-70b-instruct",
|
||||
"name": "Meta: Llama 3 70B Instruct",
|
||||
"description": "Meta's latest class of model (Llama 3) launched with a variety of sizes & flavors. This 70B instruct-tuned version was optimized for high quality dialogue usecases.\n\nIt has demonstrated strong performance compared to leading closed-source models in human evaluations.\n\nTo read more about the model release, [click here](https://ai.meta.com/blog/meta-llama-3/). Usage of this model is subject to [Meta's Acceptable Use Policy](https://llama.meta.com/llama3/use-policy/).",
|
||||
"pricing": {
|
||||
"prompt": "0.00000051",
|
||||
"completion": "0.00000074",
|
||||
"image": "0",
|
||||
"request": "0"
|
||||
},
|
||||
"context_length": 8192,
|
||||
"architecture": {
|
||||
"modality": "text->text",
|
||||
"tokenizer": "Llama3",
|
||||
"instruct_type": "llama3"
|
||||
},
|
||||
"top_provider": {
|
||||
"max_completion_tokens": 8192,
|
||||
"is_moderated": false
|
||||
},
|
||||
"per_request_limits": null
|
||||
}
|
||||
},
|
||||
"api_key": "",
|
||||
"excluded_headings": "",
|
||||
"show_full_path": false,
|
||||
"expanded_view": false,
|
||||
"language": "en",
|
||||
"version": "2.2.76",
|
||||
"chat_folder": "smart chat",
|
||||
"local_embedding_max_tokens": 2048,
|
||||
"embedding_file_per_note": false,
|
||||
"embed_input_min_chars": 100,
|
||||
"multi_heading_blocks": true,
|
||||
"log_render": false,
|
||||
"log_render_files": false,
|
||||
"recently_sent_retry_notice": false,
|
||||
"free_chat_uses": 2,
|
||||
"custom_local": {
|
||||
"model_name": "mistral:latest",
|
||||
"description": "Custom Local (OpenAI format)",
|
||||
"type": "API",
|
||||
"hostname": "localhost",
|
||||
"port": 11434,
|
||||
"protocol": "http",
|
||||
"streaming": false,
|
||||
"path": "/api/chat",
|
||||
"max_input_tokens": 8000
|
||||
},
|
||||
"env_data_dir_last": ".smart-env"
|
||||
}
|
||||
13791
.obsidian/plugins/smart-connections/main.js
vendored
Normal file
13791
.obsidian/plugins/smart-connections/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
.obsidian/plugins/smart-connections/manifest.json
vendored
Normal file
10
.obsidian/plugins/smart-connections/manifest.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "smart-connections",
|
||||
"name": "Smart Connections",
|
||||
"author": "Brian Petro",
|
||||
"description": "Find links to similar notes using artificial intelligence from OpenAI.",
|
||||
"minAppVersion": "1.1.0",
|
||||
"authorUrl": "https://wfhbrian.com",
|
||||
"isDesktopOnly": false,
|
||||
"version": "2.2.76"
|
||||
}
|
||||
465
.obsidian/plugins/smart-connections/styles.css
vendored
Normal file
465
.obsidian/plugins/smart-connections/styles.css
vendored
Normal file
@@ -0,0 +1,465 @@
|
||||
/* deprecated positioning, use bottom bar instead */
|
||||
.view-content > .sc-brand {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background-color: var(--titlebar-background);
|
||||
}
|
||||
.sc-brand {
|
||||
> svg, > p {
|
||||
display: inline;
|
||||
margin: 0 0.1rem 0 0.3rem;
|
||||
color: var(--text-muted);
|
||||
font-size: var(--font-smallest);
|
||||
line-height: 1;
|
||||
height: 0.88rem;
|
||||
width: auto;
|
||||
}
|
||||
> p > a {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
}
|
||||
|
||||
div[data-type^="smart-connections-"] {
|
||||
> .view-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
#settings, /* DEPRECATED v2.2 */
|
||||
.sc-overlay {
|
||||
background-color: var(--background-primary-alt);
|
||||
max-width: 100%;
|
||||
max-height: 42%;
|
||||
&:has(.setting-component){
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
min-height: 42%;
|
||||
padding: var(--size-4-4);
|
||||
}
|
||||
.setting-item {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.sc-search-container {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.sc-search-input {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
> textarea {
|
||||
border-radius: 1.5rem;
|
||||
margin-right: -4rem;
|
||||
flex-grow: 1;
|
||||
height: 4lh;
|
||||
padding: 1rem 3rem 1rem 1rem;
|
||||
}
|
||||
> button {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
border-radius: 99999px;
|
||||
margin: auto;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.sc-list {
|
||||
|
||||
.tree-item-self {
|
||||
cursor: pointer;
|
||||
}
|
||||
.tree-item-self small {
|
||||
color: var(--color-gray-40);
|
||||
}
|
||||
> .sc-collapsed ul {
|
||||
display: none;
|
||||
}
|
||||
> .sc-collapsed span svg {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
> :not(.sc-collapsed) span svg {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
> div span svg {
|
||||
height: auto;
|
||||
margin: auto 0.5em auto 0;
|
||||
flex: none;
|
||||
}
|
||||
> div > span {
|
||||
display: inline-flex;
|
||||
width: 100%;
|
||||
padding-left: 0;
|
||||
}
|
||||
> div ul {
|
||||
margin: 0;
|
||||
padding-left: 1.3rem;
|
||||
}
|
||||
> div > a {
|
||||
display: block;
|
||||
}
|
||||
> div > ul > li {
|
||||
display: block;
|
||||
}
|
||||
.search-result {
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
padding: var(--nav-item-padding);
|
||||
padding-left: 10px;
|
||||
margin-bottom: 1px;
|
||||
align-items: baseline;
|
||||
border-radius: var(--radius-s);
|
||||
font-weight: var(--nav-item-weight);
|
||||
}
|
||||
.search-result:hover {
|
||||
color: var(--nav-item-color-active);
|
||||
background-color: var(--nav-item-background-active);
|
||||
font-weight: var(--nav-item-weight-active);
|
||||
}
|
||||
.search-result span {
|
||||
color: var(--h5-color);
|
||||
}
|
||||
.search-result small {
|
||||
color: var(--h5-color);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.search-result p {
|
||||
margin-top: 0.3rem;
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* Only on right sidebar */
|
||||
.mod-right-split .sc-list .search-result {
|
||||
font-size: var(--font-text-size);
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
.sc-top-bar {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
justify-content: end;
|
||||
|
||||
.search-input-container {
|
||||
width: calc(100% - var(--size-4-8));
|
||||
margin: 4px auto;
|
||||
}
|
||||
.sc-context {
|
||||
color: var(--nav-item-color);
|
||||
font-size: var(--nav-item-size);
|
||||
margin: 0.5em 0.5em 1em;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Chat */
|
||||
.sc-top-bar-container {
|
||||
align-self: flex-end;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
|
||||
.sc-chat-name-input{
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
.sc-chat-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
height: 100%;
|
||||
background-color: var(--background-primary-alt);
|
||||
}
|
||||
.sc-chat-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: flex-end;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
user-select: text;
|
||||
}
|
||||
.sc-message-container {
|
||||
border: 1px solid var(--divider-color);
|
||||
border-radius: 10px;
|
||||
margin: 0.5rem 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.sc-message {
|
||||
max-width: 90ch;
|
||||
width: 90%;
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
border-radius: 1.5rem;
|
||||
word-break: break-word;
|
||||
|
||||
&.user {
|
||||
align-self: flex-end;
|
||||
color: var(--text-normal);
|
||||
align-self: flex-end;
|
||||
background-color: var(--background-primary);
|
||||
}
|
||||
|
||||
&.assistant, &.system {
|
||||
background-color: var(--background-primary-alt);
|
||||
color: var(--text-normal);
|
||||
}
|
||||
}
|
||||
.sc-system {
|
||||
align-self: center;
|
||||
font-style: italic;
|
||||
color: var(--text-faint);
|
||||
}
|
||||
|
||||
|
||||
.sc-message-content {
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
|
||||
> * p {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sc-chat-form {
|
||||
display: flex;
|
||||
padding: 0 10px 1rem 0;
|
||||
width: 100%;
|
||||
max-height: 50%;
|
||||
|
||||
.sc-chat-input {
|
||||
flex-grow: 1;
|
||||
padding: 0.88rem;
|
||||
border: none;
|
||||
border-radius: 1.5rem;
|
||||
resize: none;
|
||||
height: auto;
|
||||
min-height: 4.2lh;
|
||||
max-height: 100%;
|
||||
background-color: var(--background-primary);
|
||||
color: var(--text-normal);
|
||||
margin-right: -2.7rem;
|
||||
padding-right: 3rem;
|
||||
}
|
||||
|
||||
.sc-btn-container{
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
margin: auto;
|
||||
|
||||
> button.send-button {
|
||||
border-radius: 99999px;
|
||||
cursor: pointer;
|
||||
outline: 2px solid transparent;
|
||||
padding: 0;
|
||||
outline-offset: 2px;
|
||||
background: none !important;
|
||||
|
||||
&:focus-visible{
|
||||
outline-color: var(--text-faint);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
> svg{
|
||||
> circle {
|
||||
fill: var(--text-faint);
|
||||
}
|
||||
> path {
|
||||
fill: var(--background-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.sc-msg-button {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
margin-left: 5px;
|
||||
opacity: 0.8;
|
||||
}
|
||||
.sc-msg-button:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
#sc-abort-button {
|
||||
cursor: pointer;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
#sc-abort-button:hover {
|
||||
background-color: var(--background-primary);
|
||||
}
|
||||
.sc-change{
|
||||
.sc-change-footer{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
& > * {
|
||||
display: inline-block;
|
||||
color: var(--text-muted);
|
||||
font-size: var(--font-smallest);
|
||||
}
|
||||
.sc-brand {
|
||||
position: unset;
|
||||
background-color: var(--background-primary);
|
||||
}
|
||||
}
|
||||
.sc-variation{
|
||||
--new-content-color: hsl(124, 75%, 55%, 0.13);
|
||||
--old-content-color: hsl(3, 43%, 47%, 0.13);
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
margin: 0 -300px;
|
||||
padding: 0 300px;
|
||||
&:has(.new-content){
|
||||
background-color: var(--new-content-color);
|
||||
> button{
|
||||
background-color: var(--new-content-color) !important;
|
||||
}
|
||||
}
|
||||
&:has(.old-content){
|
||||
background-color: var(--old-content-color);
|
||||
> button{
|
||||
background-color: var(--old-content-color) !important;
|
||||
}
|
||||
}
|
||||
> div{
|
||||
> *:last-child{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.old-content{
|
||||
color: var(--text-muted);
|
||||
text-decoration: line-through;
|
||||
> *:first-child{
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.markdown-source-view.mod-cm6 .cm-embed-block:not(.cm-table-widget):hover:has(.sc-change){
|
||||
overflow: unset;
|
||||
box-shadow: unset;
|
||||
cursor: unset;
|
||||
}
|
||||
|
||||
/* V2 */
|
||||
.sc-list .search-result li h1,
|
||||
.sc-list .search-result li h2,
|
||||
.sc-list .search-result li h3,
|
||||
.sc-list .search-result li h4,
|
||||
.sc-list .search-result li h5,
|
||||
.sc-list .search-result li h6 {
|
||||
margin-block-start: calc(var(--p-spacing)/2);
|
||||
margin-block-end: calc(var(--p-spacing)/2);
|
||||
}
|
||||
.sc-list .search-result li h1 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
.sc-list .search-result li h2 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
.sc-list .search-result li h3 {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.sc-list .search-result li h4 {
|
||||
font-size: 1.15rem;
|
||||
}
|
||||
.sc-list .search-result li h5 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
.sc-list .search-result li h6 {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.notice .sc-notice-actions{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.sc-chat-container {
|
||||
#settings {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.sc-supporters{
|
||||
max-height: 37ch;
|
||||
border: 1px solid var(--h1-color);
|
||||
border-radius: 10px;
|
||||
padding: 10px;
|
||||
margin-left: -10px;
|
||||
box-shadow: 0 1px 0 1px var(--shadow-300);
|
||||
overflow: auto;
|
||||
text-wrap: balance;
|
||||
|
||||
> p{
|
||||
margin-top: 0;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
> ul {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
> * li {
|
||||
margin-top: 0.37em;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* settings */
|
||||
.vertical-tab-content:has(> .sc-supporters){
|
||||
.setting-item-control{
|
||||
> select {
|
||||
max-width: 500px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sc-bottom-bar{
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: var(--titlebar-background);
|
||||
padding: 0 0.5rem;
|
||||
.sc-brand{
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.sc-context{
|
||||
flex-grow: 1;
|
||||
font-size: var(--font-smallest);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.setting-component[data-setting*="/"][data-setting*="api_key"] {
|
||||
display: none;
|
||||
}
|
||||
.setting-component[data-setting*="gpu"]:not([data-setting*="/"]) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user