@indigoai-us/hq-cli 5.345.27 → 5.345.29

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.
@@ -1,76 +1,3 @@
1
- /**
2
- * `hq core checkpoint` — synchronous end-of-turn state capture plus an
3
- * optional detached HQ-maintenance sibling.
4
- *
5
- * The foreground command intentionally performs only local filesystem and git
6
- * reads/writes. It never waits for the sibling, and it never performs network
7
- * I/O itself.
8
- */
9
- import * as fs from "node:fs";
10
- import { Command } from "commander";
11
- type Backend = "claude" | "codex" | "grok" | "none";
12
- type SpawnableBackend = Exclude<Backend, "none">;
13
- /**
14
- * Printed after every non-dry-run checkpoint, real or --idle. Agents were
15
- * treating the checkpoint call as the end of the turn, leaving their actual
16
- * findings only in the checkpoint payload — which the user never sees. This
17
- * line rides the command output (the one channel guaranteed to reach the
18
- * calling agent) to force the user-facing reply. Deliberately conditional on
19
- * whether the reply was already delivered this turn: an unconditional
20
- * "restate in full" made agents repeat a reply the user had already seen
21
- * (both the CLI and the desktop app render pre-tool-call text), while an
22
- * unconditional "no commentary after" hid the reply from agents that had not
23
- * yet written one. The Stop gate makes the same distinction from the
24
- * transcript — and backstops this reminder mechanically: a satisfying
25
- * checkpoint on a work turn whose genuine reply is still missing is blocked
26
- * once with a dedicated reply demand. This line covers proactive checkpoints
27
- * the gate never sees. Mirrors the hq-core policies
28
- * `checkpoint-is-bookkeeping-not-user-communication` and
29
- * `checkpoint-is-not-the-user-report`.
30
- */
31
- export declare const CHECKPOINT_REPLY_REMINDER: string;
32
- /**
33
- * The --idle variant: an idle-only turn (nothing ran, nothing to report) is
34
- * exempt at the Stop gate, so this text must never order a reply into
35
- * existence — but an --idle after read-only work is NOT exempt (the gate
36
- * demands the findings), so the conditional half still points there.
37
- */
38
- export declare const CHECKPOINT_IDLE_REPLY_REMINDER: string;
39
- export declare function renderSiblingPrompt(runDir: string, payloadPath: string, options?: {
40
- company?: string | null;
41
- hqRoot?: string;
42
- }): string;
43
- export type WriteStampsOptions = {
44
- /**
45
- * Filesystem seam (default the real `node:fs`); injected in tests to force a
46
- * permission errno so the HqStateWriteError conversion can be proven without a
47
- * real unwritable path.
48
- */
49
- fs?: Pick<typeof fs, "mkdirSync" | "writeFileSync" | "renameSync" | "unlinkSync">;
50
- /** Runtime seam for proving the Windows-only atomic path without host assumptions. */
51
- platform?: NodeJS.Platform;
52
- /** Synchronous delay seam for the bounded Windows lock retry. */
53
- waitForRetry?: (delayMs: number) => void;
54
- };
55
- export declare function writeStamps(liveRoot: string, sessionId: string | undefined, options?: WriteStampsOptions): string[];
56
- /**
57
- * Preference order for `--backend auto`: the caller's own backend first, so a
58
- * claude session keeps using claude and a codex session keeps using codex
59
- * (same-engine continuity), then the fallback priority claude -> codex -> grok
60
- * for whatever the caller is not. Deterministic and env-only, so it is unit
61
- * tested directly. `preferGrok` (the company's grok-backend flag) puts grok
62
- * ahead of that order and leaves the rest as the fallback.
63
- */
64
- export declare function autoBackendPreference(preferGrok?: boolean): SpawnableBackend[];
65
- /**
66
- * Whether the payload company's last ontology plan recorded
67
- * checkpoint.ontology.grok-backend as on. Reads only the local state file the
68
- * detached sibling writes, so a foreground checkpoint never waits on the flag
69
- * registry; a flag change takes effect from the checkpoint after the next plan.
70
- */
71
- export declare function companyPrefersGrok(liveRoot: string, companySlug: string | null | undefined): boolean;
72
- export declare function siblingArgs(backend: SpawnableBackend, prompt: string): string[];
73
- /** Attach the native checkpoint command to the hidden `hq core` group. */
74
- export declare function registerCoreCheckpointCommand(core: Command): void;
75
- export {};
1
+ /** Full command-graph compatibility entry for the isolated checkpoint handler. */
2
+ export * from "./core-checkpoint-native.js";
76
3
  //# sourceMappingURL=core-checkpoint.d.ts.map