@indigoai-us/hq-cli 5.109.16 → 5.111.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/CHANGELOG.md +38 -0
- package/assets/bot-workers/setup/context/USER-GUIDE.md +363 -0
- package/assets/bot-workers/setup/context/quick-reference.md +199 -0
- package/assets/bot-workers/setup/skills/first-company.md +71 -0
- package/assets/bot-workers/setup/skills/standing-help.md +74 -0
- package/assets/bot-workers/setup/worker.yaml +422 -0
- package/dist/commands/bot-continuity.d.ts +28 -0
- package/dist/commands/bot-continuity.js +68 -0
- package/dist/commands/bot.d.ts +73 -0
- package/dist/commands/bot.js +776 -0
- package/dist/commands/skill.d.ts +12 -3
- package/dist/commands/skill.js +79 -3
- package/dist/commands/workers.d.ts +2 -14
- package/dist/commands/workers.js +2 -8
- package/dist/lib/bot/api.d.ts +202 -0
- package/dist/lib/bot/api.js +202 -0
- package/dist/lib/bot/company-bind.d.ts +27 -0
- package/dist/lib/bot/company-bind.js +62 -0
- package/dist/lib/bot/config.d.ts +106 -0
- package/dist/lib/bot/config.js +141 -0
- package/dist/lib/bot/continuity-download.d.ts +28 -0
- package/dist/lib/bot/continuity-download.js +75 -0
- package/dist/lib/bot/continuity-install.d.ts +14 -0
- package/dist/lib/bot/continuity-install.js +101 -0
- package/dist/lib/bot/continuity.d.ts +66 -0
- package/dist/lib/bot/continuity.js +301 -0
- package/dist/lib/bot/creds.d.ts +24 -0
- package/dist/lib/bot/creds.js +51 -0
- package/dist/lib/bot/daemon.d.ts +75 -0
- package/dist/lib/bot/daemon.js +316 -0
- package/dist/lib/bot/inbox-state.d.ts +18 -0
- package/dist/lib/bot/inbox-state.js +51 -0
- package/dist/lib/bot/index.d.ts +16 -0
- package/dist/lib/bot/index.js +16 -0
- package/dist/lib/bot/inflight.d.ts +40 -0
- package/dist/lib/bot/inflight.js +44 -0
- package/dist/lib/bot/log.d.ts +13 -0
- package/dist/lib/bot/log.js +59 -0
- package/dist/lib/bot/owner-context.d.ts +75 -0
- package/dist/lib/bot/owner-context.js +151 -0
- package/dist/lib/bot/paths.d.ts +61 -0
- package/dist/lib/bot/paths.js +103 -0
- package/dist/lib/bot/progress.d.ts +84 -0
- package/dist/lib/bot/progress.js +167 -0
- package/dist/lib/bot/promote.d.ts +16 -0
- package/dist/lib/bot/promote.js +106 -0
- package/dist/lib/bot/promotion-hold.d.ts +24 -0
- package/dist/lib/bot/promotion-hold.js +103 -0
- package/dist/lib/bot/promotion-receipt.d.ts +9 -0
- package/dist/lib/bot/promotion-receipt.js +56 -0
- package/dist/lib/bot/promotion-upload.d.ts +16 -0
- package/dist/lib/bot/promotion-upload.js +65 -0
- package/dist/lib/bot/prompt.d.ts +103 -0
- package/dist/lib/bot/prompt.js +329 -0
- package/dist/lib/bot/room-policy.d.ts +53 -0
- package/dist/lib/bot/room-policy.js +73 -0
- package/dist/lib/bot/run.d.ts +98 -0
- package/dist/lib/bot/run.js +787 -0
- package/dist/lib/bot/runtime/claude.d.ts +49 -0
- package/dist/lib/bot/runtime/claude.js +151 -0
- package/dist/lib/bot/runtime/codex.d.ts +28 -0
- package/dist/lib/bot/runtime/codex.js +147 -0
- package/dist/lib/bot/runtime/grok.d.ts +16 -0
- package/dist/lib/bot/runtime/grok.js +67 -0
- package/dist/lib/bot/runtime/index.d.ts +35 -0
- package/dist/lib/bot/runtime/index.js +279 -0
- package/dist/lib/bot/runtime/messages-stream.d.ts +27 -0
- package/dist/lib/bot/runtime/messages-stream.js +85 -0
- package/dist/lib/bot/runtime/types.d.ts +136 -0
- package/dist/lib/bot/runtime/types.js +51 -0
- package/dist/lib/bot/scaffold.d.ts +38 -0
- package/dist/lib/bot/scaffold.js +94 -0
- package/dist/lib/bot/session.d.ts +19 -0
- package/dist/lib/bot/session.js +39 -0
- package/dist/lib/bot/status.d.ts +40 -0
- package/dist/lib/bot/status.js +66 -0
- package/dist/lib/bot/worker-source.d.ts +66 -0
- package/dist/lib/bot/worker-source.js +283 -0
- package/dist/lib/workers-registry/read.d.ts +15 -0
- package/dist/lib/workers-registry/read.js +17 -0
- package/dist/register-all.js +2 -0
- package/package.json +2 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { type BotMemoryMode, type BotRuntimeId, type LaunchctlExec } from "../lib/bot/index.js";
|
|
3
|
+
/** Real launchctl; every failure is a non-ok result, never a throw. */
|
|
4
|
+
export declare const defaultLaunchctl: LaunchctlExec;
|
|
5
|
+
/** The desktop app creates HQ's setup bot under this name, always from the `setup` worker. */
|
|
6
|
+
export declare const RESERVED_SETUP_BOT_NAME = "setup";
|
|
7
|
+
export interface BotRow {
|
|
8
|
+
name: string;
|
|
9
|
+
agentUid: string;
|
|
10
|
+
ownerUid: string;
|
|
11
|
+
runtime: BotRuntimeId;
|
|
12
|
+
model?: string;
|
|
13
|
+
/** Thinking level the bot runs with (its setting, or the default). */
|
|
14
|
+
effort: string;
|
|
15
|
+
/** True when no thinking level was picked (running the default). */
|
|
16
|
+
effortIsDefault: boolean;
|
|
17
|
+
state: string;
|
|
18
|
+
pid: number | null;
|
|
19
|
+
processAlive: boolean;
|
|
20
|
+
hosting: "local" | "cloud";
|
|
21
|
+
promotionHold?: {
|
|
22
|
+
companyUid: string | null;
|
|
23
|
+
} | null;
|
|
24
|
+
online: boolean | null;
|
|
25
|
+
lastHeartbeatAt: string | null;
|
|
26
|
+
daemonInstalled: boolean;
|
|
27
|
+
daemonLoaded: boolean;
|
|
28
|
+
dir: string;
|
|
29
|
+
introSentAt?: string;
|
|
30
|
+
workerSource: "scaffold" | "worker";
|
|
31
|
+
workerDir: string;
|
|
32
|
+
workerId?: string;
|
|
33
|
+
companySlug?: string;
|
|
34
|
+
/** "synced" = personal/workers/<name>/memory in HQ; "local" = ~/.hq/bots/<name>/memory. */
|
|
35
|
+
memory: BotMemoryMode;
|
|
36
|
+
/** Absolute memory folder. */
|
|
37
|
+
memoryDir: string;
|
|
38
|
+
intro?: string;
|
|
39
|
+
kickoff?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function listBotNames(root: string): string[];
|
|
42
|
+
/** Bot-identity token supplier: per-bot creds + per-bot token cache dir. */
|
|
43
|
+
export declare function botTokenSupplier(dir: string): () => Promise<string>;
|
|
44
|
+
/** Spawn `hq bot run <name>` detached (no launchd). */
|
|
45
|
+
export declare function spawnDetachedRun(name: string, dir: string): number;
|
|
46
|
+
export declare function runBotCreate(nameArg: string, opts: {
|
|
47
|
+
runtime?: string;
|
|
48
|
+
model?: string;
|
|
49
|
+
effort?: string;
|
|
50
|
+
autoApprove?: boolean;
|
|
51
|
+
daemon?: boolean;
|
|
52
|
+
start?: boolean;
|
|
53
|
+
json?: boolean;
|
|
54
|
+
worker?: string;
|
|
55
|
+
intro?: string;
|
|
56
|
+
kickoff?: string;
|
|
57
|
+
memory?: string;
|
|
58
|
+
}): Promise<void>;
|
|
59
|
+
export declare function runBotWorkers(opts: {
|
|
60
|
+
json?: boolean;
|
|
61
|
+
}): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* `hq bot set <name> --model <id|default> --effort <level|default>`: change
|
|
64
|
+
* what the bot thinks with. bot.json is re-read on every turn, so the next
|
|
65
|
+
* message uses it; no restart.
|
|
66
|
+
*/
|
|
67
|
+
export declare function runBotSet(nameArg: string, opts: {
|
|
68
|
+
model?: string;
|
|
69
|
+
effort?: string;
|
|
70
|
+
json?: boolean;
|
|
71
|
+
}): Promise<void>;
|
|
72
|
+
export declare function registerBotCommand(program: Command): void;
|
|
73
|
+
//# sourceMappingURL=bot.d.ts.map
|