gsd-pi 2.35.0-dev.55dcc60 → 2.35.0-dev.6179610
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/README.md +3 -1
- package/dist/cli.js +7 -2
- package/dist/resource-loader.d.ts +1 -1
- package/dist/resource-loader.js +13 -1
- package/dist/resources/extensions/async-jobs/await-tool.js +0 -2
- package/dist/resources/extensions/async-jobs/job-manager.js +0 -6
- package/dist/resources/extensions/bg-shell/output-formatter.js +1 -19
- package/dist/resources/extensions/bg-shell/process-manager.js +0 -4
- package/dist/resources/extensions/bg-shell/types.js +0 -2
- package/dist/resources/extensions/context7/index.js +5 -0
- package/dist/resources/extensions/get-secrets-from-user.js +2 -30
- package/dist/resources/extensions/google-search/index.js +5 -0
- package/dist/resources/extensions/gsd/auto-dispatch.js +43 -1
- package/dist/resources/extensions/gsd/auto-loop.js +10 -1
- package/dist/resources/extensions/gsd/auto-recovery.js +35 -0
- package/dist/resources/extensions/gsd/auto-start.js +35 -2
- package/dist/resources/extensions/gsd/auto.js +59 -4
- package/dist/resources/extensions/gsd/commands-handlers.js +2 -2
- package/dist/resources/extensions/gsd/commands-rate.js +31 -0
- package/dist/resources/extensions/gsd/commands.js +6 -0
- package/dist/resources/extensions/gsd/doctor-environment.js +26 -17
- package/dist/resources/extensions/gsd/files.js +11 -2
- package/dist/resources/extensions/gsd/gitignore.js +54 -7
- package/dist/resources/extensions/gsd/guided-flow.js +1 -1
- package/dist/resources/extensions/gsd/health-widget-core.js +96 -0
- package/dist/resources/extensions/gsd/health-widget.js +97 -46
- package/dist/resources/extensions/gsd/index.js +26 -33
- package/dist/resources/extensions/gsd/migrate-external.js +55 -2
- package/dist/resources/extensions/gsd/milestone-ids.js +3 -2
- package/dist/resources/extensions/gsd/paths.js +74 -7
- package/dist/resources/extensions/gsd/post-unit-hooks.js +4 -1
- package/dist/resources/extensions/gsd/preferences-validation.js +16 -1
- package/dist/resources/extensions/gsd/preferences.js +12 -0
- package/dist/resources/extensions/gsd/prompts/complete-milestone.md +2 -0
- package/dist/resources/extensions/gsd/prompts/validate-milestone.md +2 -0
- package/dist/resources/extensions/gsd/roadmap-mutations.js +55 -0
- package/dist/resources/extensions/gsd/session-lock.js +53 -2
- package/dist/resources/extensions/gsd/state.js +2 -1
- package/dist/resources/extensions/gsd/templates/plan.md +8 -0
- package/dist/resources/extensions/gsd/worktree-resolver.js +12 -0
- package/dist/resources/extensions/remote-questions/remote-command.js +2 -22
- package/dist/resources/extensions/shared/mod.js +1 -1
- package/dist/resources/extensions/shared/sanitize.js +30 -0
- package/dist/resources/extensions/subagent/index.js +6 -14
- package/package.json +2 -1
- package/packages/pi-ai/dist/providers/openai-responses.js +1 -1
- package/packages/pi-ai/dist/providers/openai-responses.js.map +1 -1
- package/packages/pi-ai/src/providers/openai-responses.ts +1 -1
- package/packages/pi-coding-agent/dist/core/resource-loader.d.ts.map +1 -1
- package/packages/pi-coding-agent/dist/core/resource-loader.js +13 -2
- package/packages/pi-coding-agent/dist/core/resource-loader.js.map +1 -1
- package/packages/pi-coding-agent/src/core/resource-loader.ts +13 -2
- package/src/resources/extensions/async-jobs/await-tool.ts +0 -2
- package/src/resources/extensions/async-jobs/job-manager.ts +0 -7
- package/src/resources/extensions/bg-shell/output-formatter.ts +0 -17
- package/src/resources/extensions/bg-shell/process-manager.ts +0 -4
- package/src/resources/extensions/bg-shell/types.ts +0 -12
- package/src/resources/extensions/context7/index.ts +7 -0
- package/src/resources/extensions/get-secrets-from-user.ts +2 -35
- package/src/resources/extensions/google-search/index.ts +7 -0
- package/src/resources/extensions/gsd/auto-dispatch.ts +49 -1
- package/src/resources/extensions/gsd/auto-loop.ts +11 -1
- package/src/resources/extensions/gsd/auto-recovery.ts +39 -0
- package/src/resources/extensions/gsd/auto-start.ts +42 -2
- package/src/resources/extensions/gsd/auto.ts +61 -3
- package/src/resources/extensions/gsd/commands-handlers.ts +2 -2
- package/src/resources/extensions/gsd/commands-rate.ts +55 -0
- package/src/resources/extensions/gsd/commands.ts +7 -0
- package/src/resources/extensions/gsd/doctor-environment.ts +26 -16
- package/src/resources/extensions/gsd/files.ts +12 -2
- package/src/resources/extensions/gsd/gitignore.ts +54 -7
- package/src/resources/extensions/gsd/guided-flow.ts +1 -1
- package/src/resources/extensions/gsd/health-widget-core.ts +129 -0
- package/src/resources/extensions/gsd/health-widget.ts +103 -59
- package/src/resources/extensions/gsd/index.ts +30 -33
- package/src/resources/extensions/gsd/migrate-external.ts +47 -2
- package/src/resources/extensions/gsd/milestone-ids.ts +3 -2
- package/src/resources/extensions/gsd/paths.ts +73 -7
- package/src/resources/extensions/gsd/post-unit-hooks.ts +5 -1
- package/src/resources/extensions/gsd/preferences-validation.ts +16 -1
- package/src/resources/extensions/gsd/preferences.ts +14 -1
- package/src/resources/extensions/gsd/prompts/complete-milestone.md +2 -0
- package/src/resources/extensions/gsd/prompts/validate-milestone.md +2 -0
- package/src/resources/extensions/gsd/roadmap-mutations.ts +66 -0
- package/src/resources/extensions/gsd/session-lock.ts +59 -2
- package/src/resources/extensions/gsd/state.ts +2 -1
- package/src/resources/extensions/gsd/templates/plan.md +8 -0
- package/src/resources/extensions/gsd/tests/files-loadfile-eisdir.test.ts +20 -0
- package/src/resources/extensions/gsd/tests/gitignore-tracked-gsd.test.ts +214 -0
- package/src/resources/extensions/gsd/tests/health-widget.test.ts +158 -0
- package/src/resources/extensions/gsd/tests/paths.test.ts +113 -0
- package/src/resources/extensions/gsd/tests/preferences.test.ts +12 -2
- package/src/resources/extensions/gsd/tests/queue-reorder-e2e.test.ts +26 -0
- package/src/resources/extensions/gsd/tests/test-utils.ts +165 -0
- package/src/resources/extensions/gsd/tests/validate-directory.test.ts +15 -0
- package/src/resources/extensions/gsd/tests/validate-milestone.test.ts +7 -0
- package/src/resources/extensions/gsd/tests/worktree-sync-milestones.test.ts +32 -0
- package/src/resources/extensions/gsd/worktree-resolver.ts +11 -0
- package/src/resources/extensions/remote-questions/remote-command.ts +2 -23
- package/src/resources/extensions/shared/mod.ts +1 -1
- package/src/resources/extensions/shared/sanitize.ts +36 -0
- package/src/resources/extensions/subagent/index.ts +6 -12
- package/dist/resources/extensions/shared/wizard-ui.js +0 -478
- package/src/resources/extensions/shared/wizard-ui.ts +0 -551
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
* `~/.gsd/projects/<hash>/` state directory. After migration, a
|
|
6
6
|
* symlink replaces the original directory so all paths remain valid.
|
|
7
7
|
*/
|
|
8
|
-
import { existsSync, lstatSync, mkdirSync, readdirSync, renameSync, cpSync, rmSync, symlinkSync } from "node:fs";
|
|
8
|
+
import { existsSync, lstatSync, mkdirSync, readdirSync, realpathSync, renameSync, cpSync, rmSync, symlinkSync } from "node:fs";
|
|
9
9
|
import { join } from "node:path";
|
|
10
10
|
import { externalGsdRoot } from "./repo-identity.js";
|
|
11
11
|
import { getErrorMessage } from "./error-utils.js";
|
|
12
|
+
import { hasGitTrackedGsdFiles } from "./gitignore.js";
|
|
12
13
|
/**
|
|
13
14
|
* Migrate a legacy in-project `.gsd/` directory to external storage.
|
|
14
15
|
*
|
|
@@ -42,6 +43,27 @@ export function migrateToExternalState(basePath) {
|
|
|
42
43
|
catch (err) {
|
|
43
44
|
return { migrated: false, error: `Cannot stat .gsd: ${getErrorMessage(err)}` };
|
|
44
45
|
}
|
|
46
|
+
// Skip if .gsd/ contains git-tracked files — the project intentionally
|
|
47
|
+
// keeps .gsd/ in version control and migration would destroy that.
|
|
48
|
+
if (hasGitTrackedGsdFiles(basePath)) {
|
|
49
|
+
return { migrated: false };
|
|
50
|
+
}
|
|
51
|
+
// Skip if .gsd/worktrees/ has active worktree directories (#1337).
|
|
52
|
+
// On Windows, active git worktrees hold OS-level directory handles that
|
|
53
|
+
// prevent rename/delete. Attempting migration causes EBUSY and data loss.
|
|
54
|
+
const worktreesDir = join(localGsd, "worktrees");
|
|
55
|
+
if (existsSync(worktreesDir)) {
|
|
56
|
+
try {
|
|
57
|
+
const entries = readdirSync(worktreesDir, { withFileTypes: true });
|
|
58
|
+
if (entries.some(e => e.isDirectory())) {
|
|
59
|
+
return { migrated: false };
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
// Can't read worktrees dir — skip migration to be safe
|
|
64
|
+
return { migrated: false };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
45
67
|
const externalPath = externalGsdRoot(basePath);
|
|
46
68
|
const migratingPath = join(basePath, ".gsd.migrating");
|
|
47
69
|
try {
|
|
@@ -89,7 +111,38 @@ export function migrateToExternalState(basePath) {
|
|
|
89
111
|
}
|
|
90
112
|
// Create symlink .gsd -> external path
|
|
91
113
|
symlinkSync(externalPath, localGsd, "junction");
|
|
92
|
-
//
|
|
114
|
+
// Verify the symlink resolves correctly before removing the backup (#1377).
|
|
115
|
+
// On Windows, junction creation can silently succeed but resolve to the wrong
|
|
116
|
+
// target, or the external dir may not be accessible. If verification fails,
|
|
117
|
+
// restore from the backup.
|
|
118
|
+
try {
|
|
119
|
+
const resolved = realpathSync(localGsd);
|
|
120
|
+
const resolvedExternal = realpathSync(externalPath);
|
|
121
|
+
if (resolved !== resolvedExternal) {
|
|
122
|
+
// Symlink points to wrong target — restore backup
|
|
123
|
+
try {
|
|
124
|
+
rmSync(localGsd, { force: true });
|
|
125
|
+
}
|
|
126
|
+
catch { /* may not exist */ }
|
|
127
|
+
renameSync(migratingPath, localGsd);
|
|
128
|
+
return { migrated: false, error: `Migration verification failed: symlink resolves to ${resolved}, expected ${resolvedExternal}` };
|
|
129
|
+
}
|
|
130
|
+
// Verify we can read through the symlink
|
|
131
|
+
readdirSync(localGsd);
|
|
132
|
+
}
|
|
133
|
+
catch (verifyErr) {
|
|
134
|
+
// Symlink broken or unreadable — restore backup
|
|
135
|
+
try {
|
|
136
|
+
rmSync(localGsd, { force: true });
|
|
137
|
+
}
|
|
138
|
+
catch { /* may not exist */ }
|
|
139
|
+
try {
|
|
140
|
+
renameSync(migratingPath, localGsd);
|
|
141
|
+
}
|
|
142
|
+
catch { /* best-effort restore */ }
|
|
143
|
+
return { migrated: false, error: `Migration verification failed: ${getErrorMessage(verifyErr)}` };
|
|
144
|
+
}
|
|
145
|
+
// Remove .gsd.migrating only after symlink is verified
|
|
93
146
|
rmSync(migratingPath, { recursive: true, force: true });
|
|
94
147
|
return { migrated: true };
|
|
95
148
|
}
|
|
@@ -67,8 +67,9 @@ export function findMilestoneIds(basePath) {
|
|
|
67
67
|
.filter((d) => d.isDirectory())
|
|
68
68
|
.map((d) => {
|
|
69
69
|
const match = d.name.match(/^(M\d+(?:-[a-z0-9]{6})?)/);
|
|
70
|
-
return match ? match[1] :
|
|
71
|
-
})
|
|
70
|
+
return match ? match[1] : null;
|
|
71
|
+
})
|
|
72
|
+
.filter((id) => id !== null);
|
|
72
73
|
// Apply custom queue order if available, else fall back to numeric sort
|
|
73
74
|
const customOrder = loadQueueOrder(basePath);
|
|
74
75
|
return sortByQueueOrder(ids, customOrder);
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* via prefix matching, so existing projects work without migration.
|
|
10
10
|
*/
|
|
11
11
|
import { readdirSync, existsSync, realpathSync, Dirent } from "node:fs";
|
|
12
|
-
import { join } from "node:path";
|
|
12
|
+
import { join, dirname, normalize } from "node:path";
|
|
13
|
+
import { spawnSync } from "node:child_process";
|
|
13
14
|
import { nativeScanGsdTree } from "./native-parser-bridge.js";
|
|
14
15
|
import { DIR_CACHE_MAX } from "./constants.js";
|
|
15
16
|
// ─── Directory Listing Cache ──────────────────────────────────────────────────
|
|
@@ -263,15 +264,81 @@ const LEGACY_GSD_ROOT_FILES = {
|
|
|
263
264
|
OVERRIDES: "overrides.md",
|
|
264
265
|
KNOWLEDGE: "knowledge.md",
|
|
265
266
|
};
|
|
267
|
+
// ─── GSD Root Discovery ───────────────────────────────────────────────────────
|
|
268
|
+
const gsdRootCache = new Map();
|
|
269
|
+
/** Exported for tests only — do not call in production code. */
|
|
270
|
+
export function _clearGsdRootCache() {
|
|
271
|
+
gsdRootCache.clear();
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Resolve the `.gsd` directory for a given project base path.
|
|
275
|
+
*
|
|
276
|
+
* Probe order:
|
|
277
|
+
* 1. basePath/.gsd — fast path (common case)
|
|
278
|
+
* 2. git rev-parse root — handles cwd-is-a-subdirectory
|
|
279
|
+
* 3. Walk up from basePath — handles moved .gsd in an ancestor (bounded by git root)
|
|
280
|
+
* 4. basePath/.gsd — creation fallback (init scenario)
|
|
281
|
+
*
|
|
282
|
+
* Result is cached per basePath for the process lifetime.
|
|
283
|
+
*/
|
|
266
284
|
export function gsdRoot(basePath) {
|
|
267
|
-
const
|
|
285
|
+
const cached = gsdRootCache.get(basePath);
|
|
286
|
+
if (cached)
|
|
287
|
+
return cached;
|
|
288
|
+
const result = probeGsdRoot(basePath);
|
|
289
|
+
gsdRootCache.set(basePath, result);
|
|
290
|
+
return result;
|
|
291
|
+
}
|
|
292
|
+
function probeGsdRoot(rawBasePath) {
|
|
293
|
+
// 1. Fast path — check the input path directly
|
|
294
|
+
const local = join(rawBasePath, ".gsd");
|
|
295
|
+
if (existsSync(local))
|
|
296
|
+
return local;
|
|
297
|
+
// Resolve symlinks so path comparisons work correctly across platforms
|
|
298
|
+
// (e.g. macOS /var → /private/var). Use rawBasePath as fallback if not resolvable.
|
|
299
|
+
let basePath;
|
|
268
300
|
try {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
301
|
+
basePath = realpathSync.native(rawBasePath);
|
|
302
|
+
}
|
|
303
|
+
catch {
|
|
304
|
+
basePath = rawBasePath;
|
|
305
|
+
}
|
|
306
|
+
// 2. Git root anchor — used as both probe target and walk-up boundary
|
|
307
|
+
// Only walk if we're inside a git project — prevents escaping into
|
|
308
|
+
// unrelated filesystem territory when running outside any repo.
|
|
309
|
+
let gitRoot = null;
|
|
310
|
+
try {
|
|
311
|
+
const out = spawnSync("git", ["rev-parse", "--show-toplevel"], {
|
|
312
|
+
cwd: basePath,
|
|
313
|
+
encoding: "utf-8",
|
|
314
|
+
});
|
|
315
|
+
if (out.status === 0) {
|
|
316
|
+
const r = out.stdout.trim();
|
|
317
|
+
if (r)
|
|
318
|
+
gitRoot = normalize(r);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
catch { /* git not available */ }
|
|
322
|
+
if (gitRoot) {
|
|
323
|
+
const candidate = join(gitRoot, ".gsd");
|
|
324
|
+
if (existsSync(candidate))
|
|
325
|
+
return candidate;
|
|
326
|
+
}
|
|
327
|
+
// 3. Walk up from basePath to the git root (only if we are in a subdirectory)
|
|
328
|
+
if (gitRoot && basePath !== gitRoot) {
|
|
329
|
+
let cur = dirname(basePath);
|
|
330
|
+
while (cur !== basePath) {
|
|
331
|
+
const candidate = join(cur, ".gsd");
|
|
332
|
+
if (existsSync(candidate))
|
|
333
|
+
return candidate;
|
|
334
|
+
if (cur === gitRoot)
|
|
335
|
+
break;
|
|
336
|
+
basePath = cur;
|
|
337
|
+
cur = dirname(cur);
|
|
338
|
+
}
|
|
272
339
|
}
|
|
273
|
-
|
|
274
|
-
return local;
|
|
340
|
+
// 4. Fallback for init/creation
|
|
341
|
+
return local;
|
|
275
342
|
}
|
|
276
343
|
export function milestonesDir(basePath) {
|
|
277
344
|
return join(gsdRoot(basePath), "milestones");
|
|
@@ -111,10 +111,13 @@ function dequeueNextHook(basePath) {
|
|
|
111
111
|
};
|
|
112
112
|
// Build the prompt with variable substitution
|
|
113
113
|
const [mid, sid, tid] = triggerUnitId.split("/");
|
|
114
|
-
|
|
114
|
+
let prompt = config.prompt
|
|
115
115
|
.replace(/\{milestoneId\}/g, mid ?? "")
|
|
116
116
|
.replace(/\{sliceId\}/g, sid ?? "")
|
|
117
117
|
.replace(/\{taskId\}/g, tid ?? "");
|
|
118
|
+
// Inject browser safety instruction for hooks that may use browser tools (#1345).
|
|
119
|
+
// Vite HMR and other persistent connections prevent networkidle from resolving.
|
|
120
|
+
prompt += "\n\n**Browser tool safety:** Do NOT use `browser_wait_for` with `condition: \"network_idle\"` — it hangs indefinitely when dev servers keep persistent connections (Vite HMR, WebSocket). Use `selector_visible`, `text_visible`, or `delay` instead.";
|
|
118
121
|
return {
|
|
119
122
|
hookName: config.name,
|
|
120
123
|
prompt,
|
|
@@ -14,9 +14,24 @@ export function validatePreferences(preferences) {
|
|
|
14
14
|
const warnings = [];
|
|
15
15
|
const validated = {};
|
|
16
16
|
// ─── Unknown Key Detection ──────────────────────────────────────────
|
|
17
|
+
// Common key migration hints for pi-level settings that don't map to GSD prefs
|
|
18
|
+
const KEY_MIGRATION_HINTS = {
|
|
19
|
+
taskIsolation: 'use "git.isolation" instead (values: worktree, branch, none)',
|
|
20
|
+
task_isolation: 'use "git.isolation" instead (values: worktree, branch, none)',
|
|
21
|
+
isolation: 'use "git.isolation" instead (values: worktree, branch, none)',
|
|
22
|
+
manage_gitignore: 'use "git.manage_gitignore" instead',
|
|
23
|
+
auto_push: 'use "git.auto_push" instead',
|
|
24
|
+
main_branch: 'use "git.main_branch" instead',
|
|
25
|
+
};
|
|
17
26
|
for (const key of Object.keys(preferences)) {
|
|
18
27
|
if (!KNOWN_PREFERENCE_KEYS.has(key)) {
|
|
19
|
-
|
|
28
|
+
const hint = KEY_MIGRATION_HINTS[key];
|
|
29
|
+
if (hint) {
|
|
30
|
+
warnings.push(`unknown preference key "${key}" — ${hint}`);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
warnings.push(`unknown preference key "${key}" — ignored`);
|
|
34
|
+
}
|
|
20
35
|
}
|
|
21
36
|
}
|
|
22
37
|
if (preferences.version !== undefined) {
|
|
@@ -15,6 +15,7 @@ import { join } from "node:path";
|
|
|
15
15
|
import { gsdRoot } from "./paths.js";
|
|
16
16
|
import { parse as parseYaml } from "yaml";
|
|
17
17
|
import { normalizeStringArray } from "../shared/mod.js";
|
|
18
|
+
import { resolveProfileDefaults as _resolveProfileDefaults } from "./preferences-models.js";
|
|
18
19
|
import { MODE_DEFAULTS, } from "./preferences-types.js";
|
|
19
20
|
import { validatePreferences } from "./preferences-validation.js";
|
|
20
21
|
import { formatSkillRef } from "./preferences-skills.js";
|
|
@@ -79,6 +80,17 @@ export function loadEffectiveGSDPreferences() {
|
|
|
79
80
|
...(mergedWarnings.length > 0 ? { warnings: mergedWarnings } : {}),
|
|
80
81
|
};
|
|
81
82
|
}
|
|
83
|
+
// Apply token-profile defaults as the lowest-priority layer so that
|
|
84
|
+
// `token_profile: budget` sets models and phase-skips automatically.
|
|
85
|
+
// Explicit user preferences always override profile defaults.
|
|
86
|
+
const profile = result.preferences.token_profile;
|
|
87
|
+
if (profile) {
|
|
88
|
+
const profileDefaults = _resolveProfileDefaults(profile);
|
|
89
|
+
result = {
|
|
90
|
+
...result,
|
|
91
|
+
preferences: mergePreferences(profileDefaults, result.preferences),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
82
94
|
// Apply mode defaults as the lowest-priority layer
|
|
83
95
|
if (result.preferences.mode) {
|
|
84
96
|
result = {
|
|
@@ -28,6 +28,8 @@ Then:
|
|
|
28
28
|
|
|
29
29
|
**Important:** Do NOT skip the success criteria and definition of done verification (steps 3-4). The milestone summary must reflect actual verified outcomes, not assumed success. If any criterion was not met, document it clearly in the summary and do not mark the milestone as passing verification.
|
|
30
30
|
|
|
31
|
+
**File system safety:** When scanning milestone directories for evidence, use `ls` or `find` to list directory contents first — never pass a directory path (e.g. `tasks/`, `slices/`) directly to the `read` tool. The `read` tool only accepts file paths, not directories.
|
|
32
|
+
|
|
31
33
|
**You MUST write `{{milestoneSummaryPath}}` AND update PROJECT.md before finishing.**
|
|
32
34
|
|
|
33
35
|
When done, say: "Milestone {{milestoneId}} complete."
|
|
@@ -67,4 +67,6 @@ If verdict is `needs-remediation`:
|
|
|
67
67
|
|
|
68
68
|
**You MUST write `{{validationPath}}` before finishing.**
|
|
69
69
|
|
|
70
|
+
**File system safety:** When scanning milestone directories for evidence, use `ls` or `find` to list directory contents first — never pass a directory path (e.g. `tasks/`, `slices/`) directly to the `read` tool. The `read` tool only accepts file paths, not directories.
|
|
71
|
+
|
|
70
72
|
When done, say: "Milestone {{milestoneId}} validation complete — verdict: <verdict>."
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Roadmap Mutations — shared utilities for modifying roadmap checkbox state.
|
|
3
|
+
*
|
|
4
|
+
* Extracts the duplicated "flip slice checkbox" pattern that existed in
|
|
5
|
+
* doctor.ts, mechanical-completion.ts, and auto-recovery.ts.
|
|
6
|
+
*/
|
|
7
|
+
import { readFileSync } from "node:fs";
|
|
8
|
+
import { atomicWriteSync } from "./atomic-write.js";
|
|
9
|
+
import { resolveMilestoneFile } from "./paths.js";
|
|
10
|
+
import { clearParseCache } from "./files.js";
|
|
11
|
+
/**
|
|
12
|
+
* Mark a slice as done ([x]) in the milestone roadmap.
|
|
13
|
+
* Idempotent — no-op if already checked or if the slice isn't found.
|
|
14
|
+
*
|
|
15
|
+
* @returns true if the roadmap was modified, false if no change was needed
|
|
16
|
+
*/
|
|
17
|
+
export function markSliceDoneInRoadmap(basePath, mid, sid) {
|
|
18
|
+
const roadmapFile = resolveMilestoneFile(basePath, mid, "ROADMAP");
|
|
19
|
+
if (!roadmapFile)
|
|
20
|
+
return false;
|
|
21
|
+
let content;
|
|
22
|
+
try {
|
|
23
|
+
content = readFileSync(roadmapFile, "utf-8");
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
const updated = content.replace(new RegExp(`^(\\s*-\\s+)\\[ \\]\\s+\\*\\*${sid}:`, "m"), `$1[x] **${sid}:`);
|
|
29
|
+
if (updated === content)
|
|
30
|
+
return false;
|
|
31
|
+
atomicWriteSync(roadmapFile, updated);
|
|
32
|
+
clearParseCache();
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Mark a task as done ([x]) in the slice plan.
|
|
37
|
+
* Idempotent — no-op if already checked or if the task isn't found.
|
|
38
|
+
*
|
|
39
|
+
* @returns true if the plan was modified, false if no change was needed
|
|
40
|
+
*/
|
|
41
|
+
export function markTaskDoneInPlan(basePath, planPath, tid) {
|
|
42
|
+
let content;
|
|
43
|
+
try {
|
|
44
|
+
content = readFileSync(planPath, "utf-8");
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
const updated = content.replace(new RegExp(`^(\\s*-\\s+)\\[ \\]\\s+\\*\\*${tid}:`, "m"), `$1[x] **${tid}:`);
|
|
50
|
+
if (updated === content)
|
|
51
|
+
return false;
|
|
52
|
+
atomicWriteSync(planPath, updated);
|
|
53
|
+
clearParseCache();
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
@@ -32,8 +32,17 @@ let _lockPid = 0;
|
|
|
32
32
|
let _lockCompromised = false;
|
|
33
33
|
/** Whether we've already registered a process.on('exit') handler. */
|
|
34
34
|
let _exitHandlerRegistered = false;
|
|
35
|
+
/** Snapshotted lock file path — captured at acquireSessionLock time to avoid
|
|
36
|
+
* gsdRoot() resolving differently in worktree vs project root contexts (#1363). */
|
|
37
|
+
let _snapshotLockPath = null;
|
|
38
|
+
/** Timestamp when the session lock was acquired — used to detect false-positive
|
|
39
|
+
* onCompromised events from event loop stalls within the stale window (#1362). */
|
|
40
|
+
let _lockAcquiredAt = 0;
|
|
35
41
|
const LOCK_FILE = "auto.lock";
|
|
36
42
|
function lockPath(basePath) {
|
|
43
|
+
// If we have a snapshotted path from acquisition, use it for consistency
|
|
44
|
+
if (_snapshotLockPath)
|
|
45
|
+
return _snapshotLockPath;
|
|
37
46
|
return join(gsdRoot(basePath), LOCK_FILE);
|
|
38
47
|
}
|
|
39
48
|
// ─── Stray Lock Cleanup ─────────────────────────────────────────────────────
|
|
@@ -175,8 +184,17 @@ export function acquireSessionLock(basePath) {
|
|
|
175
184
|
onCompromised: () => {
|
|
176
185
|
// proper-lockfile detected mtime drift (system sleep, event loop stall, etc.).
|
|
177
186
|
// Default handler throws inside setTimeout — an uncaught exception that crashes
|
|
178
|
-
// or corrupts process state.
|
|
179
|
-
//
|
|
187
|
+
// or corrupts process state.
|
|
188
|
+
//
|
|
189
|
+
// False-positive suppression (#1362): If we're still within the stale window
|
|
190
|
+
// (30 min since acquisition), the mtime mismatch is from an event loop stall
|
|
191
|
+
// during a long LLM call — not a real takeover. Log and continue.
|
|
192
|
+
const elapsed = Date.now() - _lockAcquiredAt;
|
|
193
|
+
if (elapsed < 1_800_000) {
|
|
194
|
+
process.stderr.write(`[gsd] Lock heartbeat mismatch after ${Math.round(elapsed / 1000)}s — event loop stall, continuing.\n`);
|
|
195
|
+
return; // Suppress false positive
|
|
196
|
+
}
|
|
197
|
+
// Past the stale window — this is a real compromise
|
|
180
198
|
_lockCompromised = true;
|
|
181
199
|
_releaseFunction = null;
|
|
182
200
|
},
|
|
@@ -185,6 +203,8 @@ export function acquireSessionLock(basePath) {
|
|
|
185
203
|
_lockedPath = basePath;
|
|
186
204
|
_lockPid = process.pid;
|
|
187
205
|
_lockCompromised = false;
|
|
206
|
+
_lockAcquiredAt = Date.now();
|
|
207
|
+
_snapshotLockPath = lp; // Snapshot the resolved path for consistent access (#1363)
|
|
188
208
|
// Safety net: clean up lock dir on process exit if _releaseFunction
|
|
189
209
|
// wasn't called (e.g., normal exit after clean completion) (#1245).
|
|
190
210
|
ensureExitHandler(gsdDir);
|
|
@@ -211,6 +231,14 @@ export function acquireSessionLock(basePath) {
|
|
|
211
231
|
stale: 1_800_000, // 30 minutes — match primary lock settings
|
|
212
232
|
update: 10_000,
|
|
213
233
|
onCompromised: () => {
|
|
234
|
+
// Same false-positive suppression as the primary lock (#1512).
|
|
235
|
+
// Without this, the retry path fires _lockCompromised unconditionally
|
|
236
|
+
// on benign mtime drift (laptop sleep, heavy LLM event loop stalls).
|
|
237
|
+
const elapsed = Date.now() - _lockAcquiredAt;
|
|
238
|
+
if (elapsed < 1_800_000) {
|
|
239
|
+
process.stderr.write(`[gsd] Lock heartbeat mismatch after ${Math.round(elapsed / 1000)}s — event loop stall, continuing.\n`);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
214
242
|
_lockCompromised = true;
|
|
215
243
|
_releaseFunction = null;
|
|
216
244
|
},
|
|
@@ -219,6 +247,8 @@ export function acquireSessionLock(basePath) {
|
|
|
219
247
|
_lockedPath = basePath;
|
|
220
248
|
_lockPid = process.pid;
|
|
221
249
|
_lockCompromised = false;
|
|
250
|
+
_lockAcquiredAt = Date.now();
|
|
251
|
+
_snapshotLockPath = lp; // Snapshot for retry path too (#1363)
|
|
222
252
|
// Safety net — uses centralized handler to avoid double-registration
|
|
223
253
|
ensureExitHandler(gsdDir);
|
|
224
254
|
atomicWriteSync(lp, JSON.stringify(lockData, null, 2));
|
|
@@ -293,6 +323,25 @@ export function updateSessionLock(basePath, unitType, unitId, completedUnits, se
|
|
|
293
323
|
export function validateSessionLock(basePath) {
|
|
294
324
|
// Lock was compromised by proper-lockfile (mtime drift from sleep, stall, etc.)
|
|
295
325
|
if (_lockCompromised) {
|
|
326
|
+
// Recovery gate (#1512): Before declaring the lock lost, check if the lock
|
|
327
|
+
// file still contains our PID. If it does, no other process took over — the
|
|
328
|
+
// onCompromised fired from benign mtime drift (laptop sleep, event loop stall
|
|
329
|
+
// beyond the stale window). Attempt re-acquisition instead of giving up.
|
|
330
|
+
const lp = lockPath(basePath);
|
|
331
|
+
const existing = readExistingLockData(lp);
|
|
332
|
+
if (existing && existing.pid === process.pid) {
|
|
333
|
+
// Lock file still ours — try to re-acquire the OS lock
|
|
334
|
+
try {
|
|
335
|
+
const result = acquireSessionLock(basePath);
|
|
336
|
+
if (result.acquired) {
|
|
337
|
+
process.stderr.write(`[gsd] Lock recovered after onCompromised — lock file PID matched, re-acquired.\n`);
|
|
338
|
+
return true;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
catch {
|
|
342
|
+
// Re-acquisition failed — fall through to return false
|
|
343
|
+
}
|
|
344
|
+
}
|
|
296
345
|
return false;
|
|
297
346
|
}
|
|
298
347
|
// If we have an OS-level lock, we're still the owner
|
|
@@ -348,6 +397,8 @@ export function releaseSessionLock(basePath) {
|
|
|
348
397
|
_lockedPath = null;
|
|
349
398
|
_lockPid = 0;
|
|
350
399
|
_lockCompromised = false;
|
|
400
|
+
_lockAcquiredAt = 0;
|
|
401
|
+
_snapshotLockPath = null;
|
|
351
402
|
}
|
|
352
403
|
/**
|
|
353
404
|
* Check if a session lock exists and return its data (for crash recovery).
|
|
@@ -33,11 +33,12 @@ export function isValidationTerminal(validationContent) {
|
|
|
33
33
|
const verdict = match[1].match(/verdict:\s*(\S+)/);
|
|
34
34
|
if (!verdict)
|
|
35
35
|
return false;
|
|
36
|
+
const v = verdict[1] === 'passed' ? 'pass' : verdict[1];
|
|
36
37
|
// 'pass' and 'needs-attention' are always terminal.
|
|
37
38
|
// 'needs-remediation' is treated as terminal to prevent infinite loops
|
|
38
39
|
// when no remediation slices exist in the roadmap (#832). The validation
|
|
39
40
|
// report is preserved on disk for manual review.
|
|
40
|
-
return
|
|
41
|
+
return v === 'pass' || v === 'needs-attention' || v === 'needs-remediation';
|
|
41
42
|
}
|
|
42
43
|
const CACHE_TTL_MS = 100;
|
|
43
44
|
let _stateCache = null;
|
|
@@ -113,6 +113,14 @@
|
|
|
113
113
|
- Tasks execute sequentially in order (T01, T02, T03, ...)
|
|
114
114
|
- est: is informational (e.g. 30m, 1h, 2h) and optional
|
|
115
115
|
|
|
116
|
+
Verify field rules:
|
|
117
|
+
- MUST be a mechanically executable command: `npm test`, `grep -q "pattern" file`, `test -f path`
|
|
118
|
+
- For content/document tasks: verify file existence, section count, YAML validity, or word count
|
|
119
|
+
NOT exact phrasing, specific formulas, or "zero TBD" aspirational criteria
|
|
120
|
+
- If no command can verify the output, write: "Manual review — file exists and is non-empty"
|
|
121
|
+
- BAD: "Sections 3.1 and 3.2 exist with exact formulas. Zero TBD/TODO."
|
|
122
|
+
- GOOD: `grep -c "^## " doc.md` returns >= 4 (4+ sections), `! grep -q "TBD\|TODO" doc.md`
|
|
123
|
+
|
|
116
124
|
Integration closure rule:
|
|
117
125
|
- At least one slice in any multi-boundary milestone should perform real composition/wiring, not just contract hardening
|
|
118
126
|
- For the final assembly slice, verification must exercise the real entrypoint or runtime path
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* Key invariant: `createAutoWorktree()` and `enterAutoWorktree()` call
|
|
13
13
|
* `process.chdir()` internally — this class MUST NOT double-chdir.
|
|
14
14
|
*/
|
|
15
|
+
import { existsSync, unlinkSync } from "node:fs";
|
|
16
|
+
import { join } from "node:path";
|
|
15
17
|
import { debugLog } from "./debug-logger.js";
|
|
16
18
|
// ─── WorktreeResolver ──────────────────────────────────────────────────────
|
|
17
19
|
export class WorktreeResolver {
|
|
@@ -253,6 +255,16 @@ export class WorktreeResolver {
|
|
|
253
255
|
fallback: "chdir-to-project-root",
|
|
254
256
|
});
|
|
255
257
|
ctx.notify(`Milestone merge failed: ${msg}`, "warning");
|
|
258
|
+
// Clean up stale merge state left by failed squash-merge (#1389)
|
|
259
|
+
try {
|
|
260
|
+
const gitDir = join(originalBase || this.s.basePath, ".git");
|
|
261
|
+
for (const f of ["SQUASH_MSG", "MERGE_HEAD", "MERGE_MSG"]) {
|
|
262
|
+
const p = join(gitDir, f);
|
|
263
|
+
if (existsSync(p))
|
|
264
|
+
unlinkSync(p);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
catch { /* best-effort */ }
|
|
256
268
|
// Error recovery: always restore to project root
|
|
257
269
|
if (originalBase) {
|
|
258
270
|
try {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Remote Questions — /gsd remote command
|
|
3
3
|
*/
|
|
4
4
|
import { AuthStorage } from "@gsd/pi-coding-agent";
|
|
5
|
-
import {
|
|
5
|
+
import { Editor, Key, matchesKey, truncateToWidth } from "@gsd/pi-tui";
|
|
6
6
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs";
|
|
7
7
|
import { dirname, join } from "node:path";
|
|
8
8
|
import { getGlobalGSDPreferencesPath, loadEffectiveGSDPreferences } from "../gsd/preferences.js";
|
|
9
9
|
import { getRemoteConfigStatus, isValidChannelId, resolveRemoteConfig } from "./config.js";
|
|
10
|
-
import { sanitizeError } from "../shared/
|
|
10
|
+
import { maskEditorLine, sanitizeError } from "../shared/mod.js";
|
|
11
11
|
import { getLatestPromptSummary } from "./status.js";
|
|
12
12
|
export async function handleRemote(subcommand, ctx, _pi) {
|
|
13
13
|
const trimmed = subcommand.trim();
|
|
@@ -339,26 +339,6 @@ function removeRemoteQuestionsConfig() {
|
|
|
339
339
|
const next = frontmatter ? `---\n${frontmatter}\n---${content.slice(fmMatch[0].length)}` : content.slice(fmMatch[0].length).replace(/^\n+/, "");
|
|
340
340
|
writeFileSync(prefsPath, next, "utf-8");
|
|
341
341
|
}
|
|
342
|
-
function maskEditorLine(line) {
|
|
343
|
-
let output = "";
|
|
344
|
-
let i = 0;
|
|
345
|
-
while (i < line.length) {
|
|
346
|
-
if (line.startsWith(CURSOR_MARKER, i)) {
|
|
347
|
-
output += CURSOR_MARKER;
|
|
348
|
-
i += CURSOR_MARKER.length;
|
|
349
|
-
continue;
|
|
350
|
-
}
|
|
351
|
-
const ansiMatch = /^\x1b\[[0-9;]*m/.exec(line.slice(i));
|
|
352
|
-
if (ansiMatch) {
|
|
353
|
-
output += ansiMatch[0];
|
|
354
|
-
i += ansiMatch[0].length;
|
|
355
|
-
continue;
|
|
356
|
-
}
|
|
357
|
-
output += line[i] === " " ? " " : "*";
|
|
358
|
-
i += 1;
|
|
359
|
-
}
|
|
360
|
-
return output;
|
|
361
|
-
}
|
|
362
342
|
async function promptMaskedInput(ctx, label, hint) {
|
|
363
343
|
if (!ctx.hasUI)
|
|
364
344
|
return null;
|
|
@@ -6,6 +6,6 @@ export { toPosixPath } from "./path-display.js";
|
|
|
6
6
|
export { showInterviewRound } from "./interview-ui.js";
|
|
7
7
|
export { showNextAction } from "./next-action-ui.js";
|
|
8
8
|
export { showConfirm } from "./confirm-ui.js";
|
|
9
|
-
export { sanitizeError } from "./sanitize.js";
|
|
9
|
+
export { sanitizeError, maskEditorLine } from "./sanitize.js";
|
|
10
10
|
export { formatDateShort, truncateWithEllipsis } from "./format-utils.js";
|
|
11
11
|
export { splitFrontmatter, parseFrontmatterMap } from "./frontmatter.js";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Sanitize error messages by redacting token-like strings before surfacing.
|
|
3
|
+
* Also provides maskEditorLine for masking sensitive TUI editor input.
|
|
3
4
|
*/
|
|
5
|
+
import { CURSOR_MARKER } from "@gsd/pi-tui";
|
|
4
6
|
const TOKEN_PATTERNS = [
|
|
5
7
|
/xoxb-[A-Za-z0-9\-]+/g, // Slack bot tokens
|
|
6
8
|
/xoxp-[A-Za-z0-9\-]+/g, // Slack user tokens
|
|
@@ -15,3 +17,31 @@ export function sanitizeError(msg) {
|
|
|
15
17
|
}
|
|
16
18
|
return sanitized;
|
|
17
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Replace editor visible text with masked characters while preserving
|
|
22
|
+
* ANSI cursor/sequencer codes. Keeps border/metadata lines readable.
|
|
23
|
+
*/
|
|
24
|
+
export function maskEditorLine(line) {
|
|
25
|
+
if (line.startsWith("─")) {
|
|
26
|
+
return line;
|
|
27
|
+
}
|
|
28
|
+
let output = "";
|
|
29
|
+
let i = 0;
|
|
30
|
+
while (i < line.length) {
|
|
31
|
+
if (line.startsWith(CURSOR_MARKER, i)) {
|
|
32
|
+
output += CURSOR_MARKER;
|
|
33
|
+
i += CURSOR_MARKER.length;
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const ansiMatch = /^\x1b\[[0-9;]*m/.exec(line.slice(i));
|
|
37
|
+
if (ansiMatch) {
|
|
38
|
+
output += ansiMatch[0];
|
|
39
|
+
i += ansiMatch[0].length;
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
const ch = line[i];
|
|
43
|
+
output += ch === " " ? " " : "*";
|
|
44
|
+
i += 1;
|
|
45
|
+
}
|
|
46
|
+
return output;
|
|
47
|
+
}
|
|
@@ -20,6 +20,7 @@ import { StringEnum } from "@gsd/pi-ai";
|
|
|
20
20
|
import { getMarkdownTheme } from "@gsd/pi-coding-agent";
|
|
21
21
|
import { Container, Markdown, Spacer, Text } from "@gsd/pi-tui";
|
|
22
22
|
import { Type } from "@sinclair/typebox";
|
|
23
|
+
import { formatTokenCount } from "../shared/mod.js";
|
|
23
24
|
import { discoverAgents } from "./agents.js";
|
|
24
25
|
import { createIsolation, mergeDeltaPatches, readIsolationMode, } from "./isolation.js";
|
|
25
26
|
import { registerWorker, updateWorker } from "./worker-registry.js";
|
|
@@ -58,31 +59,22 @@ async function stopLiveSubagents() {
|
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
|
-
function formatTokens(count) {
|
|
62
|
-
if (count < 1000)
|
|
63
|
-
return count.toString();
|
|
64
|
-
if (count < 10000)
|
|
65
|
-
return `${(count / 1000).toFixed(1)}k`;
|
|
66
|
-
if (count < 1000000)
|
|
67
|
-
return `${Math.round(count / 1000)}k`;
|
|
68
|
-
return `${(count / 1000000).toFixed(1)}M`;
|
|
69
|
-
}
|
|
70
62
|
function formatUsageStats(usage, model) {
|
|
71
63
|
const parts = [];
|
|
72
64
|
if (usage.turns)
|
|
73
65
|
parts.push(`${usage.turns} turn${usage.turns > 1 ? "s" : ""}`);
|
|
74
66
|
if (usage.input)
|
|
75
|
-
parts.push(`↑${
|
|
67
|
+
parts.push(`↑${formatTokenCount(usage.input)}`);
|
|
76
68
|
if (usage.output)
|
|
77
|
-
parts.push(`↓${
|
|
69
|
+
parts.push(`↓${formatTokenCount(usage.output)}`);
|
|
78
70
|
if (usage.cacheRead)
|
|
79
|
-
parts.push(`R${
|
|
71
|
+
parts.push(`R${formatTokenCount(usage.cacheRead)}`);
|
|
80
72
|
if (usage.cacheWrite)
|
|
81
|
-
parts.push(`W${
|
|
73
|
+
parts.push(`W${formatTokenCount(usage.cacheWrite)}`);
|
|
82
74
|
if (usage.cost)
|
|
83
75
|
parts.push(`$${(Number(usage.cost) || 0).toFixed(4)}`);
|
|
84
76
|
if (usage.contextTokens && usage.contextTokens > 0) {
|
|
85
|
-
parts.push(`ctx:${
|
|
77
|
+
parts.push(`ctx:${formatTokenCount(usage.contextTokens)}`);
|
|
86
78
|
}
|
|
87
79
|
if (model)
|
|
88
80
|
parts.push(model);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gsd-pi",
|
|
3
|
-
"version": "2.35.0-dev.
|
|
3
|
+
"version": "2.35.0-dev.6179610",
|
|
4
4
|
"description": "GSD — Get Shit Done coding agent",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"copy-themes": "node scripts/copy-themes.cjs",
|
|
51
51
|
"copy-export-html": "node scripts/copy-export-html.cjs",
|
|
52
52
|
"test:unit": "node --import ./src/resources/extensions/gsd/tests/resolve-ts.mjs --experimental-strip-types --test src/resources/extensions/gsd/tests/*.test.ts src/resources/extensions/gsd/tests/*.test.mjs src/tests/*.test.ts",
|
|
53
|
+
"test:marketplace": "GSD_TEST_CLONE_MARKETPLACES=1 node --import ./src/resources/extensions/gsd/tests/resolve-ts.mjs --experimental-strip-types --test src/resources/extensions/gsd/tests/claude-import-tui.test.ts src/resources/extensions/gsd/tests/plugin-importer-live.test.ts src/tests/marketplace-discovery.test.ts",
|
|
53
54
|
"test:coverage": "c8 --reporter=text --reporter=lcov --exclude='src/resources/extensions/gsd/tests/**' --exclude='src/tests/**' --exclude='scripts/**' --exclude='native/**' --exclude='node_modules/**' --check-coverage --statements=50 --lines=50 --branches=20 --functions=20 node --import ./src/resources/extensions/gsd/tests/resolve-ts.mjs --experimental-strip-types --test src/resources/extensions/gsd/tests/*.test.ts src/resources/extensions/gsd/tests/*.test.mjs src/tests/*.test.ts",
|
|
54
55
|
"test:integration": "node --import ./src/resources/extensions/gsd/tests/resolve-ts.mjs --experimental-strip-types --test src/resources/extensions/gsd/tests/*integration*.test.ts src/tests/integration/*.test.ts",
|
|
55
56
|
"test": "npm run test:unit && npm run test:integration",
|