@indigoai-us/hq-cli 5.345.170 → 5.345.172
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 +84 -0
- package/assets/scaffold/core/scripts/hq-delegate-send.sh +1 -1
- package/dist/command-catalog.generated.d.ts +206 -7
- package/dist/command-catalog.generated.js +252 -8
- package/dist/command-registration-plan.d.ts +7 -0
- package/dist/command-registration-plan.js +1 -0
- package/dist/commands/access.d.ts +32 -1
- package/dist/commands/access.js +112 -3
- package/dist/commands/agent-kit.d.ts +1 -1
- package/dist/commands/agent-kit.js +3 -1
- package/dist/commands/agents.js +2 -1
- package/dist/commands/bot.d.ts +3 -0
- package/dist/commands/bot.js +179 -18
- package/dist/commands/cloud.d.ts +58 -1
- package/dist/commands/cloud.js +228 -10
- package/dist/commands/core-company-index-scope-flag.d.ts +8 -1
- package/dist/commands/core-company-index-scope-flag.js +9 -2
- package/dist/commands/core-delegate-w1b.js +5 -2
- package/dist/commands/core-dm-bind-native.js +19 -4
- package/dist/commands/core-rebuild-index-fast.js +24 -6
- package/dist/commands/core.js +18 -6
- package/dist/commands/daemon.js +16 -1
- package/dist/commands/dm.d.ts +17 -3
- package/dist/commands/dm.js +121 -26
- package/dist/commands/files.d.ts +1 -0
- package/dist/commands/files.js +22 -4
- package/dist/commands/integrations-api.d.ts +4 -0
- package/dist/commands/integrations-api.js +18 -2
- package/dist/commands/integrations-connect.d.ts +10 -3
- package/dist/commands/integrations-connect.js +70 -6
- package/dist/commands/integrations-core.d.ts +23 -0
- package/dist/commands/integrations-core.js +100 -0
- package/dist/commands/integrations-manage.js +8 -1
- package/dist/commands/integrations.js +49 -5
- package/dist/commands/lanes-loop.d.ts +20 -0
- package/dist/commands/lanes-loop.js +69 -11
- package/dist/commands/lanes.js +9 -1
- package/dist/commands/rescue.d.ts +9 -0
- package/dist/commands/rescue.js +31 -0
- package/dist/commands/run.js +115 -40
- package/dist/commands/scan.d.ts +5 -1
- package/dist/commands/scan.js +16 -4
- package/dist/commands/secrets.js +50 -9
- package/dist/commands/sync-core.d.ts +22 -0
- package/dist/commands/sync-core.js +124 -0
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +2447 -2135
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/lib/agent-kit/inbox-state.d.ts +17 -0
- package/dist/lib/agent-kit/inbox-state.js +41 -20
- package/dist/lib/agent-kit/kit-config.d.ts +2 -0
- package/dist/lib/agent-kit/kit-config.js +6 -0
- package/dist/lib/agent-kit/mcp/tools.js +12 -5
- package/dist/lib/agent-kit/run/heartbeat.d.ts +6 -3
- package/dist/lib/agent-kit/run/heartbeat.js +6 -3
- package/dist/lib/agent-kit/run/inbox.d.ts +8 -3
- package/dist/lib/agent-kit/run/inbox.js +42 -10
- package/dist/lib/agent-kit/run/request-timeout.d.ts +26 -0
- package/dist/lib/agent-kit/run/request-timeout.js +51 -0
- package/dist/lib/bot/api.d.ts +1 -1
- package/dist/lib/bot/config.d.ts +10 -0
- package/dist/lib/bot/config.js +17 -1
- package/dist/lib/bot/fleet-local.d.ts +142 -0
- package/dist/lib/bot/fleet-local.js +689 -0
- package/dist/lib/bot/fleet-python.d.ts +47 -0
- package/dist/lib/bot/fleet-python.js +218 -0
- package/dist/lib/bot/index.d.ts +2 -0
- package/dist/lib/bot/index.js +2 -0
- package/dist/lib/bot/local-config.d.ts +3 -2
- package/dist/lib/bot/local-config.js +5 -2
- package/dist/lib/bot/promote.d.ts +10 -0
- package/dist/lib/bot/promote.js +3 -2
- package/dist/lib/bot/prompt.d.ts +6 -1
- package/dist/lib/bot/prompt.js +8 -3
- package/dist/lib/bot/runtime/index.js +8 -4
- package/dist/lib/bot/runtime/scratch-dir.d.ts +24 -0
- package/dist/lib/bot/runtime/scratch-dir.js +41 -0
- package/dist/lib/caller-principal.d.ts +4 -0
- package/dist/lib/caller-principal.js +40 -0
- package/dist/lib/capacity/collectors/grok.js +8 -2
- package/dist/lib/cli-flag-keys.d.ts +2 -0
- package/dist/lib/cli-flag-keys.js +2 -0
- package/dist/lib/daemon/catalog.d.ts +12 -4
- package/dist/lib/daemon/catalog.js +70 -24
- package/dist/lib/daemon/config.d.ts +0 -7
- package/dist/lib/daemon/config.js +0 -32
- package/dist/lib/daemon/run.d.ts +5 -1
- package/dist/lib/daemon/run.js +48 -11
- package/dist/lib/daemon/supervisor.js +3 -1
- package/dist/lib/doctor/checks/release-links.d.ts +62 -1
- package/dist/lib/doctor/checks/release-links.js +188 -2
- package/dist/lib/doctor/fix/apply.js +54 -0
- package/dist/lib/doctor/fix/remediation.d.ts +8 -1
- package/dist/lib/doctor/fix/remediation.js +22 -0
- package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
- package/dist/lib/flag-registry-worker-source.generated.js +1 -1
- package/dist/lib/index-render/index.d.ts +9 -0
- package/dist/lib/index-render/index.js +65 -5
- package/dist/lib/index-render/session-scope.d.ts +69 -0
- package/dist/lib/index-render/session-scope.js +279 -0
- package/dist/lib/lanes/admission.js +7 -20
- package/dist/lib/lanes/reconcile.js +13 -15
- package/dist/lib/lanes/stale-lock.d.ts +50 -0
- package/dist/lib/lanes/stale-lock.js +105 -0
- package/dist/lib/lanes/store.js +11 -76
- package/dist/lib/notify-recipient.d.ts +10 -4
- package/dist/lib/notify-recipient.js +16 -4
- package/dist/lib/secret-input-link.d.ts +42 -0
- package/dist/lib/secret-input-link.js +93 -0
- package/dist/lib/secret-scan/range.d.ts +57 -0
- package/dist/lib/secret-scan/range.js +266 -0
- package/dist/lib/secret-scan/repo-config.d.ts +18 -3
- package/dist/lib/secret-scan/repo-config.js +135 -2
- package/dist/lib/sync-core/engine-home.d.ts +44 -0
- package/dist/lib/sync-core/engine-home.js +193 -0
- package/dist/lib/sync-core/flag.d.ts +17 -0
- package/dist/lib/sync-core/flag.js +47 -0
- package/dist/lib/sync-core/reconcile.d.ts +31 -0
- package/dist/lib/sync-core/reconcile.js +196 -0
- package/dist/lib/sync-core/release.d.ts +32 -0
- package/dist/lib/sync-core/release.js +140 -0
- package/dist/lib/sync-core/rollout-state.d.ts +24 -0
- package/dist/lib/sync-core/rollout-state.js +94 -0
- package/dist/lib/vault-sync-switches.d.ts +5 -0
- package/dist/lib/vault-sync-switches.js +43 -0
- package/dist/run/script-bound-schema.d.ts +27 -0
- package/dist/run/script-bound-schema.js +97 -0
- package/dist/secrets-env-action.d.ts +2 -0
- package/dist/secrets-env-action.js +7 -2
- package/dist/utils/cognito-session.d.ts +3 -30
- package/dist/utils/cognito-session.js +2 -100
- package/dist/utils/machine-principal-state.d.ts +38 -0
- package/dist/utils/machine-principal-state.js +110 -0
- package/dist/utils/remote-list-not-converging.d.ts +21 -0
- package/dist/utils/remote-list-not-converging.js +40 -0
- package/dist/utils/safe-link.js +9 -0
- package/dist/utils/script-bound-exec.d.ts +158 -0
- package/dist/utils/script-bound-exec.js +568 -0
- package/dist/utils/sync-watchdog.d.ts +92 -0
- package/dist/utils/sync-watchdog.js +250 -0
- package/package.json +8 -8
- package/dist/lib/daemon/sync-core-canary.d.ts +0 -9
- package/dist/lib/daemon/sync-core-canary.js +0 -56
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { type BotEngineMetadata } from "./config.js";
|
|
2
|
+
import type { BotMachineCreds } from "./creds.js";
|
|
3
|
+
import { type FleetPython } from "./fleet-python.js";
|
|
4
|
+
import type { LocalBotPromotionRuntime } from "./promote.js";
|
|
5
|
+
export interface FleetLocalReleasePin {
|
|
6
|
+
repository: string;
|
|
7
|
+
tag: string;
|
|
8
|
+
version: string;
|
|
9
|
+
artifact: string;
|
|
10
|
+
artifactSha256: string;
|
|
11
|
+
runtimeArtifact: string;
|
|
12
|
+
runtimeArtifactSha256: string;
|
|
13
|
+
manifestSha256: string;
|
|
14
|
+
signatureSha256: string;
|
|
15
|
+
runtimeCommit: string;
|
|
16
|
+
}
|
|
17
|
+
export interface FleetLocalReleaseFiles {
|
|
18
|
+
archive: Buffer;
|
|
19
|
+
runtimeArchive: Buffer;
|
|
20
|
+
manifest: Buffer;
|
|
21
|
+
signature: Buffer;
|
|
22
|
+
}
|
|
23
|
+
export interface FleetLocalInstallation {
|
|
24
|
+
release: FleetLocalReleasePin;
|
|
25
|
+
dir: string;
|
|
26
|
+
archive: string;
|
|
27
|
+
runtimeArchive: string;
|
|
28
|
+
manifest: string;
|
|
29
|
+
signature: string;
|
|
30
|
+
engine: BotEngineMetadata;
|
|
31
|
+
}
|
|
32
|
+
export interface FleetLocalProfile {
|
|
33
|
+
schemaVersion: 1;
|
|
34
|
+
botId: string;
|
|
35
|
+
ownerUid: string;
|
|
36
|
+
provider: {
|
|
37
|
+
id: string;
|
|
38
|
+
model: string;
|
|
39
|
+
credentialProvider?: string;
|
|
40
|
+
baseUrl?: string;
|
|
41
|
+
transport?: string;
|
|
42
|
+
};
|
|
43
|
+
hqRoot: string;
|
|
44
|
+
profileDir: string;
|
|
45
|
+
runtime: {
|
|
46
|
+
commit: string;
|
|
47
|
+
path: string;
|
|
48
|
+
};
|
|
49
|
+
paths: {
|
|
50
|
+
pluginSource: string;
|
|
51
|
+
statusFile: string;
|
|
52
|
+
logsDir: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface FleetLocalInstallDeps {
|
|
56
|
+
fleetHome?: string;
|
|
57
|
+
fetch?: typeof fetch;
|
|
58
|
+
token?: () => string;
|
|
59
|
+
now?: () => Date;
|
|
60
|
+
release?: FleetLocalReleasePin;
|
|
61
|
+
publicKey?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface FleetLocalProfileInput {
|
|
64
|
+
agentUid: string;
|
|
65
|
+
ownerUid: string;
|
|
66
|
+
hqRoot: string;
|
|
67
|
+
botDir: string;
|
|
68
|
+
installation: FleetLocalInstallation;
|
|
69
|
+
/** The bot's standing HQ instructions; written as the runtime's SOUL.md persona. */
|
|
70
|
+
systemPrompt?: string;
|
|
71
|
+
}
|
|
72
|
+
type FleetLocalExec = (executable: string, args: string[], options: Record<string, unknown>) => Buffer | string;
|
|
73
|
+
export interface FleetLocalBootstrapDeps {
|
|
74
|
+
fleetHome?: string;
|
|
75
|
+
platform?: NodeJS.Platform;
|
|
76
|
+
run?: FleetLocalExec;
|
|
77
|
+
start?: boolean;
|
|
78
|
+
python?: FleetPython;
|
|
79
|
+
}
|
|
80
|
+
export interface FleetLocalBootstrapResult {
|
|
81
|
+
profile: string;
|
|
82
|
+
runtime: string;
|
|
83
|
+
helper: string;
|
|
84
|
+
running: boolean;
|
|
85
|
+
}
|
|
86
|
+
export type FleetLocalServiceAction = "install" | "start" | "stop" | "restart" | "status" | "remove";
|
|
87
|
+
export interface FleetLocalControlDeps {
|
|
88
|
+
fleetHome?: string;
|
|
89
|
+
platform?: NodeJS.Platform;
|
|
90
|
+
run?: FleetLocalExec;
|
|
91
|
+
}
|
|
92
|
+
export interface FleetLocalAuthInput {
|
|
93
|
+
agentUid: string;
|
|
94
|
+
provider: string;
|
|
95
|
+
model?: string;
|
|
96
|
+
apiKey?: string;
|
|
97
|
+
baseUrl?: string;
|
|
98
|
+
transport?: "chat_completions" | "anthropic_messages" | "codex_responses";
|
|
99
|
+
openBrowser?: boolean;
|
|
100
|
+
}
|
|
101
|
+
export interface FleetLocalAuthResult {
|
|
102
|
+
provider: string;
|
|
103
|
+
runtimeProvider: string;
|
|
104
|
+
model: string;
|
|
105
|
+
authenticated: boolean;
|
|
106
|
+
restarted: boolean;
|
|
107
|
+
}
|
|
108
|
+
export interface FleetLocalRemovalResult {
|
|
109
|
+
removed: boolean;
|
|
110
|
+
credentialsRemoved: number;
|
|
111
|
+
}
|
|
112
|
+
export declare const HQ_FLEET_LOCAL_RELEASE: FleetLocalReleasePin;
|
|
113
|
+
export declare const HQ_FLEET_LOCAL_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAOOL7NRKQgjMYI5cWxLY+HGppXf2AtwpQbCg5v+nBksM=\n-----END PUBLIC KEY-----\n";
|
|
114
|
+
export declare function fleetHome(home?: string, env?: NodeJS.ProcessEnv): string;
|
|
115
|
+
export declare function verifyFleetLocalRelease(files: FleetLocalReleaseFiles, release?: FleetLocalReleasePin, publicKey?: string): void;
|
|
116
|
+
export declare function resolveFleetReleaseToken(env?: NodeJS.ProcessEnv): string;
|
|
117
|
+
export declare const FLEET_LOCAL_METADATA_DOWNLOAD_TIMEOUT_MS = 30000;
|
|
118
|
+
export declare const FLEET_LOCAL_ARCHIVE_DOWNLOAD_TIMEOUT_MS: number;
|
|
119
|
+
export declare const FLEET_LOCAL_RUNTIME_DOWNLOAD_TIMEOUT_MS: number;
|
|
120
|
+
export declare function installPinnedFleetLocalDistribution(deps?: FleetLocalInstallDeps): Promise<FleetLocalInstallation>;
|
|
121
|
+
/** The process id the bot's gateway recorded, when its file reads; the caller checks whether it is alive. */
|
|
122
|
+
export declare function fleetLocalGatewayPid(agentUid: string, deps?: Pick<FleetLocalControlDeps, "fleetHome">): number | null;
|
|
123
|
+
export declare function controlFleetLocalBot(agentUid: string, action: FleetLocalServiceAction, deps?: FleetLocalControlDeps): Record<string, unknown>;
|
|
124
|
+
export declare function exportFleetLocalMachineCredential(agentUid: string, deps?: FleetLocalControlDeps): BotMachineCreds;
|
|
125
|
+
export declare function fleetLocalPromotionRuntime(agentUid: string, deps?: FleetLocalControlDeps): LocalBotPromotionRuntime;
|
|
126
|
+
export declare function removeFleetLocalBot(agentUid: string, deps?: FleetLocalControlDeps): FleetLocalRemovalResult;
|
|
127
|
+
export declare function authenticateFleetLocalBot(input: FleetLocalAuthInput, deps?: FleetLocalControlDeps): FleetLocalAuthResult;
|
|
128
|
+
export declare function writeFleetLocalProfile(input: FleetLocalProfileInput, deps?: Pick<FleetLocalBootstrapDeps, "fleetHome" | "platform">): string;
|
|
129
|
+
export declare function writeFleetLocalSoul(agentUid: string, systemPrompt: string, deps?: Pick<FleetLocalControlDeps, "fleetHome">): string;
|
|
130
|
+
/**
|
|
131
|
+
* The pinned runtime refuses a persona file that trips its context-file
|
|
132
|
+
* scanner and then starts with no identity at all. The same scanner, run with
|
|
133
|
+
* the bot's own interpreter, says beforehand what it would refuse.
|
|
134
|
+
*/
|
|
135
|
+
export declare function scanFleetLocalInstructions(agentUid: string, text: string, deps?: FleetLocalControlDeps): string[];
|
|
136
|
+
/** Checks the instructions with the runtime's scanner, then makes them the bot's persona. */
|
|
137
|
+
export declare function refreshFleetLocalInstructions(agentUid: string, systemPrompt: string, deps?: FleetLocalControlDeps): string;
|
|
138
|
+
export declare function bootstrapFleetLocalBot(input: FleetLocalProfileInput & {
|
|
139
|
+
machineCredentials: string;
|
|
140
|
+
}, deps?: FleetLocalBootstrapDeps): Promise<FleetLocalBootstrapResult>;
|
|
141
|
+
export {};
|
|
142
|
+
//# sourceMappingURL=fleet-local.d.ts.map
|