@tekmidian/pai 0.43.0 → 0.44.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/dist/{chain-CEC1a5mX.mjs → chain-DAEC9AU7.mjs} +2 -2
- package/dist/{chain-CEC1a5mX.mjs.map → chain-DAEC9AU7.mjs.map} +1 -1
- package/dist/cli/index.mjs +4 -4
- package/dist/cli/program.mjs +4 -4
- package/dist/daemon/index.mjs +2 -2
- package/dist/{daemon-QIvCXB5f.mjs → daemon-BVbvL8IA.mjs} +2 -2
- package/dist/{daemon-BhldpFvO.mjs → daemon-ebLDoKM3.mjs} +2 -2
- package/dist/{daemon-BhldpFvO.mjs.map → daemon-ebLDoKM3.mjs.map} +1 -1
- package/dist/daemon-mcp/index.mjs +3 -3
- package/dist/{fallback-BQJ8PbCK.mjs → fallback-CxGDTXWt.mjs} +2 -2
- package/dist/{fallback-BQJ8PbCK.mjs.map → fallback-CxGDTXWt.mjs.map} +1 -1
- package/dist/hooks/load-project-context.mjs.map +1 -1
- package/dist/hooks/mcp-deferred-reminder.mjs.map +1 -1
- package/dist/{planner-BlKGgpWI.mjs → planner-B4DvNpXd.mjs} +3 -3
- package/dist/{planner-BlKGgpWI.mjs.map → planner-B4DvNpXd.mjs.map} +1 -1
- package/dist/{program-C5jRQ1kg.mjs → program-cr5U1-DK.mjs} +612 -54
- package/dist/program-cr5U1-DK.mjs.map +1 -0
- package/dist/{run-ByBKowN5.mjs → run-BgExF8Xg.mjs} +16 -4
- package/dist/{run-ByBKowN5.mjs.map → run-BgExF8Xg.mjs.map} +1 -1
- package/docs/commands/README.md +3 -1
- package/docs/commands/audit.md +25 -2
- package/package.json +1 -1
- package/src/hooks/ts/lib/context-fill.test.ts +40 -0
- package/src/hooks/ts/session-start/load-project-context.ts +3 -3
- package/src/hooks/ts/session-start/mcp-deferred-reminder.ts +2 -2
- package/src/hooks/ts/session-start/session-start-worker-guard.test.ts +0 -1
- package/dist/hooks/session-commands.mjs +0 -26
- package/dist/hooks/session-commands.mjs.map +0 -7
- package/dist/program-C5jRQ1kg.mjs.map +0 -1
- package/src/hooks/ts/session-start/session-commands.ts +0 -30
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* session-commands.ts
|
|
5
|
-
*
|
|
6
|
-
* Tiny SessionStart hook that injects critical session commands inline.
|
|
7
|
-
* Stays under 2KB to avoid persisted-output truncation.
|
|
8
|
-
*
|
|
9
|
-
* This runs BEFORE load-core-context so these commands are always available
|
|
10
|
-
* even when the full CORE skill gets truncated.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { isWorkerSession } from "../lib/worker-session.js";
|
|
14
|
-
|
|
15
|
-
if (isWorkerSession()) process.exit(0); // disposable worker: no per-session bookkeeping
|
|
16
|
-
|
|
17
|
-
const commands = `<system-reminder>
|
|
18
|
-
SESSION COMMANDS (always available):
|
|
19
|
-
|
|
20
|
-
- "go" / "continue" / "weiter" → Read Notes/TODO.md, find ## Continue section, resume work
|
|
21
|
-
- "pause session" → Save state to TODO.md, update session note, stop (no compact)
|
|
22
|
-
- "end session" → Finalize note, commit if needed, start fresh next time
|
|
23
|
-
- "cpp" → Release workflow: version bump → build → npm publish → git add ALL → ONE commit → git push
|
|
24
|
-
|
|
25
|
-
When user says "go" with no other context, ALWAYS check TODO.md first.
|
|
26
|
-
|
|
27
|
-
IMPORTANT: Full PAI context may be truncated due to size. For complete instructions (response format, workflows, principles), READ: ~/.claude/Skills/CORE/SKILL.md
|
|
28
|
-
</system-reminder>`;
|
|
29
|
-
|
|
30
|
-
console.log(commands);
|