@cluesmith/codev 3.2.0 → 3.2.2
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/dashboard-dist/assets/{index-DM7OU-EI.js → index-BZ1x7x1X.js} +34 -34
- package/dashboard-dist/assets/index-BZ1x7x1X.js.map +1 -0
- package/dashboard-dist/index.html +1 -1
- package/dist/agent-farm/cli.d.ts.map +1 -1
- package/dist/agent-farm/cli.js +17 -0
- package/dist/agent-farm/cli.js.map +1 -1
- package/dist/agent-farm/commands/architect.d.ts.map +1 -1
- package/dist/agent-farm/commands/architect.js +6 -17
- package/dist/agent-farm/commands/architect.js.map +1 -1
- package/dist/agent-farm/commands/cleanup.js +3 -2
- package/dist/agent-farm/commands/cleanup.js.map +1 -1
- package/dist/agent-farm/commands/db.d.ts +10 -0
- package/dist/agent-farm/commands/db.d.ts.map +1 -1
- package/dist/agent-farm/commands/db.js +77 -0
- package/dist/agent-farm/commands/db.js.map +1 -1
- package/dist/agent-farm/commands/send.d.ts +40 -12
- package/dist/agent-farm/commands/send.d.ts.map +1 -1
- package/dist/agent-farm/commands/send.js +101 -34
- package/dist/agent-farm/commands/send.js.map +1 -1
- package/dist/agent-farm/commands/spawn-worktree.d.ts +12 -7
- package/dist/agent-farm/commands/spawn-worktree.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn-worktree.js +40 -19
- package/dist/agent-farm/commands/spawn-worktree.js.map +1 -1
- package/dist/agent-farm/commands/spawn.d.ts +15 -6
- package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn.js +24 -17
- package/dist/agent-farm/commands/spawn.js.map +1 -1
- package/dist/agent-farm/commands/stop.js +2 -2
- package/dist/agent-farm/commands/stop.js.map +1 -1
- package/dist/agent-farm/commands/tower.d.ts +1 -0
- package/dist/agent-farm/commands/tower.d.ts.map +1 -1
- package/dist/agent-farm/commands/tower.js +50 -0
- package/dist/agent-farm/commands/tower.js.map +1 -1
- package/dist/agent-farm/db/consolidate.d.ts +66 -0
- package/dist/agent-farm/db/consolidate.d.ts.map +1 -0
- package/dist/agent-farm/db/consolidate.js +406 -0
- package/dist/agent-farm/db/consolidate.js.map +1 -0
- package/dist/agent-farm/db/index.d.ts +13 -4
- package/dist/agent-farm/db/index.d.ts.map +1 -1
- package/dist/agent-farm/db/index.js +100 -470
- package/dist/agent-farm/db/index.js.map +1 -1
- package/dist/agent-farm/db/schema.d.ts +11 -4
- package/dist/agent-farm/db/schema.d.ts.map +1 -1
- package/dist/agent-farm/db/schema.js +91 -2
- package/dist/agent-farm/db/schema.js.map +1 -1
- package/dist/agent-farm/db/types.d.ts +2 -0
- package/dist/agent-farm/db/types.d.ts.map +1 -1
- package/dist/agent-farm/db/types.js +1 -0
- package/dist/agent-farm/db/types.js.map +1 -1
- package/dist/agent-farm/lib/builder-lookup.d.ts.map +1 -1
- package/dist/agent-farm/lib/builder-lookup.js +9 -3
- package/dist/agent-farm/lib/builder-lookup.js.map +1 -1
- package/dist/agent-farm/servers/codev-config-watcher.d.ts +37 -0
- package/dist/agent-farm/servers/codev-config-watcher.d.ts.map +1 -0
- package/dist/agent-farm/servers/{worktree-config-watcher.js → codev-config-watcher.js} +15 -14
- package/dist/agent-farm/servers/codev-config-watcher.js.map +1 -0
- package/dist/agent-farm/servers/command-relay.d.ts +54 -0
- package/dist/agent-farm/servers/command-relay.d.ts.map +1 -0
- package/dist/agent-farm/servers/command-relay.js +94 -0
- package/dist/agent-farm/servers/command-relay.js.map +1 -0
- package/dist/agent-farm/servers/overview.d.ts.map +1 -1
- package/dist/agent-farm/servers/overview.js +12 -6
- package/dist/agent-farm/servers/overview.js.map +1 -1
- package/dist/agent-farm/servers/tower-instances.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-instances.js +65 -55
- package/dist/agent-farm/servers/tower-instances.js.map +1 -1
- package/dist/agent-farm/servers/tower-messages.d.ts +9 -0
- package/dist/agent-farm/servers/tower-messages.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-messages.js +24 -0
- package/dist/agent-farm/servers/tower-messages.js.map +1 -1
- package/dist/agent-farm/servers/tower-routes.d.ts +1 -1
- package/dist/agent-farm/servers/tower-routes.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-routes.js +111 -35
- package/dist/agent-farm/servers/tower-routes.js.map +1 -1
- package/dist/agent-farm/servers/tower-server.js +41 -27
- package/dist/agent-farm/servers/tower-server.js.map +1 -1
- package/dist/agent-farm/servers/tower-terminals.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-terminals.js +22 -5
- package/dist/agent-farm/servers/tower-terminals.js.map +1 -1
- package/dist/agent-farm/servers/tower-types.d.ts +2 -0
- package/dist/agent-farm/servers/tower-types.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-utils.d.ts +50 -5
- package/dist/agent-farm/servers/tower-utils.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-utils.js +64 -14
- package/dist/agent-farm/servers/tower-utils.js.map +1 -1
- package/dist/agent-farm/state.d.ts +34 -21
- package/dist/agent-farm/state.d.ts.map +1 -1
- package/dist/agent-farm/state.js +125 -79
- package/dist/agent-farm/state.js.map +1 -1
- package/dist/agent-farm/types.d.ts +14 -0
- package/dist/agent-farm/types.d.ts.map +1 -1
- package/dist/agent-farm/utils/architect-name.d.ts +6 -33
- package/dist/agent-farm/utils/architect-name.d.ts.map +1 -1
- package/dist/agent-farm/utils/architect-name.js +7 -62
- package/dist/agent-farm/utils/architect-name.js.map +1 -1
- package/dist/agent-farm/utils/config.d.ts +24 -1
- package/dist/agent-farm/utils/config.d.ts.map +1 -1
- package/dist/agent-farm/utils/config.js +59 -3
- package/dist/agent-farm/utils/config.js.map +1 -1
- package/dist/agent-farm/utils/harness.d.ts +45 -2
- package/dist/agent-farm/utils/harness.d.ts.map +1 -1
- package/dist/agent-farm/utils/harness.js +21 -0
- package/dist/agent-farm/utils/harness.js.map +1 -1
- package/dist/agent-farm/utils/workspace-path.d.ts +16 -0
- package/dist/agent-farm/utils/workspace-path.d.ts.map +1 -0
- package/dist/agent-farm/utils/workspace-path.js +26 -0
- package/dist/agent-farm/utils/workspace-path.js.map +1 -0
- package/dist/agent-farm/utils/worktree-write-guard.d.ts +56 -0
- package/dist/agent-farm/utils/worktree-write-guard.d.ts.map +1 -0
- package/dist/agent-farm/utils/worktree-write-guard.js +222 -0
- package/dist/agent-farm/utils/worktree-write-guard.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/consult/index.d.ts +50 -2
- package/dist/commands/consult/index.d.ts.map +1 -1
- package/dist/commands/consult/index.js +125 -7
- package/dist/commands/consult/index.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +25 -3
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/porch/verdict.js +2 -2
- package/dist/commands/porch/verdict.js.map +1 -1
- package/dist/lib/config.d.ts +10 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/forge-contracts.d.ts +8 -0
- package/dist/lib/forge-contracts.d.ts.map +1 -1
- package/dist/lib/forge-contracts.js.map +1 -1
- package/dist/lib/managed-block.d.ts +8 -2
- package/dist/lib/managed-block.d.ts.map +1 -1
- package/dist/lib/managed-block.js +32 -7
- package/dist/lib/managed-block.js.map +1 -1
- package/package.json +3 -3
- package/scripts/forge/gitea/issue-view.sh +4 -1
- package/scripts/forge/github/issue-view.sh +2 -2
- package/scripts/forge/gitlab/issue-view.sh +4 -1
- package/scripts/forge/linear/issue-view.sh +3 -2
- package/skeleton/resources/commands/consult.md +14 -0
- package/skeleton/roles/builder.md +21 -0
- package/skeleton/templates/AGENTS.md +16 -0
- package/skeleton/templates/CLAUDE.md +16 -0
- package/dashboard-dist/assets/index-DM7OU-EI.js.map +0 -1
- package/dist/agent-farm/db/migrate.d.ts +0 -20
- package/dist/agent-farm/db/migrate.d.ts.map +0 -1
- package/dist/agent-farm/db/migrate.js +0 -107
- package/dist/agent-farm/db/migrate.js.map +0 -1
- package/dist/agent-farm/servers/worktree-config-watcher.d.ts +0 -36
- package/dist/agent-farm/servers/worktree-config-watcher.d.ts.map +0 -1
- package/dist/agent-farm/servers/worktree-config-watcher.js.map +0 -1
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Migration Functions
|
|
3
|
-
*
|
|
4
|
-
* Handles migration from JSON files to SQLite databases
|
|
5
|
-
*/
|
|
6
|
-
import type Database from 'better-sqlite3';
|
|
7
|
-
/**
|
|
8
|
-
* Migrate local state from JSON to SQLite.
|
|
9
|
-
*
|
|
10
|
-
* Bugfix #826: the architect row needs a workspace_path. The legacy JSON
|
|
11
|
-
* state has no such field — the architect was implicitly scoped to whatever
|
|
12
|
-
* workspace this state.db belongs to. Callers pass `workspacePath` (the
|
|
13
|
-
* workspace this state.db lives under) to fill that gap.
|
|
14
|
-
*
|
|
15
|
-
* Bugfix #826 iter-6: canonicalize (realpath) before write so a symlinked
|
|
16
|
-
* workspaceRoot can't seed a row that Tower's canonical-path lookups won't
|
|
17
|
-
* find. Mirrors the normalization in state.ts accessors.
|
|
18
|
-
*/
|
|
19
|
-
export declare function migrateLocalFromJson(db: Database.Database, jsonPath: string, workspacePath: string): void;
|
|
20
|
-
//# sourceMappingURL=migrate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/agent-farm/db/migrate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAsB3C;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,EAAE,EAAE,QAAQ,CAAC,QAAQ,EACrB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,GACpB,IAAI,CA0FN"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Migration Functions
|
|
3
|
-
*
|
|
4
|
-
* Handles migration from JSON files to SQLite databases
|
|
5
|
-
*/
|
|
6
|
-
import { readFileSync, realpathSync } from 'node:fs';
|
|
7
|
-
import { resolve } from 'node:path';
|
|
8
|
-
/**
|
|
9
|
-
* Migrate local state from JSON to SQLite.
|
|
10
|
-
*
|
|
11
|
-
* Bugfix #826: the architect row needs a workspace_path. The legacy JSON
|
|
12
|
-
* state has no such field — the architect was implicitly scoped to whatever
|
|
13
|
-
* workspace this state.db belongs to. Callers pass `workspacePath` (the
|
|
14
|
-
* workspace this state.db lives under) to fill that gap.
|
|
15
|
-
*
|
|
16
|
-
* Bugfix #826 iter-6: canonicalize (realpath) before write so a symlinked
|
|
17
|
-
* workspaceRoot can't seed a row that Tower's canonical-path lookups won't
|
|
18
|
-
* find. Mirrors the normalization in state.ts accessors.
|
|
19
|
-
*/
|
|
20
|
-
export function migrateLocalFromJson(db, jsonPath, workspacePath) {
|
|
21
|
-
const jsonContent = readFileSync(jsonPath, 'utf-8');
|
|
22
|
-
const state = JSON.parse(jsonContent);
|
|
23
|
-
let canonicalWorkspacePath;
|
|
24
|
-
try {
|
|
25
|
-
canonicalWorkspacePath = realpathSync(workspacePath);
|
|
26
|
-
}
|
|
27
|
-
catch {
|
|
28
|
-
canonicalWorkspacePath = resolve(workspacePath);
|
|
29
|
-
}
|
|
30
|
-
// Wrap in transaction for atomicity
|
|
31
|
-
const migrate = db.transaction(() => {
|
|
32
|
-
// Migrate architect (Spec 755: legacy singleton becomes architect named 'main')
|
|
33
|
-
// Bugfix #826: tag with canonical workspace_path so the row is scoped.
|
|
34
|
-
if (state.architect) {
|
|
35
|
-
db.prepare(`
|
|
36
|
-
INSERT INTO architect (workspace_path, id, pid, port, cmd, started_at)
|
|
37
|
-
VALUES (@workspacePath, 'main', @pid, @port, @cmd, @startedAt)
|
|
38
|
-
`).run({
|
|
39
|
-
workspacePath: canonicalWorkspacePath,
|
|
40
|
-
pid: state.architect.pid,
|
|
41
|
-
port: state.architect.port,
|
|
42
|
-
cmd: state.architect.cmd,
|
|
43
|
-
startedAt: state.architect.startedAt,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
// Migrate builders
|
|
47
|
-
for (const builder of state.builders || []) {
|
|
48
|
-
db.prepare(`
|
|
49
|
-
INSERT INTO builders (
|
|
50
|
-
id, name, port, pid, status, phase, worktree, branch,
|
|
51
|
-
type, task_text, protocol_name
|
|
52
|
-
)
|
|
53
|
-
VALUES (
|
|
54
|
-
@id, @name, @port, @pid, @status, @phase, @worktree, @branch,
|
|
55
|
-
@type, @taskText, @protocolName
|
|
56
|
-
)
|
|
57
|
-
`).run({
|
|
58
|
-
id: builder.id,
|
|
59
|
-
name: builder.name,
|
|
60
|
-
port: builder.port,
|
|
61
|
-
pid: builder.pid,
|
|
62
|
-
status: builder.status,
|
|
63
|
-
phase: builder.phase,
|
|
64
|
-
worktree: builder.worktree,
|
|
65
|
-
branch: builder.branch,
|
|
66
|
-
type: builder.type,
|
|
67
|
-
taskText: builder.taskText ?? null,
|
|
68
|
-
protocolName: builder.protocolName ?? null,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
// Migrate utils
|
|
72
|
-
for (const util of state.utils || []) {
|
|
73
|
-
db.prepare(`
|
|
74
|
-
INSERT INTO utils (id, name, port, pid)
|
|
75
|
-
VALUES (@id, @name, @port, @pid)
|
|
76
|
-
`).run({
|
|
77
|
-
id: util.id,
|
|
78
|
-
name: util.name,
|
|
79
|
-
port: util.port,
|
|
80
|
-
pid: util.pid,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
// Migrate annotations
|
|
84
|
-
for (const annotation of state.annotations || []) {
|
|
85
|
-
db.prepare(`
|
|
86
|
-
INSERT INTO annotations (id, file, port, pid, parent_type, parent_id)
|
|
87
|
-
VALUES (@id, @file, @port, @pid, @parentType, @parentId)
|
|
88
|
-
`).run({
|
|
89
|
-
id: annotation.id,
|
|
90
|
-
file: annotation.file,
|
|
91
|
-
port: annotation.port,
|
|
92
|
-
pid: annotation.pid,
|
|
93
|
-
parentType: annotation.parent.type,
|
|
94
|
-
parentId: annotation.parent.id ?? null,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
try {
|
|
99
|
-
migrate();
|
|
100
|
-
}
|
|
101
|
-
catch (err) {
|
|
102
|
-
console.error('[error] Migration failed. JSON file preserved.');
|
|
103
|
-
console.error('[error] Manual recovery: delete state.db and restart');
|
|
104
|
-
throw err;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=migrate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../../src/agent-farm/db/migrate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,oBAAoB,CAClC,EAAqB,EACrB,QAAgB,EAChB,aAAqB;IAErB,MAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpD,MAAM,KAAK,GAAoB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAEvD,IAAI,sBAA8B,CAAC;IACnC,IAAI,CAAC;QACH,sBAAsB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;IACvD,CAAC;IAAC,MAAM,CAAC;QACP,sBAAsB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAClD,CAAC;IAED,oCAAoC;IACpC,MAAM,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE;QAClC,gFAAgF;QAChF,uEAAuE;QACvE,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;YACpB,EAAE,CAAC,OAAO,CAAC;;;OAGV,CAAC,CAAC,GAA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MAAM,UAAU,IAAI,KAAK,CAAC,WAAW,IAAI,EAAE,EAAE,CAAC;YACjD,EAAE,CAAC,OAAO,CAAC;;;OAGV,CAAC,CAAC,GAAG,CAAC;gBACL,EAAE,EAAE,UAAU,CAAC,EAAE;gBACjB,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,GAAG,EAAE,UAAU,CAAC,GAAG;gBACnB,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;gBAClC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,IAAI,IAAI;aACvC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC;QACH,OAAO,EAAE,CAAC;IACZ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;QAChE,OAAO,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;QACtE,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-workspace file watcher for `.codev/config.json` and
|
|
3
|
-
* `.codev/config.local.json`. Lazily installed by the
|
|
4
|
-
* `/api/worktree-config` route handler on first request, then persists
|
|
5
|
-
* for the Tower process lifetime. On each detected change it fans out
|
|
6
|
-
* a `worktree-config-updated` SSE event so subscribed clients (the
|
|
7
|
-
* VSCode extension, the dashboard) can refetch via the route and
|
|
8
|
-
* re-render.
|
|
9
|
-
*
|
|
10
|
-
* Pattern follows `tower-tunnel.ts:startConfigWatcher` (which watches
|
|
11
|
-
* `~/.codev/cloud.json` for OAuth credential changes) — `node:fs.watch`
|
|
12
|
-
* on the parent directory, filename filter, short debounce to coalesce
|
|
13
|
-
* the multiple events that fire per save.
|
|
14
|
-
*/
|
|
15
|
-
type NotifyFn = (notification: {
|
|
16
|
-
type: string;
|
|
17
|
-
title: string;
|
|
18
|
-
body: string;
|
|
19
|
-
workspace?: string;
|
|
20
|
-
}) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Wire the broadcast function once at Tower startup. Subsequent calls
|
|
23
|
-
* to `ensureWorktreeConfigWatcher` will use this notifier when files
|
|
24
|
-
* change.
|
|
25
|
-
*/
|
|
26
|
-
export declare function setWorktreeConfigNotifier(fn: NotifyFn): void;
|
|
27
|
-
/**
|
|
28
|
-
* Lazily install (or no-op if already installed) a file watcher for
|
|
29
|
-
* `<workspacePath>/.codev/{config.json,config.local.json}`. Safe to
|
|
30
|
-
* call on every route hit.
|
|
31
|
-
*/
|
|
32
|
-
export declare function ensureWorktreeConfigWatcher(workspacePath: string): void;
|
|
33
|
-
/** Test / shutdown helper — close every watcher and clear pending debounces. */
|
|
34
|
-
export declare function stopAllWorktreeConfigWatchers(): void;
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=worktree-config-watcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worktree-config-watcher.d.ts","sourceRoot":"","sources":["../../../src/agent-farm/servers/worktree-config-watcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH,KAAK,QAAQ,GAAG,CAAC,YAAY,EAAE;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,KAAK,IAAI,CAAC;AASX;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,EAAE,QAAQ,GAAG,IAAI,CAE5D;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CA0BvE;AAED,gFAAgF;AAChF,wBAAgB,6BAA6B,IAAI,IAAI,CAKpD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worktree-config-watcher.js","sourceRoot":"","s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