studiograph 1.3.23 → 1.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/commands/deploy.js +16 -10
- package/dist/cli/commands/deploy.js.map +1 -1
- package/dist/cli/setup-wizard.d.ts +76 -0
- package/dist/cli/setup-wizard.js +1 -1
- package/dist/cli/setup-wizard.js.map +1 -1
- package/dist/core/user-config.d.ts +3 -3
- package/dist/core/user-config.js +7 -8
- package/dist/core/user-config.js.map +1 -1
- package/dist/web/_app/immutable/assets/2.CTYRPjeo.css +1 -0
- package/dist/web/_app/immutable/assets/3.CHSDCrUY.css +1 -0
- package/dist/web/_app/immutable/assets/{3.Bxy1xbfc.css → 4.BG3bIPWj.css} +1 -1
- package/dist/web/_app/immutable/assets/{4.aFSdMTV2.css → 5.DFeGxLYf.css} +1 -1
- package/dist/web/_app/immutable/assets/dialog-close.FS8bdfxr.css +1 -0
- package/dist/web/_app/immutable/chunks/{B9qu8IU_.js → 4GXyim5f.js} +1 -1
- package/dist/web/_app/immutable/chunks/9v38mVqb.js +1 -0
- package/dist/web/_app/immutable/chunks/AnfEg8V4.js +1 -0
- package/dist/web/_app/immutable/chunks/B97Kx4RB.js +1 -0
- package/dist/web/_app/immutable/chunks/{2BuoqS97.js → BB_5th5W.js} +2 -2
- package/dist/web/_app/immutable/chunks/{CbWA7IDo.js → BLp0X8Gk.js} +1 -1
- package/dist/web/_app/immutable/chunks/BNVCPAnF.js +1 -0
- package/dist/web/_app/immutable/chunks/BSywCyUT.js +1 -0
- package/dist/web/_app/immutable/chunks/BfdyRejn.js +4 -0
- package/dist/web/_app/immutable/chunks/Bjfzvir2.js +5 -0
- package/dist/web/_app/immutable/chunks/C3jqHcRB.js +1 -0
- package/dist/web/_app/immutable/chunks/CA7sXyoK.js +1 -0
- package/dist/web/_app/immutable/chunks/CIrpUKyW.js +1 -0
- package/dist/web/_app/immutable/chunks/CNX0zDnV.js +1 -0
- package/dist/web/_app/immutable/chunks/{BYMNYbod.js → CYrVHOHA.js} +1 -1
- package/dist/web/_app/immutable/chunks/Cd9--YY2.js +1 -0
- package/dist/web/_app/immutable/chunks/Ceu3bj1o.js +1 -0
- package/dist/web/_app/immutable/chunks/CgErnhBW.js +1 -0
- package/dist/web/_app/immutable/chunks/Cm4_WKoN.js +1 -0
- package/dist/web/_app/immutable/chunks/CqwkWwtq.js +1 -0
- package/dist/web/_app/immutable/chunks/CrgPkghk.js +1 -0
- package/dist/web/_app/immutable/chunks/DKX4rCEq.js +1 -0
- package/dist/web/_app/immutable/chunks/DLGVnhPm.js +2 -0
- package/dist/web/_app/immutable/chunks/DZaKuUr5.js +1 -0
- package/dist/web/_app/immutable/chunks/DoQdsI-P.js +2 -0
- package/dist/web/_app/immutable/chunks/DvFfSfZL.js +1 -0
- package/dist/web/_app/immutable/chunks/FefWW-qv.js +1 -0
- package/dist/web/_app/immutable/chunks/JPu9c3TR.js +1 -0
- package/dist/web/_app/immutable/chunks/OKhOOfKB.js +1 -0
- package/dist/web/_app/immutable/chunks/PPVm8Dsz.js +1 -0
- package/dist/web/_app/immutable/chunks/{BONf5_Rr.js → WSUKABI_.js} +1 -1
- package/dist/web/_app/immutable/chunks/Zx02i7Iu.js +1 -0
- package/dist/web/_app/immutable/entry/app.Bq1NB047.js +2 -0
- package/dist/web/_app/immutable/entry/start.DA1YOkiR.js +1 -0
- package/dist/web/_app/immutable/nodes/0.CKOxr9P8.js +10 -0
- package/dist/web/_app/immutable/nodes/1.D8qAd-OR.js +1 -0
- package/dist/web/_app/immutable/nodes/2.BOf8Xf5k.js +84 -0
- package/dist/web/_app/immutable/nodes/3.BHZOHJN_.js +1 -0
- package/dist/web/_app/immutable/nodes/4.BoQFRRjC.js +11 -0
- package/dist/web/_app/immutable/nodes/5.Cub_8D0M.js +4 -0
- package/dist/web/_app/immutable/nodes/6.YVH12Ymy.js +2 -0
- package/dist/web/_app/immutable/nodes/7.D_ihde4k.js +2 -0
- package/dist/web/_app/immutable/nodes/8.BFb6tIm-.js +1 -0
- package/dist/web/_app/immutable/nodes/9.CC-zIeqf.js +1 -0
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +13 -10
- package/package.json +1 -1
- package/dist/web/_app/immutable/assets/2.DRZ4qWy8.css +0 -1
- package/dist/web/_app/immutable/assets/AppShell.B5bKOpwF.css +0 -1
- package/dist/web/_app/immutable/chunks/5Q3iZDZU.js +0 -1
- package/dist/web/_app/immutable/chunks/BODLxJgV.js +0 -1
- package/dist/web/_app/immutable/chunks/BnE0Rldz.js +0 -91
- package/dist/web/_app/immutable/chunks/C1-cwUjT.js +0 -1
- package/dist/web/_app/immutable/chunks/C6O5NX2h.js +0 -2
- package/dist/web/_app/immutable/chunks/CBPCy2wh.js +0 -1
- package/dist/web/_app/immutable/chunks/CTpBBS5W.js +0 -2
- package/dist/web/_app/immutable/chunks/D2e_f7WK.js +0 -1
- package/dist/web/_app/immutable/chunks/Da6P0VJZ.js +0 -1
- package/dist/web/_app/immutable/chunks/DbMgkTYM.js +0 -1
- package/dist/web/_app/immutable/chunks/DfAt9W4x.js +0 -1
- package/dist/web/_app/immutable/chunks/DkBrGIdc.js +0 -1
- package/dist/web/_app/immutable/chunks/Dn9jmZhf.js +0 -1
- package/dist/web/_app/immutable/chunks/VncLXI-e.js +0 -1
- package/dist/web/_app/immutable/entry/app.jf3HYIR8.js +0 -2
- package/dist/web/_app/immutable/entry/start.DpjIgtFj.js +0 -1
- package/dist/web/_app/immutable/nodes/0.CFcVto3C.js +0 -10
- package/dist/web/_app/immutable/nodes/1.kwWUR70L.js +0 -1
- package/dist/web/_app/immutable/nodes/2.CDdU9S1E.js +0 -1
- package/dist/web/_app/immutable/nodes/3.BfKpWeS4.js +0 -11
- package/dist/web/_app/immutable/nodes/4.CbKVrNwa.js +0 -4
- package/dist/web/_app/immutable/nodes/5.BuNwdHzP.js +0 -2
- package/dist/web/_app/immutable/nodes/6.ZwV9BJkM.js +0 -1
- package/dist/web/_app/immutable/nodes/7.MVZNtYbB.js +0 -2
- package/dist/web/_app/immutable/nodes/8.CqsLiYjT.js +0 -1
- /package/dist/web/_app/immutable/assets/{5.CquhUpOu.css → 6.CquhUpOu.css} +0 -0
- /package/dist/web/_app/immutable/assets/{6.CT4xL4K3.css → 8.CT4xL4K3.css} +0 -0
- /package/dist/web/_app/immutable/assets/{8.BUrHkYry.css → 9.BUrHkYry.css} +0 -0
|
@@ -10,7 +10,8 @@ import { randomBytes } from 'crypto';
|
|
|
10
10
|
import { spawnSync } from 'child_process';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
import { Workspace } from '../../core/workspace.js';
|
|
13
|
-
import { loadUserConfig, saveUserConfig } from '../../core/user-config.js';
|
|
13
|
+
import { loadUserConfig, saveUserConfig, resolveProvider } from '../../core/user-config.js';
|
|
14
|
+
import { MODEL_PROVIDERS } from '../setup-wizard.js';
|
|
14
15
|
// ── helpers ──────────────────────────────────────────────────────────────────
|
|
15
16
|
function openBrowser(url) {
|
|
16
17
|
const cmd = process.platform === 'darwin' ? 'open' : 'xdg-open';
|
|
@@ -91,17 +92,22 @@ deployCommand
|
|
|
91
92
|
saveUserConfig(userConfig);
|
|
92
93
|
log.info('Token saved to ~/.studiograph/user.json');
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
// ── Step 2: Workspace info ────────────────────────────────────────────
|
|
96
|
+
log.step('Step 2 — Workspace configuration');
|
|
97
|
+
const config = await workspace.loadConfig();
|
|
98
|
+
// Determine provider from workspace config (falls back to user config → anthropic)
|
|
99
|
+
const providerId = resolveProvider(userConfig, config);
|
|
100
|
+
const providerInfo = MODEL_PROVIDERS[providerId];
|
|
101
|
+
const providerLabel = providerInfo?.name ?? providerId;
|
|
102
|
+
const providerEnvVar = providerInfo?.envVar ?? `${String(providerId).toUpperCase()}_API_KEY`;
|
|
103
|
+
const modelApiKey = await password({
|
|
104
|
+
message: `${providerLabel} API key (required for AI agent)`,
|
|
96
105
|
validate: (v) => v.trim() ? undefined : 'Required',
|
|
97
106
|
});
|
|
98
|
-
if (typeof
|
|
107
|
+
if (typeof modelApiKey === 'symbol') {
|
|
99
108
|
outro('Cancelled');
|
|
100
109
|
process.exit(0);
|
|
101
110
|
}
|
|
102
|
-
// ── Step 2: Workspace info ────────────────────────────────────────────
|
|
103
|
-
log.step('Step 2 — Workspace configuration');
|
|
104
|
-
const config = await workspace.loadConfig();
|
|
105
111
|
const projectName = opts.name
|
|
106
112
|
|| (config.team_name ? `${config.team_name} — Studiograph` : 'Studiograph');
|
|
107
113
|
const apiKey = randomBytes(24).toString('base64url');
|
|
@@ -110,8 +116,8 @@ deployCommand
|
|
|
110
116
|
const pkgVersion = JSON.parse(readFileSync(pkgPath, 'utf-8')).version;
|
|
111
117
|
const isPrerelease = pkgVersion.includes('-');
|
|
112
118
|
const startCommand = isPrerelease
|
|
113
|
-
? `cd /workspace && npx studiograph@${pkgVersion} serve`
|
|
114
|
-
: 'cd /workspace && npx studiograph serve'
|
|
119
|
+
? `sh -c 'cd /workspace && npx --yes studiograph@${pkgVersion} serve'`
|
|
120
|
+
: `sh -c 'cd /workspace && npx --yes studiograph serve'`;
|
|
115
121
|
// ── Step 3: Create Railway infrastructure ──────────────────────────────
|
|
116
122
|
log.step('Step 3 — Creating Railway project');
|
|
117
123
|
s.start('Creating project...');
|
|
@@ -174,7 +180,7 @@ deployCommand
|
|
|
174
180
|
environmentId: envId,
|
|
175
181
|
serviceId,
|
|
176
182
|
variables: {
|
|
177
|
-
|
|
183
|
+
[providerEnvVar]: modelApiKey.trim(),
|
|
178
184
|
PORT: '3001',
|
|
179
185
|
API_KEYS: apiKey,
|
|
180
186
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../src/cli/commands/deploy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAA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O,EAAE,oCAAoC,EAAE,CAAC,CAAC;IAC9E,IAAI,IAAI,EAAE,CAAC;QACT,WAAW,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,IAAI,CAAC,cAAc,YAAY,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,oEAAoE,CAAC,CAAC;AAC9E,CAAC,CAAC,CAAC"}
|
|
@@ -5,6 +5,82 @@
|
|
|
5
5
|
* - LLM provider configuration
|
|
6
6
|
* - Connector configuration for sync sources
|
|
7
7
|
*/
|
|
8
|
+
export declare const MODEL_PROVIDERS: {
|
|
9
|
+
readonly anthropic: {
|
|
10
|
+
readonly name: "Anthropic (Claude)";
|
|
11
|
+
readonly models: readonly [{
|
|
12
|
+
readonly id: "claude-sonnet-4-5-20250929";
|
|
13
|
+
readonly name: "Claude Sonnet 4.5";
|
|
14
|
+
readonly hint: "Recommended";
|
|
15
|
+
}, {
|
|
16
|
+
readonly id: "claude-opus-4-6";
|
|
17
|
+
readonly name: "Claude Opus 4.6";
|
|
18
|
+
readonly hint: "Most capable";
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: "claude-3-5-haiku-20241022";
|
|
21
|
+
readonly name: "Claude 3.5 Haiku";
|
|
22
|
+
readonly hint: "Fastest";
|
|
23
|
+
}];
|
|
24
|
+
readonly envVar: "ANTHROPIC_API_KEY";
|
|
25
|
+
};
|
|
26
|
+
readonly openai: {
|
|
27
|
+
readonly name: "OpenAI (GPT)";
|
|
28
|
+
readonly models: readonly [{
|
|
29
|
+
readonly id: "gpt-4o";
|
|
30
|
+
readonly name: "GPT-4o";
|
|
31
|
+
readonly hint: "Recommended";
|
|
32
|
+
}, {
|
|
33
|
+
readonly id: "gpt-4o-mini";
|
|
34
|
+
readonly name: "GPT-4o Mini";
|
|
35
|
+
readonly hint: "Faster and cheaper";
|
|
36
|
+
}];
|
|
37
|
+
readonly envVar: "OPENAI_API_KEY";
|
|
38
|
+
};
|
|
39
|
+
readonly google: {
|
|
40
|
+
readonly name: "Google (Gemini)";
|
|
41
|
+
readonly models: readonly [{
|
|
42
|
+
readonly id: "gemini-2.0-flash-exp";
|
|
43
|
+
readonly name: "Gemini 2.0 Flash";
|
|
44
|
+
readonly hint: "Latest";
|
|
45
|
+
}, {
|
|
46
|
+
readonly id: "gemini-1.5-pro";
|
|
47
|
+
readonly name: "Gemini 1.5 Pro";
|
|
48
|
+
readonly hint: "Most capable";
|
|
49
|
+
}];
|
|
50
|
+
readonly envVar: "GOOGLE_API_KEY";
|
|
51
|
+
};
|
|
52
|
+
readonly xai: {
|
|
53
|
+
readonly name: "xAI (Grok)";
|
|
54
|
+
readonly models: readonly [{
|
|
55
|
+
readonly id: "grok-2-1212";
|
|
56
|
+
readonly name: "Grok 2";
|
|
57
|
+
readonly hint: "Latest";
|
|
58
|
+
}];
|
|
59
|
+
readonly envVar: "XAI_API_KEY";
|
|
60
|
+
};
|
|
61
|
+
readonly groq: {
|
|
62
|
+
readonly name: "Groq (Fast Inference)";
|
|
63
|
+
readonly models: readonly [{
|
|
64
|
+
readonly id: "llama-3.3-70b-versatile";
|
|
65
|
+
readonly name: "Llama 3.3 70B";
|
|
66
|
+
readonly hint: "Very fast";
|
|
67
|
+
}];
|
|
68
|
+
readonly envVar: "GROQ_API_KEY";
|
|
69
|
+
};
|
|
70
|
+
readonly openrouter: {
|
|
71
|
+
readonly name: "OpenRouter";
|
|
72
|
+
readonly models: readonly [{
|
|
73
|
+
readonly id: "anthropic/claude-opus-4-6";
|
|
74
|
+
readonly name: "Claude Opus 4.6";
|
|
75
|
+
readonly hint: "Via OpenRouter";
|
|
76
|
+
}, {
|
|
77
|
+
readonly id: "openai/gpt-4o";
|
|
78
|
+
readonly name: "GPT-4o";
|
|
79
|
+
readonly hint: "Via OpenRouter";
|
|
80
|
+
}];
|
|
81
|
+
readonly envVar: "OPENROUTER_API_KEY";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
8
84
|
/**
|
|
9
85
|
* Prompt for LLM provider setup if not configured.
|
|
10
86
|
* Checks user config and env vars. Skips if already set.
|
package/dist/cli/setup-wizard.js
CHANGED
|
@@ -10,7 +10,7 @@ import { loadUserConfig, saveUserConfig } from '../core/user-config.js';
|
|
|
10
10
|
import { ConnectorManager } from '../mcp/connector-manager.js';
|
|
11
11
|
// Connector definitions removed — connectors are user-configured
|
|
12
12
|
import { SourceConfigManager } from '../services/sync/source-config.js';
|
|
13
|
-
const MODEL_PROVIDERS = {
|
|
13
|
+
export const MODEL_PROVIDERS = {
|
|
14
14
|
anthropic: {
|
|
15
15
|
name: 'Anthropic (Claude)',
|
|
16
16
|
models: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-wizard.js","sourceRoot":"","sources":["../../src/cli/setup-wizard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAQ,GAAG,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,iEAAiE;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAIxE,MAAM,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"setup-wizard.js","sourceRoot":"","sources":["../../src/cli/setup-wizard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAQ,GAAG,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,iEAAiE;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC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,IAAI,CAAC,6BAA6B,OAAO,CAAC,MAAM,eAAe,iBAAiB,CAAC,MAAM,2BAA2B,CAAC,CAAC;IAExH,IAAI,UAAU,GAAG,CAAC,CAAC;IAEnB,KAAK,MAAM,aAAa,IAAI,iBAAiB,EAAE,CAAC;QAC9C,GAAG,CAAC,IAAI,CAAC,cAAc,aAAa,gCAAgC,CAAC,CAAC;QACtE,GAAG,CAAC,IAAI,CAAC,+BAA+B,aAAa,6CAA6C,CAAC,CAAC;QACpG,UAAU,EAAE,CAAC;IACf,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -64,17 +64,17 @@ interface WorkspaceModelConfig {
|
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* Resolve the model provider.
|
|
67
|
-
*
|
|
67
|
+
* Workspace config takes priority (workspace-specific), then user config (personal defaults).
|
|
68
68
|
*/
|
|
69
69
|
export declare function resolveProvider(userConfig: UserConfig, workspaceConfig?: WorkspaceModelConfig): string;
|
|
70
70
|
/**
|
|
71
71
|
* Resolve the model ID.
|
|
72
|
-
*
|
|
72
|
+
* Workspace config takes priority, then user config, then default.
|
|
73
73
|
*/
|
|
74
74
|
export declare function resolveModelId(userConfig: UserConfig, workspaceConfig?: WorkspaceModelConfig): string;
|
|
75
75
|
/**
|
|
76
76
|
* Resolve the API key for the active model provider.
|
|
77
|
-
*
|
|
77
|
+
* Workspace config takes priority, then user config, then provider-specific env var.
|
|
78
78
|
*/
|
|
79
79
|
export declare function resolveApiKey(userConfig: UserConfig, workspaceConfig?: WorkspaceModelConfig): string;
|
|
80
80
|
/**
|
package/dist/core/user-config.js
CHANGED
|
@@ -66,28 +66,27 @@ const PROVIDER_ENV_KEYS = {
|
|
|
66
66
|
};
|
|
67
67
|
/**
|
|
68
68
|
* Resolve the model provider.
|
|
69
|
-
*
|
|
69
|
+
* Workspace config takes priority (workspace-specific), then user config (personal defaults).
|
|
70
70
|
*/
|
|
71
71
|
export function resolveProvider(userConfig, workspaceConfig) {
|
|
72
|
-
return
|
|
72
|
+
return workspaceConfig?.model_provider || userConfig.model_provider || 'anthropic';
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Resolve the model ID.
|
|
76
|
-
*
|
|
76
|
+
* Workspace config takes priority, then user config, then default.
|
|
77
77
|
*/
|
|
78
78
|
export function resolveModelId(userConfig, workspaceConfig) {
|
|
79
|
-
return
|
|
79
|
+
return workspaceConfig?.model_id || userConfig.model_id || 'claude-sonnet-4-5-20250929';
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* Resolve the API key for the active model provider.
|
|
83
|
-
*
|
|
83
|
+
* Workspace config takes priority, then user config, then provider-specific env var.
|
|
84
84
|
*/
|
|
85
85
|
export function resolveApiKey(userConfig, workspaceConfig) {
|
|
86
|
-
// User config api_key is provider-agnostic (set by the setup wizard)
|
|
87
|
-
if (userConfig.api_key)
|
|
88
|
-
return userConfig.api_key;
|
|
89
86
|
if (workspaceConfig?.api_key)
|
|
90
87
|
return workspaceConfig.api_key;
|
|
88
|
+
if (userConfig.api_key)
|
|
89
|
+
return userConfig.api_key;
|
|
91
90
|
// Fall back to the provider-specific env var
|
|
92
91
|
const provider = resolveProvider(userConfig, workspaceConfig);
|
|
93
92
|
const envKey = PROVIDER_ENV_KEYS[provider] || `${provider.toUpperCase()}_API_KEY`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-config.js","sourceRoot":"","sources":["../../src/core/user-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AA8B7B,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,CAAC,CAAC;AACxD,MAAM,CAAC,MA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AG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AACnC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAClC,UAAsB,EACtB,eAAsC;IAEtC,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAC1D,IAAI,CAAC,MAAM;QAAE,OAAO;IAEpB,MAAM,QAAQ,GAAG,eAAe,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,iBAAiB,CAAC,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC;IAClF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;QAAE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AACzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.entity-body{padding:16px 24px 24px;display:flex;flex-direction:column;gap:20px}.type-section.svelte-ak7t5k{display:flex;flex-direction:column;gap:8px}.type-section-label.svelte-ak7t5k{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-tertiary)}.type-grid.svelte-ak7t5k{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.type-grid.svelte-ak7t5k .type-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:12px;height:auto;border-radius:8px;text-align:left;color:var(--color-text-secondary);justify-content:flex-start}.type-grid.svelte-ak7t5k .type-card:hover{background:var(--color-bg-hover);border-color:var(--color-border-strong)}.type-grid.svelte-ak7t5k .type-card:hover .type-name{color:var(--color-text-primary)}.type-dot.svelte-ak7t5k{width:8px;height:8px;border-radius:50%}.type-info.svelte-ak7t5k{display:flex;flex-direction:column;gap:2px}.type-name.svelte-ak7t5k{font-size:14px;font-weight:500;color:var(--color-text-secondary)}.type-desc.svelte-ak7t5k{font-size:12px;color:var(--color-text-tertiary);line-height:1.3}.sidebar.svelte-6dohdz{width:340px;min-width:340px;display:flex;flex-direction:column;overflow:hidden;background:var(--color-bg);border-right:1px solid var(--color-border)}.sidebar-header.svelte-6dohdz{height:40px;display:flex;align-items:center;gap:11px;padding:0 12px 0 19px;border-bottom:1px solid var(--color-border);flex-shrink:0}.header-actions.svelte-6dohdz{margin-left:auto;display:flex;align-items:center}.sidebar-header.svelte-6dohdz .home-btn{display:inline-flex;align-items:center;gap:11px;padding:0;min-width:0;text-align:left;border-radius:0;height:auto;background:transparent!important}.sidebar-header.svelte-6dohdz .home-btn:hover .workspace-icon{opacity:.8}.sidebar-header.svelte-6dohdz .home-btn:hover .workspace-name{color:var(--color-text-secondary)}.workspace-icon.svelte-6dohdz{width:22px;height:22px;border-radius:50%;background:var(--color-accent, #e05050);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:11px;flex-shrink:0}.workspace-name.svelte-6dohdz{flex:1;font-size:14px;font-weight:600;color:var(--color-text-primary)}.settings-nav.svelte-6dohdz{display:flex;flex-direction:column;flex:1;padding-top:0}.settings-nav.svelte-6dohdz button[data-slot=tabs-trigger]{display:flex;align-items:center;width:100%;height:40px;padding:0 12px 0 19px;gap:11px;border:none;background:transparent;cursor:pointer;font-family:inherit;font-size:14px;color:var(--color-text-secondary);transition:color .15s,background .15s}.settings-nav.svelte-6dohdz button[data-slot=tabs-trigger]:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.settings-nav.svelte-6dohdz button[data-slot=tabs-trigger][data-state=active]{background:var(--color-bg-hover);color:var(--color-text-primary);font-weight:500}.settings-nav.svelte-6dohdz button[data-slot=tabs-trigger] svg{width:14px;height:14px;flex-shrink:0;box-sizing:content-box;padding:0 4px}.filter-bar.svelte-6dohdz{position:relative;display:flex;align-items:center;height:40px;padding:0 12px 0 52px;border-bottom:1px solid var(--color-border);flex-shrink:0}.filter-icon.svelte-6dohdz{position:absolute;left:22px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:16px;color:var(--color-text-tertiary)}.filter-bar.svelte-6dohdz .filter-input{flex:1;background:transparent;border:none;outline:none;padding:0;margin:0;font-size:14px;line-height:1.4;height:auto;border-radius:0}.filter-bar.svelte-6dohdz .filter-clear{width:20px;height:20px;flex-shrink:0}.filter-bar.svelte-6dohdz .sort-toggle{width:28px;height:28px;flex-shrink:0;margin-left:4px}.filter-bar.svelte-6dohdz .sort-toggle.active{color:var(--color-accent, #e05050)}.repo-type-icon.svelte-6dohdz{display:inline-flex;align-items:center;color:var(--color-text-tertiary);margin-right:6px;flex-shrink:0;align-self:center}.tree.svelte-6dohdz{flex:1;overflow-y:auto;padding-top:0}.tree-group.svelte-6dohdz{display:flex;flex-direction:column}.tree-group.svelte-6dohdz+.tree-group:where(.svelte-6dohdz){margin-top:0}.repo-row{display:flex;align-items:baseline;height:40px;line-height:40px;width:100%;padding:0 12px 0 20px;border:none;background:transparent;font-family:inherit;text-align:left;border-left:2px solid transparent;border-radius:0;gap:0;justify-content:flex-start}.repo-row:hover,.repo-row.focused{background:var(--color-bg-hover)}.repo-row.repo-active{border-left-color:var(--active-color)}.repo-name.svelte-6dohdz{font-size:14px;color:var(--color-text-secondary)}.repo-row.repo-active .repo-name.svelte-6dohdz,.repo-row.repo-active .repo-type-icon.svelte-6dohdz{font-weight:600;color:var(--color-text-primary)}.tree-row{position:relative;display:flex;align-items:baseline;height:40px;line-height:40px;padding-right:40px;color:var(--color-text-secondary);font-size:14px;border:none;background:transparent;font-family:inherit;text-align:left;width:100%;border-left:2px solid transparent;border-radius:0;gap:0;justify-content:flex-start}.tree-row:hover,.tree-row.focused{background:var(--color-bg-hover)}.tree-row.selected{background:var(--color-bg-selected);border-left-color:var(--active-color);color:var(--color-text-primary);font-weight:600}.row-chevron.svelte-6dohdz{display:inline-flex;align-items:center;justify-content:center;width:16px;height:40px;flex-shrink:0;margin-right:14px;color:var(--color-text-tertiary);align-self:center}.row-label.svelte-6dohdz{flex:1;overflow:hidden;white-space:nowrap;mask-image:linear-gradient(to right,black calc(100% - 16px),transparent 100%);-webkit-mask-image:linear-gradient(to right,black calc(100% - 16px),transparent 100%)}.item-count.svelte-6dohdz{font-size:12px;color:var(--color-text-tertiary);margin-left:8px;flex-shrink:0}.indent-group.svelte-6dohdz{position:relative}.indent-group.svelte-6dohdz:before{content:"";position:absolute;left:var(--guide-left);top:0;bottom:0;width:1px;background:var(--color-border);pointer-events:none}.loading-row.svelte-6dohdz{height:40px;display:flex;align-items:center;font-size:14px;color:var(--color-text-tertiary)}.type-header-row{color:var(--color-text-secondary);border-left:2px solid transparent}.type-header-row.type-active{color:var(--color-text-primary);font-weight:600}.type-header-row .row-label.svelte-6dohdz{flex:none;mask-image:none;-webkit-mask-image:none}.new-entity-row{color:var(--color-text-tertiary);align-items:center}.new-entity-row:hover{color:var(--color-text-secondary)}.entity-row-wrapper.svelte-6dohdz{position:relative;display:flex;align-items:center}.entity-row-wrapper.svelte-6dohdz .tree-row{flex:1;min-width:0}.entity-row-wrapper.svelte-6dohdz .entity-actions-btn{display:none;width:28px;height:28px;position:absolute;right:12px;flex-shrink:0;padding:0;border:none;background:none;cursor:pointer;color:var(--color-text-tertiary);border-radius:4px;align-items:center;justify-content:center}.entity-row-wrapper.svelte-6dohdz .entity-actions-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.entity-row-wrapper.svelte-6dohdz:hover .tree-row,.entity-row-wrapper.svelte-6dohdz:has(.entity-actions-btn.menu-open) .tree-row{background:var(--color-bg-hover)}.entity-row-wrapper.svelte-6dohdz:hover .entity-actions-btn,.entity-row-wrapper.svelte-6dohdz .entity-actions-btn.menu-open{display:inline-flex}.entity-type-dot.svelte-6dohdz{width:6px;height:6px;border-radius:50%;flex-shrink:0;margin-right:19px;align-self:center}.recent-time.svelte-6dohdz{font-size:12px;color:var(--color-text-tertiary);position:absolute;right:26px;top:50%;transform:translate(50%,-50%);white-space:nowrap}.entity-row-wrapper.svelte-6dohdz:hover .recent-time:where(.svelte-6dohdz){display:none}.presence-stack.svelte-6dohdz{display:flex;align-items:center;gap:-4px;margin-left:auto;flex-shrink:0;align-self:center}.presence-avatar.svelte-6dohdz{width:18px;height:18px;border-radius:50%;font-size:10px;font-weight:600;color:#fff;background:var(--color-accent);display:flex;align-items:center;justify-content:center;margin-left:-3px;border:1px solid var(--color-bg);box-sizing:border-box;flex-shrink:0;align-self:center}.presence-stack.svelte-6dohdz .presence-avatar:where(.svelte-6dohdz):first-child{margin-left:4px}.repo-row .presence-stack.svelte-6dohdz{margin-right:28px}.presence-avatar.svelte-6dohdz:nth-child(1){z-index:3}.presence-avatar.svelte-6dohdz:nth-child(2){z-index:2}.presence-avatar.svelte-6dohdz:nth-child(3){z-index:1}.filter-match.svelte-6dohdz{background:var(--color-accent, #e05050);color:#fff;border-radius:2px;padding:0}.no-results.svelte-6dohdz{padding:24px 16px;font-size:14px;color:var(--color-text-tertiary);text-align:center}.repo-row .repo-rename-input{flex:1;min-width:0;height:100%;padding:0 6px;margin:0;border:1px solid var(--color-accent, #e05050);border-radius:3px;font-size:14px;font-weight:600}.repo-row-wrapper.svelte-6dohdz{position:relative;display:flex;align-items:center}.repo-row-wrapper.drop-target.svelte-6dohdz{outline:2px solid var(--color-accent, #e05050);outline-offset:-2px;border-radius:6px;background:#e0505014}.import-modal{max-width:480px}.import-modal .dialog-header{flex-direction:column;align-items:flex-start;gap:4px}.import-modal-body.svelte-6dohdz{padding:16px 24px 8px}.import-modal .dialog-footer{border-top:none}.import-file-list.svelte-6dohdz{display:flex;flex-direction:column;max-height:240px;overflow-y:auto}.import-file-row.svelte-6dohdz{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--color-border)}.import-file-icon.svelte-6dohdz{flex-shrink:0;color:var(--color-text-tertiary)}.import-file-info.svelte-6dohdz{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.import-file-name.svelte-6dohdz{font-size:14px;color:var(--color-text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-file-size.svelte-6dohdz{font-size:12px;color:var(--color-text-tertiary)}.import-file-remove.svelte-6dohdz{flex-shrink:0;background:none;border:none;color:var(--color-text-tertiary);cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center}.import-file-remove.svelte-6dohdz:hover{color:var(--color-text-primary);background:var(--color-bg-hover)}.import-drop-zone.svelte-6dohdz{border:1px solid var(--color-border, #333);border-radius:0;padding:40px 16px;text-align:center;color:var(--color-text-tertiary);font-size:15px;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transition:background .15s}.import-drop-zone-compact.svelte-6dohdz{min-height:0;padding:14px 16px;border-top:none}.import-hint.svelte-6dohdz{font-size:13px;color:var(--color-text-tertiary);margin:0}.file-picker-link.svelte-6dohdz{background:none;border:none;color:var(--color-accent, #e05050);cursor:pointer;text-decoration:underline;font-size:15px;padding:0}.file-picker-link-sm.svelte-6dohdz{font-size:13px}.repo-row-wrapper.svelte-6dohdz .repo-row{flex:1;min-width:0}.repo-row-wrapper.svelte-6dohdz .repo-actions-btn{display:none;width:28px;height:28px;position:absolute;right:12px;flex-shrink:0;padding:0;border:none;background:none;cursor:pointer;color:var(--color-text-tertiary);border-radius:4px;align-items:center;justify-content:center}.repo-row-wrapper.svelte-6dohdz .repo-actions-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.repo-row-wrapper.svelte-6dohdz:hover .repo-row,.repo-row-wrapper.svelte-6dohdz:has(.repo-actions-btn.menu-open) .repo-row{background:var(--color-bg-hover)}.repo-row-wrapper.svelte-6dohdz:hover .repo-actions-btn,.repo-row-wrapper.svelte-6dohdz .repo-actions-btn.menu-open{display:inline-flex}.type-header-wrapper.svelte-6dohdz{position:relative;display:flex;align-items:center}.type-header-wrapper.svelte-6dohdz .type-header-row{flex:1;min-width:0}.type-header-wrapper.svelte-6dohdz .type-actions-btn{display:none;width:24px;height:24px;position:absolute;right:12px;flex-shrink:0;padding:0;border:none;background:none;cursor:pointer;color:var(--color-text-tertiary);border-radius:4px;align-items:center;justify-content:center}.type-header-wrapper.svelte-6dohdz .type-actions-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.type-header-wrapper.svelte-6dohdz:hover .type-header-row,.type-header-wrapper.svelte-6dohdz:has(.type-actions-btn.menu-open) .type-header-row{background:var(--color-bg-hover)}.type-header-wrapper.svelte-6dohdz:hover .type-actions-btn,.type-header-wrapper.svelte-6dohdz .type-actions-btn.menu-open{display:inline-flex}.repo-actions-menu{min-width:120px;padding:4px;border-radius:6px;background:var(--color-bg-elevated);border:1px solid var(--color-border);box-shadow:0 4px 12px #00000026;z-index:1000}.repo-menu-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px;color:var(--color-text-primary)}.repo-menu-item:hover{background:var(--color-bg-hover)}.repo-menu-item-danger{color:var(--color-error, #e55)}.new-collection-btn,.new-collection-btn .repo-name.svelte-6dohdz,.new-collection-btn .row-chevron.svelte-6dohdz{color:var(--color-text-tertiary)}.new-collection-btn:hover,.new-collection-btn:hover .repo-name.svelte-6dohdz{color:var(--color-text-secondary)}.new-collection-row.svelte-6dohdz{display:flex;align-items:center;height:40px;padding:0 12px 0 20px;border-left:2px solid transparent}.new-collection-row.svelte-6dohdz .new-collection-input{flex:1;height:100%;padding:0 0 0 30px;border:none;background:transparent;font-size:14px;border-radius:0}.new-collection-row.svelte-6dohdz .new-collection-clear{width:20px;height:20px;flex-shrink:0;margin-right:4px}.new-collection-row.svelte-6dohdz .private-toggle{width:20px;height:20px;flex-shrink:0;margin-left:auto;margin-right:4px;color:var(--color-text-secondary)}.new-collection-row.svelte-6dohdz .private-toggle.active{color:var(--color-accent, #e05050)}@keyframes svelte-6dohdz-shake{0%,to{transform:translate(0)}20%{transform:translate(-4px)}40%{transform:translate(4px)}60%{transform:translate(-3px)}80%{transform:translate(2px)}}.new-collection-row.svelte-6dohdz .new-collection-input.shake{animation:svelte-6dohdz-shake .3s ease-in-out}.sidebar-footer.svelte-6dohdz{display:flex;align-items:center;height:40px;padding:0 12px 0 19px;border-top:1px solid var(--color-border);flex-shrink:0;gap:8px}.user-email.svelte-6dohdz{flex:1;font-size:13px;color:var(--color-text-tertiary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-footer.svelte-6dohdz .footer-icon-btn{width:28px;height:28px}.chat-panel.svelte-1xwj6s7{width:340px;min-width:340px;flex-shrink:0;display:flex;flex-direction:column;background:var(--color-bg);border-left:1px solid var(--color-border)}.chat-header.svelte-1xwj6s7{height:40px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--color-border);position:relative;flex-shrink:0}.chat-header-left.svelte-1xwj6s7{display:flex;align-items:center;gap:2px}.history-active{color:var(--color-accent, #e05050)!important}.history-active:not(:hover){background:transparent!important}.session-dropdown.svelte-1xwj6s7{position:absolute;top:100%;left:0;right:0;z-index:10;box-shadow:0 4px 12px #0000001f}.session-list.svelte-1xwj6s7{max-height:240px;overflow-y:auto;background:var(--color-bg);border-bottom:1px solid var(--color-border)}.session-row.svelte-1xwj6s7{position:relative;display:flex;align-items:center}.session-row.svelte-1xwj6s7 .session-item{display:flex;align-items:center;justify-content:flex-start;flex:1;min-width:0;padding:0 32px 0 16px;height:32px;line-height:32px;font-size:14px;color:var(--color-text-secondary);text-align:left;border-radius:0}.session-row.svelte-1xwj6s7:hover .session-item{background:var(--color-bg-hover)}.session-row.svelte-1xwj6s7 .session-item.active{background:var(--color-bg-hover);color:var(--color-text-primary);font-weight:500}.session-row.svelte-1xwj6s7 .session-delete-btn{display:none;width:20px;height:20px;position:absolute;right:6px;flex-shrink:0;padding:0}.session-row.svelte-1xwj6s7 .session-delete-btn:hover{color:var(--color-error, #e55)}.session-row.svelte-1xwj6s7:hover .session-delete-btn{display:flex}.session-title.svelte-1xwj6s7{flex:1;overflow:hidden;white-space:nowrap;min-width:0;mask-image:linear-gradient(to right,black calc(100% - 24px),transparent 100%);-webkit-mask-image:linear-gradient(to right,black calc(100% - 24px),transparent 100%)}.chat-messages.svelte-1xwj6s7{flex:1;overflow-y:auto;padding:24px 16px;display:flex;flex-direction:column;gap:32px}.empty-state.svelte-1xwj6s7{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);font-size:14px}.seed-prompts.svelte-1xwj6s7{display:flex;flex-direction:column;gap:8px;width:100%}.seed-prompts.svelte-1xwj6s7 .seed-prompt{font-size:14px;line-height:20px;padding:9px 13px;min-height:40px;height:auto;border-radius:8px;color:var(--color-text-secondary);text-align:left;white-space:normal;justify-content:flex-start}.seed-prompts.svelte-1xwj6s7 .seed-prompt:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.message-group.svelte-1xwj6s7{display:flex;flex-direction:column;gap:16px}.user-bubble.svelte-1xwj6s7{background:var(--color-bg-surface);border-radius:8px;padding:12px 14px;font-size:14px;line-height:22px;color:var(--color-text-primary)}.agent-content.svelte-1xwj6s7{display:flex;flex-direction:column;gap:14px}.tool-calls.svelte-1xwj6s7{display:flex;flex-direction:column;gap:4px}.tool-call.svelte-1xwj6s7{font-family:var(--font-mono);font-size:12px;color:var(--color-accent)}.agent-text.svelte-1xwj6s7{font-size:14px;line-height:22px;color:var(--color-text-primary)}.prose.svelte-1xwj6s7 h1{font-size:18px;font-weight:600;color:var(--color-text-primary);margin:24px 0 12px}.prose.svelte-1xwj6s7 h2{font-size:16px;font-weight:600;color:var(--color-text-primary);margin:22px 0 10px}.prose.svelte-1xwj6s7 h3{font-size:15px;font-weight:600;color:var(--color-text-primary);margin:20px 0 8px}.prose.svelte-1xwj6s7 p{margin:0 0 14px}.prose.svelte-1xwj6s7 p:last-child{margin-bottom:0}.prose.svelte-1xwj6s7 strong{font-weight:600}.prose.svelte-1xwj6s7 ul,.prose.svelte-1xwj6s7 ol{padding-left:20px;margin:0 0 14px;color:var(--color-text-primary)}.prose.svelte-1xwj6s7 ul{list-style-type:disc}.prose.svelte-1xwj6s7 ol{list-style-type:decimal}.prose.svelte-1xwj6s7 li{margin-bottom:6px}.prose.svelte-1xwj6s7 table{width:100%;border-collapse:collapse;font-size:13px;margin:16px 0}.prose.svelte-1xwj6s7 th,.prose.svelte-1xwj6s7 td{border:1px solid var(--color-border);padding:4px 8px;text-align:left;vertical-align:top}.prose.svelte-1xwj6s7 th{font-weight:600}.prose.svelte-1xwj6s7 pre{background:var(--color-bg-surface);border-radius:6px;padding:10px 12px;overflow-x:auto;margin:16px 0;font-family:var(--font-mono);font-size:13px;line-height:18px}.prose.svelte-1xwj6s7 code{font-family:var(--font-mono);font-size:13px;background:var(--color-bg-surface);padding:1px 4px;border-radius:3px}.prose.svelte-1xwj6s7 pre code{background:none;padding:0}.prose.svelte-1xwj6s7 a{color:var(--color-link)}.prose.svelte-1xwj6s7 blockquote{border-left:3px solid var(--color-accent);padding-left:12px;margin:16px 0;color:var(--color-text-secondary)}.prose.svelte-1xwj6s7 hr{border:none;border-top:1px solid var(--color-border);margin:24px 0}.streaming-dot.svelte-1xwj6s7{display:inline-block;width:8px;height:8px;background:var(--color-accent);border-radius:4px;animation:svelte-1xwj6s7-pulse 1s ease-in-out infinite}@keyframes svelte-1xwj6s7-pulse{0%,to{opacity:.3}50%{opacity:1}}.context-chip.svelte-1xwj6s7{font-size:12px;color:var(--color-text-tertiary);padding:0 2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-input-area.svelte-1xwj6s7{padding:12px 16px 16px}.text-input.svelte-1xwj6s7{display:flex;align-items:flex-end;min-height:40px;max-height:140px;padding:0 0 0 13px;background:transparent;border:1px solid var(--color-border);border-radius:8px;transition:border-color .15s}.text-input.svelte-1xwj6s7:focus-within{border-color:var(--color-accent)}.send-btn{color:var(--color-text-tertiary);margin:6px;flex-shrink:0;pointer-events:none}.send-btn.send-active{pointer-events:auto;color:#fff;background:var(--color-accent);border-radius:6px}.stop-btn{color:#fff;background:var(--color-accent);border-radius:6px}.input-field.svelte-1xwj6s7{flex:1;background:transparent;border:none;outline:none;font-family:inherit;font-size:14px;line-height:20px;color:var(--color-text-primary);resize:none;overflow-y:auto;padding:9px 0;max-height:120px;field-sizing:content}.input-field.svelte-1xwj6s7::placeholder{color:var(--color-text-tertiary)}.input-field.svelte-1xwj6s7:disabled{opacity:.5}.search-header.svelte-1xems06{display:flex;align-items:center;height:52px;padding:0 16px;gap:10px;border-bottom:1px solid var(--color-border)}.search-header.svelte-1xems06 svg{color:var(--color-text-tertiary);flex-shrink:0}.search-header.svelte-1xems06 .search-input{flex:1;font-size:16px;line-height:20px;border:none;background:transparent;box-shadow:none;padding:0;height:auto}.search-header.svelte-1xems06 .search-input:focus{box-shadow:none;border:none}.esc-badge.svelte-1xems06{font-family:var(--font-sans);font-size:12px;line-height:1;padding:3px 6px;border-radius:4px;background:var(--color-bg-surface);border:1px solid var(--color-border);color:var(--color-text-tertiary)}.results-list.svelte-1xems06{flex:1;overflow-y:auto;min-height:0}.empty-results.svelte-1xems06{padding:24px 16px;text-align:center;font-size:14px;color:var(--color-text-tertiary)}.results-list.svelte-1xems06 .result-row{display:flex;align-items:flex-start;padding:10px 16px;width:100%;text-align:left;border-radius:0;height:auto;justify-content:flex-start}.results-list.svelte-1xems06 .result-row:hover,.results-list.svelte-1xems06 .result-row.selected{background:var(--color-bg-hover)}.result-body.svelte-1xems06{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.result-title-row.svelte-1xems06{display:flex;align-items:center;gap:8px}.result-title.svelte-1xems06{font-size:14px;font-weight:500;color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-tag.svelte-1xems06{flex-shrink:0;font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;padding:1px 6px;border-radius:3px;background:var(--color-badge-bg);color:var(--color-badge-text)}.result-meta.svelte-1xems06{font-size:13px;color:var(--color-text-tertiary)}.search-footer.svelte-1xems06{display:flex;align-items:center;height:39px;padding:0 16px;gap:16px;border-top:1px solid var(--color-border)}.shortcut-group.svelte-1xems06{display:flex;align-items:center;gap:4px}.shortcut-key.svelte-1xems06{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;border-radius:4px;background:var(--color-bg-surface);border:1px solid var(--color-border);color:var(--color-text-tertiary)}.shortcut-label.svelte-1xems06{font-size:12px;color:var(--color-text-tertiary);margin-left:2px}.app-frame.svelte-vr1z90{width:100vw;height:100vh;display:flex;flex-direction:column;overflow:hidden;background:var(--color-bg)}.app-body.svelte-vr1z90{flex:1;display:flex;min-height:0;overflow:hidden}.main-content.svelte-vr1z90{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}#sg-chrome-footer{flex-shrink:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.welcome.svelte-h7bcrl{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--color-text-tertiary)}.welcome.svelte-h7bcrl h2:where(.svelte-h7bcrl){font-size:17px;font-weight:500;color:var(--color-text-secondary)}.welcome.svelte-h7bcrl p:where(.svelte-h7bcrl){font-size:14px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.autocomplete.svelte-84vb17{position:relative;width:100%}.input-row.svelte-84vb17{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:22px;padding:0;background:transparent;border:none;border-radius:4px}.chip.svelte-84vb17{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:9999px;font-size:13px;background:var(--color-accent-muted);color:var(--color-link, #e07070);flex-shrink:0}.chip.svelte-84vb17 .chip-remove{width:14px;height:14px;padding:0;color:var(--color-text-tertiary);font-size:13px;line-height:1}.chip.svelte-84vb17 .chip-remove:hover{color:var(--color-text-primary)}.ac-input.svelte-84vb17{flex:1;min-width:80px;height:22px;padding:0;font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none}.dropdown.svelte-84vb17{position:absolute;top:100%;left:0;right:0;margin-top:4px;max-height:240px;overflow-y:auto;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50}.dropdown-item.svelte-84vb17{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;cursor:pointer;gap:8px}.dropdown-item.highlighted.svelte-84vb17{background:var(--color-bg-hover)}.entity-title.svelte-84vb17{font-size:14px;color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.entity-meta.svelte-84vb17{display:flex;align-items:center;gap:6px;flex-shrink:0}.entity-type-badge.svelte-84vb17{font-size:12px;padding:1px 6px;border-radius:9999px;background:var(--color-badge-bg);color:var(--color-badge-text)}.entity-repo.svelte-84vb17{font-size:12px;color:var(--color-text-tertiary)}.inline-properties.svelte-x7sio8{padding:16px 40px 8px;border-bottom:1px solid var(--color-border)}.ip-row.svelte-x7sio8{display:grid;grid-template-columns:20px 120px 1fr;align-items:start;gap:8px;padding:5px 8px;margin:0 -8px;border-radius:4px;min-height:30px;outline:2px solid transparent;transition:outline-color .1s}.ip-row.svelte-x7sio8:hover{outline-color:var(--color-border)}.ip-row.ip-focused.svelte-x7sio8{outline-color:var(--color-accent)}.ip-icon.svelte-x7sio8{display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);position:relative;height:22px}.ip-key.svelte-x7sio8{font-size:14px;color:var(--color-text-tertiary);line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ip-value.svelte-x7sio8{display:flex;align-items:center;min-height:22px;line-height:22px;position:relative;cursor:text}.ip-edit-input.svelte-x7sio8{font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;padding:0 4px;height:22px;line-height:22px;width:100%;outline:none}.ip-status-wrap.svelte-x7sio8{position:relative;width:100%}.ip-status-dropdown.svelte-x7sio8{position:absolute;top:100%;left:-4px;margin-top:4px;min-width:180px;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50;padding:4px;max-height:240px;overflow-y:auto}.ip-status-dropdown.svelte-x7sio8 .ip-status-option{display:flex;align-items:center;gap:6px;width:100%;padding:5px 8px;font-size:14px;color:var(--color-text-primary);border-radius:4px;text-align:left;justify-content:flex-start;height:auto}.ip-status-dropdown.svelte-x7sio8 .ip-status-option:hover{background:var(--color-bg-hover)}.ip-status-dropdown.svelte-x7sio8 .ip-status-option.selected{color:var(--color-accent)}.ip-cal-wrap.svelte-x7sio8{position:relative;width:100%}.ip-cal-dropdown.svelte-x7sio8{position:absolute;top:100%;left:-4px;margin-top:4px;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50;padding:12px;width:264px}.ip-cal-header.svelte-x7sio8{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.ip-cal-title.svelte-x7sio8{font-size:14px;font-weight:500;color:var(--color-text-primary)}.ip-cal-header.svelte-x7sio8 .ip-cal-nav{width:28px;height:28px}.ip-cal-weekdays.svelte-x7sio8{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:4px}.ip-cal-wd.svelte-x7sio8{font-size:12px;color:var(--color-text-tertiary);text-align:center;padding:4px 0}.ip-cal-week.svelte-x7sio8{display:grid;grid-template-columns:repeat(7,1fr)}.ip-cal-week.svelte-x7sio8 .ip-cal-day{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;border-radius:4px;font-size:14px;color:var(--color-text-primary);padding:0;height:auto}.ip-cal-week.svelte-x7sio8 .ip-cal-day:hover{background:var(--color-bg-hover)}.ip-cal-week.svelte-x7sio8 .ip-cal-day.outside{color:var(--color-text-tertiary);opacity:.5}.ip-cal-week.svelte-x7sio8 .ip-cal-day.today{font-weight:600;color:var(--color-accent)}.ip-cal-week.svelte-x7sio8 .ip-cal-day.selected{background:var(--color-accent);color:#fff;font-weight:500}.ip-cal-week.svelte-x7sio8 .ip-cal-day.selected:hover{background:var(--color-accent-hover)}.ip-badge.svelte-x7sio8{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:9999px;font-size:13px;text-transform:lowercase;background:var(--color-badge-bg);color:var(--color-badge-text)}.ip-wikilink-group.svelte-x7sio8{display:flex;flex-wrap:wrap;gap:6px}.ip-wikilink-group.svelte-x7sio8 .ip-wikilink-chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:9999px;font-size:13px;background:var(--color-accent-muted);color:var(--color-link, #e07070)}.ip-wikilink-group.svelte-x7sio8 .ip-wikilink-chip:hover{background:#e0505029}.ip-status-value.svelte-x7sio8{display:flex;align-items:center;gap:5px;height:22px}.ip-status-dot.svelte-x7sio8{width:6px;height:6px;border-radius:3px;flex-shrink:0}.ip-status-text.svelte-x7sio8,.ip-date-text.svelte-x7sio8,.ip-text-value.svelte-x7sio8{font-size:14px;line-height:22px;color:var(--color-text-primary)}.ip-url-link.svelte-x7sio8{font-size:14px;line-height:22px;color:var(--color-link, #e07070);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ip-url-link.svelte-x7sio8:hover{text-decoration:underline}.inline-properties.svelte-x7sio8 .ip-add-btn{margin:8px -8px;font-size:14px}.ip-add-key-input.svelte-x7sio8{font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;border-bottom:1px solid var(--color-accent);padding:2px 0;width:100%;outline:none}.ip-add-row.svelte-x7sio8{background:var(--color-bg-hover)}.ip-icon-trigger{all:unset;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;color:var(--color-text-tertiary)}.ip-icon-trigger:hover{color:var(--color-text-secondary)}.ip-menu-content{min-width:160px;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50;padding:4px}.ip-menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:5px 8px;font-size:14px;cursor:pointer;border-radius:4px;color:var(--color-text-primary)}.ip-menu-item:hover,.ip-menu-item[data-highlighted]{background:var(--color-bg-hover)}.ip-menu-destructive{color:var(--color-destructive)!important}.ip-menu-destructive:hover,.ip-menu-destructive[data-highlighted]{background:#e54d4d1a!important}.ip-menu-item-icon.svelte-x7sio8{display:flex;align-items:center;flex-shrink:0}.ip-menu-check.svelte-x7sio8{margin-left:auto;display:flex;align-items:center}.ip-menu-sep{height:1px;background:var(--color-border);margin:4px 0}.editor-wrap.svelte-ok7wy5{display:flex;min-height:0;position:relative}.cm-container.svelte-ok7wy5{flex:1}.cm-container.svelte-ok7wy5 .cm-editor{min-height:400px;outline:none}.cm-container.svelte-ok7wy5 .cm-scroller{overflow:visible!important}.cursor-overlay.svelte-ok7wy5{position:absolute;inset:0;pointer-events:none;overflow:hidden}.remote-cursor.svelte-ok7wy5{position:absolute;width:2px;background-color:var(--cursor-color);z-index:10}.remote-cursor-label.svelte-ok7wy5{position:absolute;top:-1.4em;left:-1px;font-size:12px;font-family:var(--font-sans);font-weight:500;padding:0 4px;border-radius:3px 3px 3px 0;white-space:nowrap;line-height:1.5;color:#fff}.csv-editor.svelte-63hltt{padding:32px 40px 0}.table-scroll.svelte-63hltt{overflow-x:auto}table.svelte-63hltt{border-collapse:collapse;width:max-content;min-width:100%;font-size:14px;font-family:var(--font-sans)}th.svelte-63hltt,td.svelte-63hltt{border:1px solid var(--color-border);padding:0;height:32px;min-width:120px;max-width:300px}th.svelte-63hltt{background:transparent;font-weight:500;color:var(--color-text-secondary);position:sticky;top:0;z-index:1}th.svelte-63hltt:not(.row-num):not(.col-add){position:sticky;top:0;z-index:1}.row-num.svelte-63hltt{width:40px;min-width:40px;max-width:40px;text-align:center;color:var(--color-text-tertiary);font-size:12px;background:transparent}.cell-input.svelte-63hltt{width:100%;height:100%;border:none;background:transparent;color:var(--color-text-primary);font-family:var(--font-sans);font-size:14px;padding:4px 8px;outline:none}.cell-input.svelte-63hltt:focus{outline:2px solid var(--color-accent);outline-offset:-2px}.header-input.svelte-63hltt{font-weight:500;color:var(--color-text-secondary)}th.svelte-63hltt:not(.row-num):not(.col-add){position:relative}th.svelte-63hltt .col-delete-btn{position:absolute;top:2px;right:2px;width:18px;height:18px;display:none;background:var(--color-bg-hover);border-radius:3px;padding:0}th.svelte-63hltt:hover .col-delete-btn{display:flex}th.svelte-63hltt .col-delete-btn:hover{color:var(--color-destructive);background:var(--color-bg-selected)}.col-add.svelte-63hltt{width:32px;border:none;background:transparent}.col-add.svelte-63hltt .col-add-btn{width:100%;height:100%;border-radius:0;padding:0}.col-add.svelte-63hltt .col-add-btn:hover{color:var(--color-accent)}.actions.svelte-63hltt{width:32px;text-align:center;border:none}.actions.svelte-63hltt .delete-btn{display:none;width:20px;height:20px;padding:0;margin:0 auto}tr.svelte-63hltt:hover .delete-btn{display:flex}tr.svelte-63hltt .delete-btn:hover{color:var(--color-destructive)}.csv-footer.svelte-63hltt{display:flex;align-items:center;gap:16px;padding:8px 0}.csv-footer.svelte-63hltt .add-row-btn{font-size:14px}.remote-active.svelte-63hltt{outline:2px solid var(--rc-color, #e05050);outline-offset:-2px;position:relative}.remote-cell-label.svelte-63hltt{position:absolute;top:-18px;left:-1px;font-size:11px;font-family:var(--font-sans);font-weight:500;padding:0 4px;border-radius:3px 3px 3px 0;white-space:nowrap;line-height:1.6;color:#fff;z-index:2;pointer-events:none}.diff-view.svelte-1g4tvol{flex:1;overflow-y:auto;min-height:0}.diff-properties.svelte-1g4tvol{padding:16px 40px 8px;border-bottom:1px solid var(--color-border)}.dp-row.svelte-1g4tvol{display:grid;grid-template-columns:20px 120px 1fr;align-items:start;gap:8px;padding:5px 8px;margin:0 -8px;border-radius:4px;min-height:30px}.dp-icon.svelte-1g4tvol{display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);height:22px}.dp-key.svelte-1g4tvol{font-size:14px;color:var(--color-text-tertiary);line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dp-value.svelte-1g4tvol{display:flex;flex-direction:column;gap:2px;min-height:22px;line-height:22px;font-size:14px;color:var(--color-text-primary)}.dp-diff-old.svelte-1g4tvol{display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;background:#dc505026;color:var(--color-destructive, #e54d4d);min-height:22px;line-height:22px;width:fit-content}.dp-diff-new.svelte-1g4tvol{display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;background:#50c86426;color:var(--color-success, #3ecf8e);min-height:22px;line-height:22px;width:fit-content}.diff-body.svelte-1g4tvol{padding:32px 40px;font-family:var(--font-sans);font-size:16px;line-height:1.6;color:var(--color-text-primary);white-space:pre-wrap;word-break:break-word}.diff-body.svelte-1g4tvol .db-removed{background:#dc505026;color:var(--color-destructive, #e54d4d);border-radius:2px}.diff-body.svelte-1g4tvol .db-added{background:#50c86426;color:var(--color-success, #3ecf8e);border-radius:2px}.document-scroll.svelte-1dc9loe{flex:1;overflow-y:auto;min-height:0}.editor-bar.svelte-1dc9loe{height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 40px;border-bottom:1px solid var(--color-border)}.breadcrumb-path.svelte-1dc9loe{font-size:14px;color:var(--color-text-secondary);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.bc-sep.svelte-1dc9loe{color:var(--color-text-tertiary);margin:0 6px}.bc-segment.svelte-1dc9loe{color:var(--color-text-secondary)}.bc-current.svelte-1dc9loe{color:var(--color-text-primary)}.editor-actions.svelte-1dc9loe{display:flex;align-items:center;gap:8px;flex-shrink:0;white-space:nowrap}.status-text.svelte-1dc9loe{font-size:13px}.status-text.saving.svelte-1dc9loe{color:var(--color-text-tertiary)}.status-text.error.svelte-1dc9loe{color:var(--color-destructive)}.editor-actions.svelte-1dc9loe .open-app{text-transform:capitalize}.refresh-panel.svelte-1dc9loe{border-bottom:1px solid var(--color-border);padding:12px 40px;background:var(--color-bg-secondary, var(--color-bg-hover));font-size:14px;flex-shrink:0}.refresh-uptodate.svelte-1dc9loe{color:var(--color-text-secondary)}.editor-bar-diff.svelte-1dc9loe{background:var(--color-bg)}.diff-action-title.svelte-1dc9loe{font-size:14px;color:var(--color-text-primary);font-weight:600}.diff-action-buttons.svelte-1dc9loe{display:flex;align-items:center;gap:6px}@media(max-width:960px){.breadcrumb-path.svelte-1dc9loe{display:none}}
|
|
1
|
+
.autocomplete.svelte-84vb17{position:relative;width:100%}.input-row.svelte-84vb17{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:22px;padding:0;background:transparent;border:none;border-radius:4px}.chip.svelte-84vb17{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:9999px;font-size:13px;background:var(--color-accent-muted);color:var(--color-link, #e07070);flex-shrink:0}.chip.svelte-84vb17 .chip-remove{width:14px;height:14px;padding:0;color:var(--color-text-tertiary);font-size:13px;line-height:1}.chip.svelte-84vb17 .chip-remove:hover{color:var(--color-text-primary)}.ac-input.svelte-84vb17{flex:1;min-width:80px;height:22px;padding:0;font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none}.dropdown.svelte-84vb17{position:absolute;top:100%;left:0;right:0;margin-top:4px;max-height:240px;overflow-y:auto;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50}.dropdown-item.svelte-84vb17{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;cursor:pointer;gap:8px}.dropdown-item.highlighted.svelte-84vb17{background:var(--color-bg-hover)}.entity-title.svelte-84vb17{font-size:14px;color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.entity-meta.svelte-84vb17{display:flex;align-items:center;gap:6px;flex-shrink:0}.entity-type-badge.svelte-84vb17{font-size:12px;padding:1px 6px;border-radius:9999px;background:var(--color-badge-bg);color:var(--color-badge-text)}.entity-repo.svelte-84vb17{font-size:12px;color:var(--color-text-tertiary)}.inline-properties.svelte-x7sio8{padding:16px 40px 8px;border-bottom:1px solid var(--color-border)}.ip-row.svelte-x7sio8{display:grid;grid-template-columns:20px 120px 1fr;align-items:start;gap:8px;padding:5px 8px;margin:0 -8px;border-radius:4px;min-height:30px;outline:2px solid transparent;transition:outline-color .1s}.ip-row.svelte-x7sio8:hover{outline-color:var(--color-border)}.ip-row.ip-focused.svelte-x7sio8{outline-color:var(--color-accent)}.ip-icon.svelte-x7sio8{display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);position:relative;height:22px}.ip-key.svelte-x7sio8{font-size:14px;color:var(--color-text-tertiary);line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ip-value.svelte-x7sio8{display:flex;align-items:center;min-height:22px;line-height:22px;position:relative;cursor:text}.ip-edit-input.svelte-x7sio8{font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;padding:0 4px;height:22px;line-height:22px;width:100%;outline:none}.ip-status-wrap.svelte-x7sio8{position:relative;width:100%}.ip-status-dropdown.svelte-x7sio8{position:absolute;top:100%;left:-4px;margin-top:4px;min-width:180px;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50;padding:4px;max-height:240px;overflow-y:auto}.ip-status-dropdown.svelte-x7sio8 .ip-status-option{display:flex;align-items:center;gap:6px;width:100%;padding:5px 8px;font-size:14px;color:var(--color-text-primary);border-radius:4px;text-align:left;justify-content:flex-start;height:auto}.ip-status-dropdown.svelte-x7sio8 .ip-status-option:hover{background:var(--color-bg-hover)}.ip-status-dropdown.svelte-x7sio8 .ip-status-option.selected{color:var(--color-accent)}.ip-cal-wrap.svelte-x7sio8{position:relative;width:100%}.ip-cal-dropdown.svelte-x7sio8{position:absolute;top:100%;left:-4px;margin-top:4px;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50;padding:12px;width:264px}.ip-cal-header.svelte-x7sio8{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.ip-cal-title.svelte-x7sio8{font-size:14px;font-weight:500;color:var(--color-text-primary)}.ip-cal-header.svelte-x7sio8 .ip-cal-nav{width:28px;height:28px}.ip-cal-weekdays.svelte-x7sio8{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:4px}.ip-cal-wd.svelte-x7sio8{font-size:12px;color:var(--color-text-tertiary);text-align:center;padding:4px 0}.ip-cal-week.svelte-x7sio8{display:grid;grid-template-columns:repeat(7,1fr)}.ip-cal-week.svelte-x7sio8 .ip-cal-day{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;border-radius:4px;font-size:14px;color:var(--color-text-primary);padding:0;height:auto}.ip-cal-week.svelte-x7sio8 .ip-cal-day:hover{background:var(--color-bg-hover)}.ip-cal-week.svelte-x7sio8 .ip-cal-day.outside{color:var(--color-text-tertiary);opacity:.5}.ip-cal-week.svelte-x7sio8 .ip-cal-day.today{font-weight:600;color:var(--color-accent)}.ip-cal-week.svelte-x7sio8 .ip-cal-day.selected{background:var(--color-accent);color:#fff;font-weight:500}.ip-cal-week.svelte-x7sio8 .ip-cal-day.selected:hover{background:var(--color-accent-hover)}.ip-badge.svelte-x7sio8{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:9999px;font-size:13px;text-transform:lowercase;background:var(--color-badge-bg);color:var(--color-badge-text)}.ip-wikilink-group.svelte-x7sio8{display:flex;flex-wrap:wrap;gap:6px}.ip-wikilink-group.svelte-x7sio8 .ip-wikilink-chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:9999px;font-size:13px;background:var(--color-accent-muted);color:var(--color-link, #e07070)}.ip-wikilink-group.svelte-x7sio8 .ip-wikilink-chip:hover{background:#e0505029}.ip-status-value.svelte-x7sio8{display:flex;align-items:center;gap:5px;height:22px}.ip-status-dot.svelte-x7sio8{width:6px;height:6px;border-radius:3px;flex-shrink:0}.ip-status-text.svelte-x7sio8,.ip-date-text.svelte-x7sio8,.ip-text-value.svelte-x7sio8{font-size:14px;line-height:22px;color:var(--color-text-primary)}.ip-url-link.svelte-x7sio8{font-size:14px;line-height:22px;color:var(--color-link, #e07070);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ip-url-link.svelte-x7sio8:hover{text-decoration:underline}.inline-properties.svelte-x7sio8 .ip-add-btn{margin:8px -8px;font-size:14px}.ip-add-key-input.svelte-x7sio8{font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;border-bottom:1px solid var(--color-accent);padding:2px 0;width:100%;outline:none}.ip-add-row.svelte-x7sio8{background:var(--color-bg-hover)}.ip-icon-trigger{all:unset;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;color:var(--color-text-tertiary)}.ip-icon-trigger:hover{color:var(--color-text-secondary)}.ip-menu-content{min-width:160px;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50;padding:4px}.ip-menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:5px 8px;font-size:14px;cursor:pointer;border-radius:4px;color:var(--color-text-primary)}.ip-menu-item:hover,.ip-menu-item[data-highlighted]{background:var(--color-bg-hover)}.ip-menu-destructive{color:var(--color-destructive)!important}.ip-menu-destructive:hover,.ip-menu-destructive[data-highlighted]{background:#e54d4d1a!important}.ip-menu-item-icon.svelte-x7sio8{display:flex;align-items:center;flex-shrink:0}.ip-menu-check.svelte-x7sio8{margin-left:auto;display:flex;align-items:center}.ip-menu-sep{height:1px;background:var(--color-border);margin:4px 0}.editor-wrap.svelte-ok7wy5{display:flex;min-height:0;position:relative}.cm-container.svelte-ok7wy5{flex:1}.cm-container.svelte-ok7wy5 .cm-editor{min-height:400px;outline:none}.cm-container.svelte-ok7wy5 .cm-scroller{overflow:visible!important}.cursor-overlay.svelte-ok7wy5{position:absolute;inset:0;pointer-events:none;overflow:hidden}.remote-cursor.svelte-ok7wy5{position:absolute;width:2px;background-color:var(--cursor-color);z-index:10}.remote-cursor-label.svelte-ok7wy5{position:absolute;top:-1.4em;left:-1px;font-size:12px;font-family:var(--font-sans);font-weight:500;padding:0 4px;border-radius:3px 3px 3px 0;white-space:nowrap;line-height:1.5;color:#fff}.csv-editor.svelte-63hltt{padding:32px 40px 0}.table-scroll.svelte-63hltt{overflow-x:auto}table.svelte-63hltt{border-collapse:collapse;width:max-content;min-width:100%;font-size:14px;font-family:var(--font-sans)}th.svelte-63hltt,td.svelte-63hltt{border:1px solid var(--color-border);padding:0;height:32px;min-width:120px;max-width:300px}th.svelte-63hltt{background:transparent;font-weight:500;color:var(--color-text-secondary);position:sticky;top:0;z-index:1}th.svelte-63hltt:not(.row-num):not(.col-add){position:sticky;top:0;z-index:1}.row-num.svelte-63hltt{width:40px;min-width:40px;max-width:40px;text-align:center;color:var(--color-text-tertiary);font-size:12px;background:transparent}.cell-input.svelte-63hltt{width:100%;height:100%;border:none;background:transparent;color:var(--color-text-primary);font-family:var(--font-sans);font-size:14px;padding:4px 8px;outline:none}.cell-input.svelte-63hltt:focus{outline:2px solid var(--color-accent);outline-offset:-2px}.header-input.svelte-63hltt{font-weight:500;color:var(--color-text-secondary)}th.svelte-63hltt:not(.row-num):not(.col-add){position:relative}th.svelte-63hltt .col-delete-btn{position:absolute;top:2px;right:2px;width:18px;height:18px;display:none;background:var(--color-bg-hover);border-radius:3px;padding:0}th.svelte-63hltt:hover .col-delete-btn{display:flex}th.svelte-63hltt .col-delete-btn:hover{color:var(--color-destructive);background:var(--color-bg-selected)}.col-add.svelte-63hltt{width:32px;border:none;background:transparent}.col-add.svelte-63hltt .col-add-btn{width:100%;height:100%;border-radius:0;padding:0}.col-add.svelte-63hltt .col-add-btn:hover{color:var(--color-accent)}.actions.svelte-63hltt{width:32px;text-align:center;border:none}.actions.svelte-63hltt .delete-btn{display:none;width:20px;height:20px;padding:0;margin:0 auto}tr.svelte-63hltt:hover .delete-btn{display:flex}tr.svelte-63hltt .delete-btn:hover{color:var(--color-destructive)}.csv-footer.svelte-63hltt{display:flex;align-items:center;gap:16px;padding:8px 0}.csv-footer.svelte-63hltt .add-row-btn{font-size:14px}.remote-active.svelte-63hltt{outline:2px solid var(--rc-color, #e05050);outline-offset:-2px;position:relative}.remote-cell-label.svelte-63hltt{position:absolute;top:-18px;left:-1px;font-size:11px;font-family:var(--font-sans);font-weight:500;padding:0 4px;border-radius:3px 3px 3px 0;white-space:nowrap;line-height:1.6;color:#fff;z-index:2;pointer-events:none}.diff-view.svelte-1g4tvol{flex:1;overflow-y:auto;min-height:0}.diff-properties.svelte-1g4tvol{padding:16px 40px 8px;border-bottom:1px solid var(--color-border)}.dp-row.svelte-1g4tvol{display:grid;grid-template-columns:20px 120px 1fr;align-items:start;gap:8px;padding:5px 8px;margin:0 -8px;border-radius:4px;min-height:30px}.dp-icon.svelte-1g4tvol{display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);height:22px}.dp-key.svelte-1g4tvol{font-size:14px;color:var(--color-text-tertiary);line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dp-value.svelte-1g4tvol{display:flex;flex-direction:column;gap:2px;min-height:22px;line-height:22px;font-size:14px;color:var(--color-text-primary)}.dp-diff-old.svelte-1g4tvol{display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;background:#dc505026;color:var(--color-destructive, #e54d4d);min-height:22px;line-height:22px;width:fit-content}.dp-diff-new.svelte-1g4tvol{display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;background:#50c86426;color:var(--color-success, #3ecf8e);min-height:22px;line-height:22px;width:fit-content}.diff-body.svelte-1g4tvol{padding:32px 40px;font-family:var(--font-sans);font-size:16px;line-height:1.6;color:var(--color-text-primary);white-space:pre-wrap;word-break:break-word}.diff-body.svelte-1g4tvol .db-removed{background:#dc505026;color:var(--color-destructive, #e54d4d);border-radius:2px}.diff-body.svelte-1g4tvol .db-added{background:#50c86426;color:var(--color-success, #3ecf8e);border-radius:2px}.document-scroll.svelte-udj3er{flex:1;overflow-y:auto;min-height:0}.editor-bar.svelte-udj3er{height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 40px;border-bottom:1px solid var(--color-border)}.breadcrumb-path.svelte-udj3er{font-size:14px;color:var(--color-text-secondary);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.bc-sep.svelte-udj3er{color:var(--color-text-tertiary);margin:0 6px}.bc-segment.svelte-udj3er{color:var(--color-text-secondary)}.bc-current.svelte-udj3er{color:var(--color-text-primary)}.editor-actions.svelte-udj3er{display:flex;align-items:center;gap:8px;flex-shrink:0;white-space:nowrap}.status-text.svelte-udj3er{font-size:13px}.status-text.saving.svelte-udj3er{color:var(--color-text-tertiary)}.status-text.error.svelte-udj3er{color:var(--color-destructive)}.editor-actions.svelte-udj3er .open-app{text-transform:capitalize}.refresh-panel.svelte-udj3er{border-bottom:1px solid var(--color-border);padding:12px 40px;background:var(--color-bg-secondary, var(--color-bg-hover));font-size:14px;flex-shrink:0}.refresh-uptodate.svelte-udj3er{color:var(--color-text-secondary)}.editor-bar-diff.svelte-udj3er{background:var(--color-bg)}.diff-action-title.svelte-udj3er{font-size:14px;color:var(--color-text-primary);font-weight:600}.diff-action-buttons.svelte-udj3er{display:flex;align-items:center;gap:6px}@media(max-width:960px){.breadcrumb-path.svelte-udj3er{display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.editor-frame.svelte-1fltv0h{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative}.header-mount.svelte-1fltv0h{flex-shrink:0}.editor-container.svelte-1fltv0h{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.editor-container.hidden.svelte-1fltv0h{visibility:hidden;position:absolute}.editor-container.svelte-1fltv0h *{box-sizing:border-box}.loading-indicator.svelte-1fltv0h{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-text-secondary);font-size:15px}.error-indicator.svelte-1fltv0h{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-destructive);font-size:15px}.no-editor.svelte-
|
|
1
|
+
.editor-frame.svelte-1fltv0h{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative}.header-mount.svelte-1fltv0h{flex-shrink:0}.editor-container.svelte-1fltv0h{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.editor-container.hidden.svelte-1fltv0h{visibility:hidden;position:absolute}.editor-container.svelte-1fltv0h *{box-sizing:border-box}.loading-indicator.svelte-1fltv0h{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-text-secondary);font-size:15px}.error-indicator.svelte-1fltv0h{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-destructive);font-size:15px}.no-editor.svelte-1406f3k{flex:1;display:flex;align-items:center;justify-content:center;color:var(--color-text-secondary);font-size:15px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.dialog-overlay{position:fixed;inset:0;z-index:1000;background:#0009}[data-theme=light] .dialog-overlay{background:#00000040}.dialog-content{position:fixed;z-index:1001;top:80px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;background:var(--color-bg-elevated);border:1px solid var(--color-border-strong);border-radius:12px;overflow:hidden;box-shadow:0 24px 80px #00000080;max-height:calc(100vh - 120px)}.dialog-sm{width:420px;max-width:90vw}.dialog-md{width:560px;max-width:90vw}.dialog-lg{width:680px;max-width:90vw}.dialog-xl{width:800px;max-width:90vw}.dialog-fit{width:fit-content;min-width:320px;max-width:min(640px,90vw)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 0;flex-shrink:0}.dialog-title{font-size:17px;font-weight:500;color:var(--color-text-primary);margin:0}.dialog-description{font-size:14px;color:var(--color-text-secondary);line-height:1.5;margin:0}.dialog-body{padding:12px 24px 20px;overflow-y:auto;flex:1;min-height:0}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:16px 24px;border-top:1px solid var(--color-border);flex-shrink:0}.dialog-close-btn{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--color-text-tertiary);cursor:pointer;border-radius:6px;line-height:1;transition:color .15s,background .15s}.dialog-close-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as B,f as F,g as A,e as V,w as S,a as J,t as v,c as D,r as L,b as _,d as N,h as E,i as P,j as G,k as O,l as q,D as R,m as z}from"./CLFba8FK.js";import{r as M}from"./
|
|
1
|
+
import{O as B,f as F,g as A,e as V,w as S,a as J,t as v,c as D,r as L,b as _,d as N,h as E,i as P,j as G,k as O,l as q,D as R,m as z}from"./CLFba8FK.js";import{r as M}from"./C3jqHcRB.js";const b=3e4;class K extends B{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=A();this.getLocalState()!==null&&b/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const s=[];this.meta.forEach((a,c)=>{c!==this.clientID&&b<=e-a.lastUpdated&&this.states.has(c)&&s.push(c)}),s.length>0&&x(this,s,"timeout")},F(b/10)),n.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(n){const e=this.clientID,s=this.meta.get(e),a=s===void 0?0:s.clock+1,c=this.states.get(e);n===null?this.states.delete(e):this.states.set(e,n),this.meta.set(e,{clock:a,lastUpdated:A()});const l=[],u=[],r=[],p=[];n===null?p.push(e):c==null?n!=null&&l.push(e):(u.push(e),V(c,n)||r.push(e)),(l.length>0||r.length>0||p.length>0)&&this.emit("change",[{added:l,updated:r,removed:p},"local"]),this.emit("update",[{added:l,updated:u,removed:p},"local"])}setLocalStateField(n,e){const s=this.getLocalState();s!==null&&this.setLocalState({...s,[n]:e})}getStates(){return this.states}}const x=(t,n,e)=>{const s=[];for(let a=0;a<n.length;a++){const c=n[a];if(t.states.has(c)){if(t.states.delete(c),c===t.clientID){const l=t.meta.get(c);t.meta.set(c,{clock:l.clock+1,lastUpdated:A()})}s.push(c)}}s.length>0&&(t.emit("change",[{added:[],updated:[],removed:s},e]),t.emit("update",[{added:[],updated:[],removed:s},e]))},Q=(t,n,e=t.states)=>{const s=n.length,a=D();S(a,s);for(let c=0;c<s;c++){const l=n[c],u=e.get(l)||null,r=t.meta.get(l).clock;S(a,l),S(a,r),J(a,JSON.stringify(u))}return v(a)},X=(t,n,e)=>{const s=N(n),a=A(),c=[],l=[],u=[],r=[],p=L(s);for(let m=0;m<p;m++){const d=L(s);let g=L(s);const h=JSON.parse(_(s)),y=t.meta.get(d),k=t.states.get(d),o=y===void 0?0:y.clock;(o<g||o===g&&h===null&&t.states.has(d))&&(h===null?d===t.clientID&&t.getLocalState()!=null?g++:t.states.delete(d):t.states.set(d,h),t.meta.set(d,{clock:g,lastUpdated:a}),y===void 0&&h!==null?c.push(d):y!==void 0&&h===null?r.push(d):h!==null&&(V(h,k)||u.push(d),l.push(d)))}(c.length>0||u.length>0||r.length>0)&&t.emit("change",[{added:c,updated:u,removed:r},e]),(c.length>0||l.length>0||r.length>0)&&t.emit("update",[{added:c,updated:l,removed:r},e])},W=0,j=1,C=2,Z=(t,n)=>{S(t,W);const e=P(n);E(t,e)},$=(t,n,e)=>{S(t,j),E(t,q(n,e))},H=(t,n,e)=>$(n,e,O(t)),Y=(t,n,e,s)=>{try{G(n,O(t),e)}catch(a){s?.(a),console.error("Caught error while handling a Yjs update",a)}},tt=(t,n)=>{S(t,C),E(t,n)},et=Y,nt=(t,n,e,s,a)=>{const c=L(t);switch(c){case W:H(t,n,e);break;case j:Y(t,e,s,a);break;case C:et(t,e,s,a);break;default:throw new Error("Unknown message type")}return c},U=0,T=1;function st(t,n,e){const s=new TextEncoder().encode(t),a=new ArrayBuffer(2+s.length+1+e.length);return new DataView(a).setUint16(0,s.length),new Uint8Array(a,2,s.length).set(s),new Uint8Array(a)[2+s.length]=n,new Uint8Array(a,2+s.length+1).set(e),a}function at(t){if(t.byteLength<3)return null;const e=new DataView(t).getUint16(0);if(t.byteLength<2+e+1)return null;const s=new TextDecoder().decode(new Uint8Array(t,2,e)),a=new Uint8Array(t)[2+e],c=new Uint8Array(t,2+e+1);return{docName:s,msgType:a,payload:c}}function lt(t,n){const e=new R,s=e.getText("content"),a=new K(e);a.setLocalStateField("user",{name:n.name,color:n.color,colorLight:n.colorLight??n.color+"33"});let c=null,l=!1;function u(){return M.ws??null}function r(o,f){const i=u();!i||i.readyState!==WebSocket.OPEN||i.send(st(t,o,f))}function p(){const o=D();Z(o,e),r(U,v(o))}function m(o){const f=o??[e.clientID],i=Q(a,f);r(T,i)}function d(o){if(l||typeof o.data=="string")return;const f=o.data instanceof ArrayBuffer?o.data:null;if(!f)return;const i=at(f);if(!(!i||i.docName!==t))if(i.msgType===U){const I=N(i.payload),w=D();nt(I,w,e,"ws-server"),z(w)>0&&r(U,v(w))}else i.msgType===T&&X(a,i.payload,"ws-server")}function g(o,f){if(l||f==="ws-server")return;const i=D();tt(i,o),r(U,v(i))}function h({added:o,updated:f,removed:i},I){if(l||I==="ws-server")return;const w=o.concat(f,i);m(w)}function y(){if(l)return;const o=u();!o||o.readyState!==WebSocket.OPEN||(o.send(JSON.stringify({type:"collab:join",docName:t})),c&&o.removeEventListener("message",c),c=d,o.addEventListener("message",c),p(),m())}e.on("update",g),a.on("update",h),y(),M.addConnectHandler(y);function k(){if(l)return;l=!0,x(a,[e.clientID],"local"),m([e.clientID]);const o=u();o&&o.readyState===WebSocket.OPEN&&o.send(JSON.stringify({type:"collab:leave",docName:t})),c&&o&&(o.removeEventListener("message",c),c=null),e.off("update",g),a.off("update",h),a.destroy(),e.destroy()}return{ydoc:e,ytext:s,awareness:a,destroy:k}}export{lt as createCollabSession};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aS as b,bl as O,aC as y,Y as u,g as f,s as d}from"./BLp0X8Gk.js";const h=[];function A(e,t=b){let n=null;const r=new Set;function s(o){if(O(e,o)&&(e=o,n)){const l=!h.length;for(const c of r)c[1](),h.push(c,e);if(l){for(let c=0;c<h.length;c+=2)h[c][0](h[c+1]);h.length=0}}}function i(o){s(o(e))}function a(o,l=b){const c=[o,l];return r.add(c),r.size===1&&(n=t(s,i)||b),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:a}}new URL("sveltekit-internal://");function G(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function z(e){return e.split("%25").map(decodeURI).join("%25")}function D(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function H({href:e}){return e.split("#")[0]}function K(e,t,n,r=!1){const s=new URL(e);Object.defineProperty(s,"searchParams",{value:new Proxy(s.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return(c,...x)=>(n(c),a[o](c,...x));t();const l=Reflect.get(a,o);return typeof l=="function"?l.bind(a):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const a of i)Object.defineProperty(s,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return s}function N(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let s=r.length;for(;s;)t=t*33^r[--s]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function I(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const L=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&p.delete(w(e)),L(e,t));const p=new Map;function B(e,t){const n=w(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:s,...i}=JSON.parse(r.textContent);const a=r.getAttribute("data-ttl");return a&&p.set(n,{body:s,init:i,ttl:1e3*Number(a)}),r.getAttribute("data-b64")!==null&&(s=I(s)),Promise.resolve(new Response(s,i))}return window.fetch(e,t)}function J(e,t,n){if(p.size>0){const r=w(e,n),s=p.get(r);if(s){if(performance.now()<s.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(s.body,s.init);p.delete(r)}}return window.fetch(t,n)}function w(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const s=[];t.headers&&s.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&s.push(t.body),r+=`[data-hash="${N(...s)}"]`}return r}const P=globalThis.__sveltekit_128kx4m?.base??"",$=globalThis.__sveltekit_128kx4m?.assets??P??"",q="1774487850145",W="sveltekit:snapshot",X="sveltekit:scroll",M="sveltekit:states",F="sveltekit:pageurl",Q="sveltekit:history",Z="sveltekit:navigation",v={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},k=location.origin;function ee(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function te(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const S={...v,"":v.hover};function T(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ne(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=T(e)}}function re(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!s||C(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=r?.origin===k&&e.hasAttribute("download");return{url:r,external:i,target:s,download:a}}function se(e){let t=null,n=null,r=null,s=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=g(o,"preload-code")),s===null&&(s=g(o,"preload-data")),t===null&&(t=g(o,"keepfocus")),n===null&&(n=g(o,"noscroll")),i===null&&(i=g(o,"reload")),a===null&&(a=g(o,"replacestate")),o=T(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:S[r??"off"],preload_data:S[s??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(a)}}function oe(e){const t=A(e);let n=!0;function r(){n=!0,t.update(a=>a)}function s(a){n=!1,t.set(a)}function i(a){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&a(o=l)})}return{notify:r,set:s,subscribe:i}}const E={v:()=>{}};function ae(){const{set:e,subscribe:t}=A(!1);let n;async function r(){clearTimeout(n);try{const s=await fetch(`${$}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!s.ok)return!1;const a=(await s.json()).version!==q;return a&&(e(!0),E.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:r}}function C(e,t,n){return e.origin!==k||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function ie(e){}const U=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...U];const V=new Set([...U]);[...V];let m,R,_;const Y=y.toString().includes("$$")||/function \w+\(\) \{\}/.test(y.toString());Y?(m={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},R={current:null},_={current:!1}):(m=new class{#e=u({});get data(){return f(this.#e)}set data(t){d(this.#e,t)}#t=u(null);get form(){return f(this.#t)}set form(t){d(this.#t,t)}#n=u(null);get error(){return f(this.#n)}set error(t){d(this.#n,t)}#r=u({});get params(){return f(this.#r)}set params(t){d(this.#r,t)}#s=u({id:null});get route(){return f(this.#s)}set route(t){d(this.#s,t)}#o=u({});get state(){return f(this.#o)}set state(t){d(this.#o,t)}#a=u(-1);get status(){return f(this.#a)}set status(t){d(this.#a,t)}#i=u(new URL("https://example.com"));get url(){return f(this.#i)}set url(t){d(this.#i,t)}},R=new class{#e=u(null);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},_=new class{#e=u(!1);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},E.v=()=>_.current=!0);function fe(e){Object.assign(m,e)}export{Q as H,Z as N,F as P,M as S,z as a,P as b,ae as c,D as d,R as e,B as f,J as g,ne as h,C as i,re as j,se as k,H as l,K as m,G as n,k as o,m as p,v as q,ee as r,te as s,X as t,fe as u,W as v,A as w,oe as x,ie as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as e,g as t,Y as u}from"./BLp0X8Gk.js";import{f}from"./DZaKuUr5.js";function T(){let n=u(null),i=u(null),r=u(null),c=u(null),o=u("entity"),g=u(null),d=u("general"),h=u(!1);function p(l,s){t(n)&&(t(n)!==l||t(r)!==s)&&f(t(n)).catch(()=>{})}function y(l,s,a,I){p(l,a),e(n,l,!0),e(i,s,!0),e(r,a,!0),e(c,I??null,!0)}function b(){e(o,"entity")}function v(){e(o,"graph")}function S(){e(o,"settings"),e(d,"general")}function m(l,s,a){t(r)===a&&t(n)===l?(e(n,null),e(i,null),e(r,null)):(e(n,l,!0),e(i,s,!0),e(r,a,!0)),e(c,null)}function w(){t(n)&&f(t(n)).catch(()=>{}),e(n,null),e(i,null),e(r,null),e(c,null)}return{get selectedRepo(){return t(n)},get selectedType(){return t(i)},get selectedId(){return t(r)},get selectedSubPath(){return t(c)},get activeView(){return t(o)},get entityPath(){return t(n)&&t(i)&&t(r)?`/${t(n)}/${t(i)}/${t(r)}`:null},get hoveredEntityId(){return t(g)},set hoveredEntityId(l){e(g,l,!0)},get settingsTab(){return t(d)},set settingsTab(l){e(d,l,!0)},get hideSidebar(){return t(h)},set hideSidebar(l){e(h,l,!0)},select:y,deselect:w,selectOnGraph:m,showEntity:b,showGraph:v,showSettings:S}}const R=T();export{R as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as f,h as o,f as v,E as y,i as l,j as m,k as p,o as i,H as T,q as A}from"./BLp0X8Gk.js";import{B as E}from"./OKhOOfKB.js";function k(d,_,e){var s;o&&(s=A,v());var r=new E(d);f(()=>{var a=_()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{k as c};
|