@loicngr/kobo 1.6.11 → 1.6.12
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/server/db/migrations.js +7 -0
- package/dist/server/db/schema.js +1 -0
- package/dist/server/index.js +5 -1
- package/dist/server/routes/workspaces.js +24 -65
- package/dist/server/services/notion-service.js +15 -3
- package/dist/server/services/workspace-service.js +4 -3
- package/package.json +1 -1
- package/src/client/dist/spa/assets/{ActivityFeed-Cv2cHAob.js → ActivityFeed-6Xg7qNfy.js} +1 -1
- package/src/client/dist/spa/assets/CreatePage-BQu7mQjm.css +1 -0
- package/src/client/dist/spa/assets/CreatePage-CrRGDs5V.js +2 -0
- package/src/client/dist/spa/assets/{DiffViewer-xp8A1R-2.js → DiffViewer-T111s7BH.js} +2 -2
- package/src/client/dist/spa/assets/{HealthPage-iPEmaIxf.js → HealthPage-1VakQ0x_.js} +1 -1
- package/src/client/dist/spa/assets/MainLayout-Ci-CETJi.css +1 -0
- package/src/client/dist/spa/assets/{MainLayout-CLSGgDp_.js → MainLayout-w7DoW3yz.js} +17 -17
- package/src/client/dist/spa/assets/{SearchPage-C_Z_-mPY.js → SearchPage-CcldJX8i.js} +1 -1
- package/src/client/dist/spa/assets/{SettingsPage-DETFZXCZ.js → SettingsPage-CMyeaz63.js} +1 -1
- package/src/client/dist/spa/assets/WorkspacePage-Bw9xhTDR.js +4 -0
- package/src/client/dist/spa/assets/WorkspacePage-_1mty_a4.css +1 -0
- package/src/client/dist/spa/assets/{build-path-tree-BAbslBF6.js → build-path-tree-DbuI5yRz.js} +1 -1
- package/src/client/dist/spa/assets/{cssMode-COLGl5q-.js → cssMode-DhpmJAZc.js} +1 -1
- package/src/client/dist/spa/assets/{documents-BlJv_G6j.js → documents-fVD9RJth.js} +1 -1
- package/src/client/dist/spa/assets/{editor.api-CmWAkEBP.js → editor.api-DCvwHsju.js} +1 -1
- package/src/client/dist/spa/assets/{editor.main-B50pvEsj.js → editor.main-CRtPC0iL.js} +3 -3
- package/src/client/dist/spa/assets/{expand-template-CVF0qYFz.js → expand-template-BIra7NIw.js} +1 -1
- package/src/client/dist/spa/assets/{freemarker2-x6p1HdGv.js → freemarker2-C9UOErQw.js} +1 -1
- package/src/client/dist/spa/assets/{handlebars-DVdpHx-F.js → handlebars-DmZ2-ZcJ.js} +1 -1
- package/src/client/dist/spa/assets/{html-CVBXIMk9.js → html-ButyxlXG.js} +1 -1
- package/src/client/dist/spa/assets/{htmlMode-bcy_B_7M.js → htmlMode-C-defy1b.js} +1 -1
- package/src/client/dist/spa/assets/i18n-C8aJvuyS.js +1 -0
- package/src/client/dist/spa/assets/index-DAbX631s.js +2 -0
- package/src/client/dist/spa/assets/{javascript-C8NntD-t.js → javascript-B6zVweIF.js} +1 -1
- package/src/client/dist/spa/assets/{jsonMode-CKmO44kP.js → jsonMode-CttMw-EY.js} +1 -1
- package/src/client/dist/spa/assets/{kobo-commands-30GNdCpd.js → kobo-commands-CD7ERFxp.js} +1 -1
- package/src/client/dist/spa/assets/{liquid-JGbytnvM.js → liquid-tGpdE1YW.js} +1 -1
- package/src/client/dist/spa/assets/{mdx-8xDuI4Ra.js → mdx-Cy5mpQoy.js} +1 -1
- package/src/client/dist/spa/assets/{models-IFgNVQuG.js → models-DdAQDnqk.js} +1 -1
- package/src/client/dist/spa/assets/{monaco.contribution-DxgwWnvV.js → monaco.contribution-DtdkkTgR.js} +2 -2
- package/src/client/dist/spa/assets/{python-DntkvJJn.js → python-hLOxMbm9.js} +1 -1
- package/src/client/dist/spa/assets/{razor-CBMu7MSu.js → razor-tqHFRROa.js} +1 -1
- package/src/client/dist/spa/assets/{tsMode-qUgDyCdk.js → tsMode-MJKgZYsJ.js} +1 -1
- package/src/client/dist/spa/assets/{typescript-Bp6APJ3s.js → typescript-CWTqB5lb.js} +1 -1
- package/src/client/dist/spa/assets/{xml-D1_1t5sz.js → xml-ByDBLBVa.js} +1 -1
- package/src/client/dist/spa/assets/{yaml-T38tRjC8.js → yaml-BiTCWZ38.js} +1 -1
- package/src/client/dist/spa/index.html +1 -1
- package/src/client/dist/spa/assets/CreatePage-DrGARGo5.js +0 -2
- package/src/client/dist/spa/assets/CreatePage-d0Qp-PnO.css +0 -1
- package/src/client/dist/spa/assets/MainLayout-CDR4Le5c.css +0 -1
- package/src/client/dist/spa/assets/WorkspacePage-BAkCj4gZ.js +0 -4
- package/src/client/dist/spa/assets/WorkspacePage-Bo1GW3wo.css +0 -1
- package/src/client/dist/spa/assets/i18n-DncqzfKK.js +0 -1
- package/src/client/dist/spa/assets/index-Dl8rTFls.js +0 -2
|
@@ -123,6 +123,13 @@ export const migrations = [
|
|
|
123
123
|
db.prepare("ALTER TABLE workspaces ADD COLUMN permission_profile TEXT NOT NULL DEFAULT 'bypass'").run();
|
|
124
124
|
},
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
version: 14,
|
|
128
|
+
name: 'add-workspace-sentry-url',
|
|
129
|
+
migrate: (db) => {
|
|
130
|
+
db.prepare('ALTER TABLE workspaces ADD COLUMN sentry_url TEXT').run();
|
|
131
|
+
},
|
|
132
|
+
},
|
|
126
133
|
];
|
|
127
134
|
/** Current schema version — always equals the highest migration version. */
|
|
128
135
|
export const SCHEMA_VERSION = migrations.length > 0 ? migrations[migrations.length - 1].version : 1;
|
package/dist/server/db/schema.js
CHANGED
|
@@ -10,6 +10,7 @@ export function initSchema(db) {
|
|
|
10
10
|
status TEXT NOT NULL DEFAULT 'created',
|
|
11
11
|
notion_url TEXT,
|
|
12
12
|
notion_page_id TEXT,
|
|
13
|
+
sentry_url TEXT,
|
|
13
14
|
model TEXT NOT NULL DEFAULT 'claude-opus-4-7',
|
|
14
15
|
reasoning_effort TEXT NOT NULL DEFAULT 'auto',
|
|
15
16
|
permission_mode TEXT NOT NULL DEFAULT 'auto-accept',
|
package/dist/server/index.js
CHANGED
|
@@ -258,7 +258,11 @@ setMessageHandler((type, payload) => {
|
|
|
258
258
|
const workspace = getWorkspace(p.workspaceId);
|
|
259
259
|
if (workspace) {
|
|
260
260
|
const worktreePath = `${workspace.projectPath}/.worktrees/${workspace.workingBranch}`;
|
|
261
|
-
|
|
261
|
+
// Plan mode blocks MCP tools — when the caller knows the message
|
|
262
|
+
// requires them (e.g. grooming), it sets the override to bypass the
|
|
263
|
+
// workspace default for this spawn only.
|
|
264
|
+
const effectiveMode = p.permissionModeOverride ?? workspace.permissionMode;
|
|
265
|
+
startAgent(p.workspaceId, worktreePath, p.content, workspace.model, true, effectiveMode, p.sessionId, workspace.reasoningEffort);
|
|
262
266
|
updateWorkspaceStatus(p.workspaceId, 'executing');
|
|
263
267
|
}
|
|
264
268
|
}
|
|
@@ -62,6 +62,29 @@ app.post('/', migrationGuard, async (c) => {
|
|
|
62
62
|
const message = err instanceof Error ? err.message : String(err);
|
|
63
63
|
return c.json({ error: message }, 422);
|
|
64
64
|
}
|
|
65
|
+
// Pre-flight: extract Notion / Sentry before any DB write. A throw here
|
|
66
|
+
// must not leave a half-built workspace behind, so we run extraction
|
|
67
|
+
// before createWorkspace and surface failures as 422.
|
|
68
|
+
let notionContent = null;
|
|
69
|
+
if (body.notionUrl) {
|
|
70
|
+
try {
|
|
71
|
+
notionContent = await notionService.extractNotionPage(body.notionUrl);
|
|
72
|
+
}
|
|
73
|
+
catch (err) {
|
|
74
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
75
|
+
return c.json({ error: `Failed to extract Notion page: ${message}` }, 422);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
let sentryContent = null;
|
|
79
|
+
if (body.sentryUrl) {
|
|
80
|
+
try {
|
|
81
|
+
sentryContent = await sentryService.extractSentryIssue(body.sentryUrl);
|
|
82
|
+
}
|
|
83
|
+
catch (err) {
|
|
84
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
85
|
+
return c.json({ error: `Failed to extract Sentry issue: ${message}` }, 422);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
65
88
|
// Create workspace record
|
|
66
89
|
const globalSettings = settingsService.getGlobalSettings();
|
|
67
90
|
// workingBranch may be updated after Notion extraction to inject the ticket ID
|
|
@@ -73,13 +96,12 @@ app.post('/', migrationGuard, async (c) => {
|
|
|
73
96
|
workingBranch,
|
|
74
97
|
notionUrl: body.notionUrl,
|
|
75
98
|
notionPageId: body.notionPageId,
|
|
99
|
+
sentryUrl: body.sentryUrl,
|
|
76
100
|
model: body.model,
|
|
77
101
|
reasoningEffort: body.reasoningEffort,
|
|
78
102
|
permissionMode: body.permissionMode || globalSettings.defaultPermissionMode || 'plan',
|
|
79
103
|
engine: body.engine,
|
|
80
104
|
});
|
|
81
|
-
let notionContent = null;
|
|
82
|
-
let sentryContent = null;
|
|
83
105
|
// Auto-tag the workspace based on its creation source — `notion` when
|
|
84
106
|
// imported from a Notion page, `sentry` when bootstrapped from a Sentry
|
|
85
107
|
// issue URL. Pre-seeded in the global tag catalogue via migration v9.
|
|
@@ -101,29 +123,6 @@ app.post('/', migrationGuard, async (c) => {
|
|
|
101
123
|
console.error('[workspaces] Failed to apply auto tags:', err);
|
|
102
124
|
}
|
|
103
125
|
}
|
|
104
|
-
// Extract Notion page content if a URL was provided
|
|
105
|
-
if (body.notionUrl) {
|
|
106
|
-
workspaceService.updateWorkspaceStatus(workspace.id, 'extracting');
|
|
107
|
-
try {
|
|
108
|
-
notionContent = await notionService.extractNotionPage(body.notionUrl);
|
|
109
|
-
}
|
|
110
|
-
catch (err) {
|
|
111
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
112
|
-
console.error(`[workspaces] Failed to extract Notion page: ${message}`);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
// Extract Sentry issue content if a URL was provided. Done early (before
|
|
116
|
-
// worktree creation) so the issue ID can be injected into the branch name.
|
|
117
|
-
if (body.sentryUrl) {
|
|
118
|
-
workspaceService.updateWorkspaceStatus(workspace.id, 'extracting');
|
|
119
|
-
try {
|
|
120
|
-
sentryContent = await sentryService.extractSentryIssue(body.sentryUrl);
|
|
121
|
-
}
|
|
122
|
-
catch (err) {
|
|
123
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
124
|
-
console.error(`[workspaces] Failed to extract Sentry issue: ${message}`);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
126
|
// Update workspace name with Sentry issue title if the user did not provide
|
|
128
127
|
// a custom name and Notion hasn't already filled it.
|
|
129
128
|
if (sentryContent?.title && !notionContent?.title && workspace.name === 'workspace') {
|
|
@@ -688,46 +687,6 @@ app.patch('/:id/sessions/:sessionId', async (c) => {
|
|
|
688
687
|
return c.json({ error: message }, 500);
|
|
689
688
|
}
|
|
690
689
|
});
|
|
691
|
-
// POST /api/workspaces/:id/refresh-notion — re-extract Notion page and update tasks
|
|
692
|
-
app.post('/:id/refresh-notion', async (c) => {
|
|
693
|
-
try {
|
|
694
|
-
const id = c.req.param('id');
|
|
695
|
-
const workspace = workspaceService.getWorkspace(id);
|
|
696
|
-
if (!workspace)
|
|
697
|
-
return c.json({ error: `Workspace '${id}' not found` }, 404);
|
|
698
|
-
if (!workspace.notionUrl)
|
|
699
|
-
return c.json({ error: 'No Notion URL configured' }, 400);
|
|
700
|
-
const notionContent = await notionService.extractNotionPage(workspace.notionUrl);
|
|
701
|
-
// Delete existing tasks and recreate from Notion
|
|
702
|
-
const db = getDb();
|
|
703
|
-
db.prepare('DELETE FROM tasks WHERE workspace_id = ?').run(id);
|
|
704
|
-
let sortOrder = 0;
|
|
705
|
-
for (const todo of notionContent.todos) {
|
|
706
|
-
workspaceService.createTask(id, {
|
|
707
|
-
title: todo.title,
|
|
708
|
-
isAcceptanceCriterion: false,
|
|
709
|
-
sortOrder: sortOrder++,
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
for (const feature of notionContent.gherkinFeatures) {
|
|
713
|
-
workspaceService.createTask(id, {
|
|
714
|
-
title: feature,
|
|
715
|
-
isAcceptanceCriterion: true,
|
|
716
|
-
sortOrder: sortOrder++,
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
// Update name if it was the default
|
|
720
|
-
if (notionContent.title && workspace.name === 'workspace') {
|
|
721
|
-
workspaceService.updateWorkspaceName(id, notionContent.title);
|
|
722
|
-
}
|
|
723
|
-
const updated = workspaceService.getWorkspaceWithTasks(id);
|
|
724
|
-
return c.json(updated);
|
|
725
|
-
}
|
|
726
|
-
catch (err) {
|
|
727
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
728
|
-
return c.json({ error: message }, 500);
|
|
729
|
-
}
|
|
730
|
-
});
|
|
731
690
|
// POST /api/workspaces/:id/tasks — create a new task
|
|
732
691
|
app.post('/:id/tasks', async (c) => {
|
|
733
692
|
try {
|
|
@@ -6,14 +6,28 @@ const GHERKIN_PATTERN = /^(Scénario|Étant donné|Quand|Alors|Scenario|Given|Wh
|
|
|
6
6
|
// NOTE: `Feature`/`Fonctionnalité` are top-level containers, not a new scenario,
|
|
7
7
|
// so they stay attached to the first scenario rather than triggering a split.
|
|
8
8
|
const SCENARIO_START_PATTERN = /^(Scénario|Scenario)/i;
|
|
9
|
+
function formatAsUuid(raw32Hex) {
|
|
10
|
+
return `${raw32Hex.slice(0, 8)}-${raw32Hex.slice(8, 12)}-${raw32Hex.slice(12, 16)}-${raw32Hex.slice(16, 20)}-${raw32Hex.slice(20)}`;
|
|
11
|
+
}
|
|
9
12
|
/**
|
|
10
13
|
* Parse a Notion URL and extract the page_id in UUID format (with dashes).
|
|
11
14
|
* Handles:
|
|
12
15
|
* https://www.notion.so/workspace/Title-<32hexChars>
|
|
13
16
|
* https://www.notion.so/workspace/<32hexChars>
|
|
14
17
|
* https://www.notion.so/<32hexChars>
|
|
18
|
+
* https://www.notion.so/workspace/<parentId>?p=<32hexChars>&pm=s (side-peek)
|
|
19
|
+
* https://www.notion.so/workspace/<dbId>?v=<viewId>&p=<32hexChars> (database peek)
|
|
20
|
+
*
|
|
21
|
+
* When the URL embeds `?p=<32hex>` the path component is the parent / database
|
|
22
|
+
* ID and the actual page being viewed is in the query parameter — that takes
|
|
23
|
+
* precedence over the path.
|
|
15
24
|
*/
|
|
16
25
|
export function parseNotionUrl(url) {
|
|
26
|
+
// Side-peek / database pages embed the real page ID in `?p=<32hex>`.
|
|
27
|
+
const pParamMatch = url.match(/[?&]p=([0-9a-f]{32})(?:[&#]|$)/i);
|
|
28
|
+
if (pParamMatch) {
|
|
29
|
+
return formatAsUuid(pParamMatch[1]);
|
|
30
|
+
}
|
|
17
31
|
// Strip query string and fragment
|
|
18
32
|
const cleanUrl = url.split('?')[0].split('#')[0];
|
|
19
33
|
// The page ID is always the last 32 hex characters (no dashes) at the end of the path
|
|
@@ -26,9 +40,7 @@ export function parseNotionUrl(url) {
|
|
|
26
40
|
}
|
|
27
41
|
throw new Error(`Could not extract page ID from Notion URL: ${url}`);
|
|
28
42
|
}
|
|
29
|
-
|
|
30
|
-
// Convert 32 hex chars to UUID format: 8-4-4-4-12
|
|
31
|
-
return `${raw.slice(0, 8)}-${raw.slice(8, 12)}-${raw.slice(12, 16)}-${raw.slice(16, 20)}-${raw.slice(20)}`;
|
|
43
|
+
return formatAsUuid(match[1]);
|
|
32
44
|
}
|
|
33
45
|
/**
|
|
34
46
|
* Read the Notion token from the user's Claude Code config as a fallback.
|
|
@@ -29,6 +29,7 @@ function mapWorkspace(row) {
|
|
|
29
29
|
status: row.status,
|
|
30
30
|
notionUrl: row.notion_url,
|
|
31
31
|
notionPageId: row.notion_page_id,
|
|
32
|
+
sentryUrl: row.sentry_url,
|
|
32
33
|
model: row.model,
|
|
33
34
|
reasoningEffort: row.reasoning_effort ?? 'auto',
|
|
34
35
|
permissionMode: (row.permission_mode ?? 'auto-accept'),
|
|
@@ -78,9 +79,9 @@ export function createWorkspace(data) {
|
|
|
78
79
|
const now = new Date().toISOString();
|
|
79
80
|
const id = nanoid();
|
|
80
81
|
db.prepare(`
|
|
81
|
-
INSERT INTO workspaces (id, name, project_path, source_branch, working_branch, status, notion_url, notion_page_id, model, reasoning_effort, permission_mode, engine, created_at, updated_at)
|
|
82
|
-
VALUES (?, ?, ?, ?, ?, 'created', ?, ?, ?, ?, ?, ?, ?, ?)
|
|
83
|
-
`).run(id, data.name, data.projectPath, data.sourceBranch, data.workingBranch, data.notionUrl ?? null, data.notionPageId ?? null, data.model ?? 'claude-opus-4-7', data.reasoningEffort ?? 'auto', data.permissionMode ?? 'auto-accept', data.engine ?? 'claude-code', now, now);
|
|
82
|
+
INSERT INTO workspaces (id, name, project_path, source_branch, working_branch, status, notion_url, notion_page_id, sentry_url, model, reasoning_effort, permission_mode, engine, created_at, updated_at)
|
|
83
|
+
VALUES (?, ?, ?, ?, ?, 'created', ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
84
|
+
`).run(id, data.name, data.projectPath, data.sourceBranch, data.workingBranch, data.notionUrl ?? null, data.notionPageId ?? null, data.sentryUrl ?? null, data.model ?? 'claude-opus-4-7', data.reasoningEffort ?? 'auto', data.permissionMode ?? 'auto-accept', data.engine ?? 'claude-code', now, now);
|
|
84
85
|
return getWorkspace(id);
|
|
85
86
|
}
|
|
86
87
|
/** Fetch a single workspace by ID, or null if not found. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loicngr/kobo",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.12",
|
|
4
4
|
"description": "Kōbō — multi-workspace agent manager for Claude Code. Orchestrates isolated git worktrees with dev servers, Notion integration, and MCP tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{E as e,F as t,H as n,L as r,M as i,Q as a,U as o,_t as s,bt as c,d as l,f as u,g as d,h as f,l as p,p as m,r as h,rt as g,u as _,v,yt as y}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{L as b,l as x,t as S}from"./QIcon-B0-pH3Qs.js";import{n as C,t as w}from"./settings-CAILUJXO.js";import{t as T}from"./QBtn-DHwAb18J.js";import{n as E}from"./vue-i18n-BJlZEYnA.js";import{S as D,b as O,g as k,v as A}from"./index-
|
|
1
|
+
import{E as e,F as t,H as n,L as r,M as i,Q as a,U as o,_t as s,bt as c,d as l,f as u,g as d,h as f,l as p,p as m,r as h,rt as g,u as _,v,yt as y}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{L as b,l as x,t as S}from"./QIcon-B0-pH3Qs.js";import{n as C,t as w}from"./settings-CAILUJXO.js";import{t as T}from"./QBtn-DHwAb18J.js";import{n as E}from"./vue-i18n-BJlZEYnA.js";import{S as D,b as O,g as k,v as A}from"./index-DAbX631s.js";import{t as j}from"./QSpinnerDots-DEiRooBD.js";import{t as M}from"./QExpansionItem-CWw6ZujM.js";import{t as ee}from"./QScrollArea-DpCqRRE0.js";import{t as N}from"./QTooltip-BIDjo2hJ.js";import{n as P,r as F,t as I}from"./documents-fVD9RJth.js";import{t as L}from"./_plugin-vue_export-helper-r4mAJOHR.js";function te(e,t,n=!0){let r=[],i=new Map,a=new Map;for(let n=0;n<e.length;n++){let o=e[n],s=t?.[n];switch(o.kind){case`message:text`:{let e=i.get(o.messageId);if(e)e.text+=o.text,e.streaming=o.streaming;else{let e={type:`text`,messageId:o.messageId,text:o.text,streaming:o.streaming,ts:s};i.set(o.messageId,e),r.push(e)}break}case`message:end`:{let e=i.get(o.messageId);e&&(e.streaming=!1);break}case`message:thinking`:r.push({type:`thinking`,messageId:o.messageId,text:o.text,ts:s});break;case`tool:call`:{let e={type:`tool`,toolCallId:o.toolCallId,name:o.name,input:o.input,ts:s};a.set(o.toolCallId,e),r.push(e);break}case`tool:result`:{let e=a.get(o.toolCallId);e&&(e.result={output:o.output,isError:o.isError});break}case`session:started`:r.push({type:`session`,kind:`started`,detail:{engineSessionId:o.engineSessionId,model:o.model},ts:s});break;case`session:ended`:r.push({type:`session`,kind:`ended`,detail:{reason:o.reason,exitCode:o.exitCode},ts:s});break;case`session:compacted`:r.push({type:`session`,kind:`compacted`,ts:s});break;case`session:brainstorm-complete`:case`message:raw`:case`skills:discovered`:case`usage`:case`rate_limit`:case`subagent:progress`:case`error`:break;default:}}let o=null;for(let e of r)e.type===`text`&&e.streaming&&(o&&(o.streaming=!1),o=e);return o&&!n&&(o.streaming=!1),r}function ne(e,t){if(t.length===0)return e;let n=t.map(e=>({type:`user`,content:e.content,sender:e.sender,ts:e.ts})),r=[...e,...n];r.sort((e,t)=>{let n=e.ts??``,r=t.ts??``;return n===r?0:n?r?n<r?-1:1:-1:1});let i;for(let e of r)e.type===`user`&&e.sender!==`system-prompt`&&e.ts&&(!i||e.ts>i)&&(i=e.ts);if(i)for(let e of r)e.type===`text`&&e.streaming&&(!e.ts||e.ts<i)&&(e.streaming=!1);return r}function R(e){switch(e.type){case`user`:return e.sender===`system-prompt`?`system-prompt`:`user`;case`session`:return`session`;default:return`agent`}}function re(e){let t=[],n=null;for(let r of e){let e=R(r),i=e===`session`||e===`system-prompt`;!n||n.speaker!==e||i?(n={speaker:e,ts:r.ts,items:[r]},t.push(n),i&&(n=null)):n.items.push(r)}return t}var z={class:`text-caption text-grey-6`},B=v({__name:`SessionEventItem`,props:{item:{}},setup(e){let n=e,r=p(()=>{switch(n.item.kind){case`started`:return`session.started`;case`ended`:return`session.ended`;case`compacted`:return`session.compacted`;default:return`session.started`}});return(e,n)=>(t(),m(`span`,z,c(e.$t(r.value)),1))}}),V={key:0,class:`message-choices q-mt-sm`},ie={class:`choice-key text-weight-medium`},H={class:`choice-label q-ml-xs ellipsis`},U=L(v({__name:`MessageChoices`,props:{choices:{},active:{type:Boolean}},setup(e){let n=e,i=k(),a=A();function s(e){if(!n.active)return;let t=a.selectedWorkspaceId;if(!t)return;let r=`${e.key}. ${e.label}`,o=a.selectedSessionId??void 0;i.sendChatMessage(t,r,o),a.addActivityItem(t,{id:`user-${Date.now()}`,type:`text`,content:r,timestamp:new Date().toISOString(),sessionId:o,meta:{sender:`user`,pending:!0}})}return(n,i)=>e.choices.length>0&&e.active?(t(),m(`div`,V,[(t(!0),m(h,null,r(e.choices,e=>(t(),l(T,{key:e.key,flat:``,dense:``,"no-caps":``,size:`sm`,color:`indigo-3`,class:`message-choice-btn q-mr-xs q-mb-xs`,onClick:t=>s(e)},{default:o(()=>[_(`span`,ie,c(e.key)+`.`,1),_(`span`,H,c(e.label),1)]),_:2},1032,[`onClick`]))),128))])):u(``,!0)}}),[[`__scopeId`,`data-v-4df976cb`]]),W=5,G=/^\s*(?:[-*]|\d+\.)\s+(?:\*\*([A-Za-z0-9])\.?\*\*|([A-Za-z])\.)\s+(.+?)\s*$/;function K(e){if(!e)return null;let t=e.split(`
|
|
2
2
|
`),n=0;for(;n<t.length;){let e=t[n].match(G);if(!e){n++;continue}let r=n,i=[{key:e[1]??e[2],label:e[3]}],a=n+1;for(;a<t.length;){let e=t[a];if(e.trim()===``){if(a+1<t.length&&t[a+1].trim()===``)break;a++;continue}let n=e.match(G);if(!n)break;i.push({key:n[1]??n[2],label:n[3]}),a++}if(i.length>=2){let e=Math.max(0,r-W);if(t.slice(e,r).join(` `).includes(`?`))return{choices:i}}n=a}return null}function q(e,t){if(t.length===0||e.length===0)return e;let n=[...t].sort((e,t)=>t.length-e.length),r=new DOMParser().parseFromString(`<div>${e}</div>`,`text/html`),i=r.body.firstChild;if(!i)return e;function a(e){if(e.nodeType===Node.TEXT_NODE){ae(e,n,r);return}if(e.nodeName===`A`)return;let t=Array.from(e.childNodes);for(let e of t)a(e)}return a(i),i.innerHTML}function ae(e,t,n){let r=e.textContent??``;if(!t.some(e=>r.includes(e)))return;let i=n.createDocumentFragment(),a=0;for(;a<r.length;){let e=oe(r,a,t);if(!e){i.appendChild(n.createTextNode(r.slice(a)));break}e.index>a&&i.appendChild(n.createTextNode(r.slice(a,e.index)));let o=n.createElement(`a`);o.className=`document-link`,o.setAttribute(`data-document-path`,e.path),o.setAttribute(`href`,`#`),o.textContent=e.path,i.appendChild(o),a=e.index+e.path.length}e.parentNode?.replaceChild(i,e)}function oe(e,t,n){let r=null;for(let i of n){let n=e.indexOf(i,t);n<0||(!r||n<r.index||n===r.index&&i.length>r.path.length)&&(r={index:n,path:i})}return r}var J=[`innerHTML`],se=L(v({__name:`TextMessageItem`,props:{item:{},isLatestTurn:{type:Boolean}},setup(e){let n=e,r=I(),i=A(),a=p(()=>{let e=i.selectedWorkspaceId;return e?r.documentsFor(e).map(e=>e.path):[]}),o=p(()=>{let e=q(P.parse(n.item.text,{async:!1,breaks:!0,gfm:!0}),a.value);return F.sanitize(e,{ADD_ATTR:[`data-document-path`]})}),s=p(()=>K(n.item.text));function c(e){let t=e.target?.closest(`.document-link`);if(!t)return;e.preventDefault();let n=t.getAttribute(`data-document-path`),a=i.selectedWorkspaceId;!n||!a||r.openDocumentByPath(a,n)}return(n,r)=>(t(),m(`div`,{class:`markdown-message`,onClick:c},[_(`div`,{innerHTML:o.value},null,8,J),e.item.streaming?(t(),l(x,{key:0,size:`xs`,class:`q-ml-xs`})):u(``,!0),s.value?(t(),l(U,{key:1,choices:s.value.choices,active:!!e.isLatestTurn&&!e.item.streaming},null,8,[`choices`,`active`])):u(``,!0)]))}}),[[`__scopeId`,`data-v-fc35e8ee`]]),ce={key:0,class:`text-caption text-grey-5`,style:{"font-style":`italic`}},le=[`innerHTML`],Y={key:1,style:{"white-space":`pre-wrap`}},X=L(v({__name:`ThinkingItem`,props:{item:{}},setup(e){let n=e,r=p(()=>n.item.text.trim().slice(0,100)),i=p(()=>n.item.text.trim().length>0),a=p(()=>n.item.text.trim().length>100),s=p(()=>{let e=P.parse(n.item.text,{async:!1,breaks:!0,gfm:!0});return F.sanitize(e)});return(n,d)=>i.value?(t(),m(`div`,ce,[a.value?(t(),l(M,{key:0,dense:``,"dense-toggle":``,label:r.value,"header-class":`text-grey-5 text-caption`,style:{"font-style":`italic`}},{default:o(()=>[_(`div`,{class:`q-py-xs markdown-thinking`,innerHTML:s.value},null,8,le)]),_:1},8,[`label`])):(t(),m(`span`,Y,c(e.item.text),1))])):u(``,!0)}}),[[`__scopeId`,`data-v-e9fb9f90`]]);function ue(e,t){let n=e.split(`
|
|
3
3
|
`),r=t.split(`
|
|
4
4
|
`),i=n.length,a=r.length,o=Array.from({length:i+1},()=>Array(a+1).fill(0));for(let e=i-1;e>=0;e--)for(let t=a-1;t>=0;t--)n[e]===r[t]?o[e][t]=o[e+1][t+1]+1:o[e][t]=Math.max(o[e+1][t],o[e][t+1]);let s=[],c=0,l=0;for(;c<i&&l<a;)n[c]===r[l]?(s.push({type:`context`,content:n[c]}),c++,l++):o[c+1][l]>=o[c][l+1]?(s.push({type:`del`,content:n[c]}),c++):(s.push({type:`add`,content:r[l]}),l++);for(;c<i;)s.push({type:`del`,content:n[c++]});for(;l<a;)s.push({type:`add`,content:r[l++]});return s}function de(e,t){if(!t||typeof t!=`object`)return null;let n=t;if(e===`Edit`){let e=n.file_path;if(!e)return null;let t=n.old_string??``,r=n.new_string??``;return{toolName:`Edit`,filePath:e,oldString:t,newString:r,replaceAll:n.replace_all??!1,additions:r?r.split(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.create-page[data-v-e6dd25b0]{background-color:#1a1a2e;min-height:100%;padding:48px 24px}.create-inner[data-v-e6dd25b0]{width:100%;max-width:700px}.create-title[data-v-e6dd25b0]{font-size:24px;line-height:1.3}.create-card[data-v-e6dd25b0]{background:#224;border:1px solid #444;overflow:hidden}.card-top-bar[data-v-e6dd25b0]{background:#1e1e3a;min-height:36px}.card-name-wrap[data-v-e6dd25b0]{background:#224;padding:8px 16px 4px}.card-name-wrap[data-v-e6dd25b0] .q-field__control{height:32px;min-height:32px;padding:0}.card-name-wrap[data-v-e6dd25b0] input{color:#e0e0e0;font-size:15px;font-weight:500}.card-name-wrap[data-v-e6dd25b0] input::placeholder{color:#555}.card-textarea-wrap[data-v-e6dd25b0]{background:#224;position:relative}.create-slash-popup[data-v-e6dd25b0]{z-index:9999;position:absolute;top:calc(100% + 4px);left:12px;right:12px}.repo-select[data-v-e6dd25b0]{min-width:160px;max-width:260px}.repo-select[data-v-e6dd25b0] .q-field__prepend{align-items:center;height:auto;padding-top:0}.create-textarea[data-v-e6dd25b0]{color:#d0d0d0;width:100%;padding:12px 16px 4px}.create-textarea[data-v-e6dd25b0] .q-field__control{padding:0}.create-textarea[data-v-e6dd25b0] textarea{color:#d0d0d0;resize:none;min-height:100px;font-size:14px;line-height:1.6}.create-textarea[data-v-e6dd25b0] textarea::placeholder{color:#666}.notion-toggle-btn[data-v-e6dd25b0]{background:#333;padding:2px 10px}.notion-url-wrap[data-v-e6dd25b0]{background:#1e1e3a;padding:8px 0 0}.notion-url-input[data-v-e6dd25b0]{padding:0 12px}.notion-url-input[data-v-e6dd25b0] .q-field__control{height:36px;min-height:36px;padding:0}.notion-url-input[data-v-e6dd25b0] input{color:#d0d0d0;font-size:13px}.notion-url-input[data-v-e6dd25b0] input::placeholder{color:#555;font-size:12px}.notion-error[data-v-e6dd25b0],.notion-valid[data-v-e6dd25b0]{padding-bottom:6px}.notion-peek-choice[data-v-e6dd25b0]{padding-top:4px}.peek-card[data-v-e6dd25b0]{cursor:pointer;text-align:left;color:#e0e0e0;font-family:inherit;font-size:inherit;background:#ffffff08;border:1px solid #ffffff14;border-radius:8px;align-items:center;gap:10px;padding:10px 12px;transition:background .15s,border-color .15s,transform .1s;display:flex;position:relative}.peek-card[data-v-e6dd25b0]:hover{background:#ffffff0f;border-color:#6c63ff66}.peek-card[data-v-e6dd25b0]:active{transform:scale(.99)}.peek-card--active[data-v-e6dd25b0]{background:#6c63ff1f;border-color:#6c63ffd9;box-shadow:0 0 0 1px #6c63ff66}.peek-card--active .peek-card-icon[data-v-e6dd25b0]{color:#8a82ff}.peek-card--active .peek-card-title[data-v-e6dd25b0]{color:#fff}.peek-card-icon[data-v-e6dd25b0]{color:#999;flex-shrink:0}.peek-card-text[data-v-e6dd25b0]{flex:1;min-width:0;line-height:1.25}.peek-card-title[data-v-e6dd25b0]{color:#d0d0d0;font-size:12px;font-weight:600}.peek-card-desc[data-v-e6dd25b0]{color:#888;margin-top:2px;font-size:10.5px}.peek-card-check[data-v-e6dd25b0]{flex-shrink:0}.sentry-toggle-btn[data-v-e6dd25b0]{background:#333;padding:2px 10px}.sentry-url-wrap[data-v-e6dd25b0]{background:#1e1e3a;padding:8px 0 0}.sentry-url-input[data-v-e6dd25b0]{padding:0 12px}.sentry-url-input[data-v-e6dd25b0] .q-field__control{height:36px;min-height:36px;padding:0}.sentry-url-input[data-v-e6dd25b0] input{color:#d0d0d0;font-size:13px}.sentry-url-input[data-v-e6dd25b0] input::placeholder{color:#555;font-size:12px}.sentry-error[data-v-e6dd25b0],.sentry-valid[data-v-e6dd25b0]{padding-bottom:6px}.slide-enter-active[data-v-e6dd25b0],.slide-leave-active[data-v-e6dd25b0]{transition:all .2s;overflow:hidden}.slide-enter-from[data-v-e6dd25b0],.slide-leave-to[data-v-e6dd25b0]{opacity:0;max-height:0}.slide-enter-to[data-v-e6dd25b0],.slide-leave-from[data-v-e6dd25b0]{opacity:1;max-height:120px}.card-bottom-bar[data-v-e6dd25b0]{background:#1e1e3a}.bottom-row[data-v-e6dd25b0]{flex-wrap:wrap;min-height:40px}.bottom-row-agent[data-v-e6dd25b0]{border-bottom:1px solid #ffffff0f}.bottom-row-agent+.bottom-row-git[data-v-e6dd25b0]{background:#00000026}.skip-setup-btn[data-v-e6dd25b0]{min-height:28px;padding:2px 10px;font-size:11px}.skip-setup-btn[data-v-e6dd25b0] .q-btn__content{gap:4px}.skip-setup-btn[data-v-e6dd25b0] .q-icon{font-size:14px}.bottom-row-git .bottom-select.repo-select[data-v-e6dd25b0]{flex:280px;min-width:220px}.bottom-row-git .bottom-select.repo-select[data-v-e6dd25b0] input{color:#bbb;padding:0 4px;font-size:11px}.bottom-row-git .bottom-select.repo-select[data-v-e6dd25b0] input::placeholder{color:#666;font-style:italic}.bottom-row-git .bottom-select.branch-type-select[data-v-e6dd25b0],.bottom-row-git .bottom-select.branch-select[data-v-e6dd25b0]{flex:none}.bottom-select[data-v-e6dd25b0]{background:#333;min-width:60px;height:28px;padding:0 6px}.bottom-select[data-v-e6dd25b0] .q-field__control{height:28px;min-height:28px;padding:0}.bottom-select[data-v-e6dd25b0] .q-field__native{min-height:unset;padding:0}.bottom-select-label[data-v-e6dd25b0]{color:#bbb;gap:2px;font-size:11px}.bottom-sep[data-v-e6dd25b0]{color:#555;padding:0 2px;font-size:12px;line-height:1}.repo-path-wrap[data-v-e6dd25b0]{background:#333;border-radius:6px;height:28px;padding:0 8px}.repo-input[data-v-e6dd25b0]{min-width:140px}.repo-input[data-v-e6dd25b0] .q-field__control{height:28px;min-height:28px;padding:0}.repo-input[data-v-e6dd25b0] input{color:#bbb;font-size:11px}.repo-input[data-v-e6dd25b0] input::placeholder{color:#666;font-size:11px}.branch-select[data-v-e6dd25b0]{min-width:80px}.create-btn[data-v-e6dd25b0]{color:#fff;background:#4f46e5;min-width:220px;height:32px;padding:0 32px;font-size:13px}.create-btn[data-v-e6dd25b0] .q-btn__content{height:32px}.create-hint[data-v-e6dd25b0]{line-height:1.5}.fade-enter-active[data-v-e6dd25b0],.fade-leave-active[data-v-e6dd25b0]{transition:opacity .2s}.fade-enter-from[data-v-e6dd25b0],.fade-leave-to[data-v-e6dd25b0]{opacity:0}.manual-hint[data-v-e6dd25b0]{background:#1e1e3a;line-height:1.4}.manual-expansion[data-v-e6dd25b0]{background:#1e1e3a;border:1px solid #333;border-radius:4px;margin-top:6px;overflow:hidden}.manual-expansion[data-v-e6dd25b0] .manual-expansion-header{min-height:32px;padding:4px 10px;font-size:12px}.manual-expansion[data-v-e6dd25b0] .q-expansion-item__content,.manual-section-body[data-v-e6dd25b0]{background:#1a1a2e}.manual-input[data-v-e6dd25b0] .q-field__control{height:26px;min-height:26px;padding:0}.manual-input[data-v-e6dd25b0] input{color:#e0e0e0;font-size:12px}.manual-input[data-v-e6dd25b0] input::placeholder{color:#555}.manual-item[data-v-e6dd25b0]{border-top:1px solid #ffffff0a}.manual-item[data-v-e6dd25b0]:first-child{border-top:none}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{E as e,F as t,H as n,L as r,M as i,N as ee,Q as a,T as te,U as o,_t as ne,bt as s,d as c,f as l,g as u,h as d,l as f,p,r as re,rt as m,u as h,v as ie,vt as ae,x as oe}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{I as g,L as _,M as se,t as v}from"./QIcon-B0-pH3Qs.js";import{t as y}from"./QSeparator-DNSiXYrN.js";import{t as ce}from"./settings-CAILUJXO.js";import{t as b}from"./QBtn-DHwAb18J.js";import{n as le}from"./vue-i18n-BJlZEYnA.js";import{g as ue,i as x,m as de,v as fe,w as pe}from"./index-DAbX631s.js";import{n as me,t as he}from"./QItemSection-CiY_LK5Y.js";import{t as S}from"./QItemLabel-Codqjisk.js";import{t as ge}from"./QExpansionItem-CWw6ZujM.js";import{t as C}from"./QTooltip-BIDjo2hJ.js";import{t as _e}from"./_plugin-vue_export-helper-r4mAJOHR.js";import{t as ve}from"./QSpace-BNr0AftG.js";import{t as ye}from"./use-quasar-Cc4smfg5.js";import{n as w,t as be}from"./models-DdAQDnqk.js";import{t as xe}from"./QPage-yqdKDG7-.js";import{i as Se,n as Ce,r as we,t as Te}from"./expand-template-BIra7NIw.js";var Ee={class:`create-inner`},De={class:`create-title text-center text-weight-bold q-mb-lg text-grey-3`},Oe={class:`create-card rounded-borders`},ke={class:`card-top-bar row items-center q-px-md q-py-xs`},Ae={class:`model-badge cursor-default row items-center q-gutter-xs`},je={class:`text-indigo-3 text-weight-medium text-caption`},Me={key:0,class:`notion-url-wrap`},Ne={key:0,class:`notion-error text-caption q-px-md q-pb-xs text-red-5`},Pe={key:1,class:`notion-valid text-caption q-px-md q-pb-xs text-green-4`},Fe={key:2,class:`notion-peek-choice q-px-md q-pb-sm`},Ie={class:`text-caption text-grey-4 q-mb-sm`},Le={class:`row q-gutter-sm`},Re={class:`peek-card-text`},ze={class:`peek-card-title`},Be={class:`peek-card-desc`},Ve={class:`peek-card-text`},He={class:`peek-card-title`},Ue={class:`peek-card-desc`},We={key:0,class:`sentry-url-wrap`},Ge={key:0,class:`sentry-error text-caption q-px-md q-pb-xs text-red-5`},Ke={key:1,class:`sentry-valid text-caption q-px-md q-pb-xs text-red-4`},qe={class:`card-name-wrap`},Je={class:`card-textarea-wrap`},Ye={class:`manual-hint q-px-md q-py-sm text-caption text-grey-6`},Xe={class:`q-pa-sm manual-section-body`},Ze={class:`row items-center q-gutter-sm q-mb-sm`},Qe={class:`col text-caption text-grey-4`},$e={class:`q-pa-sm manual-section-body`},et={class:`row items-center q-gutter-sm q-mb-sm`},tt={class:`col text-caption text-grey-4`},nt={class:`card-bottom-bar`},rt={class:`bottom-row bottom-row-agent row items-center q-gutter-xs q-px-sm q-py-xs`},it={class:`bottom-select-label row items-center no-wrap`},at={class:`bottom-select-label row items-center no-wrap`},ot={class:`bottom-select-label row items-center no-wrap`},st={class:`bottom-select-label row items-center no-wrap`},ct={class:`row no-wrap items-center q-gutter-xs`},lt={class:`bottom-row bottom-row-git row items-center q-gutter-xs q-px-sm q-py-xs`},ut={class:`bottom-select-label row items-center no-wrap`},dt={class:`bottom-select-label row items-center no-wrap`},ft={class:`row justify-center q-px-sm q-py-sm`},pt={class:`create-hint text-center text-body2 q-mt-md text-grey-8`},mt=_e(ie({__name:`CreatePage`,setup(ie){let _e=de(),mt=ye(),ht=fe(),T=ce(),{t:E}=le(),gt=a([]),D=a(``),O=a(``),_t=a(null),k=a(``),A=a(!1),j=a(`claude-opus-4-7`),M=a(`auto`),N=a(``),P=a(null),vt=a(`feature`),F=a(!1),yt=a([]),I=a(`claude-code`),bt=f(()=>yt.value.find(e=>e.id===I.value)),xt=f(()=>yt.value.map(e=>({value:e.id,label:e.displayName}))),St=f(()=>(bt.value?.capabilities.permissionModes??[`auto-accept`,`plan`]).map(e=>({value:e,label:E(`engine.permission.${e}`)}))),Ct=[{label:`feature/`,value:`feature`},{label:`fix/`,value:`fix`},{label:`hotfix/`,value:`hotfix`},{label:`chore/`,value:`chore`},{label:`refactor/`,value:`refactor`},{label:`docs/`,value:`docs`},{label:`test/`,value:`test`}],L=a(T.global.defaultPermissionMode||`plan`),R=a([]),wt=a([]),z=a(!1),Tt=a(!1);function Et(e,t){t(()=>{wt.value=e?R.value.filter(t=>t.toLowerCase().includes(e.toLowerCase())):R.value})}let Dt=pe();function Ot(){return _t.value?.nativeEl??null}let{showSkills:kt,selectedSkillIndex:B,groupedDropdown:At,flatDropdown:V,fetchSkills:jt,detectSlashFragment:Mt,replaceFragmentWith:Nt,closeDropdown:Pt}=we(O,Ot,{excludeKoboCommands:!0});jt(),n(O,async()=>{await e(),await Mt()});function Ft(e){if(e.type===`template`){let t=Dt.templates.find(t=>t.slug===e.name);if(!t)return;Nt(Ce(t.content,Te({workspace:null,gitStats:null,sessionName:null}))),Pt();return}Nt(`/${e.name} `),Pt()}function It(e){!kt.value||V.value.length===0||(e.key===`ArrowDown`?(e.preventDefault(),B.value=(B.value+1)%V.value.length):e.key===`ArrowUp`?(e.preventDefault(),B.value=(B.value-1+V.value.length)%V.value.length):e.key===`Enter`&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey?(e.preventDefault(),Ft(V.value[B.value])):e.key===`Escape`&&(e.preventDefault(),Pt()))}let Lt=f(()=>be.map(e=>({label:E(e.i18nLabelKey),value:e.value,description:E(e.i18nDescriptionKey)})));function H(e){let t=e.indexOf(`:`);return t>=0?e.slice(t+1).trim():e}let Rt=f(()=>[{label:H(E(`reasoning.auto`)),value:`auto`,description:E(`reasoning.autoDescription`)},{label:H(E(`reasoning.low`)),value:`low`,description:E(`reasoning.lowDescription`)},{label:H(E(`reasoning.medium`)),value:`medium`,description:E(`reasoning.mediumDescription`)},{label:H(E(`reasoning.high`)),value:`high`,description:E(`reasoning.highDescription`)},{label:H(E(`reasoning.xhigh`)),value:`xhigh`,description:E(`reasoning.xhighDescription`)},{label:H(E(`reasoning.max`)),value:`max`,description:E(`reasoning.maxDescription`)}]),U=f(()=>k.value.trim().startsWith(`https://www.notion.so/`)),zt=f(()=>/[?&]p=[0-9a-f]{32}(?:[&#]|$)/i.test(k.value)),W=a(`panel`);function Bt(){let e=k.value.trim();return W.value===`parent`&&zt.value?e.replace(/([?&])p=[0-9a-f]{32}(?=[&#]|$)/i,`$1`).replace(/([?&])pm=[a-z]+(?=[&#]|$)/i,`$1`).replace(/[?&]+$/,``).replace(/\?&/,`?`):e}let G=a([]),K=a([]),q=a(``),J=a(``),Vt=f(()=>!A.value||!U.value);function Ht(){let e=q.value.trim();e&&(G.value.push(e),q.value=``)}function Ut(e){G.value.splice(e,1)}function Wt(){let e=J.value.trim();e&&(K.value.push(e),J.value=``)}function Gt(e){K.value.splice(e,1)}function Kt(){A.value=!A.value,A.value||(k.value=``)}let Y=a(!1),X=a(!1),Z=a(``),Q=f(()=>/\/issues\/\d+/.test(Z.value.trim()));function qt(){Y.value=!Y.value,Y.value||(Z.value=``)}async function Jt(e){if(!e.trim()){R.value=[],P.value=null;return}z.value=!0;try{let t=await fetch(`/api/git/branches?path=${encodeURIComponent(e.trim())}`);if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();R.value=n.local??n.branches??[],R.value.length>0&&!P.value&&(P.value=R.value[0]??null)}catch{R.value=[],P.value=null}finally{z.value=!1}}function Yt(e){let t=T.getProjectByPath(e);t&&(t.defaultSourceBranch&&(P.value=t.defaultSourceBranch),t.defaultModel?j.value=t.defaultModel:T.global.defaultModel&&(j.value=T.global.defaultModel))}let $=null;n(N,e=>{$&&clearTimeout($),$=setTimeout(()=>{P.value=null,Jt(e),Yt(e)},500)});function Xt(e,t){t(()=>{gt.value=T.projectPaths.filter(t=>t.toLowerCase().includes(e.toLowerCase()))})}i(async()=>{T.fetchSettings();try{let e=await fetch(`/api/engines`);e.ok&&(yt.value=await e.json())}catch{}}),ee(()=>{$&&clearTimeout($)});function Zt(e){return e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).toLowerCase().replace(/[^a-z0-9\s-]/g,``).trim().replace(/\s+/g,`-`).replace(/-+/g,`-`).substring(0,50)}function Qt(){return D.value.trim()?D.value.trim().substring(0,80):!A.value&&!Y.value&&O.value.trim()&&(O.value.trim().split(`
|
|
2
|
+
`)[0]??``).substring(0,80)||`workspace`}function $t(e){let t=(e.split(`/`).pop()??``).split(`-`);t.length>1&&/^[0-9a-f]{12,}$/i.test(t[t.length-1])&&t.pop();let n=t.join(`-`).toLowerCase(),r=n.match(/tk-(\d+)/);if(r){let e=`TK-${r[1]}`,t=n.replace(/tk-\d+/i,``).replace(/-+/g,`-`).replace(/^-|-$/g,``).substring(0,40);return t?`${e}--${t}`:e}return n.substring(0,50)||`task-${Date.now()}`}function en(){return A.value&&!U.value?E(`createPage.validationNotionUrl`):Y.value&&!Q.value?E(`createPage.sentryValidation`):!A.value&&!Y.value&&!O.value.trim()?E(`createPage.validationDescription`):!A.value&&!Y.value&&(!Qt()||Qt()===`workspace`)&&!D.value.trim()&&!O.value.trim()?E(`createPage.validationName`):N.value.trim()?P.value?null:E(`createPage.validationBranch`):E(`createPage.validationPath`)}async function tn(){let e=en();if(e){mt.notify({type:`negative`,message:e,position:`top`});return}Tt.value=!0;try{let e=Qt(),t;t=A.value&&U.value?$t(Bt()):e===`workspace`?`task-${Date.now()}`:Zt(e);let n=`${vt.value}/${t}`,r={name:e,projectPath:N.value.trim(),sourceBranch:P.value,workingBranch:n,engine:I.value,model:j.value,reasoningEffort:M.value,...A.value&&U.value?{notionUrl:Bt()}:{},...Y.value&&Q.value?{sentryUrl:Z.value.trim()}:{},...Vt.value&&G.value.length>0?{tasks:G.value}:{},...Vt.value&&K.value.length>0?{acceptanceCriteria:K.value}:{},...F.value?{skipSetupScript:!0}:{},...O.value.trim()?{description:O.value.trim()}:{},...X.value?{autoLoop:!0}:{},permissionMode:X.value?`auto-accept`:L.value},i=await ht.createWorkspace(r);ue().subscribe(i.id),ht.selectWorkspace(i.id),_e.push({name:`workspace`,params:{id:i.id}})}catch{mt.notify({type:`negative`,message:E(`createPage.errorCreating`),position:`top`})}finally{Tt.value=!1}}return(e,n)=>(t(),c(xe,{class:`create-page flex flex-center column`},{default:o(()=>[h(`div`,Ee,[h(`div`,De,s(e.$t(`createPage.title`)),1),h(`div`,Oe,[h(`div`,ke,[h(`span`,Ae,[u(v,{name:`auto_awesome`,size:`14px`,color:`indigo-4`}),h(`span`,je,s(bt.value?.displayName??e.$t(`createPage.claudeCode`)),1)]),u(ve),u(b,{flat:``,dense:``,"no-caps":``,size:`sm`,color:A.value?`green-4`:`grey-5`,class:`notion-toggle-btn text-caption rounded-borders`,onClick:Kt},{default:o(()=>[u(v,{name:`description`,size:`14px`,class:`q-mr-xs`}),d(` `+s(A.value?e.$t(`createPage.notionEnabled`):e.$t(`createPage.importNotion`)),1)]),_:1},8,[`color`]),u(b,{flat:``,dense:``,"no-caps":``,size:`sm`,color:Y.value?`red-4`:`grey-5`,class:`sentry-toggle-btn text-caption rounded-borders q-ml-sm`,onClick:qt},{default:o(()=>[u(v,{name:`bug_report`,size:`14px`,class:`q-mr-xs`}),d(` `+s(Y.value?e.$t(`createPage.sentryEnabled`):e.$t(`createPage.importSentry`)),1)]),_:1},8,[`color`])]),u(y,{color:`grey-9`}),u(se,{name:`slide`},{default:o(()=>[A.value?(t(),p(`div`,Me,[u(x,{modelValue:k.value,"onUpdate:modelValue":n[0]||=e=>k.value=e,borderless:``,dense:``,placeholder:e.$t(`createPage.notionPlaceholder`),class:`notion-url-input`,"input-class":`notion-url-input-inner`},{prepend:o(()=>[u(v,{name:`link`,size:`16px`,color:U.value?`green-4`:`grey-6`},null,8,[`color`])]),_:1},8,[`modelValue`,`placeholder`]),k.value.trim()&&!U.value?(t(),p(`div`,Ne,s(e.$t(`createPage.notionValidation`)),1)):l(``,!0),U.value?(t(),p(`div`,Pe,s(e.$t(`createPage.notionAutoExtract`)),1)):l(``,!0),U.value&&zt.value?(t(),p(`div`,Fe,[h(`div`,Ie,[u(v,{name:`info`,size:`14px`,color:`indigo-4`,class:`q-mr-xs`}),d(` `+s(e.$t(`createPage.notionPanelChoiceLabel`)),1)]),h(`div`,Le,[h(`button`,{type:`button`,class:ne([`peek-card col`,{"peek-card--active":W.value===`panel`}]),onClick:n[1]||=e=>W.value=`panel`},[u(v,{name:`article`,size:`22px`,class:`peek-card-icon`}),h(`div`,Re,[h(`div`,ze,s(e.$t(`createPage.notionPanelOption`)),1),h(`div`,Be,s(e.$t(`createPage.notionPanelOptionDesc`)),1)]),W.value===`panel`?(t(),c(v,{key:0,name:`check_circle`,size:`18px`,color:`indigo-4`,class:`peek-card-check`})):l(``,!0)],2),h(`button`,{type:`button`,class:ne([`peek-card col`,{"peek-card--active":W.value===`parent`}]),onClick:n[2]||=e=>W.value=`parent`},[u(v,{name:`folder_open`,size:`22px`,class:`peek-card-icon`}),h(`div`,Ve,[h(`div`,He,s(e.$t(`createPage.notionParentOption`)),1),h(`div`,Ue,s(e.$t(`createPage.notionParentOptionDesc`)),1)]),W.value===`parent`?(t(),c(v,{key:0,name:`check_circle`,size:`18px`,color:`indigo-4`,class:`peek-card-check`})):l(``,!0)],2)])])):l(``,!0)])):l(``,!0)]),_:1}),A.value?(t(),c(y,{key:0,color:`grey-9`})):l(``,!0),u(se,{name:`slide`},{default:o(()=>[Y.value?(t(),p(`div`,We,[u(x,{modelValue:Z.value,"onUpdate:modelValue":n[3]||=e=>Z.value=e,borderless:``,dense:``,placeholder:e.$t(`createPage.sentryPlaceholder`),class:`sentry-url-input`,"input-class":`sentry-url-input-inner`},{prepend:o(()=>[u(v,{name:`link`,size:`16px`,color:Q.value?`red-4`:`grey-6`},null,8,[`color`])]),_:1},8,[`modelValue`,`placeholder`]),Z.value.trim()&&!Q.value?(t(),p(`div`,Ge,s(e.$t(`createPage.sentryValidation`)),1)):l(``,!0),Q.value?(t(),p(`div`,Ke,s(e.$t(`createPage.sentryAutoExtract`)),1)):l(``,!0)])):l(``,!0)]),_:1}),Y.value?(t(),c(y,{key:1,color:`grey-9`})):l(``,!0),h(`div`,qe,[u(x,{modelValue:D.value,"onUpdate:modelValue":n[4]||=e=>D.value=e,borderless:``,dense:``,placeholder:A.value&&U.value?e.$t(`createPage.workspaceName`):e.$t(`createPage.workspaceNamePlaceholder`),class:`name-input`,"input-class":`name-input-inner`},null,8,[`modelValue`,`placeholder`])]),u(y,{color:`grey-9`}),h(`div`,Je,[u(x,{ref_key:`descriptionRef`,ref:_t,modelValue:O.value,"onUpdate:modelValue":n[5]||=e=>O.value=e,type:`textarea`,borderless:``,autogrow:``,rows:3,placeholder:A.value?e.$t(`createPage.instructions`):e.$t(`createPage.instructionsPlaceholder`),class:`create-textarea`,"input-class":`create-textarea-input`,onKeydown:[It,g(_(tn,[`ctrl`]),[`enter`]),g(_(tn,[`meta`]),[`enter`])]},null,8,[`modelValue`,`placeholder`,`onKeydown`]),m(kt)&&m(V).length>0?(t(),c(Se,{key:0,class:`create-slash-popup`,"grouped-dropdown":m(At),"flat-dropdown":m(V),"selected-index":m(B),onSelect:Ft},null,8,[`grouped-dropdown`,`flat-dropdown`,`selected-index`])):l(``,!0)]),u(y,{color:`grey-9`}),Vt.value?(t(),p(re,{key:2},[h(`div`,Ye,s(e.$t(`createPage.manualHint`)),1),u(ge,{dark:``,dense:``,label:e.$t(`createPage.tasks`,{count:G.value.length}),"header-class":`text-grey-4 manual-expansion-header`,class:`manual-expansion q-mx-sm`},{default:o(()=>[h(`div`,Xe,[h(`div`,Ze,[u(x,{modelValue:q.value,"onUpdate:modelValue":n[6]||=e=>q.value=e,dark:``,dense:``,borderless:``,placeholder:e.$t(`createPage.addTask`),class:`col manual-input`,"input-class":`manual-input-inner`,onKeydown:g(_(Ht,[`prevent`]),[`enter`])},null,8,[`modelValue`,`placeholder`,`onKeydown`]),u(b,{flat:``,dense:``,round:``,icon:`add`,color:`indigo-4`,disable:!q.value.trim(),onClick:Ht},{default:o(()=>[u(C,null,{default:o(()=>[d(s(e.$t(`tooltip.addTask`)),1)]),_:1})]),_:1},8,[`disable`])]),(t(!0),p(re,null,r(G.value,(n,r)=>(t(),p(`div`,{key:`task-${r}`,class:`row items-center q-py-xs manual-item`},[h(`span`,Qe,s(n),1),u(b,{flat:``,dense:``,round:``,icon:`close`,size:`xs`,color:`grey-6`,onClick:e=>Ut(r)},{default:o(()=>[u(C,null,{default:o(()=>[d(s(e.$t(`tooltip.removeTask`)),1)]),_:1})]),_:1},8,[`onClick`])]))),128))])]),_:1},8,[`label`]),u(ge,{dark:``,dense:``,label:e.$t(`createPage.acceptanceCriteria`,{count:K.value.length}),"header-class":`text-grey-4 manual-expansion-header`,class:`manual-expansion q-mx-sm q-mb-sm`},{default:o(()=>[h(`div`,$e,[h(`div`,et,[u(x,{modelValue:J.value,"onUpdate:modelValue":n[7]||=e=>J.value=e,dark:``,dense:``,borderless:``,placeholder:e.$t(`createPage.addCriterion`),class:`col manual-input`,"input-class":`manual-input-inner`,onKeydown:g(_(Wt,[`prevent`]),[`enter`])},null,8,[`modelValue`,`placeholder`,`onKeydown`]),u(b,{flat:``,dense:``,round:``,icon:`add`,color:`indigo-4`,disable:!J.value.trim(),onClick:Wt},{default:o(()=>[u(C,null,{default:o(()=>[d(s(e.$t(`tooltip.addCriterion`)),1)]),_:1})]),_:1},8,[`disable`])]),(t(!0),p(re,null,r(K.value,(n,r)=>(t(),p(`div`,{key:`crit-${r}`,class:`row items-center q-py-xs manual-item`},[h(`span`,tt,s(n),1),u(b,{flat:``,dense:``,round:``,icon:`close`,size:`xs`,color:`grey-6`,onClick:e=>Gt(r)},{default:o(()=>[u(C,null,{default:o(()=>[d(s(e.$t(`tooltip.removeCriterion`)),1)]),_:1})]),_:1},8,[`onClick`])]))),128))])]),_:1},8,[`label`]),u(y,{color:`grey-9`})],64)):l(``,!0),h(`div`,nt,[h(`div`,rt,[xt.value.length>0?(t(),c(w,{key:0,modelValue:I.value,"onUpdate:modelValue":n[8]||=e=>I.value=e,options:xt.value,dense:``,borderless:``,class:`bottom-select rounded-borders`,"hide-dropdown-icon":``,"emit-value":``,"map-options":``,"option-value":`value`,"option-label":`label`},{selected:o(()=>[h(`span`,it,[u(v,{name:`hub`,size:`12px`,color:`grey-5`,class:`q-mr-xs`}),d(` `+s(xt.value.find(e=>e.value===I.value)?.label??I.value)+` `,1),u(v,{name:`expand_more`,size:`12px`,color:`grey-5`})])]),default:o(()=>[u(C,null,{default:o(()=>[d(s(e.$t(`engine.select`)),1)]),_:1})]),_:1},8,[`modelValue`,`options`])):l(``,!0),u(w,{modelValue:j.value,"onUpdate:modelValue":n[9]||=e=>j.value=e,options:Lt.value,dense:``,borderless:``,class:`bottom-select rounded-borders model-select`,"hide-dropdown-icon":``,"emit-value":``,"map-options":``,"option-value":`value`,"option-label":`label`},{selected:o(()=>[h(`span`,at,[d(s(Lt.value.find(e=>e.value===j.value)?.label??j.value)+` `,1),u(v,{name:`expand_more`,size:`12px`,color:`grey-5`})])]),option:o(({opt:e,itemProps:t})=>[u(me,te(t,{class:`model-option`}),{default:o(()=>[u(he,null,{default:o(()=>[u(S,{class:`text-white`},{default:o(()=>[d(s(e.label),1)]),_:2},1024),u(S,{caption:``,class:`text-grey-5`},{default:o(()=>[d(s(e.description),1)]),_:2},1024)]),_:2},1024)]),_:2},1040)]),_:1},8,[`modelValue`,`options`]),u(w,{modelValue:M.value,"onUpdate:modelValue":n[10]||=e=>M.value=e,options:Rt.value,dense:``,borderless:``,class:`bottom-select rounded-borders`,"hide-dropdown-icon":``,"emit-value":``,"map-options":``,"option-value":`value`,"option-label":`label`},{selected:o(()=>[h(`span`,ot,[u(v,{name:`psychology`,size:`12px`,color:`grey-5`,class:`q-mr-xs`}),d(` `+s(Rt.value.find(e=>e.value===M.value)?.label??M.value)+` `,1),u(v,{name:`expand_more`,size:`12px`,color:`grey-5`})])]),option:o(({opt:e,itemProps:t})=>[u(me,ae(oe(t)),{default:o(()=>[u(he,null,{default:o(()=>[u(S,{class:`text-white`},{default:o(()=>[d(s(e.label),1)]),_:2},1024),u(S,{caption:``,class:`text-grey-5`},{default:o(()=>[d(s(e.description),1)]),_:2},1024)]),_:2},1024)]),_:2},1040)]),_:1},8,[`modelValue`,`options`]),u(w,{modelValue:L.value,"onUpdate:modelValue":n[11]||=e=>L.value=e,options:St.value,disable:X.value,dense:``,borderless:``,class:`bottom-select rounded-borders`,"hide-dropdown-icon":``,"emit-value":``,"map-options":``,"option-value":`value`,"option-label":`label`},{selected:o(()=>[h(`span`,st,[u(v,{name:X.value?`flash_on`:L.value===`plan`?`visibility`:`flash_on`,size:`12px`,color:`amber-6`,class:`q-mr-xs`},null,8,[`name`]),d(` `+s(X.value?St.value.find(e=>e.value===`auto-accept`)?.label??`auto-accept`:St.value.find(e=>e.value===L.value)?.label??L.value)+` `,1),X.value?l(``,!0):(t(),c(v,{key:0,name:`expand_more`,size:`12px`,color:`grey-5`}))])]),default:o(()=>[u(C,null,{default:o(()=>[d(s(X.value?e.$t(`createPage.permissionLockedByAutoLoop`):e.$t(`engine.permission`)),1)]),_:1})]),_:1},8,[`modelValue`,`options`,`disable`]),u(ve),h(`div`,ct,[u(b,{flat:``,dense:``,size:`sm`,"no-caps":``,icon:X.value?`autorenew`:`sync_disabled`,color:X.value?`amber-4`:`grey-5`,label:e.$t(`autoLoop.startInMode`),class:`skip-setup-btn`,onClick:n[12]||=e=>X.value=!X.value},{default:o(()=>[u(C,null,{default:o(()=>[d(s(e.$t(`autoLoop.startInMode`)),1)]),_:1})]),_:1},8,[`icon`,`color`,`label`]),u(b,{flat:``,dense:``,size:`sm`,"no-caps":``,icon:F.value?`play_disabled`:`play_circle`,color:F.value?`orange-4`:`grey-5`,label:e.$t(`createPage.skipSetupScript`),class:`skip-setup-btn`,onClick:n[13]||=e=>F.value=!F.value},{default:o(()=>[u(C,null,{default:o(()=>[d(s(e.$t(`createPage.skipSetupScript`)),1)]),_:1})]),_:1},8,[`icon`,`color`,`label`])])]),h(`div`,lt,[u(w,{modelValue:N.value,"onUpdate:modelValue":n[14]||=e=>N.value=e,options:gt.value,dense:``,borderless:``,"use-input":``,"fill-input":``,"hide-selected":``,"input-debounce":`0`,"new-value-mode":`add`,class:`bottom-select rounded-borders repo-select`,"hide-dropdown-icon":``,"input-class":N.value?``:`repo-input-empty`,placeholder:e.$t(`createPage.projectPath`),behavior:m(T).projectPaths.length>0?`menu`:`dialog`,onFilter:Xt,onInputValue:n[15]||=e=>{N.value=e}},{prepend:o(()=>[u(v,{name:`folder`,size:`14px`,color:`grey-5`})]),"no-option":o(()=>[u(me,null,{default:o(()=>[u(he,{class:`text-grey-6 text-caption`},{default:o(()=>[d(s(e.$t(`createPage.enterPath`)),1)]),_:1})]),_:1})]),_:1},8,[`modelValue`,`options`,`input-class`,`placeholder`,`behavior`]),u(w,{modelValue:vt.value,"onUpdate:modelValue":n[16]||=e=>vt.value=e,options:Ct,"emit-value":``,"map-options":``,dense:``,borderless:``,class:`bottom-select rounded-borders branch-type-select`,"hide-dropdown-icon":``},{selected:o(()=>[h(`span`,ut,[u(v,{name:`account_tree`,size:`12px`,color:`grey-5`,class:`q-mr-xs`}),d(` `+s(vt.value)+`/ `,1),u(v,{name:`expand_more`,size:`12px`,color:`grey-5`})])]),default:o(()=>[u(C,null,{default:o(()=>[d(s(e.$t(`createPage.branchType`)),1)]),_:1})]),_:1},8,[`modelValue`]),u(w,{modelValue:P.value,"onUpdate:modelValue":n[17]||=e=>P.value=e,options:wt.value,dense:``,borderless:``,class:`bottom-select rounded-borders branch-select`,"hide-dropdown-icon":``,"use-input":``,"input-debounce":`0`,loading:z.value,disable:!N.value.trim()||z.value,onFilter:Et},{selected:o(()=>[h(`span`,dt,[u(v,{name:`call_split`,size:`12px`,color:`grey-5`,class:`q-mr-xs`}),d(` `+s(P.value??e.$t(`createPage.branch`))+` `,1),u(v,{name:`expand_more`,size:`12px`,color:`grey-5`})])]),"no-option":o(()=>[u(me,null,{default:o(()=>[u(he,{class:`text-grey-6 text-caption`},{default:o(()=>[d(s(N.value.trim()?e.$t(`createPage.noBranches`):e.$t(`createPage.enterPath`)),1)]),_:1})]),_:1})]),_:1},8,[`modelValue`,`options`,`loading`,`disable`])])]),h(`div`,ft,[u(b,{label:e.$t(`createPage.create`),"no-caps":``,unelevated:``,class:`create-btn text-weight-bold rounded-borders`,loading:Tt.value,onClick:tn},null,8,[`label`,`loading`])])]),h(`div`,pt,s(A.value?e.$t(`createPage.notionExtractHint`):e.$t(`createPage.notionImportHint`)),1)])]),_:1}))}}),[[`__scopeId`,`data-v-e6dd25b0`]]);export{mt as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.main-
|
|
2
|
-
import{F as e,H as t,M as n,N as r,Q as i,S as a,U as o,bt as s,d as c,f as l,g as u,h as d,l as f,p,r as m,rt as ee,u as h,v as g,yt as _}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{O as v,a as y,t as b}from"./QIcon-B0-pH3Qs.js";import{t as te}from"./QSeparator-DNSiXYrN.js";import{n as ne,t as x}from"./QBtn-DHwAb18J.js";import{n as re}from"./vue-i18n-BJlZEYnA.js";import{r as S,t as C}from"./private.use-form-Dlb0iQZh.js";import{f as ie}from"./index-Dl8rTFls.js";import{t as w}from"./QSpinnerDots-DEiRooBD.js";import{t as ae}from"./QScrollArea-DpCqRRE0.js";import{t as T}from"./QTooltip-BIDjo2hJ.js";import{t as E}from"./_plugin-vue_export-helper-r4mAJOHR.js";import{t as D}from"./QBadge-DqtcDv8D.js";import{t as oe}from"./QSpace-BNr0AftG.js";import{i as O,n as se,r as ce,t as le}from"./build-path-tree-BAbslBF6.js";var k=v({name:`QBtnToggle`,props:{...S,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(e=>(`label`in e||`icon`in e||`slot`in e)&&`value`in e)},color:String,textColor:String,toggleColor:{type:String,default:`primary`},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:[`update:modelValue`,`clear`,`click`],setup(e,{slots:t,emit:n}){let r=f(()=>e.options.find(t=>t.value===e.modelValue)!==void 0),i=C(f(()=>({type:`hidden`,name:e.name,value:e.modelValue}))),o=f(()=>ne(e)),s=f(()=>({rounded:e.rounded,dense:e.dense,...o.value})),c=f(()=>e.options.map((t,n)=>{let{attrs:r,value:i,slot:a,...o}=t;return{slot:a,props:{key:n,"aria-pressed":i===e.modelValue?`true`:`false`,...r,...o,...s.value,disable:e.disable===!0||o.disable===!0,color:i===e.modelValue?u(o,`toggleColor`):u(o,`color`),textColor:i===e.modelValue?u(o,`toggleTextColor`):u(o,`textColor`),noCaps:u(o,`noCaps`)===!0,noWrap:u(o,`noWrap`)===!0,size:u(o,`size`),padding:u(o,`padding`),ripple:u(o,`ripple`),stack:u(o,`stack`)===!0,stretch:u(o,`stretch`)===!0,onClick(e){l(i,t,e)}}}}));function l(t,r,i){e.readonly!==!0&&(e.modelValue===t?e.clearable===!0&&(n(`update:modelValue`,null,null),n(`clear`)):n(`update:modelValue`,t,r),n(`click`,i))}function u(t,n){return t[n]===void 0?e[n]:t[n]}function d(){let n=c.value.map(e=>a(x,e.props,e.slot===void 0?void 0:t[e.slot]));return e.name!==void 0&&e.disable!==!0&&r.value===!0&&i(n,`push`),y(t.default,n)}return()=>a(O,{class:`q-btn-toggle`,...o.value,rounded:e.rounded,stretch:e.stretch,glossy:e.glossy,spread:e.spread},d)}}),ue={class:`diff-viewer column full-height`},de={class:`diff-header row items-center q-px-md q-py-sm no-wrap`},fe={class:`text-body1 text-weight-medium text-grey-3`},pe={key:0,class:`text-caption text-grey-6 q-ml-md`,style:{"font-size":`11px`}},me={class:`text-grey-7`},he={class:`text-green-4`},A={class:`text-grey-7`},j={key:1,class:`text-caption text-grey-5 q-ml-md ellipsis`,style:{"font-size":`11px`,"font-family":`'Roboto Mono', monospace`,"max-width":`400px`}},M={class:`row col no-wrap`,style:{"min-height":`0`}},N={key:1,class:`text-caption text-grey-8 q-pa-sm`},P={class:`text-grey-4`,style:{"font-family":`'Roboto Mono', monospace`,"font-size":`11px`}},F={class:`text-grey-3 ellipsis`,style:{"font-family":`'Roboto Mono', monospace`,"font-size":`11px`}},I={class:`col column`,style:{"min-width":`0`,position:`relative`}},L={key:0,class:`col column items-center justify-center`},ge={key:1,class:`col column items-center justify-center text-grey-8 text-caption`},R=`kobo:diffViewerFileListWidth`,z=180,B=600,V=E(g({__name:`DiffViewer`,props:{workspaceId:{}},emits:[`close`,`sendToChat`],setup(a,{emit:g}){let v=a,y=g,{t:ne}=re(),S=i([]),C=i(``),E=i(``),O=i(null),V=i(!1),H=i(!1),U=i(null),W=i(`side`),G=i(`branch`),_e=parseInt(localStorage.getItem(R)??`280`,10),K=i(Math.min(B,Math.max(z,_e)));function ve(e){e.preventDefault();let t=e.target.closest(`.diff-viewer`);if(!t)return;let n=t.getBoundingClientRect().left,r=e=>{K.value=Math.min(B,Math.max(z,e.clientX-n))},i=()=>{localStorage.setItem(R,String(K.value)),document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i),document.body.style.cursor=``,document.body.style.userSelect=``};document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)}let q=null,J=null,Y=[],ye=f(()=>le(S.value)),X=f(()=>O.value?`file:${O.value}`:``);async function Z(){V.value=!0;try{let e=await fetch(`/api/workspaces/${v.workspaceId}/diff?mode=${G.value}`,{cache:`no-store`});if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();S.value=t.files,C.value=t.sourceBranch??``,E.value=t.workingBranch??``}catch(e){console.error(`Failed to load diff files:`,e)}finally{V.value=!1}}async function Q(e){if(U.value){H.value=!0;try{q||(self.MonacoEnvironment={getWorker(e,t){return t===`json`?new Worker(new URL(`/assets/json.worker-C9p7xCYk.js`,``+import.meta.url),{type:`module`}):t===`css`||t===`scss`||t===`less`?new Worker(new URL(`/assets/css.worker-D1piIYC4.js`,``+import.meta.url),{type:`module`}):t===`html`||t===`handlebars`||t===`razor`?new Worker(new URL(`/assets/html.worker-C4q4XMPn.js`,``+import.meta.url),{type:`module`}):t===`typescript`||t===`javascript`?new Worker(new URL(`/assets/ts.worker-Cj3zTgVE.js`,``+import.meta.url),{type:`module`}):new Worker(new URL(`/assets/editor.worker-CJ9iTmkr.js`,``+import.meta.url),{type:`module`})}},q=await ie(()=>import(`./editor.main-B50pvEsj.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),q.editor.defineTheme(`kobo-dark`,{base:`vs-dark`,inherit:!0,rules:[],colors:{"editor.background":`#1a1a2e`,"diffEditor.insertedTextBackground":`#22c55e20`,"diffEditor.removedTextBackground":`#ef444420`}}));let t=await fetch(`/api/workspaces/${v.workspaceId}/diff-file?path=${encodeURIComponent(e)}&mode=${G.value}`,{cache:`no-store`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json(),r={ts:`typescript`,tsx:`typescript`,js:`javascript`,jsx:`javascript`,vue:`html`,html:`html`,css:`css`,scss:`scss`,json:`json`,md:`markdown`,yaml:`yaml`,yml:`yaml`,sh:`shell`,sql:`sql`,py:`python`,rs:`rust`,go:`go`}[e.split(`.`).pop()??``]??`plaintext`;if(J){for(let e of Y)e.dispose();Y=[];let e=J.getModel();J.dispose(),J=null,e?.original?.dispose(),e?.modified?.dispose()}let i=q.editor.createModel(n.original??``,r),a=q.editor.createModel(n.modified??``,r);J=q.editor.createDiffEditor(U.value,{theme:`kobo-dark`,readOnly:!0,renderSideBySide:W.value===`side`,automaticLayout:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:12,lineHeight:18}),J.setModel({original:i,modified:a}),be()}catch(e){console.error(`Failed to load file diff:`,e)}finally{H.value=!1}}}let $=i(!1);function be(){if(!J)return;for(let e of Y)e.dispose();Y=[];let e=J.getModifiedEditor(),t=J.getOriginalEditor();for(let n of[e,t]){let e=n.onDidChangeCursorSelection(()=>{let e=n.getSelection();$.value=!!(e&&!e.isEmpty())});Y.push(e)}}function xe(){if(!(!J||!O.value))for(let e of[J.getModifiedEditor(),J.getOriginalEditor()]){let t=e.getSelection();if(t&&!t.isEmpty()){let n=e.getModel();if(!n)continue;let r=n.getValueInRange(t),i=e===J.getModifiedEditor()?`modified`:`original`;y(`sendToChat`,`\`\`\`\n// ${O.value} (${i}) L${t.startLineNumber}-L${t.endLineNumber}\n${r}\n\`\`\``);return}}}t(O,e=>{e&&Q(e)}),t(W,()=>{J&&J.updateOptions({renderSideBySide:W.value===`side`})}),t(G,async()=>{let e=O.value;await Z(),e&&S.value.some(t=>t.path===e)?Q(e):O.value=null});function Se(e){switch(e){case`added`:return`#4ade80`;case`deleted`:return`#f87171`;case`renamed`:return`#60a5fa`;default:return`#f59e0b`}}return n(Z),r(()=>{for(let e of Y)e.dispose();if(Y=[],J){let e=J.getModel();J.dispose(),J=null,e?.original?.dispose(),e?.modified?.dispose()}}),(t,n)=>(e(),p(`div`,ue,[h(`div`,de,[u(b,{name:`difference`,size:`18px`,color:`indigo-4`,class:`q-mr-xs`}),h(`span`,fe,s(t.$t(`diff.title`)),1),u(D,{label:`${S.value.length}`,color:`grey-8`,"text-color":`grey-4`,class:`q-ml-sm`,style:{"font-size":`10px`}},null,8,[`label`]),C.value?(e(),p(`span`,pe,[G.value===`branch`?(e(),p(m,{key:0},[h(`span`,me,s(C.value),1),u(b,{name:`arrow_forward`,size:`11px`,color:`grey-8`,class:`q-mx-xs`}),h(`span`,he,s(E.value),1)],64)):(e(),p(m,{key:1},[h(`span`,A,`origin/`+s(E.value),1),u(b,{name:`arrow_forward`,size:`11px`,color:`grey-8`,class:`q-mx-xs`}),n[4]||=h(`span`,{class:`text-green-4`},`HEAD`,-1)],64))])):l(``,!0),O.value?(e(),p(`span`,j,s(O.value),1)):l(``,!0),u(oe),u(k,{modelValue:G.value,"onUpdate:modelValue":n[0]||=e=>G.value=e,dense:``,"no-caps":``,size:`sm`,"toggle-color":`indigo-8`,color:`grey-9`,"text-color":`grey-5`,options:[{label:t.$t(`diff.scopeBranch`),value:`branch`},{label:t.$t(`diff.scopeUnpushed`),value:`unpushed`}],class:`q-mr-sm`},null,8,[`modelValue`,`options`]),u(k,{modelValue:W.value,"onUpdate:modelValue":n[1]||=e=>W.value=e,dense:``,"no-caps":``,size:`sm`,"toggle-color":`indigo-8`,color:`grey-9`,"text-color":`grey-5`,options:[{label:t.$t(`diff.side`),value:`side`},{label:t.$t(`diff.inline`),value:`inline`}],class:`q-mr-sm`},null,8,[`modelValue`,`options`]),u(x,{flat:``,round:``,dense:``,icon:`close`,color:`grey-5`,size:`sm`,onClick:n[2]||=e=>y(`close`)},{default:o(()=>[u(T,null,{default:o(()=>[d(s(t.$t(`tooltip.closeDiffViewer`)),1)]),_:1})]),_:1})]),u(te,{dark:``}),h(`div`,M,[h(`div`,{class:`diff-file-list-wrapper`,style:_({width:`${K.value}px`,minWidth:`${z}px`})},[u(ae,{class:`diff-file-list q-pa-xs`,style:{width:`100%`,height:`100%`,"border-right":`1px solid #2a2a4a`}},{default:o(()=>[V.value?(e(),c(w,{key:0,size:`24px`,color:`grey-6`,class:`q-ma-md`})):S.value.length===0?(e(),p(`div`,N,s(t.$t(`diff.noChanges`)),1)):(e(),c(ce,{key:2,nodes:ye.value,"node-key":`nodeKey`,"label-key":`label`,"children-key":`children`,dark:``,dense:``,"default-expand-all":``,"no-selection-unset":``,selected:X.value,class:`diff-tree`,"onUpdate:selected":n[3]||=e=>{typeof e!=`string`||!e.startsWith(`file:`)||(O.value=e.slice(5))}},{"default-header":o(({node:t})=>[t.isFolder?(e(),p(m,{key:0},[u(b,{name:`folder`,size:`14px`,color:`indigo-4`,class:`q-mr-xs`}),h(`span`,P,s(t.label),1),u(D,{label:t.children?ee(se)(t.children):0,color:`grey-9`,"text-color":`grey-5`,class:`q-ml-xs`,style:{"font-size":`9px`}},null,8,[`label`])],64)):(e(),p(m,{key:1},[u(b,{name:`description`,size:`14px`,style:_({color:Se(t.file.status)}),class:`q-mr-xs`},{default:o(()=>[u(T,null,{default:o(()=>[d(s(t.file.status),1)]),_:2},1024)]),_:2},1032,[`style`]),h(`span`,F,s(t.label),1)],64))]),_:1},8,[`nodes`,`selected`]))]),_:1}),h(`div`,{class:`diff-file-list-resize-handle`,onMousedown:ve},null,32)],4),h(`div`,I,[H.value?(e(),p(`div`,L,[u(w,{size:`32px`,color:`indigo-4`})])):O.value?l(``,!0):(e(),p(`div`,ge,s(t.$t(`diff.selectFile`)),1)),h(`div`,{ref_key:`editorContainer`,ref:U,class:`col`,style:{"min-height":`0`}},null,512),$.value?(e(),c(x,{key:2,"no-caps":``,dense:``,size:`sm`,color:`primary`,icon:`chat`,label:t.$t(`diff.addToChat`),class:`send-to-chat-btn`,onClick:xe},null,8,[`label`])):l(``,!0)])])]))}}),[[`__scopeId`,`data-v-23217be2`]]);export{V as default};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.main-CRtPC0iL.js","assets/index-DAbX631s.js","assets/vue-i18n-BJlZEYnA.js","assets/runtime-core.esm-bundler-C3IgBgY5.js","assets/QIcon-B0-pH3Qs.js","assets/use-id-C93QQwrt.js","assets/QSeparator-DNSiXYrN.js","assets/QBtn-DHwAb18J.js","assets/use-checkbox-B_o-iLG2.js","assets/private.use-form-Dlb0iQZh.js","assets/settings-CAILUJXO.js","assets/scroll-CYWyxBdv.js","assets/is-DUKatk8N.js","assets/symbols-DCYodwb2.js","assets/index-eX_lKHSg.css","assets/editor.api-DCvwHsju.js","assets/editor-COGk2gAX.css","assets/monaco.contribution-DtdkkTgR.js","assets/editor-CS3NEPi9.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{F as e,H as t,M as n,N as r,Q as i,S as a,U as o,bt as s,d as c,f as l,g as u,h as d,l as f,p,r as m,rt as ee,u as h,v as g,yt as _}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{O as v,a as y,t as b}from"./QIcon-B0-pH3Qs.js";import{t as te}from"./QSeparator-DNSiXYrN.js";import{n as ne,t as x}from"./QBtn-DHwAb18J.js";import{n as re}from"./vue-i18n-BJlZEYnA.js";import{r as S,t as C}from"./private.use-form-Dlb0iQZh.js";import{f as ie}from"./index-DAbX631s.js";import{t as w}from"./QSpinnerDots-DEiRooBD.js";import{t as ae}from"./QScrollArea-DpCqRRE0.js";import{t as T}from"./QTooltip-BIDjo2hJ.js";import{t as E}from"./_plugin-vue_export-helper-r4mAJOHR.js";import{t as D}from"./QBadge-DqtcDv8D.js";import{t as oe}from"./QSpace-BNr0AftG.js";import{i as O,n as se,r as ce,t as le}from"./build-path-tree-DbuI5yRz.js";var k=v({name:`QBtnToggle`,props:{...S,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(e=>(`label`in e||`icon`in e||`slot`in e)&&`value`in e)},color:String,textColor:String,toggleColor:{type:String,default:`primary`},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:[`update:modelValue`,`clear`,`click`],setup(e,{slots:t,emit:n}){let r=f(()=>e.options.find(t=>t.value===e.modelValue)!==void 0),i=C(f(()=>({type:`hidden`,name:e.name,value:e.modelValue}))),o=f(()=>ne(e)),s=f(()=>({rounded:e.rounded,dense:e.dense,...o.value})),c=f(()=>e.options.map((t,n)=>{let{attrs:r,value:i,slot:a,...o}=t;return{slot:a,props:{key:n,"aria-pressed":i===e.modelValue?`true`:`false`,...r,...o,...s.value,disable:e.disable===!0||o.disable===!0,color:i===e.modelValue?u(o,`toggleColor`):u(o,`color`),textColor:i===e.modelValue?u(o,`toggleTextColor`):u(o,`textColor`),noCaps:u(o,`noCaps`)===!0,noWrap:u(o,`noWrap`)===!0,size:u(o,`size`),padding:u(o,`padding`),ripple:u(o,`ripple`),stack:u(o,`stack`)===!0,stretch:u(o,`stretch`)===!0,onClick(e){l(i,t,e)}}}}));function l(t,r,i){e.readonly!==!0&&(e.modelValue===t?e.clearable===!0&&(n(`update:modelValue`,null,null),n(`clear`)):n(`update:modelValue`,t,r),n(`click`,i))}function u(t,n){return t[n]===void 0?e[n]:t[n]}function d(){let n=c.value.map(e=>a(x,e.props,e.slot===void 0?void 0:t[e.slot]));return e.name!==void 0&&e.disable!==!0&&r.value===!0&&i(n,`push`),y(t.default,n)}return()=>a(O,{class:`q-btn-toggle`,...o.value,rounded:e.rounded,stretch:e.stretch,glossy:e.glossy,spread:e.spread},d)}}),ue={class:`diff-viewer column full-height`},de={class:`diff-header row items-center q-px-md q-py-sm no-wrap`},fe={class:`text-body1 text-weight-medium text-grey-3`},pe={key:0,class:`text-caption text-grey-6 q-ml-md`,style:{"font-size":`11px`}},me={class:`text-grey-7`},he={class:`text-green-4`},A={class:`text-grey-7`},j={key:1,class:`text-caption text-grey-5 q-ml-md ellipsis`,style:{"font-size":`11px`,"font-family":`'Roboto Mono', monospace`,"max-width":`400px`}},M={class:`row col no-wrap`,style:{"min-height":`0`}},N={key:1,class:`text-caption text-grey-8 q-pa-sm`},P={class:`text-grey-4`,style:{"font-family":`'Roboto Mono', monospace`,"font-size":`11px`}},F={class:`text-grey-3 ellipsis`,style:{"font-family":`'Roboto Mono', monospace`,"font-size":`11px`}},I={class:`col column`,style:{"min-width":`0`,position:`relative`}},L={key:0,class:`col column items-center justify-center`},ge={key:1,class:`col column items-center justify-center text-grey-8 text-caption`},R=`kobo:diffViewerFileListWidth`,z=180,B=600,V=E(g({__name:`DiffViewer`,props:{workspaceId:{}},emits:[`close`,`sendToChat`],setup(a,{emit:g}){let v=a,y=g,{t:ne}=re(),S=i([]),C=i(``),E=i(``),O=i(null),V=i(!1),H=i(!1),U=i(null),W=i(`side`),G=i(`branch`),_e=parseInt(localStorage.getItem(R)??`280`,10),K=i(Math.min(B,Math.max(z,_e)));function ve(e){e.preventDefault();let t=e.target.closest(`.diff-viewer`);if(!t)return;let n=t.getBoundingClientRect().left,r=e=>{K.value=Math.min(B,Math.max(z,e.clientX-n))},i=()=>{localStorage.setItem(R,String(K.value)),document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i),document.body.style.cursor=``,document.body.style.userSelect=``};document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)}let q=null,J=null,Y=[],ye=f(()=>le(S.value)),X=f(()=>O.value?`file:${O.value}`:``);async function Z(){V.value=!0;try{let e=await fetch(`/api/workspaces/${v.workspaceId}/diff?mode=${G.value}`,{cache:`no-store`});if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();S.value=t.files,C.value=t.sourceBranch??``,E.value=t.workingBranch??``}catch(e){console.error(`Failed to load diff files:`,e)}finally{V.value=!1}}async function Q(e){if(U.value){H.value=!0;try{q||(self.MonacoEnvironment={getWorker(e,t){return t===`json`?new Worker(new URL(`/assets/json.worker-C9p7xCYk.js`,``+import.meta.url),{type:`module`}):t===`css`||t===`scss`||t===`less`?new Worker(new URL(`/assets/css.worker-D1piIYC4.js`,``+import.meta.url),{type:`module`}):t===`html`||t===`handlebars`||t===`razor`?new Worker(new URL(`/assets/html.worker-C4q4XMPn.js`,``+import.meta.url),{type:`module`}):t===`typescript`||t===`javascript`?new Worker(new URL(`/assets/ts.worker-Cj3zTgVE.js`,``+import.meta.url),{type:`module`}):new Worker(new URL(`/assets/editor.worker-CJ9iTmkr.js`,``+import.meta.url),{type:`module`})}},q=await ie(()=>import(`./editor.main-CRtPC0iL.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),q.editor.defineTheme(`kobo-dark`,{base:`vs-dark`,inherit:!0,rules:[],colors:{"editor.background":`#1a1a2e`,"diffEditor.insertedTextBackground":`#22c55e20`,"diffEditor.removedTextBackground":`#ef444420`}}));let t=await fetch(`/api/workspaces/${v.workspaceId}/diff-file?path=${encodeURIComponent(e)}&mode=${G.value}`,{cache:`no-store`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json(),r={ts:`typescript`,tsx:`typescript`,js:`javascript`,jsx:`javascript`,vue:`html`,html:`html`,css:`css`,scss:`scss`,json:`json`,md:`markdown`,yaml:`yaml`,yml:`yaml`,sh:`shell`,sql:`sql`,py:`python`,rs:`rust`,go:`go`}[e.split(`.`).pop()??``]??`plaintext`;if(J){for(let e of Y)e.dispose();Y=[];let e=J.getModel();J.dispose(),J=null,e?.original?.dispose(),e?.modified?.dispose()}let i=q.editor.createModel(n.original??``,r),a=q.editor.createModel(n.modified??``,r);J=q.editor.createDiffEditor(U.value,{theme:`kobo-dark`,readOnly:!0,renderSideBySide:W.value===`side`,automaticLayout:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:12,lineHeight:18}),J.setModel({original:i,modified:a}),be()}catch(e){console.error(`Failed to load file diff:`,e)}finally{H.value=!1}}}let $=i(!1);function be(){if(!J)return;for(let e of Y)e.dispose();Y=[];let e=J.getModifiedEditor(),t=J.getOriginalEditor();for(let n of[e,t]){let e=n.onDidChangeCursorSelection(()=>{let e=n.getSelection();$.value=!!(e&&!e.isEmpty())});Y.push(e)}}function xe(){if(!(!J||!O.value))for(let e of[J.getModifiedEditor(),J.getOriginalEditor()]){let t=e.getSelection();if(t&&!t.isEmpty()){let n=e.getModel();if(!n)continue;let r=n.getValueInRange(t),i=e===J.getModifiedEditor()?`modified`:`original`;y(`sendToChat`,`\`\`\`\n// ${O.value} (${i}) L${t.startLineNumber}-L${t.endLineNumber}\n${r}\n\`\`\``);return}}}t(O,e=>{e&&Q(e)}),t(W,()=>{J&&J.updateOptions({renderSideBySide:W.value===`side`})}),t(G,async()=>{let e=O.value;await Z(),e&&S.value.some(t=>t.path===e)?Q(e):O.value=null});function Se(e){switch(e){case`added`:return`#4ade80`;case`deleted`:return`#f87171`;case`renamed`:return`#60a5fa`;default:return`#f59e0b`}}return n(Z),r(()=>{for(let e of Y)e.dispose();if(Y=[],J){let e=J.getModel();J.dispose(),J=null,e?.original?.dispose(),e?.modified?.dispose()}}),(t,n)=>(e(),p(`div`,ue,[h(`div`,de,[u(b,{name:`difference`,size:`18px`,color:`indigo-4`,class:`q-mr-xs`}),h(`span`,fe,s(t.$t(`diff.title`)),1),u(D,{label:`${S.value.length}`,color:`grey-8`,"text-color":`grey-4`,class:`q-ml-sm`,style:{"font-size":`10px`}},null,8,[`label`]),C.value?(e(),p(`span`,pe,[G.value===`branch`?(e(),p(m,{key:0},[h(`span`,me,s(C.value),1),u(b,{name:`arrow_forward`,size:`11px`,color:`grey-8`,class:`q-mx-xs`}),h(`span`,he,s(E.value),1)],64)):(e(),p(m,{key:1},[h(`span`,A,`origin/`+s(E.value),1),u(b,{name:`arrow_forward`,size:`11px`,color:`grey-8`,class:`q-mx-xs`}),n[4]||=h(`span`,{class:`text-green-4`},`HEAD`,-1)],64))])):l(``,!0),O.value?(e(),p(`span`,j,s(O.value),1)):l(``,!0),u(oe),u(k,{modelValue:G.value,"onUpdate:modelValue":n[0]||=e=>G.value=e,dense:``,"no-caps":``,size:`sm`,"toggle-color":`indigo-8`,color:`grey-9`,"text-color":`grey-5`,options:[{label:t.$t(`diff.scopeBranch`),value:`branch`},{label:t.$t(`diff.scopeUnpushed`),value:`unpushed`}],class:`q-mr-sm`},null,8,[`modelValue`,`options`]),u(k,{modelValue:W.value,"onUpdate:modelValue":n[1]||=e=>W.value=e,dense:``,"no-caps":``,size:`sm`,"toggle-color":`indigo-8`,color:`grey-9`,"text-color":`grey-5`,options:[{label:t.$t(`diff.side`),value:`side`},{label:t.$t(`diff.inline`),value:`inline`}],class:`q-mr-sm`},null,8,[`modelValue`,`options`]),u(x,{flat:``,round:``,dense:``,icon:`close`,color:`grey-5`,size:`sm`,onClick:n[2]||=e=>y(`close`)},{default:o(()=>[u(T,null,{default:o(()=>[d(s(t.$t(`tooltip.closeDiffViewer`)),1)]),_:1})]),_:1})]),u(te,{dark:``}),h(`div`,M,[h(`div`,{class:`diff-file-list-wrapper`,style:_({width:`${K.value}px`,minWidth:`${z}px`})},[u(ae,{class:`diff-file-list q-pa-xs`,style:{width:`100%`,height:`100%`,"border-right":`1px solid #2a2a4a`}},{default:o(()=>[V.value?(e(),c(w,{key:0,size:`24px`,color:`grey-6`,class:`q-ma-md`})):S.value.length===0?(e(),p(`div`,N,s(t.$t(`diff.noChanges`)),1)):(e(),c(ce,{key:2,nodes:ye.value,"node-key":`nodeKey`,"label-key":`label`,"children-key":`children`,dark:``,dense:``,"default-expand-all":``,"no-selection-unset":``,selected:X.value,class:`diff-tree`,"onUpdate:selected":n[3]||=e=>{typeof e!=`string`||!e.startsWith(`file:`)||(O.value=e.slice(5))}},{"default-header":o(({node:t})=>[t.isFolder?(e(),p(m,{key:0},[u(b,{name:`folder`,size:`14px`,color:`indigo-4`,class:`q-mr-xs`}),h(`span`,P,s(t.label),1),u(D,{label:t.children?ee(se)(t.children):0,color:`grey-9`,"text-color":`grey-5`,class:`q-ml-xs`,style:{"font-size":`9px`}},null,8,[`label`])],64)):(e(),p(m,{key:1},[u(b,{name:`description`,size:`14px`,style:_({color:Se(t.file.status)}),class:`q-mr-xs`},{default:o(()=>[u(T,null,{default:o(()=>[d(s(t.file.status),1)]),_:2},1024)]),_:2},1032,[`style`]),h(`span`,F,s(t.label),1)],64))]),_:1},8,[`nodes`,`selected`]))]),_:1}),h(`div`,{class:`diff-file-list-resize-handle`,onMousedown:ve},null,32)],4),h(`div`,I,[H.value?(e(),p(`div`,L,[u(w,{size:`32px`,color:`indigo-4`})])):O.value?l(``,!0):(e(),p(`div`,ge,s(t.$t(`diff.selectFile`)),1)),h(`div`,{ref_key:`editorContainer`,ref:U,class:`col`,style:{"min-height":`0`}},null,512),$.value?(e(),c(x,{key:2,"no-caps":``,dense:``,size:`sm`,color:`primary`,icon:`chat`,label:t.$t(`diff.addToChat`),class:`send-to-chat-btn`,onClick:xe},null,8,[`label`])):l(``,!0)])])]))}}),[[`__scopeId`,`data-v-23217be2`]]);export{V as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as e,L as t,M as n,Q as r,U as i,_t as ee,bt as a,d as o,f as s,g as c,l,p as u,r as te,rt as d,u as f,v as ne}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{t as p}from"./QIcon-B0-pH3Qs.js";import{t as m}from"./QBtn-DHwAb18J.js";import{D as h,T as g,m as re}from"./index-
|
|
1
|
+
import{F as e,L as t,M as n,Q as r,U as i,_t as ee,bt as a,d as o,f as s,g as c,l,p as u,r as te,rt as d,u as f,v as ne}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{t as p}from"./QIcon-B0-pH3Qs.js";import{t as m}from"./QBtn-DHwAb18J.js";import{D as h,T as g,m as re}from"./index-DAbX631s.js";import{n as ie,t as ae}from"./QItemSection-CiY_LK5Y.js";import{t as _}from"./QSpace-BNr0AftG.js";import{t as oe}from"./use-quasar-Cc4smfg5.js";import{t as v}from"./QList-Bl9824vi.js";import{t as y}from"./QPage-yqdKDG7-.js";var b={class:`row items-center q-mb-md`},x={class:`text-h6 q-ml-sm`},S={key:0,class:`text-grey-6 text-center q-pa-lg`},C={key:1,class:`column q-gutter-md`},w={class:`text-subtitle2 q-mb-sm`},T={class:`text-caption text-grey-6`},E={class:`text-body2`},D={class:`row items-center`},O={class:`text-subtitle2`},k={class:`row q-col-gutter-md q-mt-xs`},A={class:`col`},j={class:`text-caption text-grey-6`},M={class:`text-body2`},N={class:`col-auto`},P={class:`text-caption text-grey-6`},F={class:`text-body2`},I={class:`col-auto`},L={class:`text-caption text-grey-6`},R={class:`text-body2`},z={class:`row items-center`},B={class:`text-subtitle2`},V={key:0,class:`text-caption text-grey-5 q-mt-xs`},se={key:1,class:`text-caption text-negative q-mt-xs`},H={class:`row items-center`},U={class:`text-subtitle2`},W={class:`text-caption text-grey-6 q-mt-xs`},G={key:0,class:`q-mt-sm`},K={class:`text-caption text-negative q-mb-xs`},ce={class:`text-body2`},le={class:`text-caption text-grey-6`},ue={class:`row items-center`},de={class:`text-subtitle2`},fe={class:`text-subtitle2 q-mb-sm`},pe={class:`column q-gutter-xs`},me={class:`row items-center`},he={class:`q-ml-sm text-caption text-grey-6`},ge={class:`row items-center`},_e={class:`q-ml-sm text-caption text-grey-6`},ve={class:`row items-center`},ye={class:`q-ml-sm text-caption text-grey-6`},q=ne({__name:`HealthPage`,setup(ne){let q=oe(),be=re(),J=r(null),Y=r(!1);async function X(){Y.value=!0;try{let e=await fetch(`/api/health/report`);if(!e.ok)throw Error(`HTTP ${e.status}`);J.value=await e.json()}catch(e){q.notify({type:`negative`,message:String(e),position:`top`,timeout:4e3})}finally{Y.value=!1}}n(X);let xe=l(()=>{let e=J.value?.db.sizeBytes;return e==null?`—`:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}),Z=l(()=>{let e=J.value;return e?e.db.schemaVersion===e.db.currentSchemaVersion:!1});function Q(e){return e?`check_circle`:`error`}function $(e){return e?`positive`:`negative`}return(n,r)=>(e(),o(y,{class:`q-pa-md`,style:{"max-width":`900px`,margin:`0 auto`}},{default:i(()=>[f(`div`,b,[c(m,{flat:``,dense:``,round:``,icon:`arrow_back`,onClick:r[0]||=e=>d(be).back()}),f(`div`,x,a(n.$t(`health.title`)),1),c(_),c(m,{flat:``,dense:``,icon:`refresh`,loading:Y.value,label:n.$t(`common.refresh`),onClick:X},null,8,[`loading`,`label`])]),!J.value&&Y.value?(e(),u(`div`,S,a(n.$t(`common.loading`)),1)):J.value?(e(),u(`div`,C,[c(g,{dark:``,flat:``,bordered:``},{default:i(()=>[c(h,null,{default:i(()=>[f(`div`,w,a(n.$t(`health.envTitle`)),1),f(`div`,T,a(n.$t(`health.koboHome`)),1),f(`div`,E,a(J.value.koboHome),1)]),_:1})]),_:1}),c(g,{dark:``,flat:``,bordered:``},{default:i(()=>[c(h,null,{default:i(()=>[f(`div`,D,[f(`div`,O,a(n.$t(`health.dbTitle`)),1),c(_),c(p,{name:Q(Z.value),color:$(Z.value)},null,8,[`name`,`color`])]),f(`div`,k,[f(`div`,A,[f(`div`,j,a(n.$t(`health.dbPath`)),1),f(`div`,M,a(J.value.db.path),1)]),f(`div`,N,[f(`div`,P,a(n.$t(`health.dbSize`)),1),f(`div`,F,a(xe.value),1)]),f(`div`,I,[f(`div`,L,a(n.$t(`health.schemaVersion`)),1),f(`div`,R,a(J.value.db.schemaVersion)+` / `+a(J.value.db.currentSchemaVersion),1)])])]),_:1})]),_:1}),c(g,{dark:``,flat:``,bordered:``},{default:i(()=>[c(h,null,{default:i(()=>[f(`div`,z,[f(`div`,B,a(n.$t(`health.cliTitle`)),1),c(_),c(p,{name:Q(J.value.claudeCli.available),color:$(J.value.claudeCli.available)},null,8,[`name`,`color`])]),J.value.claudeCli.available?(e(),u(`div`,V,a(J.value.claudeCli.version),1)):(e(),u(`div`,se,a(n.$t(`health.cliMissing`)),1))]),_:1})]),_:1}),c(g,{dark:``,flat:``,bordered:``},{default:i(()=>[c(h,null,{default:i(()=>[f(`div`,H,[f(`div`,U,a(n.$t(`health.workspacesTitle`)),1),c(_),c(p,{name:Q(J.value.workspaces.worktreesMissing.length===0),color:$(J.value.workspaces.worktreesMissing.length===0)},null,8,[`name`,`color`])]),f(`div`,W,a(n.$t(`health.workspacesCount`,{total:J.value.workspaces.total,archived:J.value.workspaces.archived})),1),J.value.workspaces.worktreesMissing.length>0?(e(),u(`div`,G,[f(`div`,K,a(n.$t(`health.worktreesMissing`,{count:J.value.workspaces.worktreesMissing.length})),1),c(v,{dense:``,dark:``},{default:i(()=>[(e(!0),u(te,null,t(J.value.workspaces.worktreesMissing,t=>(e(),o(ie,{key:t.workspaceId},{default:i(()=>[c(ae,null,{default:i(()=>[f(`div`,ce,a(t.name),1),f(`div`,le,a(t.path),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})])):s(``,!0)]),_:1})]),_:1}),c(g,{dark:``,flat:``,bordered:``},{default:i(()=>[c(h,null,{default:i(()=>[f(`div`,ue,[f(`div`,de,a(n.$t(`health.sessionsTitle`)),1),c(_),c(p,{name:Q(J.value.agentSessions.orphaned===0),color:$(J.value.agentSessions.orphaned===0)},null,8,[`name`,`color`])]),f(`div`,{class:ee([`text-caption q-mt-xs`,J.value.agentSessions.orphaned>0?`text-negative`:`text-grey-6`])},a(n.$t(`health.sessionsOrphaned`,{n:J.value.agentSessions.orphaned})),3)]),_:1})]),_:1}),c(g,{dark:``,flat:``,bordered:``},{default:i(()=>[c(h,null,{default:i(()=>[f(`div`,fe,a(n.$t(`health.integrationsTitle`)),1),f(`div`,pe,[f(`div`,me,[c(p,{name:Q(J.value.integrations.notion.configured),color:$(J.value.integrations.notion.configured),size:`sm`},null,8,[`name`,`color`]),r[1]||=f(`span`,{class:`q-ml-sm text-body2`},`Notion`,-1),f(`span`,he,a(J.value.integrations.notion.configured?n.$t(`health.integrationConfigured`):n.$t(`health.integrationMissing`)),1)]),f(`div`,ge,[c(p,{name:Q(J.value.integrations.sentry.configured),color:$(J.value.integrations.sentry.configured),size:`sm`},null,8,[`name`,`color`]),r[2]||=f(`span`,{class:`q-ml-sm text-body2`},`Sentry`,-1),f(`span`,_e,a(J.value.integrations.sentry.configured?n.$t(`health.integrationConfigured`):n.$t(`health.integrationMissing`)),1)]),f(`div`,ve,[c(p,{name:Q(J.value.integrations.editor.configured),color:$(J.value.integrations.editor.configured),size:`sm`},null,8,[`name`,`color`]),r[3]||=f(`span`,{class:`q-ml-sm text-body2`},`Editor`,-1),f(`span`,ye,a(J.value.integrations.editor.configured?n.$t(`health.integrationConfigured`):n.$t(`health.integrationMissing`)),1)])])]),_:1})]),_:1})])):s(``,!0)]),_:1}))}});export{q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.acceptance-item[data-v-63b144ad]{padding:2px 0}.acceptance-item[data-v-63b144ad]:hover{background-color:#ffffff08}.acceptance-item:hover .criterion-delete-btn[data-v-63b144ad]{opacity:1}.criterion-delete-btn[data-v-63b144ad]{opacity:0;transition:opacity .15s}.acceptance-title[data-v-63b144ad]{word-break:break-word;cursor:text;line-height:1.4}.text-strike[data-v-63b144ad]{opacity:.7;text-decoration:line-through}.criterion-input[data-v-63b144ad] .q-field__control{height:22px;min-height:22px;padding:0}.criterion-input[data-v-63b144ad] input{color:#e0e0e0;font-size:12px}.criterion-input[data-v-63b144ad] input::placeholder{color:#555}.criterion-add-row[data-v-63b144ad],.todo-item[data-v-4eddf754]{padding:2px 0}.todo-title[data-v-4eddf754]{word-break:break-word;line-height:1.4}.text-strike[data-v-4eddf754]{opacity:.7;text-decoration:line-through}.documents-tree[data-v-445c589c] .q-tree__node--selected>.q-tree__node-header{background:#7986cb26}.documents-tree[data-v-445c589c] .q-tree__node-header{padding:2px 4px}.document-content[data-v-445c589c]{color:#d0d0d0;overflow-wrap:break-word;font-size:12px;line-height:1.6}.document-content[data-v-445c589c] h1{color:#e0e0e0;margin:16px 0 8px;font-size:16px}.document-content[data-v-445c589c] h2{color:#e0e0e0;margin:14px 0 6px;font-size:14px}.document-content[data-v-445c589c] h3{color:#e0e0e0;margin:12px 0 4px;font-size:13px}.document-content[data-v-445c589c] code{background:#1a1a2e;border-radius:3px;padding:1px 4px;font-family:Roboto Mono,monospace;font-size:11px}.document-content[data-v-445c589c] pre{background:#1a1a2e;border-radius:6px;padding:8px 12px;font-size:11px;overflow-x:auto}.document-content[data-v-445c589c] pre code{background:0 0;padding:0}.document-content[data-v-445c589c] ul,.document-content[data-v-445c589c] ol{padding-left:20px}.document-content[data-v-445c589c] li{margin-bottom:2px}.document-content[data-v-445c589c] input[type=checkbox]{pointer-events:none;margin-right:6px}.document-content[data-v-445c589c] table{border-collapse:collapse;width:100%;margin:8px 0;font-size:11px}.document-content[data-v-445c589c] th,.document-content[data-v-445c589c] td{text-align:left;border:1px solid #2a2a4a;padding:4px 8px}.document-content[data-v-445c589c] th{color:#e0e0e0;background:#1a1a2e}.document-content[data-v-445c589c] blockquote{color:#a0a0b0;border-left:3px solid #4a4a6a;margin:8px 0;padding:4px 12px}.document-content[data-v-445c589c] a{color:#818cf8}.document-content[data-v-445c589c] hr{border:none;border-top:1px solid #2a2a4a;margin:12px 0}.git-btn[data-v-fd20db13]{padding:2px 8px;font-size:11px}.git-sync-btn[data-v-fd20db13]{padding:2px 0}.git-sync-btn[data-v-fd20db13] .q-btn__content{padding:0 8px}.git-sync-btn[data-v-fd20db13] .q-btn-dropdown__arrow-container{border-left:1px solid #ffffff1f;padding:0 4px}.git-sync-btn[data-v-fd20db13] .q-btn-dropdown--split{gap:0}.commit-toggle[data-v-fd20db13]:hover{background-color:#ffffff08;border-radius:3px}.commit-list[data-v-fd20db13]{border-left:2px solid #ffffff0a;max-height:260px;margin-left:7px;padding-left:6px;overflow-y:auto}.commit-item[data-v-fd20db13]{border-radius:3px;padding:3px 4px;font-size:11px;line-height:1.3;transition:background-color .1s}.commit-item[data-v-fd20db13]:hover{background-color:#818cf814}.commit-item-icon[data-v-fd20db13]{flex-shrink:0}.commit-sha[data-v-fd20db13]{flex-shrink:0;font-family:Roboto Mono,monospace;font-size:10.5px}.commit-subject[data-v-fd20db13]{min-width:0;font-size:11px}.git-branch-code{color:#c7d2fe;white-space:nowrap;background-color:#818cf824;border-radius:3px;padding:1px 5px;font-family:Roboto Mono,monospace;font-size:11px}.stat-group-label[data-v-f999141a]{text-transform:uppercase;letter-spacing:.05em;color:#888;font-size:10px;font-weight:600}.stat-row[data-v-f999141a]{justify-content:space-between;align-items:center;padding:2px 0;display:flex}.stat-label[data-v-f999141a]{color:#999;font-size:12px}.stat-value[data-v-f999141a]{color:#ddd;font-family:Roboto Mono,monospace;font-size:12px;font-weight:500}.stat-value-muted[data-v-f999141a]{color:#999;margin-left:4px;font-size:11px}.stat-subtext[data-v-f999141a]{color:#8a8aa8;font-size:11px}.usage-breakdown[data-v-f999141a]{background:#2a2a4f;border:1px solid #3b3b61;border-radius:999px;width:100%;height:8px;display:flex;overflow:hidden}.usage-breakdown-input[data-v-f999141a]{background:linear-gradient(90deg,#6d76ff 0%,#8f96ff 100%);height:100%}.usage-breakdown-output[data-v-f999141a]{background:linear-gradient(90deg,#7f6bff 0%,#a598ff 100%);height:100%}.stat-value-ellipsis[data-v-f999141a]{text-overflow:ellipsis;white-space:nowrap;max-width:140px;overflow:hidden}.stat-section[data-v-f999141a]{justify-content:space-between;align-items:center;display:flex}.subagents-panel[data-v-81ad2481]{overflow-y:auto}.subagent-item[data-v-81ad2481]{background:#1e1e3a;border:1px solid #2a2a4a}.task-item[data-v-bab012ce]{padding:2px 0}.task-item[data-v-bab012ce]:hover{background-color:#ffffff08}.task-item:hover .task-delete-btn[data-v-bab012ce]{opacity:1}.task-delete-btn[data-v-bab012ce]{opacity:0;transition:opacity .15s}.task-title[data-v-bab012ce]{word-break:break-word;cursor:text;line-height:1.4}.text-strike[data-v-bab012ce]{opacity:.7;text-decoration:line-through}.task-input[data-v-bab012ce] .q-field__control{height:22px;min-height:22px;padding:0}.task-input[data-v-bab012ce] input{color:#e0e0e0;font-size:12px}.task-input[data-v-bab012ce] input::placeholder{color:#555}.task-add-row[data-v-bab012ce]{padding:2px 0}.xterm{cursor:text;-webkit-user-select:none;user-select:none;position:relative}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{z-index:5;position:absolute;top:0}.xterm .xterm-helper-textarea{opacity:0;z-index:-5;white-space:nowrap;resize:none;border:0;width:0;height:0;margin:0;padding:0;position:absolute;top:0;left:-9999em;overflow:hidden}.xterm .composition-view{color:#fff;white-space:nowrap;z-index:1;background:#000;display:none;position:absolute}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{cursor:default;background-color:#000;position:absolute;top:0;bottom:0;left:0;right:0;overflow-y:scroll}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;top:0;left:0}.xterm-char-measure-element{visibility:hidden;line-height:normal;display:inline-block;position:absolute;top:0;left:-9999em}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{z-index:10;color:#0000;pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0}.xterm .xterm-accessibility-tree:not(.debug) ::-moz-selection{color:#0000}.xterm .xterm-accessibility-tree:not(.debug) ::selection{color:#0000}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre;font-family:monospace}.xterm .xterm-accessibility-tree>div{transform-origin:0;width:-moz-fit-content;width:fit-content}.xterm .live-region{width:1px;height:1px;position:absolute;left:-9999px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:underline double;text-decoration:underline double}.xterm-underline-3{-webkit-text-decoration:underline wavy;text-decoration:underline wavy}.xterm-underline-4{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.xterm-underline-5{-webkit-text-decoration:underline dashed;text-decoration:underline dashed}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:underline overline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;pointer-events:none;position:absolute;top:0;right:0}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;z-index:11;background:0 0;transition:opacity .1s linear}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{display:none;position:absolute}.xterm .xterm-scrollable-element>.shadow.top{width:100%;height:3px;box-shadow:var(--vscode-scrollbar-shadow,#000) 0 6px 6px -6px inset;display:block;top:0;left:3px}.xterm .xterm-scrollable-element>.shadow.left{width:3px;height:100%;box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset;display:block;top:3px;left:0}.xterm .xterm-scrollable-element>.shadow.top-left-corner{width:3px;height:3px;display:block;top:0;left:0}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset}.log-content[data-v-9e03d2b2]{max-height:60vh;overflow-y:auto}.log-text[data-v-9e03d2b2]{color:#ccc;white-space:pre-wrap;word-break:break-all;background:#0d0d1a;margin:0;font-family:JetBrains Mono,Fira Code,monospace;font-size:11px}.dd-panel[data-v-20c5f4bd],.tools-panel[data-v-88d7ca70]{min-height:48px}.auto-loop-spin[data-v-44f33716]{animation:2s linear infinite auto-loop-spin-44f33716}@keyframes auto-loop-spin-44f33716{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.workspace-list[data-v-d5e3ff18]{background-color:#16162a;overflow-x:hidden}.wl-search[data-v-d5e3ff18]{background-color:#224;padding:0 8px}.wl-search[data-v-d5e3ff18] .q-field__control{height:32px}.wl-search[data-v-d5e3ff18] input{color:#ccc;font-size:12px}.wl-group-header[data-v-d5e3ff18]:hover{background-color:#ffffff08}.wl-project-group+.wl-project-group[data-v-d5e3ff18]{margin-top:6px}.wl-project-label[data-v-d5e3ff18]{align-items:center;padding-bottom:2px;font-size:11px;display:flex}.wl-item[data-v-d5e3ff18]{background-color:#224;margin-bottom:4px;transition:background-color .15s,box-shadow .15s;position:relative}.wl-item[data-v-d5e3ff18]:last-child{margin-bottom:0}.wl-item[data-v-d5e3ff18]:hover{background-color:#2a2a4a}.wl-item--selected[data-v-d5e3ff18]{background-color:#393969;outline:1.5px solid #6c63fff2;box-shadow:0 0 0 1px #6c63ff4d,0 2px 8px #6c63ff40}.wl-item--selected[data-v-d5e3ff18]:hover{background-color:#41417a}.wl-item--selected .wl-item-name[data-v-d5e3ff18]{color:#fff!important;opacity:1!important}.wl-item-action[data-v-d5e3ff18]{position:absolute;top:4px;right:4px}.wl-item--archived .wl-item-action[data-v-d5e3ff18]{opacity:0;transition:opacity .15s}.wl-item--archived:hover .wl-item-action[data-v-d5e3ff18]{opacity:1}.wl-item-unarchive[data-v-d5e3ff18]{right:28px}.wl-item-delete[data-v-d5e3ff18]{right:4px}.wl-item--archived[data-v-d5e3ff18]{opacity:.6;background-color:#1a1a30}.wl-item--archived[data-v-d5e3ff18]:hover{opacity:.85}.wl-item--archived.wl-item--selected[data-v-d5e3ff18]{opacity:1}.dd-dot[data-v-d5e3ff18]{border-radius:50%;flex-shrink:0;width:6px;height:6px}.dd-dot--running[data-v-d5e3ff18]{background-color:#22c55e;box-shadow:0 0 4px #22c55e80}.bg-dark[data-v-1b6ace4c]{background-color:#16162a!important;border-color:#2a2a4a!important}.resize-handle[data-v-1b6ace4c]{cursor:col-resize;z-index:10;width:4px;height:100%;transition:background-color .15s;position:absolute;top:0;right:-2px}.resize-handle[data-v-1b6ace4c]:hover,.resize-handle[data-v-1b6ace4c]:active{background-color:#6c63ff80}.resize-handle--right[data-v-1b6ace4c]{left:-2px;right:auto}.vertical-resize-handle[data-v-1b6ace4c]{cursor:row-resize;background-color:#2a2a4a;height:4px;transition:background-color .15s}.vertical-resize-handle[data-v-1b6ace4c]:hover,.vertical-resize-handle[data-v-1b6ace4c]:active{background-color:#6c63ff80}
|