killeros 2.1.31 → 2.1.32
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/CHANGELOG.md +568 -558
- package/Killeros.ts +53 -53
- package/README.md +112 -112
- package/killeros/activity.ts +110 -110
- package/killeros/auto-compaction.ts +342 -342
- package/killeros/change-receipt.ts +676 -676
- package/killeros/codex-fast-state.ts +47 -47
- package/killeros/codex-fast.ts +36 -36
- package/killeros/commands.ts +259 -259
- package/killeros/display.ts +60 -60
- package/killeros/errors.ts +19 -19
- package/killeros/footer.ts +505 -505
- package/killeros/goal-command.ts +26 -26
- package/killeros/goal-interface.ts +560 -560
- package/killeros/goal-runtime.ts +490 -490
- package/killeros/goal-settlement.ts +348 -348
- package/killeros/goal-state.ts +664 -660
- package/killeros/handoff.ts +326 -326
- package/killeros/hooks.ts +449 -449
- package/killeros/notifications.ts +135 -135
- package/killeros/passive-git-status.ts +346 -346
- package/killeros/personal-instructions.ts +122 -122
- package/killeros/question-ui.ts +590 -590
- package/killeros/question.ts +234 -234
- package/killeros/runtime.ts +150 -150
- package/killeros/secret-detector.ts +19 -19
- package/killeros/settings.ts +141 -141
- package/killeros/shell-ui.ts +418 -418
- package/killeros/variants.ts +13 -13
- package/killeros/worked-for.ts +489 -496
- package/package.json +68 -67
- package/themes/killeros.json +87 -87
package/killeros/goal-command.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { validateGoalObjective } from "./goal-state.ts";
|
|
2
|
-
import { safeTerminalText } from "./safe-terminal-text.ts";
|
|
3
|
-
|
|
4
|
-
export type GoalCommand =
|
|
5
|
-
| { kind: "status" }
|
|
6
|
-
| { kind: "objective"; objective: string }
|
|
7
|
-
| { kind: "pause" }
|
|
8
|
-
| { kind: "resume" }
|
|
9
|
-
| { kind: "clear" }
|
|
10
|
-
| { kind: "invalid"; message: string };
|
|
11
|
-
|
|
12
|
-
/** Parses one raw /goal argument string into a closed command variant. */
|
|
13
|
-
export function parseGoalCommand(args: string): GoalCommand {
|
|
14
|
-
const input = args.trim();
|
|
15
|
-
if (!input) return { kind: "status" };
|
|
16
|
-
const lowered = input.toLowerCase();
|
|
17
|
-
if (lowered === "pause") return { kind: "pause" };
|
|
18
|
-
if (lowered === "resume") return { kind: "resume" };
|
|
19
|
-
if (lowered === "clear") return { kind: "clear" };
|
|
20
|
-
const objective = validateGoalObjective(input);
|
|
21
|
-
if (objective) return { kind: "objective", objective };
|
|
22
|
-
if (safeTerminalText(input) !== input) {
|
|
23
|
-
return { kind: "invalid", message: "A goal objective contains unsupported content" };
|
|
24
|
-
}
|
|
25
|
-
return { kind: "invalid", message: "A goal objective may not exceed 4,000 characters" };
|
|
26
|
-
}
|
|
1
|
+
import { validateGoalObjective } from "./goal-state.ts";
|
|
2
|
+
import { safeTerminalText } from "./safe-terminal-text.ts";
|
|
3
|
+
|
|
4
|
+
export type GoalCommand =
|
|
5
|
+
| { kind: "status" }
|
|
6
|
+
| { kind: "objective"; objective: string }
|
|
7
|
+
| { kind: "pause" }
|
|
8
|
+
| { kind: "resume" }
|
|
9
|
+
| { kind: "clear" }
|
|
10
|
+
| { kind: "invalid"; message: string };
|
|
11
|
+
|
|
12
|
+
/** Parses one raw /goal argument string into a closed command variant. */
|
|
13
|
+
export function parseGoalCommand(args: string): GoalCommand {
|
|
14
|
+
const input = args.trim();
|
|
15
|
+
if (!input) return { kind: "status" };
|
|
16
|
+
const lowered = input.toLowerCase();
|
|
17
|
+
if (lowered === "pause") return { kind: "pause" };
|
|
18
|
+
if (lowered === "resume") return { kind: "resume" };
|
|
19
|
+
if (lowered === "clear") return { kind: "clear" };
|
|
20
|
+
const objective = validateGoalObjective(input);
|
|
21
|
+
if (objective) return { kind: "objective", objective };
|
|
22
|
+
if (safeTerminalText(input) !== input) {
|
|
23
|
+
return { kind: "invalid", message: "A goal objective contains unsupported content" };
|
|
24
|
+
}
|
|
25
|
+
return { kind: "invalid", message: "A goal objective may not exceed 4,000 characters" };
|
|
26
|
+
}
|