@pentoshi/clai 3.8.15 → 3.8.17
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/agent/compaction-summary.d.ts +6 -1
- package/dist/agent/compaction-summary.js +11 -19
- package/dist/agent/compaction-summary.js.map +1 -1
- package/dist/agent/context-manager.d.ts +12 -0
- package/dist/agent/context-manager.js +15 -1
- package/dist/agent/context-manager.js.map +1 -1
- package/dist/agent/plan-implement-compact.d.ts +40 -0
- package/dist/agent/plan-implement-compact.js +78 -0
- package/dist/agent/plan-implement-compact.js.map +1 -0
- package/dist/agent/plan-mode-reminders.d.ts +42 -0
- package/dist/agent/plan-mode-reminders.js +61 -0
- package/dist/agent/plan-mode-reminders.js.map +1 -0
- package/dist/agent/runner.js +45 -9
- package/dist/agent/runner.js.map +1 -1
- package/dist/app/adapters/agent-event-adapter.js +2 -2
- package/dist/app/adapters/agent-event-adapter.js.map +1 -1
- package/dist/app/adapters/quiet-meta-tools.d.ts +8 -0
- package/dist/app/adapters/quiet-meta-tools.js +18 -0
- package/dist/app/adapters/quiet-meta-tools.js.map +1 -0
- package/dist/app/controllers/session-compact-helper.d.ts +9 -0
- package/dist/app/controllers/session-compact-helper.js +36 -0
- package/dist/app/controllers/session-compact-helper.js.map +1 -0
- package/dist/app/controllers/session-controller.d.ts +7 -1
- package/dist/app/controllers/session-controller.js +12 -39
- package/dist/app/controllers/session-controller.js.map +1 -1
- package/dist/prompts/embedded.js +1 -1
- package/dist/prompts/embedded.js.map +1 -1
- package/dist/prompts/index.d.ts +1 -1
- package/dist/prompts/index.js +16 -11
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/system.agent.md +5 -1
- package/dist/tui-v2/app/plan-lifecycle.js +59 -0
- package/dist/tui-v2/app/plan-lifecycle.js.map +1 -1
- package/dist/tui-v2/components/toast/toast-anim.d.ts +4 -4
- package/dist/tui-v2/components/toast/toast-anim.js +4 -4
- package/dist/tui-v2/components/toast/toast-host.js +35 -20
- package/dist/tui-v2/components/toast/toast-host.js.map +1 -1
- package/dist/tui-v2/components/transcript/tool-card.js +3 -1
- package/dist/tui-v2/components/transcript/tool-card.js.map +1 -1
- package/dist/tui-v2/components/transcript/transcript-row.js +4 -5
- package/dist/tui-v2/components/transcript/transcript-row.js.map +1 -1
- package/dist/tui-v2/controllers/toast-controller.d.ts +2 -0
- package/dist/tui-v2/controllers/toast-controller.js +3 -1
- package/dist/tui-v2/controllers/toast-controller.js.map +1 -1
- package/dist/tui-v2/rendering/theme.d.ts +5 -0
- package/dist/tui-v2/rendering/theme.js +4 -0
- package/dist/tui-v2/rendering/theme.js.map +1 -1
- package/dist/tui-v2/state/transcript-hydrate.js +13 -3
- package/dist/tui-v2/state/transcript-hydrate.js.map +1 -1
- package/dist/types.js +7 -1
- package/dist/types.js.map +1 -1
- package/dist/version.generated.d.ts +2 -2
- package/dist/version.generated.js +2 -2
- package/package.json +1 -1
package/dist/types.js
CHANGED
|
@@ -18,7 +18,13 @@ export function isInternalChatMessage(message) {
|
|
|
18
18
|
return true;
|
|
19
19
|
if (message.role !== "user")
|
|
20
20
|
return false;
|
|
21
|
+
const text = message.content.trim();
|
|
22
|
+
// Implement / plan-accept directives injected by the UI (not typed by user).
|
|
23
|
+
if (/^Plan approved\.\s+Execute\b/i.test(text))
|
|
24
|
+
return true;
|
|
25
|
+
if (/^Plan revision request from the user\b/i.test(text))
|
|
26
|
+
return true;
|
|
21
27
|
// Legacy recovery texts that predate the `internal` flag.
|
|
22
|
-
return /^(?:You diagnosed an error and described the fix|You wrote a message but called NO tool|You described (?:an action|work|security work)|You claimed a search\/fetch|You wrote the plan as prose|INCOMPLETE: the user asked for a working product feature|This is a local app build: do not stop|The local HTTP probe failed|You have not finished the approved plan|Coverage looks thin \(ports|You are in plan mode and tried to finish without a durable plan)\b/i.test(
|
|
28
|
+
return /^(?:You diagnosed an error and described the fix|You wrote a message but called NO tool|You described (?:an action|work|security work)|You claimed a search\/fetch|You wrote the plan as prose|INCOMPLETE: the user asked for a working product feature|This is a local app build: do not stop|The local HTTP probe failed|You have not finished the approved plan|Coverage looks thin \(ports|You are in plan mode and tried to finish without a durable plan)\b/i.test(text);
|
|
23
29
|
}
|
|
24
30
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,aAAa;IACb,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,QAAQ;IACR,YAAY;CACJ,CAAC;AAoEX,mFAAmF;AACnF,MAAM,UAAU,qBAAqB,CAAC,OAAoB;IACxD,IAAI,OAAO,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAClC,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM;QAAE,OAAO,KAAK,CAAC;IAC1C,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,aAAa;IACb,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,QAAQ;IACR,YAAY;CACJ,CAAC;AAoEX,mFAAmF;AACnF,MAAM,UAAU,qBAAqB,CAAC,OAAoB;IACxD,IAAI,OAAO,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAClC,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM;QAAE,OAAO,KAAK,CAAC;IAC1C,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACpC,6EAA6E;IAC7E,IAAI,+BAA+B,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IAC5D,IAAI,yCAAyC,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACtE,0DAA0D;IAC1D,OAAO,ocAAoc,CAAC,IAAI,CAC9c,IAAI,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* AUTO-GENERATED by scripts/sync-version.mjs — do not edit by hand.
|
|
3
3
|
* Source of truth: package.json "version".
|
|
4
4
|
*/
|
|
5
|
-
export declare const VERSION: "3.8.
|
|
6
|
-
export declare const VERSION_TAG: "v3.8.
|
|
5
|
+
export declare const VERSION: "3.8.17";
|
|
6
|
+
export declare const VERSION_TAG: "v3.8.17";
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* AUTO-GENERATED by scripts/sync-version.mjs — do not edit by hand.
|
|
3
3
|
* Source of truth: package.json "version".
|
|
4
4
|
*/
|
|
5
|
-
export const VERSION = "3.8.
|
|
6
|
-
export const VERSION_TAG = "v3.8.
|
|
5
|
+
export const VERSION = "3.8.17";
|
|
6
|
+
export const VERSION_TAG = "v3.8.17";
|
|
7
7
|
//# sourceMappingURL=version.generated.js.map
|
package/package.json
CHANGED