@indigoai-us/hq-cli 5.345.215-beta.0 → 5.345.217
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 +206 -1
- package/README.md +45 -0
- package/assets/scaffold/core/scripts/hq-delegate-verify.sh +5 -2
- package/assets/scaffold/core/scripts/lib/epochrealtime.sh +30 -0
- package/assets/scaffold/core/scripts/lib/work-mesh-enqueue.sh +12 -5
- package/dist/command-catalog.generated.d.ts +105 -10
- package/dist/command-catalog.generated.js +127 -10
- package/dist/command-help.js +3 -1
- package/dist/command-registration-plan.d.ts +6 -0
- package/dist/command-registration-plan.js +1 -0
- package/dist/commands/auth.d.ts +1 -1
- package/dist/commands/auth.js +11 -52
- package/dist/commands/bot.js +75 -10
- package/dist/commands/capacity.d.ts +4 -1
- package/dist/commands/capacity.js +46 -10
- package/dist/commands/cloud-demote.d.ts +19 -4
- package/dist/commands/cloud-demote.js +85 -12
- package/dist/commands/cloud-provision.d.ts +5 -1
- package/dist/commands/cloud-provision.js +6 -2
- package/dist/commands/cloud.d.ts +36 -0
- package/dist/commands/cloud.js +110 -27
- package/dist/commands/core-delegate-w1b.js +15 -1
- package/dist/commands/core-policy.js +67 -8
- package/dist/commands/core.js +1 -0
- package/dist/commands/daemon.js +9 -1
- package/dist/commands/dm.js +7 -0
- package/dist/commands/doctor-usage.d.ts +8 -0
- package/dist/commands/doctor-usage.js +20 -0
- package/dist/commands/doctor.js +7 -1
- package/dist/commands/env.d.ts +18 -0
- package/dist/commands/env.js +82 -0
- package/dist/commands/files-browse.d.ts +11 -4
- package/dist/commands/files-browse.js +21 -4
- package/dist/commands/files.d.ts +1 -1
- package/dist/commands/files.js +25 -11
- package/dist/commands/install-global.js +2 -2
- package/dist/commands/integrations-auth-rules.d.ts +27 -0
- package/dist/commands/integrations-auth-rules.js +79 -0
- package/dist/commands/integrations-import.js +124 -12
- package/dist/commands/lanes.js +102 -26
- package/dist/commands/logout.d.ts +7 -0
- package/dist/commands/logout.js +41 -34
- package/dist/commands/mesh.d.ts +2 -0
- package/dist/commands/mesh.js +60 -35
- package/dist/commands/sources.d.ts +8 -2
- package/dist/commands/sources.js +65 -9
- package/dist/commands/sync-held.js +5 -2
- package/dist/commands/whoami.js +26 -1
- package/dist/data/command-states.json +15 -0
- package/dist/index.js +52 -4
- package/dist/lazy-commands.js +5 -6
- package/dist/lib/anywhere-person-setting.d.ts +2 -0
- package/dist/lib/anywhere-person-setting.js +6 -3
- package/dist/lib/billing/usage-card.d.ts +25 -4
- package/dist/lib/billing/usage-card.js +76 -9
- package/dist/lib/billing/usage-cost.d.ts +3 -3
- package/dist/lib/billing/usage-cost.js +35 -13
- package/dist/lib/billing/usage-only.js +4 -2
- package/dist/lib/billing/usage-rate-card.d.ts +2 -2
- package/dist/lib/billing/usage-rate-card.js +3 -0
- package/dist/lib/bot/fleet-cron.d.ts +8 -0
- package/dist/lib/bot/fleet-cron.js +126 -7
- package/dist/lib/bot/fleet-daemon.d.ts +46 -0
- package/dist/lib/bot/fleet-daemon.js +99 -1
- package/dist/lib/bot/inflight.d.ts +9 -0
- package/dist/lib/bot/inflight.js +10 -0
- package/dist/lib/bot/jobs/hot-signal-sync.js +12 -1
- package/dist/lib/bot/probe.js +7 -1
- package/dist/lib/bot/run.js +20 -1
- package/dist/lib/bot/runtime/codex.js +1 -1
- package/dist/lib/bot/runtime/grok-acp.d.ts +6 -1
- package/dist/lib/bot/runtime/grok-acp.js +32 -14
- package/dist/lib/bot/runtime/grok.js +1 -1
- package/dist/lib/bot/runtime/index.js +19 -9
- package/dist/lib/bot/runtime/messages-stream.js +2 -2
- package/dist/lib/bot/runtime/types.d.ts +15 -0
- package/dist/lib/bot/runtime/types.js +9 -0
- package/dist/lib/bot/runtime-failure.d.ts +23 -0
- package/dist/lib/bot/runtime-failure.js +43 -1
- package/dist/lib/capacity/accounts.d.ts +8 -0
- package/dist/lib/capacity/accounts.js +19 -0
- package/dist/lib/capacity/available.d.ts +154 -0
- package/dist/lib/capacity/available.js +905 -0
- package/dist/lib/capacity/codex-availability.d.ts +14 -1
- package/dist/lib/capacity/codex-availability.js +26 -1
- package/dist/lib/capacity/collectors/claude-oauth.d.ts +29 -2
- package/dist/lib/capacity/collectors/claude-oauth.js +104 -7
- package/dist/lib/capacity/collectors/codex.js +10 -7
- package/dist/lib/capacity/ledger.d.ts +37 -1
- package/dist/lib/capacity/ledger.js +207 -30
- package/dist/lib/capacity/project.d.ts +26 -0
- package/dist/lib/capacity/project.js +137 -8
- package/dist/lib/capacity/refusal-rows.d.ts +31 -0
- package/dist/lib/capacity/refusal-rows.js +61 -0
- package/dist/lib/capacity/refusal.d.ts +53 -2
- package/dist/lib/capacity/refusal.js +284 -65
- package/dist/lib/capacity/route.js +46 -11
- package/dist/lib/capacity/widget.d.ts +12 -1
- package/dist/lib/capacity/widget.js +91 -3
- package/dist/lib/daemon/flag-monitor.d.ts +8 -0
- package/dist/lib/daemon/flag-monitor.js +17 -6
- package/dist/lib/daemon/flag.d.ts +65 -1
- package/dist/lib/daemon/flag.js +190 -40
- package/dist/lib/daemon/ops/policy.js +62 -5
- package/dist/lib/daemon/paths.d.ts +72 -2
- package/dist/lib/daemon/paths.js +154 -3
- package/dist/lib/daemon/resolver.d.ts +2 -0
- package/dist/lib/daemon/resolver.js +3 -0
- package/dist/lib/daemon/run.d.ts +9 -0
- package/dist/lib/daemon/run.js +79 -21
- package/dist/lib/daemon/selfcheck.d.ts +22 -0
- package/dist/lib/daemon/selfcheck.js +40 -1
- package/dist/lib/daemon/server.d.ts +5 -1
- package/dist/lib/daemon/server.js +17 -23
- package/dist/lib/daemon/state-file-switch.d.ts +57 -0
- package/dist/lib/daemon/state-file-switch.js +88 -0
- package/dist/lib/daemon/state-file.d.ts +198 -0
- package/dist/lib/daemon/state-file.js +419 -0
- package/dist/lib/daemon/tcc-eperm.d.ts +153 -0
- package/dist/lib/daemon/tcc-eperm.js +310 -0
- package/dist/lib/daemon/timed-flag-monitors.d.ts +47 -0
- package/dist/lib/daemon/timed-flag-monitors.js +75 -0
- package/dist/lib/delivery/admission.d.ts +86 -0
- package/dist/lib/delivery/admission.js +148 -0
- package/dist/lib/delivery/artifacts.d.ts +7 -1
- package/dist/lib/delivery/artifacts.js +29 -10
- package/dist/lib/delivery/attempt-id.d.ts +13 -0
- package/dist/lib/delivery/attempt-id.js +16 -0
- package/dist/lib/delivery/disposable-target.d.ts +42 -0
- package/dist/lib/delivery/disposable-target.js +111 -0
- package/dist/lib/delivery/effects.d.ts +136 -0
- package/dist/lib/delivery/effects.js +541 -0
- package/dist/lib/delivery/enrollment.d.ts +21 -17
- package/dist/lib/delivery/enrollment.js +83 -5
- package/dist/lib/delivery/escalations.d.ts +51 -0
- package/dist/lib/delivery/escalations.js +60 -0
- package/dist/lib/delivery/lease.d.ts +80 -0
- package/dist/lib/delivery/lease.js +134 -0
- package/dist/lib/delivery/migrations.d.ts +120 -4
- package/dist/lib/delivery/migrations.js +215 -15
- package/dist/lib/delivery/mqtt.d.ts +2 -0
- package/dist/lib/delivery/mqtt.js +7 -0
- package/dist/lib/delivery/reconciler.d.ts +65 -1
- package/dist/lib/delivery/reconciler.js +224 -13
- package/dist/lib/delivery/rpc/client.d.ts +22 -0
- package/dist/lib/delivery/rpc/client.js +159 -0
- package/dist/lib/delivery/rpc/port.d.ts +40 -0
- package/dist/lib/delivery/rpc/port.js +16 -0
- package/dist/lib/delivery/rpc/server.d.ts +30 -0
- package/dist/lib/delivery/rpc/server.js +205 -0
- package/dist/lib/delivery/rpc/wire.d.ts +85 -0
- package/dist/lib/delivery/rpc/wire.js +143 -0
- package/dist/lib/delivery/store.d.ts +2 -0
- package/dist/lib/delivery/store.js +4 -0
- package/dist/lib/delivery/windows-service-install.d.ts +262 -0
- package/dist/lib/delivery/windows-service-install.js +892 -0
- package/dist/lib/delivery/workers/macos.d.ts +16 -1
- package/dist/lib/delivery/workers/macos.js +54 -12
- package/dist/lib/delivery/workers/windows-service-live.d.ts +121 -0
- package/dist/lib/delivery/workers/windows-service-live.js +711 -0
- package/dist/lib/delivery/workers/windows-service-runner.d.ts +33 -0
- package/dist/lib/delivery/workers/windows-service-runner.js +82 -0
- package/dist/lib/delivery/workers/windows-service.d.ts +140 -0
- package/dist/lib/delivery/workers/windows-service.js +584 -0
- package/dist/lib/delivery/workers/windows.d.ts +32 -22
- package/dist/lib/delivery/workers/windows.js +50 -64
- package/dist/lib/doctor/checks/host-core.d.ts +50 -0
- package/dist/lib/doctor/checks/host-core.js +269 -0
- package/dist/lib/doctor/checks/replay-recorder.d.ts +39 -0
- package/dist/lib/doctor/checks/replay-recorder.js +261 -0
- package/dist/lib/doctor/registry.js +4 -0
- package/dist/lib/environment/profile.d.ts +239 -0
- package/dist/lib/environment/profile.js +251 -0
- package/dist/lib/hook-engine/reconcile.js +39 -13
- package/dist/lib/hook-engine/registration.d.ts +9 -0
- package/dist/lib/hook-engine/registration.js +19 -0
- package/dist/lib/hot-channels/adapters/meetings.d.ts +15 -0
- package/dist/lib/hot-channels/adapters/meetings.js +36 -3
- package/dist/lib/hot-channels/adapters/slack.d.ts +21 -5
- package/dist/lib/hot-channels/adapters/slack.js +64 -21
- package/dist/lib/hot-channels/alert.d.ts +2 -0
- package/dist/lib/hot-channels/alert.js +8 -1
- package/dist/lib/hot-channels/contract.d.ts +12 -0
- package/dist/lib/hot-channels/contract.js +7 -0
- package/dist/lib/hot-channels/loop.js +1 -0
- package/dist/lib/hot-channels/run.d.ts +6 -0
- package/dist/lib/hot-channels/run.js +4 -0
- package/dist/lib/hot-channels/signals-pass.d.ts +74 -1
- package/dist/lib/hot-channels/signals-pass.js +82 -41
- package/dist/lib/hot-channels/signals-redo.js +10 -2
- package/dist/lib/install/claude-targets.d.ts +12 -1
- package/dist/lib/install/claude-targets.js +57 -5
- package/dist/lib/install/codex-targets.d.ts +2 -2
- package/dist/lib/install/codex-targets.js +36 -6
- package/dist/lib/install/hook-target.d.ts +3 -0
- package/dist/lib/install/hook-target.js +11 -0
- package/dist/lib/lanes/canonical-host.d.ts +35 -0
- package/dist/lib/lanes/canonical-host.js +65 -0
- package/dist/lib/lanes/host-capacity.d.ts +30 -0
- package/dist/lib/lanes/host-capacity.js +29 -3
- package/dist/lib/lanes/watcher.js +35 -0
- package/dist/lib/mesh/live/daemon/run.d.ts +2 -0
- package/dist/lib/mesh/live/daemon/run.js +5 -2
- package/dist/lib/mesh/live/flush.d.ts +5 -1
- package/dist/lib/mesh/live/flush.js +12 -6
- package/dist/lib/mesh/live/reporting-privacy.d.ts +32 -0
- package/dist/lib/mesh/live/reporting-privacy.js +56 -1
- package/dist/lib/mesh/live/spool.d.ts +7 -0
- package/dist/lib/mesh/live/spool.js +25 -0
- package/dist/lib/person-setting-cache.d.ts +38 -0
- package/dist/lib/person-setting-cache.js +98 -0
- package/dist/lib/safe-store.d.ts +245 -0
- package/dist/lib/safe-store.js +777 -0
- package/dist/lib/signals/engine.d.ts +29 -2
- package/dist/lib/signals/engine.js +103 -4
- package/dist/lib/signals/reply.js +73 -18
- package/dist/lib/signals/steps/adapters.js +7 -2
- package/dist/lib/signals/steps/extract.d.ts +13 -0
- package/dist/lib/signals/steps/extract.js +122 -6
- package/dist/main.js +46 -3
- package/dist/schemas/hq-available-ai.v1.schema.json +76 -0
- package/dist/schemas/hq-environment-profile.v1.schema.json +438 -0
- package/dist/utils/auth-expiry.d.ts +8 -0
- package/dist/utils/auth-expiry.js +53 -0
- package/dist/utils/catalog-runtime-paths.d.ts +34 -0
- package/dist/utils/catalog-runtime-paths.js +53 -0
- package/dist/utils/cli-telemetry.d.ts +21 -0
- package/dist/utils/cli-telemetry.js +34 -0
- package/dist/utils/command-usage.d.ts +275 -0
- package/dist/utils/command-usage.js +797 -0
- package/dist/utils/files-browse-acl.js +1 -1
- package/dist/utils/hook-trust.d.ts +7 -0
- package/dist/utils/hook-trust.js +31 -4
- package/dist/utils/host-registration.d.ts +126 -0
- package/dist/utils/host-registration.js +378 -0
- package/dist/utils/resident-package-preload.js +2 -0
- package/package.json +10 -8
- package/scripts/bench-core.mjs +1096 -0
- package/scripts/check-function-manifest.mjs +702 -0
- package/dist/lib/delivery/workers/windows-boundary.d.ts +0 -453
- package/dist/lib/delivery/workers/windows-boundary.js +0 -693
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import type { LaneProvider } from "../lanes/types.js";
|
|
2
|
+
import type { CapacityAccount } from "./accounts.js";
|
|
3
|
+
import { type LedgerOptions, type NowView } from "./ledger.js";
|
|
4
|
+
export declare const AVAILABLE_SCHEMA_VERSION = "hq-available-ai.v1";
|
|
5
|
+
export declare const AVAILABLE_FILE_NAME = "available.json";
|
|
6
|
+
export declare const FRESH_WAIT_MS = 3000;
|
|
7
|
+
export declare const STATUS_PROBE_TIMEOUT_MS = 2500;
|
|
8
|
+
export declare const COLLECT_MARK = ".available-collect.lock";
|
|
9
|
+
export declare const COLLECT_MARK_TTL_MS = 60000;
|
|
10
|
+
export type AvailableFreshness = "fresh" | "refreshing" | "stale";
|
|
11
|
+
export type Availability = "ready" | "likely_ready" | "low" | "used_up" | "needs_sign_in" | "not_installed";
|
|
12
|
+
export type TrancheKind = "plan" | "scoped_model" | "extra_usage" | "credits" | "api_key";
|
|
13
|
+
export type AvailableEngine = "model_cli" | "lane" | "fleet";
|
|
14
|
+
export type AvailableHolder = "cli_home" | "bot_own" | "none";
|
|
15
|
+
export type AvailableConfidence = "fetched" | "observed" | "inferred" | "unknown";
|
|
16
|
+
export interface AvailableOption {
|
|
17
|
+
optionId: string;
|
|
18
|
+
provider: LaneProvider;
|
|
19
|
+
account: {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
organization: string | null;
|
|
23
|
+
};
|
|
24
|
+
tranche: {
|
|
25
|
+
kind: TrancheKind;
|
|
26
|
+
scope: string | null;
|
|
27
|
+
paid: boolean;
|
|
28
|
+
};
|
|
29
|
+
availability: Availability;
|
|
30
|
+
leftPercent: number | null;
|
|
31
|
+
backAt: string | null;
|
|
32
|
+
reading: {
|
|
33
|
+
ageSeconds: number | null;
|
|
34
|
+
confidence: AvailableConfidence;
|
|
35
|
+
};
|
|
36
|
+
usableBy: AvailableEngine[];
|
|
37
|
+
holder: AvailableHolder;
|
|
38
|
+
models: string[];
|
|
39
|
+
reason: string;
|
|
40
|
+
nextStep: {
|
|
41
|
+
kind: "use" | "sign_in" | "wait" | "install";
|
|
42
|
+
label: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface AvailableDocument {
|
|
46
|
+
schemaVersion: typeof AVAILABLE_SCHEMA_VERSION;
|
|
47
|
+
generatedAt: string;
|
|
48
|
+
freshness: AvailableFreshness;
|
|
49
|
+
best: string | null;
|
|
50
|
+
nextBackAt: string | null;
|
|
51
|
+
options: AvailableOption[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Which engines may run a tranche. model_cli follows `hq bot switch-account`,
|
|
55
|
+
* which takes all three runtimes. Fleet excludes Grok, because switch-account
|
|
56
|
+
* refuses it there, and Claude plan logins, which the owner parked on
|
|
57
|
+
* 2026-11-05: no new offer, no removal, a running Fleet Claude bot is untouched.
|
|
58
|
+
* `lane` is added per account, when a lane account is enabled on its home.
|
|
59
|
+
*/
|
|
60
|
+
export declare const USABLE_BY: Record<LaneProvider, Record<TrancheKind, readonly AvailableEngine[]>>;
|
|
61
|
+
export interface BuildAvailableInput {
|
|
62
|
+
view: NowView;
|
|
63
|
+
accounts: readonly CapacityAccount[];
|
|
64
|
+
now: Date;
|
|
65
|
+
collectorEnabled: boolean | null;
|
|
66
|
+
includeOther?: boolean;
|
|
67
|
+
freshness?: AvailableFreshness;
|
|
68
|
+
}
|
|
69
|
+
export declare function buildAvailableDocument(input: BuildAvailableInput): AvailableDocument;
|
|
70
|
+
/** The bytes for available.json. Refuses any value shaped like a provider token. */
|
|
71
|
+
export declare function serializeAvailable(document: AvailableDocument): string;
|
|
72
|
+
/**
|
|
73
|
+
* Raised by a rebuild that cannot read the account registry or the HQ root. Its
|
|
74
|
+
* message is fixed text: no path, no config content.
|
|
75
|
+
*/
|
|
76
|
+
export declare class RosterUnavailable extends Error {
|
|
77
|
+
constructor();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The HQ tree whose registry a resolved root reads. Walks up from the root and
|
|
81
|
+
* returns the nearest folder that has a lanes config, so an explicit root with
|
|
82
|
+
* a lanes config always wins. A folder that only looks like an HQ tree
|
|
83
|
+
* (`isHqRoot`) is not enough to stop the walk: a copy of the hq-core template
|
|
84
|
+
* inside HQ (repos/public/hq-core, an hq-core-staging worktree) or a route
|
|
85
|
+
* folder named companies/ has the same markers but no registry, and reading it
|
|
86
|
+
* would drop the registry accounts and bring back a default home the registry
|
|
87
|
+
* turned off. When no folder on the way has a lanes config, the outermost HQ
|
|
88
|
+
* tree on the path is used (a fresh install, an empty registry). Null when no
|
|
89
|
+
* folder on the way is an HQ tree.
|
|
90
|
+
*/
|
|
91
|
+
export declare function registryHqRoot(resolved: string): string | null;
|
|
92
|
+
/**
|
|
93
|
+
* The account roster from the registry, or null when the HQ root cannot be
|
|
94
|
+
* found or the registry cannot be read. Null is not "no registry": a resolved
|
|
95
|
+
* HQ root with no lanes config is a known, empty registry and returns the
|
|
96
|
+
* default homes. Callers must not stand the default homes in for null, because
|
|
97
|
+
* that drops registry accounts on custom homes and brings back a default home
|
|
98
|
+
* the registry turned off for work.
|
|
99
|
+
*
|
|
100
|
+
* HQ_ROOT or CLAUDE_PROJECT_DIR is trusted when it names any existing folder.
|
|
101
|
+
* A folder with no lanes config is often a subfolder of an HQ tree (a session
|
|
102
|
+
* opened in `repos/...`, `companies/x` or a template copy such as
|
|
103
|
+
* `repos/public/hq-core`), so the registry is read from the nearest enclosing
|
|
104
|
+
* folder with a lanes config, else the outermost enclosing HQ tree
|
|
105
|
+
* (registryHqRoot). A folder with no enclosing HQ tree is a wrong root, not an
|
|
106
|
+
* empty registry, so it is null too.
|
|
107
|
+
*/
|
|
108
|
+
export declare function registryRoster(options?: LedgerOptions): CapacityAccount[] | null;
|
|
109
|
+
/**
|
|
110
|
+
* The document a rebuild writes. Called under the now.json lock. Throws
|
|
111
|
+
* RosterUnavailable when the registry or HQ root cannot be read: a writer that
|
|
112
|
+
* cannot see the registry would write a partial roster marked fresh, so it
|
|
113
|
+
* keeps the last file instead. Readers rebuild from a newer now.json when they
|
|
114
|
+
* can read the registry themselves (readAvailable).
|
|
115
|
+
*/
|
|
116
|
+
export declare function availableForRebuild(view: NowView, root: string, now: Date, options?: LedgerOptions): string;
|
|
117
|
+
export type SignInAnswer = "signed_in" | "signed_out" | "not_installed" | "no_answer";
|
|
118
|
+
/** Asks a tool's own status command. Keeps only the answer, never its output. */
|
|
119
|
+
export type StatusProbe = (provider: LaneProvider, home: string) => Promise<SignInAnswer>;
|
|
120
|
+
export declare const defaultStatusProbe: StatusProbe;
|
|
121
|
+
/** Rows with no ledger at all, from each tool's status command. */
|
|
122
|
+
export declare function buildAvailableFromStatus(input: {
|
|
123
|
+
accounts: readonly CapacityAccount[];
|
|
124
|
+
now: Date;
|
|
125
|
+
probe: StatusProbe;
|
|
126
|
+
includeOther?: boolean;
|
|
127
|
+
}): Promise<AvailableDocument>;
|
|
128
|
+
export interface AvailableDeps {
|
|
129
|
+
probe?: StatusProbe;
|
|
130
|
+
/** Starts one background collect that owns the mark holding the token. Tests replace it. */
|
|
131
|
+
startCollect?: (options: LedgerOptions, token: string) => void;
|
|
132
|
+
sleep?: (ms: number) => Promise<void>;
|
|
133
|
+
/** Wall clock for the --fresh budget. */
|
|
134
|
+
clock?: () => number;
|
|
135
|
+
}
|
|
136
|
+
export declare const defaultStartCollect: (options: LedgerOptions, token: string) => void;
|
|
137
|
+
/** The env variable that hands a collect its mark's token, so it frees only its own mark. */
|
|
138
|
+
export declare const COLLECT_TOKEN_ENV = "HQ_CAPACITY_COLLECT_TOKEN";
|
|
139
|
+
/**
|
|
140
|
+
* Remove the single-flight mark once a collect finishes, so the next read need
|
|
141
|
+
* not wait out the TTL. The collect subprocess calls this with the token it was
|
|
142
|
+
* started with. A mark with another token belongs to a later collect (this one
|
|
143
|
+
* outlived the TTL and was reclaimed), so it is left alone. With no token
|
|
144
|
+
* nothing is removed.
|
|
145
|
+
*/
|
|
146
|
+
export declare function releaseCollectMark(options: LedgerOptions, token: string | undefined): void;
|
|
147
|
+
/** What `hq capacity available` prints. Never throws for a bad or missing ledger. */
|
|
148
|
+
export declare function readAvailable(input: {
|
|
149
|
+
options: LedgerOptions;
|
|
150
|
+
includeOther?: boolean;
|
|
151
|
+
fresh?: boolean;
|
|
152
|
+
}, deps?: AvailableDeps): Promise<AvailableDocument>;
|
|
153
|
+
export declare function formatAvailableText(document: AvailableDocument): string;
|
|
154
|
+
//# sourceMappingURL=available.d.ts.map
|