@indigoai-us/hq-cli 5.274.1 → 5.276.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 +88 -4
- package/README.md +12 -0
- package/assets/bot-workers/setup/context/USER-GUIDE.md +4 -4
- package/assets/scaffold/core/scripts/checkpoint-stop-gate.sh +74 -18
- package/dist/command-catalog.generated.d.ts +34 -1
- package/dist/command-catalog.generated.js +43 -1
- package/dist/commands/cloud.js +22 -9
- package/dist/commands/company.js +66 -3
- package/dist/commands/core-checkpoint-gate-setting.d.ts +69 -0
- package/dist/commands/core-checkpoint-gate-setting.js +163 -0
- package/dist/commands/core-checkpoint.d.ts +4 -2
- package/dist/commands/core-checkpoint.js +34 -3
- package/dist/commands/core-command-catalog.d.ts +4 -2
- package/dist/commands/core-command-catalog.js +5 -2
- package/dist/commands/core-ontology.js +3 -3
- package/dist/commands/core.js +3 -1
- package/dist/commands/daemon.d.ts +1 -0
- package/dist/commands/daemon.js +9 -3
- package/dist/commands/feedback.d.ts +6 -0
- package/dist/commands/feedback.js +86 -37
- package/dist/commands/lanes.js +33 -11
- package/dist/commands/run-feature-telemetry.d.ts +3 -0
- package/dist/commands/run-feature-telemetry.js +6 -0
- package/dist/commands/run.js +3 -2
- package/dist/commands/secrets.js +7 -1
- package/dist/commands/whoami.d.ts +4 -6
- package/dist/commands/whoami.js +39 -8
- package/dist/fast-core.d.ts +6 -7
- package/dist/fast-core.js +22 -8
- package/dist/fast-scaffold.d.ts +16 -7
- package/dist/fast-scaffold.js +13 -8
- package/dist/index.js +16 -1
- package/dist/lib/billing/plan-lock.d.ts +3 -1
- package/dist/lib/billing/plan-lock.js +7 -1
- package/dist/lib/checkpoint-ontology/company.d.ts +8 -4
- package/dist/lib/checkpoint-ontology/company.js +15 -7
- package/dist/lib/checkpoint-ontology/plan.d.ts +23 -0
- package/dist/lib/checkpoint-ontology/plan.js +53 -4
- package/dist/lib/checkpoint-ontology/queued-touches.d.ts +32 -0
- package/dist/lib/checkpoint-ontology/queued-touches.js +193 -0
- package/dist/lib/core-utils/timeout-guard-native.d.ts +7 -0
- package/dist/lib/core-utils/timeout-guard-native.js +40 -0
- package/dist/lib/core-utils/timeout-guard.d.ts +3 -3
- package/dist/lib/core-utils/timeout-guard.js +28 -13
- package/dist/lib/daemon/catalog.d.ts +7 -0
- package/dist/lib/daemon/catalog.js +6 -0
- package/dist/lib/daemon/flag.d.ts +23 -0
- package/dist/lib/daemon/flag.js +57 -0
- package/dist/lib/daemon/install.js +6 -1
- package/dist/lib/daemon/remote-control.d.ts +6 -0
- package/dist/lib/daemon/remote-control.js +12 -0
- package/dist/lib/daemon/run.js +115 -2
- package/dist/lib/daemon/succession.d.ts +116 -0
- package/dist/lib/daemon/succession.js +262 -0
- package/dist/lib/daemon/supervisor.d.ts +34 -1
- package/dist/lib/daemon/supervisor.js +190 -23
- package/dist/lib/flag-registry.d.ts +12 -7
- package/dist/lib/flag-registry.js +66 -75
- package/dist/lib/flag-snapshot-file.d.ts +20 -0
- package/dist/lib/flag-snapshot-file.js +91 -0
- package/dist/lib/lanes/host-capacity.js +7 -1
- package/dist/lib/lanes/models.d.ts +2 -0
- package/dist/lib/lanes/models.js +6 -1
- package/dist/lib/lanes/reconcile.js +20 -4
- package/dist/lib/process-flag-company-context.d.ts +8 -0
- package/dist/lib/process-flag-company-context.js +67 -0
- package/dist/main.js +3 -1
- package/dist/native-fast-route.d.ts +3 -0
- package/dist/native-fast-route.js +39 -0
- package/dist/utils/cli-telemetry.d.ts +26 -2
- package/dist/utils/cli-telemetry.js +178 -3
- package/dist/utils/hq-root-resolver.d.ts +13 -0
- package/dist/utils/hq-root-resolver.js +103 -0
- package/dist/utils/scaffold-fast-import-guard.js +6 -1
- package/dist/utils/vault-api.d.ts +8 -0
- package/dist/utils/vault-api.js +13 -1
- package/package.json +1 -1
|
@@ -47,6 +47,13 @@ export declare function rewritePathForApiKey(path: string): string | null;
|
|
|
47
47
|
* authorization or request signing depends on it.
|
|
48
48
|
*/
|
|
49
49
|
export declare const HQ_CLIENT_NAME = "@indigoai-us/hq-cli";
|
|
50
|
+
type VaultApiRequestTargetOptions = Pick<VaultApiOptions, "baseUrl" | "token" | "path" | "query">;
|
|
51
|
+
/**
|
|
52
|
+
* Run vaultApiFetch's synchronous, client-side request checks without sending
|
|
53
|
+
* the request. Commands with prior uploads use this to fail before creating
|
|
54
|
+
* objects that a later local refusal would leave orphaned.
|
|
55
|
+
*/
|
|
56
|
+
export declare function assertVaultApiRequestSupported(opts: VaultApiRequestTargetOptions): void;
|
|
50
57
|
export declare function vaultApiFetch(opts: VaultApiOptions): Promise<Response>;
|
|
51
58
|
/**
|
|
52
59
|
* Public (NONE-auth) GET against the vault API — no bearer token. The
|
|
@@ -77,4 +84,5 @@ export declare function getEntityUid(token: string, opts: {
|
|
|
77
84
|
}, options?: {
|
|
78
85
|
allowOfflineScopeFallback?: boolean;
|
|
79
86
|
}): Promise<string>;
|
|
87
|
+
export {};
|
|
80
88
|
//# sourceMappingURL=vault-api.d.ts.map
|
package/dist/utils/vault-api.js
CHANGED
|
@@ -155,7 +155,7 @@ export function rewritePathForApiKey(path) {
|
|
|
155
155
|
* authorization or request signing depends on it.
|
|
156
156
|
*/
|
|
157
157
|
export const HQ_CLIENT_NAME = "@indigoai-us/hq-cli";
|
|
158
|
-
|
|
158
|
+
function resolveVaultApiRequestTarget(opts) {
|
|
159
159
|
let path = opts.path;
|
|
160
160
|
if (opts.token.startsWith("hqk_")) {
|
|
161
161
|
const rewritten = rewritePathForApiKey(path);
|
|
@@ -172,6 +172,18 @@ export async function vaultApiFetch(opts) {
|
|
|
172
172
|
url.searchParams.set(k, v);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
+
return { path, url };
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Run vaultApiFetch's synchronous, client-side request checks without sending
|
|
179
|
+
* the request. Commands with prior uploads use this to fail before creating
|
|
180
|
+
* objects that a later local refusal would leave orphaned.
|
|
181
|
+
*/
|
|
182
|
+
export function assertVaultApiRequestSupported(opts) {
|
|
183
|
+
resolveVaultApiRequestTarget(opts);
|
|
184
|
+
}
|
|
185
|
+
export async function vaultApiFetch(opts) {
|
|
186
|
+
const { path, url } = resolveVaultApiRequestTarget(opts);
|
|
175
187
|
const method = opts.method ?? 'GET';
|
|
176
188
|
const safeUrl = url.search ? `${url.origin}${url.pathname}?<redacted>` : `${url.origin}${url.pathname}`;
|
|
177
189
|
Sentry.addBreadcrumb({
|