@prestyj/cli 5.9.0 → 5.10.0
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 +1 -1
- package/assets/skills/evidence-led-ui/SKILL.md +1 -1
- package/dist/app-sidecar.js +374 -14
- package/dist/app-sidecar.js.map +1 -1
- package/dist/chat-agents/general.test.js +5 -3
- package/dist/chat-agents/general.test.js.map +1 -1
- package/dist/chat-agents/memory.d.ts.map +1 -1
- package/dist/chat-agents/memory.js +14 -5
- package/dist/chat-agents/memory.js.map +1 -1
- package/dist/chat-agents/memory.test.js +11 -1
- package/dist/chat-agents/memory.test.js.map +1 -1
- package/dist/chat-agents/shared.js +1 -1
- package/dist/chat-agents/shared.js.map +1 -1
- package/dist/chat-agents/specialists.test.js +3 -2
- package/dist/chat-agents/specialists.test.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +16 -4
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +14 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +41 -2
- package/dist/config.js.map +1 -1
- package/dist/config.test.js +61 -1
- package/dist/config.test.js.map +1 -1
- package/dist/core/agent-mcp-passthrough.test.d.ts +2 -0
- package/dist/core/agent-mcp-passthrough.test.d.ts.map +1 -0
- package/dist/core/agent-mcp-passthrough.test.js +61 -0
- package/dist/core/agent-mcp-passthrough.test.js.map +1 -0
- package/dist/core/agent-session-add-dir.test.d.ts +2 -0
- package/dist/core/agent-session-add-dir.test.d.ts.map +1 -0
- package/dist/core/agent-session-add-dir.test.js +110 -0
- package/dist/core/agent-session-add-dir.test.js.map +1 -0
- package/dist/core/agent-session-compaction.test.js +4 -7
- package/dist/core/agent-session-compaction.test.js.map +1 -1
- package/dist/core/agent-session-marker-anchors.test.d.ts +2 -0
- package/dist/core/agent-session-marker-anchors.test.d.ts.map +1 -0
- package/dist/core/agent-session-marker-anchors.test.js +147 -0
- package/dist/core/agent-session-marker-anchors.test.js.map +1 -0
- package/dist/core/agent-session-memory-tail.test.js +4 -7
- package/dist/core/agent-session-memory-tail.test.js.map +1 -1
- package/dist/core/agent-session-queue.test.js +4 -7
- package/dist/core/agent-session-queue.test.js.map +1 -1
- package/dist/core/agent-session-subagent-policy.test.js +7 -3
- package/dist/core/agent-session-subagent-policy.test.js.map +1 -1
- package/dist/core/agent-session.d.ts +42 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +93 -7
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/agent-tools-allowlist.test.js +5 -3
- package/dist/core/agent-tools-allowlist.test.js.map +1 -1
- package/dist/core/agents.d.ts +11 -0
- package/dist/core/agents.d.ts.map +1 -1
- package/dist/core/agents.js +21 -0
- package/dist/core/agents.js.map +1 -1
- package/dist/core/agents.test.d.ts +2 -0
- package/dist/core/agents.test.d.ts.map +1 -0
- package/dist/core/agents.test.js +67 -0
- package/dist/core/agents.test.js.map +1 -0
- package/dist/core/auth-providers.js +1 -1
- package/dist/core/auth-providers.js.map +1 -1
- package/dist/core/compaction/compactor.test.js +1 -1
- package/dist/core/compaction/compactor.test.js.map +1 -1
- package/dist/core/compaction/token-estimator.test.js +1 -1
- package/dist/core/compaction/token-estimator.test.js.map +1 -1
- package/dist/core/encode-cwd.d.ts +17 -0
- package/dist/core/encode-cwd.d.ts.map +1 -1
- package/dist/core/encode-cwd.js +20 -7
- package/dist/core/encode-cwd.js.map +1 -1
- package/dist/core/encode-cwd.test.js +20 -1
- package/dist/core/encode-cwd.test.js.map +1 -1
- package/dist/core/ideal-review.d.ts.map +1 -1
- package/dist/core/ideal-review.js +6 -1
- package/dist/core/ideal-review.js.map +1 -1
- package/dist/core/ideal-review.test.js +7 -2
- package/dist/core/ideal-review.test.js.map +1 -1
- package/dist/core/local-endpoint-store.d.ts +50 -0
- package/dist/core/local-endpoint-store.d.ts.map +1 -0
- package/dist/core/local-endpoint-store.js +201 -0
- package/dist/core/local-endpoint-store.js.map +1 -0
- package/dist/core/local-endpoint-store.test.d.ts +2 -0
- package/dist/core/local-endpoint-store.test.d.ts.map +1 -0
- package/dist/core/local-endpoint-store.test.js +131 -0
- package/dist/core/local-endpoint-store.test.js.map +1 -0
- package/dist/core/lsp/client.d.ts +50 -0
- package/dist/core/lsp/client.d.ts.map +1 -1
- package/dist/core/lsp/client.js +158 -13
- package/dist/core/lsp/client.js.map +1 -1
- package/dist/core/lsp/jsonrpc.d.ts +38 -1
- package/dist/core/lsp/jsonrpc.d.ts.map +1 -1
- package/dist/core/lsp/jsonrpc.js +13 -1
- package/dist/core/lsp/jsonrpc.js.map +1 -1
- package/dist/core/lsp/manager.d.ts.map +1 -1
- package/dist/core/lsp/manager.js +23 -2
- package/dist/core/lsp/manager.js.map +1 -1
- package/dist/core/lsp/manager.test.js +32 -1
- package/dist/core/lsp/manager.test.js.map +1 -1
- package/dist/core/lsp/test-support.d.ts +18 -0
- package/dist/core/lsp/test-support.d.ts.map +1 -0
- package/dist/core/lsp/test-support.js +27 -0
- package/dist/core/lsp/test-support.js.map +1 -0
- package/dist/core/lsp/uri.test.d.ts +2 -0
- package/dist/core/lsp/uri.test.d.ts.map +1 -0
- package/dist/core/lsp/uri.test.js +56 -0
- package/dist/core/lsp/uri.test.js.map +1 -0
- package/dist/core/lsp/windows.test.d.ts +2 -0
- package/dist/core/lsp/windows.test.d.ts.map +1 -0
- package/dist/core/lsp/windows.test.js +251 -0
- package/dist/core/lsp/windows.test.js.map +1 -0
- package/dist/core/mcp/resolve-stdio.d.ts +35 -0
- package/dist/core/mcp/resolve-stdio.d.ts.map +1 -1
- package/dist/core/mcp/resolve-stdio.js +80 -1
- package/dist/core/mcp/resolve-stdio.js.map +1 -1
- package/dist/core/mcp/resolve-stdio.test.js +99 -4
- package/dist/core/mcp/resolve-stdio.test.js.map +1 -1
- package/dist/core/network-guard.d.ts +47 -0
- package/dist/core/network-guard.d.ts.map +1 -0
- package/dist/core/network-guard.js +208 -0
- package/dist/core/network-guard.js.map +1 -0
- package/dist/core/network-guard.test.d.ts +2 -0
- package/dist/core/network-guard.test.d.ts.map +1 -0
- package/dist/core/network-guard.test.js +72 -0
- package/dist/core/network-guard.test.js.map +1 -0
- package/dist/core/persistent-shell.d.ts +3 -1
- package/dist/core/persistent-shell.d.ts.map +1 -1
- package/dist/core/persistent-shell.js +13 -3
- package/dist/core/persistent-shell.js.map +1 -1
- package/dist/core/process-manager-dev-server-repro.test.js +34 -12
- package/dist/core/process-manager-dev-server-repro.test.js.map +1 -1
- package/dist/core/process-manager.d.ts +1 -1
- package/dist/core/process-manager.d.ts.map +1 -1
- package/dist/core/process-manager.js +23 -13
- package/dist/core/process-manager.js.map +1 -1
- package/dist/core/project-discovery.d.ts +7 -0
- package/dist/core/project-discovery.d.ts.map +1 -1
- package/dist/core/project-discovery.js +40 -9
- package/dist/core/project-discovery.js.map +1 -1
- package/dist/core/project-discovery.test.js +102 -1
- package/dist/core/project-discovery.test.js.map +1 -1
- package/dist/core/prompt-commands.d.ts.map +1 -1
- package/dist/core/prompt-commands.js +89 -156
- package/dist/core/prompt-commands.js.map +1 -1
- package/dist/core/prompt-commands.test.js +4 -10
- package/dist/core/prompt-commands.test.js.map +1 -1
- package/dist/core/radio.test.js +4 -1
- package/dist/core/radio.test.js.map +1 -1
- package/dist/core/runtime-mode.d.ts +2 -0
- package/dist/core/runtime-mode.d.ts.map +1 -1
- package/dist/core/runtime-mode.js +4 -0
- package/dist/core/runtime-mode.js.map +1 -1
- package/dist/core/session-export.d.ts +98 -0
- package/dist/core/session-export.d.ts.map +1 -0
- package/dist/core/session-export.js +356 -0
- package/dist/core/session-export.js.map +1 -0
- package/dist/core/session-export.test.d.ts +2 -0
- package/dist/core/session-export.test.d.ts.map +1 -0
- package/dist/core/session-export.test.js +353 -0
- package/dist/core/session-export.test.js.map +1 -0
- package/dist/core/session-storage.d.ts.map +1 -1
- package/dist/core/session-storage.js +25 -1
- package/dist/core/session-storage.js.map +1 -1
- package/dist/core/session-storage.test.js +4 -1
- package/dist/core/session-storage.test.js.map +1 -1
- package/dist/core/settings-manager.d.ts +5 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +10 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/setup-history.d.ts +0 -6
- package/dist/core/setup-history.d.ts.map +1 -1
- package/dist/core/setup-history.js +2 -18
- package/dist/core/setup-history.js.map +1 -1
- package/dist/core/setup-history.test.js +11 -26
- package/dist/core/setup-history.test.js.map +1 -1
- package/dist/core/skills-routing.test.js +3 -1
- package/dist/core/skills-routing.test.js.map +1 -1
- package/dist/core/slash-commands.d.ts +18 -0
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +42 -10
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/slash-commands.test.d.ts +2 -0
- package/dist/core/slash-commands.test.d.ts.map +1 -0
- package/dist/core/slash-commands.test.js +59 -0
- package/dist/core/slash-commands.test.js.map +1 -0
- package/dist/core/speed-benchmark.test.js +9 -3
- package/dist/core/speed-benchmark.test.js.map +1 -1
- package/dist/core/subagent-manager.d.ts +1 -1
- package/dist/core/subagent-manager.d.ts.map +1 -1
- package/dist/core/subagent-manager.js +9 -0
- package/dist/core/subagent-manager.js.map +1 -1
- package/dist/core/subagent-store.test.js +14 -2
- package/dist/core/subagent-store.test.js.map +1 -1
- package/dist/core/workspace-guard.d.ts +2 -0
- package/dist/core/workspace-guard.d.ts.map +1 -1
- package/dist/core/workspace-guard.js +4 -1
- package/dist/core/workspace-guard.js.map +1 -1
- package/dist/core/workspace-guard.test.js +21 -0
- package/dist/core/workspace-guard.test.js.map +1 -1
- package/dist/modes/json-mode.d.ts +7 -0
- package/dist/modes/json-mode.d.ts.map +1 -1
- package/dist/modes/json-mode.js +1 -0
- package/dist/modes/json-mode.js.map +1 -1
- package/dist/modes/subagent-worker-mode.d.ts +2 -0
- package/dist/modes/subagent-worker-mode.d.ts.map +1 -1
- package/dist/modes/subagent-worker-mode.js.map +1 -1
- package/dist/system-prompt.d.ts +11 -1
- package/dist/system-prompt.d.ts.map +1 -1
- package/dist/system-prompt.js +39 -18
- package/dist/system-prompt.js.map +1 -1
- package/dist/system-prompt.test.js +33 -17
- package/dist/system-prompt.test.js.map +1 -1
- package/dist/test-support/fake-home.d.ts +20 -0
- package/dist/test-support/fake-home.d.ts.map +1 -0
- package/dist/test-support/fake-home.js +37 -0
- package/dist/test-support/fake-home.js.map +1 -0
- package/dist/tools/bash.d.ts +2 -1
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/bash.js +22 -5
- package/dist/tools/bash.js.map +1 -1
- package/dist/tools/bash.test.js +122 -7
- package/dist/tools/bash.test.js.map +1 -1
- package/dist/tools/edit-robustness.test.js +3 -1
- package/dist/tools/edit-robustness.test.js.map +1 -1
- package/dist/tools/find.d.ts.map +1 -1
- package/dist/tools/find.js +4 -1
- package/dist/tools/find.js.map +1 -1
- package/dist/tools/grep.d.ts +3 -1
- package/dist/tools/grep.d.ts.map +1 -1
- package/dist/tools/grep.js +135 -11
- package/dist/tools/grep.js.map +1 -1
- package/dist/tools/grep.test.js +53 -0
- package/dist/tools/grep.test.js.map +1 -1
- package/dist/tools/index.d.ts +6 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -3
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/overflow.test.js +4 -7
- package/dist/tools/overflow.test.js.map +1 -1
- package/dist/tools/path-utils.d.ts +15 -0
- package/dist/tools/path-utils.d.ts.map +1 -1
- package/dist/tools/path-utils.js +17 -0
- package/dist/tools/path-utils.js.map +1 -1
- package/dist/tools/path-utils.test.js +7 -2
- package/dist/tools/path-utils.test.js.map +1 -1
- package/dist/tools/prompt-hints.js +1 -1
- package/dist/tools/prompt-hints.js.map +1 -1
- package/dist/tools/search-code.d.ts.map +1 -1
- package/dist/tools/search-code.js +6 -4
- package/dist/tools/search-code.js.map +1 -1
- package/dist/tools/subagent.d.ts +1 -1
- package/dist/tools/subagent.d.ts.map +1 -1
- package/dist/tools/subagent.js +8 -0
- package/dist/tools/subagent.js.map +1 -1
- package/dist/tools/web-fetch.d.ts +2 -1
- package/dist/tools/web-fetch.d.ts.map +1 -1
- package/dist/tools/web-fetch.js +17 -6
- package/dist/tools/web-fetch.js.map +1 -1
- package/dist/tools/web-fetch.test.js +34 -0
- package/dist/tools/web-fetch.test.js.map +1 -1
- package/dist/tools/web-search.d.ts +2 -1
- package/dist/tools/web-search.d.ts.map +1 -1
- package/dist/tools/web-search.js +21 -5
- package/dist/tools/web-search.js.map +1 -1
- package/dist/ui/App.d.ts.map +1 -1
- package/dist/ui/App.js +5 -80
- package/dist/ui/App.js.map +1 -1
- package/dist/ui/app-items.d.ts +1 -12
- package/dist/ui/app-items.d.ts.map +1 -1
- package/dist/ui/app-items.js.map +1 -1
- package/dist/ui/components/Footer.d.ts +1 -1
- package/dist/ui/components/Footer.js +2 -2
- package/dist/ui/components/Footer.js.map +1 -1
- package/dist/ui/hooks/usePixelFixFlow.d.ts +1 -2
- package/dist/ui/hooks/usePixelFixFlow.d.ts.map +1 -1
- package/dist/ui/hooks/usePixelFixFlow.js +2 -5
- package/dist/ui/hooks/usePixelFixFlow.js.map +1 -1
- package/dist/ui/login.js +1 -1
- package/dist/ui/login.js.map +1 -1
- package/dist/ui/terminal-history-status-renderers.d.ts +1 -2
- package/dist/ui/terminal-history-status-renderers.d.ts.map +1 -1
- package/dist/ui/terminal-history-status-renderers.js +2 -15
- package/dist/ui/terminal-history-status-renderers.js.map +1 -1
- package/dist/ui/terminal-history.d.ts.map +1 -1
- package/dist/ui/terminal-history.js +2 -4
- package/dist/ui/terminal-history.js.map +1 -1
- package/dist/ui/thinking-level-cycle.test.js +8 -8
- package/dist/ui/thinking-level-cycle.test.js.map +1 -1
- package/dist/ui/transcript/MiscRows.d.ts +1 -4
- package/dist/ui/transcript/MiscRows.d.ts.map +1 -1
- package/dist/ui/transcript/MiscRows.js +2 -7
- package/dist/ui/transcript/MiscRows.js.map +1 -1
- package/dist/ui/transcript/TranscriptRenderer.d.ts.map +1 -1
- package/dist/ui/transcript/TranscriptRenderer.js +1 -3
- package/dist/ui/transcript/TranscriptRenderer.js.map +1 -1
- package/dist/ui/transcript/presentation.d.ts +1 -9
- package/dist/ui/transcript/presentation.d.ts.map +1 -1
- package/dist/ui/transcript/presentation.js +0 -9
- package/dist/ui/transcript/presentation.js.map +1 -1
- package/dist/ui/transcript/spacing.d.ts +2 -2
- package/dist/ui/transcript/spacing.d.ts.map +1 -1
- package/dist/ui/transcript/spacing.js +0 -1
- package/dist/ui/transcript/spacing.js.map +1 -1
- package/dist/ui/transcript/spacing.test.js +1 -3
- package/dist/ui/transcript/spacing.test.js.map +1 -1
- package/dist/ui/tui-history-parity.test.js +2 -9
- package/dist/ui/tui-history-parity.test.js.map +1 -1
- package/dist/utils/github.d.ts +20 -0
- package/dist/utils/github.d.ts.map +1 -0
- package/dist/utils/github.js +65 -0
- package/dist/utils/github.js.map +1 -0
- package/dist/utils/github.test.d.ts +2 -0
- package/dist/utils/github.test.d.ts.map +1 -0
- package/dist/utils/github.test.js +23 -0
- package/dist/utils/github.test.js.map +1 -0
- package/dist/utils/process.d.ts +26 -3
- package/dist/utils/process.d.ts.map +1 -1
- package/dist/utils/process.js +68 -10
- package/dist/utils/process.js.map +1 -1
- package/dist/utils/process.test.d.ts +2 -0
- package/dist/utils/process.test.d.ts.map +1 -0
- package/dist/utils/process.test.js +42 -0
- package/dist/utils/process.test.js.map +1 -0
- package/package.json +5 -5
|
@@ -3,7 +3,8 @@ import os from "node:os";
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
|
5
5
|
import { encodeCwd } from "./encode-cwd.js";
|
|
6
|
-
import { discoverProjects, listRecentSessions } from "./project-discovery.js";
|
|
6
|
+
import { discoverProjects, isAbsoluteCwd, listRecentSessions } from "./project-discovery.js";
|
|
7
|
+
import { SessionManager } from "./session-manager.js";
|
|
7
8
|
import { archiveColdSession, archiveSessionPath } from "./session-storage.js";
|
|
8
9
|
// Holder the hoisted mock reads at call time (vi.mock is hoisted above imports,
|
|
9
10
|
// so it can't close over a value assigned later without this indirection).
|
|
@@ -269,6 +270,23 @@ describe("discoverProjects (ezcoder store)", () => {
|
|
|
269
270
|
expect(sessions).toHaveLength(1);
|
|
270
271
|
expect(sessions[0]?.preview).toBe("Replace title generation with project context");
|
|
271
272
|
});
|
|
273
|
+
// Windows regression: the cwd extractors used to accept only POSIX absolute
|
|
274
|
+
// paths (`startsWith("/")`), so every `C:\…` header was rejected, discovery
|
|
275
|
+
// fell through to the lossy directory-name decode, and the project vanished
|
|
276
|
+
// from the picker. Runs on every platform — the header guard is under test.
|
|
277
|
+
it("accepts a Windows-style absolute cwd header", async () => {
|
|
278
|
+
const projectPath = path.join(tmp, "projects", "winapp");
|
|
279
|
+
await fs.mkdir(projectPath, { recursive: true });
|
|
280
|
+
await writeSession(path.join(state.sessionsDir, "C_Users_dev_winapp"), projectPath);
|
|
281
|
+
// The guard itself must accept every absolute form we can be handed.
|
|
282
|
+
expect(isAbsoluteCwd("C:\\Users\\dev\\winapp")).toBe(true);
|
|
283
|
+
expect(isAbsoluteCwd("c:/Users/dev/winapp")).toBe(true);
|
|
284
|
+
expect(isAbsoluteCwd("\\\\server\\share\\winapp")).toBe(true);
|
|
285
|
+
expect(isAbsoluteCwd("/Users/dev/winapp")).toBe(true);
|
|
286
|
+
expect(isAbsoluteCwd("relative/winapp")).toBe(false);
|
|
287
|
+
const projects = await discoverProjects();
|
|
288
|
+
expect(projects.find((p) => p.path === projectPath)).toBeDefined();
|
|
289
|
+
});
|
|
272
290
|
// The best-effort decode only round-trips for underscore-free absolute paths
|
|
273
291
|
// (that's the whole point of the header fix). macOS's own os.tmpdir() contains
|
|
274
292
|
// a literal underscore, so this test roots its project under posix /tmp to get
|
|
@@ -291,4 +309,87 @@ describe("discoverProjects (ezcoder store)", () => {
|
|
|
291
309
|
}
|
|
292
310
|
});
|
|
293
311
|
});
|
|
312
|
+
/**
|
|
313
|
+
* REAL Windows round-trip — runs only on an actual Windows host (the CI
|
|
314
|
+
* `windows-latest` matrix leg), skipped everywhere else.
|
|
315
|
+
*
|
|
316
|
+
* Every other test in this file fakes Windows by feeding in `C:\…` strings on a
|
|
317
|
+
* POSIX host, which cannot catch the class of bug that actually bit users: the
|
|
318
|
+
* cwd the OS hands us, the folder name `encodeCwd` derives from it, and the
|
|
319
|
+
* path discovery reconstructs must agree on a REAL filesystem with real drive
|
|
320
|
+
* letters, real backslashes, and case-insensitive lookups. This drives the
|
|
321
|
+
* genuine writer (`SessionManager.create`) rather than hand-written JSON, so
|
|
322
|
+
* the write side and the read side are proven against each other.
|
|
323
|
+
*/
|
|
324
|
+
describe.skipIf(process.platform !== "win32")("real Windows session round-trip", () => {
|
|
325
|
+
let tmp;
|
|
326
|
+
beforeEach(async () => {
|
|
327
|
+
tmp = await fs.mkdtemp(path.join(os.tmpdir(), "gg-win-rt-"));
|
|
328
|
+
state.sessionsDir = path.join(tmp, ".ezcoder", "sessions");
|
|
329
|
+
await fs.mkdir(state.sessionsDir, { recursive: true });
|
|
330
|
+
vi.spyOn(os, "homedir").mockReturnValue(path.join(tmp, "home"));
|
|
331
|
+
});
|
|
332
|
+
afterEach(async () => {
|
|
333
|
+
vi.restoreAllMocks();
|
|
334
|
+
await fs.rm(tmp, { recursive: true, force: true });
|
|
335
|
+
});
|
|
336
|
+
it("a session written by SessionManager is discoverable at its real C:\\ path", async () => {
|
|
337
|
+
const projectPath = path.join(tmp, "projects", "win-app");
|
|
338
|
+
await fs.mkdir(projectPath, { recursive: true });
|
|
339
|
+
// Sanity-check the premise: on Windows this really is a drive-letter path.
|
|
340
|
+
expect(projectPath).toMatch(/^[A-Za-z]:\\/);
|
|
341
|
+
const manager = new SessionManager(state.sessionsDir);
|
|
342
|
+
const created = await manager.create(projectPath, "anthropic", "claude-sonnet-5", {
|
|
343
|
+
preview: "windows round trip",
|
|
344
|
+
});
|
|
345
|
+
// listRecentSessions deliberately skips header-only sessions, so a real
|
|
346
|
+
// session needs at least one message to be resumable from the picker.
|
|
347
|
+
await manager.appendEntry(created.path, {
|
|
348
|
+
type: "message",
|
|
349
|
+
id: "33333333-3333-3333-3333-333333333333",
|
|
350
|
+
parentId: null,
|
|
351
|
+
timestamp: new Date().toISOString(),
|
|
352
|
+
message: { role: "user", content: "hi" },
|
|
353
|
+
});
|
|
354
|
+
// The real writer must have produced a folder name with no illegal
|
|
355
|
+
// characters — a stray `:` or `\` here is an ENOENT at session-create time.
|
|
356
|
+
expect(path.dirname(created.path)).toBe(path.join(state.sessionsDir, encodeCwd(projectPath)));
|
|
357
|
+
expect(path.basename(path.dirname(created.path))).not.toMatch(/[<>:"|?*\\/]/);
|
|
358
|
+
const projects = await discoverProjects();
|
|
359
|
+
const found = projects.find((p) => p.path === projectPath);
|
|
360
|
+
expect(found).toBeDefined();
|
|
361
|
+
expect(found?.name).toBe("win-app");
|
|
362
|
+
expect(found?.sources).toContain("ezcoder");
|
|
363
|
+
// …and the same path resolves back to the session for the picker's
|
|
364
|
+
// "recent sessions" list.
|
|
365
|
+
const recent = await listRecentSessions(projectPath, 5, state.sessionsDir);
|
|
366
|
+
expect(recent.map((s) => s.id)).toContain(created.id);
|
|
367
|
+
});
|
|
368
|
+
it("survives a path with spaces and a literal underscore", async () => {
|
|
369
|
+
// `C:\Users\<name>\…` routinely contains spaces; the underscore is the
|
|
370
|
+
// separator `encodeCwd` uses, so a literal one is the lossy-decode trap.
|
|
371
|
+
const projectPath = path.join(tmp, "My Projects", "gg_app");
|
|
372
|
+
await fs.mkdir(projectPath, { recursive: true });
|
|
373
|
+
const manager = new SessionManager(state.sessionsDir);
|
|
374
|
+
await manager.create(projectPath, "anthropic", "claude-sonnet-5");
|
|
375
|
+
const projects = await discoverProjects();
|
|
376
|
+
expect(projects.find((p) => p.path === projectPath)?.name).toBe("gg_app");
|
|
377
|
+
});
|
|
378
|
+
it("normalizes an extended-length cwd so it isn't a duplicate project", async () => {
|
|
379
|
+
// Rust's canonicalize() ALWAYS produces `\\?\C:\…`, so that's what shipped
|
|
380
|
+
// builds recorded in session headers. encodeCwd normalizes the prefix away,
|
|
381
|
+
// so both forms already share ONE store directory — but the header cwd is
|
|
382
|
+
// read back verbatim, so without matching normalization on the read side
|
|
383
|
+
// the same project surfaced twice: `C:\proj` AND `\\?\C:\proj`.
|
|
384
|
+
const projectPath = path.join(tmp, "projects", "extended");
|
|
385
|
+
await fs.mkdir(projectPath, { recursive: true });
|
|
386
|
+
const manager = new SessionManager(state.sessionsDir);
|
|
387
|
+
await manager.create(`\\\\?\\${projectPath}`, "anthropic", "claude-sonnet-5");
|
|
388
|
+
await manager.create(projectPath, "anthropic", "claude-sonnet-5");
|
|
389
|
+
const projects = await discoverProjects();
|
|
390
|
+
expect(projects.filter((p) => p.path === projectPath)).toHaveLength(1);
|
|
391
|
+
// A prefixed path must never reach the picker.
|
|
392
|
+
expect(projects.every((p) => !p.path.startsWith("\\\\?\\"))).toBe(true);
|
|
393
|
+
});
|
|
394
|
+
});
|
|
294
395
|
//# sourceMappingURL=project-discovery.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-discovery.test.js","sourceRoot":"","sources":["../../src/core/project-discovery.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAGzE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE9E,gFA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
|
1
|
-
{"version":3,"file":"prompt-commands.d.ts","sourceRoot":"","sources":["../../src/core/prompt-commands.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"prompt-commands.d.ts","sourceRoot":"","sources":["../../src/core/prompt-commands.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AA0BD,eAAO,MAAM,eAAe,EAAE,aAAa,EAy8B1C,CAAC;AAEF,gDAAgD;AAChD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAExE"}
|
|
@@ -2,20 +2,24 @@
|
|
|
2
2
|
* Prompt-template commands — slash commands that inject detailed prompts
|
|
3
3
|
* into the agent loop. Each command maps to a full prompt the agent executes.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* `GG_APP_PORT` set, even to "0" — plain `ezcoder` CLI never sets it). Used
|
|
8
|
-
* to phrase user-facing notices (restart / task-list pointers) in terms of
|
|
9
|
-
* the desktop app's UI instead of CLI keybinds, since most users are on the
|
|
10
|
-
* app now and it has no terminal keybinds at all.
|
|
11
|
-
*/
|
|
12
|
-
const IS_GG_APP = process.env.GG_APP_PORT !== undefined;
|
|
5
|
+
import { isGgApp } from "./runtime-mode.js";
|
|
6
|
+
const IS_GG_APP = isGgApp();
|
|
13
7
|
const TASKS_ADDED_NOTICE = IS_GG_APP
|
|
14
8
|
? 'Tasks added. Click the "Tasks" button to open the task list and run them.'
|
|
15
9
|
: "Tasks added. Press Ctrl+T to open the task list and run them.";
|
|
10
|
+
// The context file is whichever name won CONTEXT_FILES priority for this repo
|
|
11
|
+
// (AGENTS.override.md > AGENTS.md > CLAUDE.md > …), so the notice stays
|
|
12
|
+
// filename-agnostic — /init picks the winner at run time.
|
|
16
13
|
const CLAUDE_MD_RESTART_NOTICE = IS_GG_APP
|
|
17
|
-
? '> ⚠️
|
|
18
|
-
: "> ⚠️
|
|
14
|
+
? '> ⚠️ The project context file was created/updated. EZ Coder loads it fresh per session, so start a **New Session** (click "+ New") before continuing. Without a new session, I won\'t see the new context.'
|
|
15
|
+
: "> ⚠️ The project context file was created/updated. ezcoder loads it at startup, so **exit and restart ezcoder** (`/quit` then run `ezcoder` again) before continuing. Without a restart, I won't see the new context.";
|
|
16
|
+
/** Shared sub-agent fan-out phrasing. */
|
|
17
|
+
const spawnParallel = (count) => `in parallel using the subagent tool (call the subagent tool ${count} times in a single response)`;
|
|
18
|
+
/**
|
|
19
|
+
* Kencode-search ships behind deferred MCP loading, so tell commands how to
|
|
20
|
+
* promote it before naming one of its tools.
|
|
21
|
+
*/
|
|
22
|
+
const KENCODE_UNLOCK_NOTE = 'If the `mcp__kencode-search__*` tools aren\'t active yet, call `tool_search` (e.g. "search public code") first to unlock them.';
|
|
19
23
|
export const PROMPT_COMMANDS = [
|
|
20
24
|
{
|
|
21
25
|
name: "goal",
|
|
@@ -47,7 +51,7 @@ Use this profile to decide which features are relevant and genuinely missing. If
|
|
|
47
51
|
|
|
48
52
|
## Phase 1: Parallel feature research
|
|
49
53
|
|
|
50
|
-
Spawn exactly 5 sub-agents
|
|
54
|
+
Spawn exactly 5 sub-agents ${spawnParallel(5)}. Give each sub-agent the project profile and a different feature-hunting lens:
|
|
51
55
|
|
|
52
56
|
**Agent 1 - Direct competitor killer features**: The standout, most-loved user-facing features in the closest peer projects/tools/products that this project lacks.
|
|
53
57
|
|
|
@@ -74,7 +78,7 @@ For every candidate from the sub-agents, validate it yourself before reporting:
|
|
|
74
78
|
1. Confirm the external source is relevant to this project and fresh enough (normally within 6 months).
|
|
75
79
|
2. Search this repo with grep/find and language-aware anchors to confirm the feature is not already present under another name.
|
|
76
80
|
3. Check routes, CLI commands, UI surfaces, package exports, config, docs, and examples before calling a feature missing.
|
|
77
|
-
4.
|
|
81
|
+
4. Use mcp__kencode-search__searchCode when a code-level look clarifies how peers actually ship the feature. Use literal imports, functions, config keys, CLI flags, route names, or package names — not conceptual phrases. ${KENCODE_UNLOCK_NOTE}
|
|
78
82
|
5. Drop anything already present, irrelevant, too vague, too stale, or that is not a real user-facing feature.
|
|
79
83
|
6. Merge duplicates and keep only the most exciting 5–10 features.
|
|
80
84
|
|
|
@@ -528,15 +532,20 @@ If the user chooses D, stop after the report.
|
|
|
528
532
|
description: "Audit exploitable weaknesses",
|
|
529
533
|
prompt: `# Bullet-Proof: Defensive Security Review
|
|
530
534
|
|
|
531
|
-
|
|
535
|
+
This is an **authorized defensive security review** of this repository, requested by its owner so weaknesses can be found and patched before they ship. This is standard defensive security work — the same review a security engineer performs before a release. The entire flow is **read-only reporting**: no code changes, no exploit development, and nothing is fixed until the user explicitly chooses at the end.
|
|
536
|
+
|
|
537
|
+
Defensive ground rules (apply to every phase and every subagent):
|
|
538
|
+
- Never produce working exploit code, weaponized payloads, or attack tooling.
|
|
539
|
+
- Describe each risk at the **data-flow level** — where untrusted data enters, what it can reach, and why that is fixable — so every finding maps directly to a patch.
|
|
540
|
+
- The deliverable is a remediation report for the maintainers, nothing else.
|
|
532
541
|
|
|
533
|
-
Goal: harden this project
|
|
542
|
+
Goal: harden this project. **Report only HIGH CONFIDENCE findings (≥0.8) with a concrete data-flow path that demonstrates exposure.** Better to miss theoretical issues than flood the report with noise.
|
|
534
543
|
|
|
535
544
|
This command is **dynamic and project-agnostic**. Recon drives everything. Do not assume the stack, the language, the deploy target, or that there is an LLM/agent layer. Read first, decide second.
|
|
536
545
|
|
|
537
546
|
## Phase 1: Recon — Understand THIS project before auditing anything
|
|
538
547
|
|
|
539
|
-
Spawn **FOUR recon subagents
|
|
548
|
+
Spawn **FOUR recon subagents** ${spawnParallel(4)}. Each has a narrow, independent slice so they can all run at once. **No vulnerabilities flagged in this phase.**
|
|
540
549
|
|
|
541
550
|
**Recon Agent A — Stack & Deployment.** Read manifests, lockfiles, CI/CD configs, Dockerfile/Helm/Terraform, deploy scripts. Produce:
|
|
542
551
|
- Primary language(s), framework(s), runtimes
|
|
@@ -550,7 +559,7 @@ Spawn **FOUR recon subagents in parallel** using the subagent tool (call the sub
|
|
|
550
559
|
|
|
551
560
|
**Recon Agent C — Sinks.** Walk dangerous-operation code. Produce a **Sinks table** with location (file:line) and sink type for: shell exec, SQL / NoSQL / LDAP / XPath queries, eval / Function / exec / pickle / yaml.load / Marshal / ObjectInputStream, file write, file include / require with dynamic path, network egress (fetch / requests / http.Get), auth decisions, secret reads, native deserializers, dynamic code load, smart-contract external calls, child_process spawns.
|
|
552
561
|
|
|
553
|
-
**Recon Agent D — Assets.** Scan for what
|
|
562
|
+
**Recon Agent D — Assets.** Scan for what this project must protect. Produce an **Assets table** with location and asset type for: credentials / tokens (config files, env files, KMS, OAuth flows, ~/.{app}/auth.json-style stores), customer/PII data stores, source code with IP value, build/CI secrets, signing keys, model API tokens, on-chain funds / wallets, session state, MCP config files, license keys.
|
|
554
563
|
|
|
555
564
|
**After all four return, the main agent synthesizes:**
|
|
556
565
|
1. Assemble the four tables (Stack/Deploy, Sources, Sinks, Assets) into the recon report
|
|
@@ -580,21 +589,23 @@ Default catalog — pick what applies, drop what doesn't, add stack-specific aud
|
|
|
580
589
|
|
|
581
590
|
## Phase 3: Parallel audits
|
|
582
591
|
|
|
583
|
-
Spawn one subagent per active audit **in a single response** (call the subagent tool N times **with \`agent: "auditor"\`**, where N is whatever Phase 2 picked — do not pad to a fixed number, do not drop audits Phase 2 selected).
|
|
584
|
-
|
|
592
|
+
Spawn one subagent per active audit **in a single response** (call the subagent tool N times **with \`agent: "auditor"\`**, where N is whatever Phase 2 picked — do not pad to a fixed number, do not drop audits Phase 2 selected). If the \`auditor\` agent is unavailable, use default subagents and open each task with: "You are performing an authorized, read-only defensive security review for the code owner; report data-flow risks so they can be patched — no exploit code."
|
|
593
|
+
|
|
594
|
+
**Subagents cannot see this prompt.** Each auditor's task text must therefore include, written out by you:
|
|
585
595
|
- Its specific vulnerability-class scope
|
|
586
|
-
- The
|
|
596
|
+
- The recon rows relevant to that scope (Sources, Sinks, Assets, Threat-model lines — condensed, not the full dump)
|
|
597
|
+
- The specific bullets from the Threat reference below that apply to its class (copy those lines into the task)
|
|
587
598
|
|
|
588
599
|
Each auditor must:
|
|
589
600
|
1. **Trace data flow** from Sources to Sinks for its class. Not pattern matching.
|
|
590
601
|
2. For every candidate, apply the **untrusted-input vs trusted-input** decision: is the input *actually reachable* by an untrusted source, or is it a settings constant / build-time string / hard-coded value?
|
|
591
|
-
3.
|
|
602
|
+
3. Describe a concrete **risk scenario** at the data-flow level — what kind of input reaches the source, how the system processes it, what exposure results. No working payloads. If you can't describe the steps, don't flag it.
|
|
592
603
|
4. Assign **confidence 0.0–1.0**. Drop anything <0.8 before returning.
|
|
593
604
|
5. Be framework-aware: ORM parameterization, auto-escape, memory-safe languages, JSX/template escaping all eliminate entire vuln classes. Don't flag what the framework already handles.
|
|
594
605
|
|
|
595
606
|
## Phase 4: False-positive filter
|
|
596
607
|
|
|
597
|
-
After auditors complete, spawn
|
|
608
|
+
After auditors complete, spawn verification subagents **in parallel with \`agent: "skeptic"\`**, batching 3–5 surviving findings per skeptic (cap at 4 skeptics total — batching keeps cost sane). The \`skeptic\` agent starts from "this is a false positive" and tries to disprove each finding — only confirmed findings survive. Pass each skeptic the full text of its findings (location, source/sink, risk scenario, claimed confidence); skeptics cannot see this prompt or the auditors' context. Drop anything returned as DROP; lower severity for DOWNGRADE.
|
|
598
609
|
|
|
599
610
|
**Hard exclusions — do NOT report these, even if real:**
|
|
600
611
|
- DOS / rate-limiting / memory exhaustion without a clear amplification primitive
|
|
@@ -639,9 +650,9 @@ Threat model: [from recon]
|
|
|
639
650
|
- Category: <slug> CWE: CWE-XXX Confidence: 0.95
|
|
640
651
|
- Exposure surface: <entry point from Sources>
|
|
641
652
|
- Source → Sink: <e.g. \`POST /api/foo body.userId\` → \`subprocess.run(..., shell=True)\`>
|
|
642
|
-
-
|
|
643
|
-
1. Untrusted input <
|
|
644
|
-
2.
|
|
653
|
+
- Risk scenario (data-flow level, no payloads):
|
|
654
|
+
1. Untrusted input of <shape/kind> reaches <source>
|
|
655
|
+
2. The system processes it as <what>
|
|
645
656
|
3. Result: <RCE / data exposure / auth bypass>
|
|
646
657
|
- Impact: <blast radius — what is exposed, how far it spreads>
|
|
647
658
|
- Fix: <concrete remediation, code-level>
|
|
@@ -668,7 +679,7 @@ If the user chooses A, B, or C, do not fix directly. Instead, add one task per s
|
|
|
668
679
|
|
|
669
680
|
## Threat reference (May 2026)
|
|
670
681
|
|
|
671
|
-
|
|
682
|
+
Defensive reference material from public incident reports and OWASP — patterns to check for, not techniques to reproduce. Copy the relevant bullets into each auditor's task (Phase 3); do not dump them into the report.
|
|
672
683
|
|
|
673
684
|
**OWASP Top 10:2025** — A01 Broken Access Control (now includes SSRF), A02 Misconfig, **A03 Supply Chain Failures (new)**, A05 Injection (now includes prompt injection), **A10 Mishandling Exceptional Conditions (new — fail-open patterns)**.
|
|
674
685
|
|
|
@@ -678,7 +689,7 @@ Cite these as needed per audit. Do not dump them into the report — use them to
|
|
|
678
689
|
|
|
679
690
|
**OWASP Top 10 for Agents 2026 (ASI01–10)** — Goal hijack, tool misuse, identity/privilege abuse, agentic supply chain, unexpected code exec, memory/context poisoning, inter-agent comms, cascading failures, human-trust exploit, rogue agents.
|
|
680
691
|
|
|
681
|
-
**Real 2024-2026 incidents —
|
|
692
|
+
**Real 2024-2026 public incidents — patterns to grep for defensively:**
|
|
682
693
|
- tj-actions/changed-files (Mar 14-15 2025, CVE-2025-30066, 23k repos) → unpinned GH Actions, \`uses: foo/bar@main\` / mutable tags, runner-memory secret dumps
|
|
683
694
|
- TanStack Mini Shai-Hulud (May 11 2026, CVE-2026-45321, CVSS 9.6 — 84 versions across 42 \`@tanstack/*\` + UiPath/Mistral/Guardrails/OpenSearch, 169+ packages total, "TeamPCP") → self-spreading npm worm, \`pull_request_target\` + cache poisoning + OIDC token extraction from \`/proc/<pid>/mem\`, persistent \`gh-token-monitor\` daemon
|
|
684
695
|
- Slopsquatting (ongoing 2025-2026, \`react-codeshift\` Jan 2026) → AI coding assistants hallucinate ~20% non-existent package names (open-source models ~21.7%, GPT-4 ~5.2%); malicious parties register the hallucinated names on npm/PyPI. **Verify every package actually existed BEFORE the agent suggested it** — check registry age, download history, author identity
|
|
@@ -714,60 +725,76 @@ Cite these as needed per audit. Do not dump them into the report — use them to
|
|
|
714
725
|
name: "init",
|
|
715
726
|
aliases: [],
|
|
716
727
|
description: "Generate or update CLAUDE.md for this project",
|
|
717
|
-
prompt: `Generate or update
|
|
728
|
+
prompt: `Generate or update the project context file with project-specific context only: what this project is, the non-obvious knowledge needed to change it safely, and the workflows that are unique to it.
|
|
718
729
|
|
|
719
|
-
|
|
730
|
+
This file is injected verbatim into the **cached prefix of every request in every future session**, alongside the system prompt. Every line costs tokens forever. A line that repeats something the agent already has is worse than absent: it dilutes the lines that matter. So the bar is not "is this true?" — it is **"would a competent agent get this wrong without being told?"**
|
|
720
731
|
|
|
721
|
-
##
|
|
732
|
+
## What is already in the agent's context — never restate any of it
|
|
722
733
|
|
|
723
|
-
|
|
724
|
-
- Read the existing file
|
|
725
|
-
- Preserve custom sections the user may have added
|
|
726
|
-
- Update only project-specific facts that are stale or missing
|
|
727
|
-
- Remove generic guidance that is already covered by the system prompt unless it is a deliberate project-specific override
|
|
734
|
+
Read this list once and apply it to every step below. These are already supplied by the system prompt, so writing them into the context file is pure duplication:
|
|
728
735
|
|
|
729
|
-
|
|
730
|
-
|
|
736
|
+
1. **Agent behavior** — Do NOT add generic agent behavior already covered by the system prompt: read before edit/write, re-read after formatters, ask before destructive actions, no fake verification, generic code-quality advice, how to use tools, or how to talk to the user.
|
|
737
|
+
2. **Language conventions** — a Language Style Packs section is auto-injected for every language detected in this repo. Do not duplicate language style packs, generic verification rules, or boilerplate quality gates such as "After editing ANY file" / "Code Quality — Zero Tolerance".
|
|
738
|
+
3. **Verify commands** — a Verification section is auto-generated from package scripts / manifests (lint, typecheck, format, test) with the correct runner already resolved from the lockfile. Only write a command down if it is NOT discoverable that way: an undocumented multi-step sequence, a required ordering, a non-obvious flag, or a command that lives outside the manifest. Never add guidance that requires running checks, builds, or the full quality suite after every edit or every file change, and never turn discovered commands into mandatory after-every-edit requirements unless local CI explicitly enforces that sequence.
|
|
739
|
+
4. **The file tree** — the agent can list and grep the repo in one call. Do NOT embed generated symbol maps, exhaustive file indexes, auto-generated directory listings, or large trees. Do not add symbol indexes or auto-generated project inventories; the context file must remain durable, agent-focused project context.
|
|
731
740
|
|
|
732
|
-
|
|
741
|
+
Include only project-specific overrides, stricter local requirements, or knowledge that cannot be derived by reading the code.
|
|
733
742
|
|
|
734
|
-
|
|
743
|
+
## Step 1: Pick the target filename
|
|
735
744
|
|
|
736
|
-
|
|
745
|
+
Context files are loaded **one per directory, first match wins**, in this priority order: \`AGENTS.override.md\` > \`AGENTS.md\` > \`CLAUDE.md\` > \`.cursorrules\` > \`CONVENTIONS.md\`.
|
|
737
746
|
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
747
|
+
List the repo root and write to **whichever of those already exists with the highest priority**. If the repo already has an \`AGENTS.md\`, update that file — creating a new CLAUDE.md next to it produces a file the agent will never load. If none exists, create \`CLAUDE.md\`. State which file you chose and why in one line.
|
|
748
|
+
|
|
749
|
+
## Step 2: Set up the regenerated block
|
|
750
|
+
|
|
751
|
+
\`/init\` is re-run over the project's lifetime, so the generated content must be **replaceable, not appendable** — otherwise each run grows the file forever.
|
|
752
|
+
|
|
753
|
+
All content you generate goes inside these exact fence markers:
|
|
754
|
+
|
|
755
|
+
\`\`\`
|
|
756
|
+
<!-- gg:init:start -->
|
|
757
|
+
…generated content…
|
|
758
|
+
<!-- gg:init:end -->
|
|
759
|
+
\`\`\`
|
|
741
760
|
|
|
742
|
-
|
|
761
|
+
- If the file exists and already has the fence: **replace everything between the markers wholesale**. Text outside the fence is user-owned — do not touch it, do not reformat it, do not move it.
|
|
762
|
+
- If the file exists without the fence: read it, decide which content is hand-written knowledge worth keeping, move that above the fence untouched, and put your generated content inside a new fence. Remove generic guidance that is already covered by the system prompt (see the list above) unless it is a deliberate project-specific override.
|
|
763
|
+
- If the file does not exist: create it with the fence.
|
|
743
764
|
|
|
744
|
-
## Step 3:
|
|
765
|
+
## Step 3: Analyze the project (sub-agents in parallel)
|
|
745
766
|
|
|
746
|
-
|
|
747
|
-
- package.json -> JavaScript/TypeScript (extract package-manager, build, lint, typecheck, test, format, and server scripts)
|
|
748
|
-
- pyproject.toml or requirements.txt -> Python
|
|
749
|
-
- go.mod -> Go
|
|
750
|
-
- Cargo.toml -> Rust
|
|
767
|
+
Derive every fact from the actual project — source code, entry points, manifests, config, and history. Treat README, docs, and code comments as unverified hints that are frequently stale: never copy claims from them, and only state things you can confirm from the code and config themselves.
|
|
751
768
|
|
|
752
|
-
|
|
769
|
+
Spawn 3 sub-agents ${spawnParallel(3)}:
|
|
753
770
|
|
|
754
|
-
|
|
771
|
+
1. **Purpose & Shape Agent**: What does this project actually do, and what are its top-level parts? Read entry points, main modules, exported/public APIs, CLI commands, routes, and manifests. Return: a one-sentence purpose, and for each package/app/module a one-line statement of what it *owns*. Do not rely on the README's description. Do not return a directory listing.
|
|
772
|
+
2. **Gotchas & Invariants Agent**: Find the knowledge that is expensive to rediscover. Mine \`git log\` (especially revert/fix/hotfix commits), CI and release workflows, \`NOTE\`/\`HACK\`/\`IMPORTANT\`/\`WARNING\`/\`XXX\` comments, test names asserting surprising behavior, generated-file and build-order constraints, and any config with a non-default value. Return only: rules that are non-obvious from reading the code, ordering/sequencing constraints, things that silently break, and the *reason* each exists. Skip anything a careful reader would infer in 30 seconds.
|
|
773
|
+
3. **Workflow & Stack Agent**: How is this project run, built, released, and deployed, from authoritative sources only — package scripts, manifests, Makefiles, CI config, deploy config. Return the workflows and any command that is NOT a plain single manifest script (multi-step sequences, required order, env vars, non-obvious flags, commands living outside the manifest). Do not return commands the auto-generated Verification section already covers (see item 3 above). Do not invent commands from convention, and do not trust README/doc command snippets unless a script or manifest confirms they still exist.
|
|
755
774
|
|
|
756
|
-
|
|
775
|
+
Wait for all sub-agents to complete, then synthesize.
|
|
757
776
|
|
|
758
|
-
## Step
|
|
777
|
+
## Step 4: Write the generated block
|
|
759
778
|
|
|
760
|
-
|
|
779
|
+
Inside the fence, write only sections that add project-specific value. Prefer this order — drop any section that would be empty or obvious:
|
|
761
780
|
|
|
762
781
|
- Project name and one-sentence purpose
|
|
763
|
-
- Key packages/apps/modules and what each owns
|
|
764
|
-
-
|
|
765
|
-
-
|
|
766
|
-
- Project-specific
|
|
782
|
+
- Key packages/apps/modules and what each owns (one line each, no tree)
|
|
783
|
+
- Architecture or data-flow notes an agent could not infer quickly from the code
|
|
784
|
+
- **Gotchas / invariants** — the highest-value section. Each entry states the rule *and* why it exists.
|
|
785
|
+
- Project-specific commands and workflows that survived the Step 3 filter (required publish order, generated-file workflow, dev-server startup, deployment caveats, auth/secrets storage)
|
|
767
786
|
|
|
768
|
-
Avoid generic sections named "Code Quality", "Organization Rules", or "How to Work" unless every bullet is specific to this project.
|
|
787
|
+
Avoid generic sections named "Code Quality", "Organization Rules", or "How to Work" unless every bullet is specific to this project.
|
|
769
788
|
|
|
770
|
-
|
|
789
|
+
## Step 5: Budget and verify
|
|
790
|
+
|
|
791
|
+
The combined budget for all project context files is 32KB, shared with any parent-directory context files. **Target 6KB or less for the generated block** — a tight 4KB file that gets read every time beats a 25KB file the agent skims.
|
|
792
|
+
|
|
793
|
+
After writing:
|
|
794
|
+
|
|
795
|
+
1. Run \`wc -c\` on the file and report the byte size. If the generated block exceeds ~6KB, cut the weakest sections (the ones closest to "derivable by reading the code") and rewrite.
|
|
796
|
+
2. Re-read the file and confirm every remaining line passes the bar: **project-specific, supported by a local file you actually read, and not already in the agent's context per the list above.**
|
|
797
|
+
3. Report in one line: which file, how many bytes, and how many lines you removed as redundant.
|
|
771
798
|
|
|
772
799
|
## Step 6: Restart Notice
|
|
773
800
|
|
|
@@ -845,7 +872,7 @@ Report that /commit is now available with quality checks, an agent code review g
|
|
|
845
872
|
description: "Compare real-world code",
|
|
846
873
|
prompt: `Compare the code you just created or modified in this conversation against real-world implementations using the \`mcp__kencode-search__searchCode\` tool.
|
|
847
874
|
|
|
848
|
-
|
|
875
|
+
${KENCODE_UNLOCK_NOTE}
|
|
849
876
|
|
|
850
877
|
You already know what you just built. For each file you created or modified, use \`mcp__kencode-search__searchCode\` to search for how real projects implement the same patterns. Look at the specific APIs, hooks, functions, and architecture you used.
|
|
851
878
|
|
|
@@ -903,7 +930,7 @@ Illustrative only (not prescriptive):
|
|
|
903
930
|
|
|
904
931
|
## Phase 3: Parallel sweep
|
|
905
932
|
|
|
906
|
-
Spawn one sub-agent per domain you chose,
|
|
933
|
+
Spawn one sub-agent per domain you chose, ${spawnParallel("N")} — one task per domain. Each explores its assigned domain and returns skill-worthy opportunities.
|
|
907
934
|
|
|
908
935
|
**Skill-worthy means**: a recurring activity someone will do on THIS project — shipping, reviewing, migrating, debugging, onboarding, whatever applies — where a reusable instruction set would make it **faster** (efficient), **lower-effort** (easier), or **less likely to break something** (safer). The test is: will this skill save real time, reduce real cognitive load, or prevent real mistakes, repeatedly, on this project? If no, drop it. A domain returning zero candidates is a valid outcome.
|
|
909
936
|
|
|
@@ -961,100 +988,6 @@ If strong candidates had no ecosystem match, list them at the bottom:
|
|
|
961
988
|
|
|
962
989
|
After presenting the list, ask which (if any) to install. Install nothing without explicit confirmation. Once confirmed, hand off to find-skills to perform the actual install.`,
|
|
963
990
|
},
|
|
964
|
-
{
|
|
965
|
-
name: "setup",
|
|
966
|
-
aliases: ["setup-project"],
|
|
967
|
-
description: "Audit project setup",
|
|
968
|
-
prompt: `Audit this project across six categories and report gaps. **Do not fix anything yet.** Wait for me to choose what to address after the report.
|
|
969
|
-
|
|
970
|
-
Language-agnostic and project-agnostic — adapt findings to the languages and stack actually present. Ignore categories that don't apply (e.g. skip CI for a local-only scratchpad).
|
|
971
|
-
|
|
972
|
-
## Categories
|
|
973
|
-
|
|
974
|
-
### 1. Project hygiene
|
|
975
|
-
|
|
976
|
-
- \`.gitignore\` present and covers the active language(s)?
|
|
977
|
-
- \`README.md\` present with at least install + run instructions?
|
|
978
|
-
- License file present (if this looks like a public/shareable project)?
|
|
979
|
-
- \`.editorconfig\` present?
|
|
980
|
-
- Git initialized? (\`.git\` directory exists)
|
|
981
|
-
|
|
982
|
-
### 2. Toolchain version pinning
|
|
983
|
-
|
|
984
|
-
- Language version pinned in a canonical file: \`.nvmrc\` / \`package.json#engines\` (Node), \`.python-version\` / \`pyproject.toml#requires-python\` (Python), \`rust-toolchain.toml\` (Rust), the \`go\` line in \`go.mod\`, \`.ruby-version\` (Ruby), etc.
|
|
985
|
-
- Lockfile present and committed? (\`package-lock.json\`, \`pnpm-lock.yaml\`, \`yarn.lock\`, \`bun.lockb\`, \`uv.lock\`, \`poetry.lock\`, \`Cargo.lock\`, \`go.sum\`, \`Gemfile.lock\`, \`composer.lock\`)
|
|
986
|
-
|
|
987
|
-
### 3. Code quality tooling
|
|
988
|
-
|
|
989
|
-
For each active language, check that a formatter, linter, and (where applicable) type checker are configured:
|
|
990
|
-
- **Formatter**: Prettier / ruff format / gofmt (built-in) / rustfmt (built-in) / clang-format / etc.
|
|
991
|
-
- **Linter**: ESLint / Ruff / golangci-lint / Clippy / etc. — with a reasonable strictness preset
|
|
992
|
-
- **Type checker** (statically-typed langs only): tsc strict, Pyright strict, mypy strict
|
|
993
|
-
- **Test framework**: vitest / jest / pytest / go test / cargo test / rspec / etc.
|
|
994
|
-
|
|
995
|
-
Report which are present, missing, or configured below the pack's strictness recommendation.
|
|
996
|
-
|
|
997
|
-
### 4. Verify pipeline
|
|
998
|
-
|
|
999
|
-
- Are \`lint\` / \`typecheck\` / \`format:check\` / \`test\` (or language-equivalent) wired as runnable commands? (scripts in \`package.json\`, \`pyproject.toml\`, a \`Makefile\`, or \`justfile\`)
|
|
1000
|
-
- Pre-commit hook configured? (\`.husky/\`, \`pre-commit\` framework, \`lefthook\`, etc.) — nice-to-have, not required.
|
|
1001
|
-
- CI config present? (\`.github/workflows/\`, \`.gitlab-ci.yml\`, \`.circleci/\`, etc.)
|
|
1002
|
-
|
|
1003
|
-
### 5. Style pack alignment
|
|
1004
|
-
|
|
1005
|
-
"Active style packs" refers specifically to the per-language sub-sections inside the **Language Style Packs** section in your system prompt (e.g. \`### TypeScript\`, \`### Python\`, \`### Go\`). It does **NOT** include the cross-cutting \`### Agent-Written Code\` preamble that sits above them — those are guidelines for how code is *written*, not project-scaffolding to audit. It also does **NOT** include Skills (\`.ezcoder/skills/\`) or any other extension category. If the Language Style Packs section is absent or empty, **skip this entire section entirely** — do not substitute Skills or any other concept.
|
|
1006
|
-
|
|
1007
|
-
When per-language packs are present, compare the project against each pack's **Tooling** bullet and the system prompt's **Verification** commands. For tool recommendations or config semantics, verify against official docs when local files are ambiguous:
|
|
1008
|
-
- Tooling: which strict-mode flags or lint-rule presets does the pack recommend that the project is missing? (e.g. \`tsconfig\` missing \`noUncheckedIndexedAccess\`, \`pyproject\` missing \`[tool.ruff]\`, Go project missing \`golangci-lint\` config).
|
|
1009
|
-
- Dependencies: list which pack-mentioned libs (Zod, Pydantic, thiserror, anyhow, etc.) the project uses, has an equivalent for, or lacks. **Observation only — no recommendation to install.**
|
|
1010
|
-
|
|
1011
|
-
### 6. Documentation hygiene
|
|
1012
|
-
|
|
1013
|
-
- \`CLAUDE.md\` or \`AGENTS.md\` present?
|
|
1014
|
-
- Public API documented? (top-level docstrings, type signatures, or README examples)
|
|
1015
|
-
- Architecture doc for non-trivial projects? (\`ARCHITECTURE.md\`, \`docs/architecture/\`, ADRs)
|
|
1016
|
-
|
|
1017
|
-
## How to investigate
|
|
1018
|
-
|
|
1019
|
-
- Read the project root + obvious config locations (\`./\`, \`.github/\`, \`.husky/\`, \`docs/\`).
|
|
1020
|
-
- Don't recurse into \`node_modules\`, \`dist\`, \`build\`, \`target\`, vendored folders.
|
|
1021
|
-
- Use \`ls\`, \`read\`, \`find\` (with name patterns) — do not \`grep\` source code for this audit; it's about scaffolding, not code review.
|
|
1022
|
-
- Cap at ~20 file reads total. If a file is huge (e.g. \`pnpm-lock.yaml\`), don't read its body — presence is what matters.
|
|
1023
|
-
|
|
1024
|
-
## Output format
|
|
1025
|
-
|
|
1026
|
-
A single Markdown report, organized by category. Within each category, mark each item as one of:
|
|
1027
|
-
- \`[OK]\` — present and reasonable
|
|
1028
|
-
- \`[GAP]\` — missing or misconfigured; safe to add/fix
|
|
1029
|
-
- \`[INFO]\` — observation only, no action implied
|
|
1030
|
-
- \`[N/A]\` — doesn't apply to this project (omit from output if obvious)
|
|
1031
|
-
|
|
1032
|
-
Keep each line to one sentence. No prose paragraphs.
|
|
1033
|
-
|
|
1034
|
-
At the end:
|
|
1035
|
-
|
|
1036
|
-
\`\`\`
|
|
1037
|
-
## Summary
|
|
1038
|
-
|
|
1039
|
-
<N> gaps in hygiene, <N> in tooling, <N> in verify pipeline, <N> in style-pack alignment.
|
|
1040
|
-
|
|
1041
|
-
Which (if any) would you like me to fix? Options:
|
|
1042
|
-
- A) Add tasks for all [GAP] items that are safe + additive (no overwrites)
|
|
1043
|
-
- B) Add tasks for a category: hygiene / tooling / verify / style-pack alignment
|
|
1044
|
-
- C) Add tasks for specific items — tell me which
|
|
1045
|
-
- D) None — just the report
|
|
1046
|
-
\`\`\`
|
|
1047
|
-
|
|
1048
|
-
## Rules
|
|
1049
|
-
|
|
1050
|
-
- **Report only.** No edits, no installs, no commits without explicit user confirmation after the report.
|
|
1051
|
-
- **Task handoff for fixes.** If the user chooses A, B, or C, do not fix directly. Add one task per selected gap or tightly coupled gap group using the \`tasks\` tool (action=add). Each task needs a short title and a standalone prompt that includes the gap, affected files/configs, safe-additive constraints, implementation instructions, project verification commands, and instructions to verify relevant tool/config semantics against official docs before completing the task. Use kencode search only for code-level examples, not as proof of scaffolding requirements. After adding the tasks, tell the user exactly: "${TASKS_ADDED_NOTICE}" Do not begin executing them unless the user explicitly says so.
|
|
1052
|
-
- **No code refactors recommended.** This audit is about scaffolding/tooling, not code review. Use \`/scan\` or \`/verify\` for code-level findings.
|
|
1053
|
-
- **No dependency installations in the report.** Listing them as observations is fine; recommending installation is not — that's the user's call.
|
|
1054
|
-
- **Skip empty categories.** If a category has no findings, omit it.
|
|
1055
|
-
- **Adapt to scale.** A 50-line script doesn't need CI, a license, or an ARCHITECTURE.md. Use judgment.
|
|
1056
|
-
- **Brand-new empty project**: report "Empty project — nothing to audit. To bootstrap, tell me the stack you want and I'll scaffold from scratch." and stop.`,
|
|
1057
|
-
},
|
|
1058
991
|
];
|
|
1059
992
|
/** Look up a prompt command by name or alias */
|
|
1060
993
|
export function getPromptCommand(name) {
|