@mycompbox/compbox-cli 1.21.17 → 1.21.19
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/.tsbuildinfo +1 -1
- package/commands/run.d.ts +4 -1
- package/commands/run.d.ts.map +1 -1
- package/commands/run.js +103 -14
- package/commands/run.js.map +1 -1
- package/commands/workspace.d.ts +41 -2
- package/commands/workspace.d.ts.map +1 -1
- package/commands/workspace.js +147 -7
- package/commands/workspace.js.map +1 -1
- package/index.js +2902 -468
- package/package.json +1 -1
- package/utils/agent-invoker.d.ts +74 -13
- package/utils/agent-invoker.d.ts.map +1 -1
- package/utils/agent-invoker.js +341 -82
- package/utils/agent-invoker.js.map +1 -1
- package/utils/agent-permissions.d.ts +44 -0
- package/utils/agent-permissions.d.ts.map +1 -0
- package/utils/agent-permissions.js +229 -0
- package/utils/agent-permissions.js.map +1 -0
- package/utils/agent-store.d.ts +119 -0
- package/utils/agent-store.d.ts.map +1 -0
- package/utils/agent-store.js +421 -0
- package/utils/agent-store.js.map +1 -0
- package/utils/agent-trial.d.ts +34 -0
- package/utils/agent-trial.d.ts.map +1 -0
- package/utils/agent-trial.js +180 -0
- package/utils/agent-trial.js.map +1 -0
- package/utils/api-client.d.ts +11 -0
- package/utils/api-client.d.ts.map +1 -1
- package/utils/api-client.js +31 -0
- package/utils/api-client.js.map +1 -1
- package/utils/belt-engine.d.ts +72 -0
- package/utils/belt-engine.d.ts.map +1 -0
- package/utils/belt-engine.js +136 -0
- package/utils/belt-engine.js.map +1 -0
- package/utils/cloud-preflight.d.ts +26 -4
- package/utils/cloud-preflight.d.ts.map +1 -1
- package/utils/cloud-preflight.js +90 -7
- package/utils/cloud-preflight.js.map +1 -1
- package/utils/custom-agent-contract.d.ts +44 -0
- package/utils/custom-agent-contract.d.ts.map +1 -0
- package/utils/custom-agent-contract.js +122 -0
- package/utils/custom-agent-contract.js.map +1 -0
- package/utils/custom-agent-permissions.d.ts +48 -0
- package/utils/custom-agent-permissions.d.ts.map +1 -0
- package/utils/custom-agent-permissions.js +109 -0
- package/utils/custom-agent-permissions.js.map +1 -0
- package/utils/custom-agent-runner.d.ts +99 -0
- package/utils/custom-agent-runner.d.ts.map +1 -0
- package/utils/custom-agent-runner.js +227 -0
- package/utils/custom-agent-runner.js.map +1 -0
- package/utils/custom-agent-sync.d.ts +59 -0
- package/utils/custom-agent-sync.d.ts.map +1 -0
- package/utils/custom-agent-sync.js +197 -0
- package/utils/custom-agent-sync.js.map +1 -0
- package/utils/key-run.d.ts +9 -0
- package/utils/key-run.d.ts.map +1 -1
- package/utils/key-run.js +18 -0
- package/utils/key-run.js.map +1 -1
- package/utils/mailbox-client.d.ts +115 -2
- package/utils/mailbox-client.d.ts.map +1 -1
- package/utils/mailbox-client.js +114 -6
- package/utils/mailbox-client.js.map +1 -1
- package/utils/merge-guard.d.ts +48 -7
- package/utils/merge-guard.d.ts.map +1 -1
- package/utils/merge-guard.js +152 -17
- package/utils/merge-guard.js.map +1 -1
- package/utils/pxpipe-savings.d.ts +12 -0
- package/utils/pxpipe-savings.d.ts.map +1 -0
- package/utils/pxpipe-savings.js +68 -0
- package/utils/pxpipe-savings.js.map +1 -0
- package/utils/run-timings.d.ts +3 -0
- package/utils/run-timings.d.ts.map +1 -1
- package/utils/run-timings.js +2 -0
- package/utils/run-timings.js.map +1 -1
- package/utils/run-workspace.d.ts +18 -0
- package/utils/run-workspace.d.ts.map +1 -1
- package/utils/run-workspace.js +46 -5
- package/utils/run-workspace.js.map +1 -1
- package/utils/wrap-up.d.ts +8 -0
- package/utils/wrap-up.d.ts.map +1 -1
- package/utils/wrap-up.js +24 -2
- package/utils/wrap-up.js.map +1 -1
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent permissions (ENG-579): the company's agent set may declare what each
|
|
3
|
+
* agent is allowed to do. The runner turns those declarations into limits it
|
|
4
|
+
* can actually enforce:
|
|
5
|
+
*
|
|
6
|
+
* - `allow` / `deny` → Claude Code `--allowedTools` / `--disallowedTools`
|
|
7
|
+
* (an allow list also swaps the unattended
|
|
8
|
+
* `bypassPermissions` mode for `dontAsk`, so any
|
|
9
|
+
* tool NOT on the list is refused, never asked).
|
|
10
|
+
* - `ghDeny` → extra subcommands the `gh` shim refuses.
|
|
11
|
+
* - `protectedBranches` → extra branches the run copy's pre-push hook refuses.
|
|
12
|
+
*
|
|
13
|
+
* Anything else in a declaration can't be enforced from the runner; it is
|
|
14
|
+
* logged (never silently dropped) and the run goes on with what can be.
|
|
15
|
+
*
|
|
16
|
+
* Declarations live in the verified agent set (see agent-store.ts) at
|
|
17
|
+
* `agents/permissions.json` (pack path `.github/agents/permissions.json`):
|
|
18
|
+
*
|
|
19
|
+
* ```json
|
|
20
|
+
* {
|
|
21
|
+
* "agents": {
|
|
22
|
+
* "*": { "deny": ["WebFetch"] },
|
|
23
|
+
* "orchestrator": { "ghDeny": ["release create"], "protectedBranches": ["release"] },
|
|
24
|
+
* "planner": { "allow": ["Read", "Grep", "Glob", "mcp__compbox__*"] }
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* `"*"` applies to every agent; a named entry adds to it. The merge guard
|
|
30
|
+
* (ENG-346) always applies on top and can't be loosened by a declaration.
|
|
31
|
+
*/
|
|
32
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
33
|
+
import { join } from "node:path";
|
|
34
|
+
/** Where the declarations live inside the laid-out agent set folder. */
|
|
35
|
+
export const AGENT_PERMISSIONS_FILE = join("agents", "permissions.json");
|
|
36
|
+
const KNOWN_KEYS = new Set(["allow", "deny", "ghDeny", "protectedBranches"]);
|
|
37
|
+
/**
|
|
38
|
+
* A Claude Code tool pattern: a tool name (letters, digits, `_`, `-`, an
|
|
39
|
+
* optional trailing `*` for MCP wildcards) with an optional `(specifier)`.
|
|
40
|
+
* No commas or spaces outside the parentheses: the CLI splits on those.
|
|
41
|
+
*/
|
|
42
|
+
const TOOL_PATTERN_RE = /^[A-Za-z][A-Za-z0-9_-]*\*?(\([^()\n]+\))?$/;
|
|
43
|
+
/** `gh` subcommand: one or two words. */
|
|
44
|
+
const GH_SUBCOMMAND_RE = /^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)?$/;
|
|
45
|
+
/** A safe branch name (same rule as the merge guard's base branch). */
|
|
46
|
+
const BRANCH_RE = /^[A-Za-z0-9._/-]+$/;
|
|
47
|
+
function isRecord(value) {
|
|
48
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
49
|
+
}
|
|
50
|
+
function stringList(value, re, where, notEnforced) {
|
|
51
|
+
if (value === undefined)
|
|
52
|
+
return undefined;
|
|
53
|
+
if (!Array.isArray(value)) {
|
|
54
|
+
notEnforced.push(`${where} is not a list; ignored.`);
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
const out = [];
|
|
58
|
+
for (const item of value) {
|
|
59
|
+
if (typeof item === "string" && re.test(item.trim()) && !item.includes("..")) {
|
|
60
|
+
const v = item.trim();
|
|
61
|
+
if (!out.includes(v))
|
|
62
|
+
out.push(v);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
notEnforced.push(`${where}: ${JSON.stringify(item)} isn't a valid entry; ignored.`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return out;
|
|
69
|
+
}
|
|
70
|
+
/** Validate a permissions file. Never throws: bad parts are reported in `notEnforced`. */
|
|
71
|
+
export function parseAgentPermissions(value) {
|
|
72
|
+
const notEnforced = [];
|
|
73
|
+
const agents = {};
|
|
74
|
+
if (!isRecord(value) || !isRecord(value.agents)) {
|
|
75
|
+
notEnforced.push('permissions.json has no "agents" object; nothing to enforce.');
|
|
76
|
+
return { agents, notEnforced };
|
|
77
|
+
}
|
|
78
|
+
for (const key of Object.keys(value)) {
|
|
79
|
+
if (key !== "agents" && key !== "$schema" && key !== "version") {
|
|
80
|
+
notEnforced.push(`"${key}" can't be enforced by the runner; ignored.`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
for (const [name, raw] of Object.entries(value.agents)) {
|
|
84
|
+
if (!isRecord(raw)) {
|
|
85
|
+
notEnforced.push(`agents.${name} is not an object; ignored.`);
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
for (const key of Object.keys(raw)) {
|
|
89
|
+
if (!KNOWN_KEYS.has(key)) {
|
|
90
|
+
notEnforced.push(`agents.${name}.${key} can't be enforced by the runner; ignored.`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const perms = {};
|
|
94
|
+
const allow = stringList(raw.allow, TOOL_PATTERN_RE, `agents.${name}.allow`, notEnforced);
|
|
95
|
+
const deny = stringList(raw.deny, TOOL_PATTERN_RE, `agents.${name}.deny`, notEnforced);
|
|
96
|
+
const ghDeny = stringList(raw.ghDeny, GH_SUBCOMMAND_RE, `agents.${name}.ghDeny`, notEnforced);
|
|
97
|
+
const protectedBranches = stringList(raw.protectedBranches, BRANCH_RE, `agents.${name}.protectedBranches`, notEnforced);
|
|
98
|
+
if (allow)
|
|
99
|
+
perms.allow = allow;
|
|
100
|
+
if (deny)
|
|
101
|
+
perms.deny = deny;
|
|
102
|
+
if (ghDeny)
|
|
103
|
+
perms.ghDeny = ghDeny;
|
|
104
|
+
if (protectedBranches)
|
|
105
|
+
perms.protectedBranches = protectedBranches;
|
|
106
|
+
agents[name] = perms;
|
|
107
|
+
}
|
|
108
|
+
for (const name of Object.keys(agents)) {
|
|
109
|
+
if (name !== "*" && name !== "planner" && name !== "orchestrator") {
|
|
110
|
+
notEnforced.push(`agents.${name}: runs as a sub-agent inside the orchestrator or planner, so the runner applies those agents' limits to it, not its own.`);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return { agents, notEnforced };
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Read the declarations from a verified agent set folder. A set without the
|
|
117
|
+
* file declares nothing (null). An unreadable/invalid file is reported and
|
|
118
|
+
* treated as declaring nothing, never as "allow everything" silently.
|
|
119
|
+
*/
|
|
120
|
+
export function loadAgentPermissions(agentSetDir, log = () => undefined) {
|
|
121
|
+
const file = join(agentSetDir, AGENT_PERMISSIONS_FILE);
|
|
122
|
+
if (!existsSync(file))
|
|
123
|
+
return null;
|
|
124
|
+
let parsed;
|
|
125
|
+
try {
|
|
126
|
+
parsed = JSON.parse(readFileSync(file, "utf8"));
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
const why = error instanceof Error ? error.message : String(error);
|
|
130
|
+
log(`Agent permissions not enforced: ${AGENT_PERMISSIONS_FILE} can't be read (${why}).`);
|
|
131
|
+
return { agents: {}, notEnforced: [`${AGENT_PERMISSIONS_FILE} can't be read.`] };
|
|
132
|
+
}
|
|
133
|
+
const result = parseAgentPermissions(parsed);
|
|
134
|
+
for (const note of result.notEnforced)
|
|
135
|
+
log(`Agent permissions: ${note}`);
|
|
136
|
+
return result;
|
|
137
|
+
}
|
|
138
|
+
function union(a, b) {
|
|
139
|
+
if (!a && !b)
|
|
140
|
+
return undefined;
|
|
141
|
+
return [...new Set([...(a ?? []), ...(b ?? [])])];
|
|
142
|
+
}
|
|
143
|
+
/** `"*"` plus the named agent's entry. Null when nothing is declared for it. */
|
|
144
|
+
export function permissionsFor(file, agent) {
|
|
145
|
+
if (!file)
|
|
146
|
+
return null;
|
|
147
|
+
const all = file.agents["*"];
|
|
148
|
+
const own = file.agents[agent];
|
|
149
|
+
if (!all && !own)
|
|
150
|
+
return null;
|
|
151
|
+
const merged = {};
|
|
152
|
+
// An allow list narrows: when both declare one, only tools on BOTH are allowed.
|
|
153
|
+
if (all?.allow && own?.allow)
|
|
154
|
+
merged.allow = own.allow.filter((t) => all.allow?.includes(t));
|
|
155
|
+
else {
|
|
156
|
+
const only = all?.allow ?? own?.allow;
|
|
157
|
+
if (only)
|
|
158
|
+
merged.allow = [...only];
|
|
159
|
+
}
|
|
160
|
+
const deny = union(all?.deny, own?.deny);
|
|
161
|
+
const ghDeny = union(all?.ghDeny, own?.ghDeny);
|
|
162
|
+
const protectedBranches = union(all?.protectedBranches, own?.protectedBranches);
|
|
163
|
+
if (deny)
|
|
164
|
+
merged.deny = deny;
|
|
165
|
+
if (ghDeny)
|
|
166
|
+
merged.ghDeny = ghDeny;
|
|
167
|
+
if (protectedBranches)
|
|
168
|
+
merged.protectedBranches = protectedBranches;
|
|
169
|
+
return merged;
|
|
170
|
+
}
|
|
171
|
+
/** Index just past a variadic flag's values (the next `-`-prefixed token, or the end). */
|
|
172
|
+
function endOfValues(args, flagIndex) {
|
|
173
|
+
let i = flagIndex + 1;
|
|
174
|
+
while (i < args.length && !(args[i] ?? "").startsWith("-"))
|
|
175
|
+
i++;
|
|
176
|
+
return i;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Apply an agent's declared limits to a finished `claude` argv:
|
|
180
|
+
*
|
|
181
|
+
* - an allow list replaces `--permission-mode bypassPermissions` with
|
|
182
|
+
* `dontAsk` and adds `--allowedTools`, so unlisted tools are refused;
|
|
183
|
+
* - declared denials join the existing `--disallowedTools` list (the merge
|
|
184
|
+
* guard's entries stay first and are never removed), or start one.
|
|
185
|
+
*
|
|
186
|
+
* No declaration returns the argv unchanged.
|
|
187
|
+
*/
|
|
188
|
+
export function applyAgentPermissions(args, perms) {
|
|
189
|
+
const out = [...args];
|
|
190
|
+
if (!perms)
|
|
191
|
+
return out;
|
|
192
|
+
if (perms.allow) {
|
|
193
|
+
const modeAt = out.indexOf("--permission-mode");
|
|
194
|
+
if (modeAt >= 0 && out[modeAt + 1] === "bypassPermissions")
|
|
195
|
+
out[modeAt + 1] = "dontAsk";
|
|
196
|
+
else if (modeAt < 0)
|
|
197
|
+
out.push("--permission-mode", "dontAsk");
|
|
198
|
+
// An empty allow list means "no tools": nothing is pre-approved, dontAsk refuses all.
|
|
199
|
+
if (perms.allow.length > 0)
|
|
200
|
+
out.push("--allowedTools", ...perms.allow);
|
|
201
|
+
}
|
|
202
|
+
const deny = perms.deny ?? [];
|
|
203
|
+
if (deny.length > 0) {
|
|
204
|
+
const at = out.indexOf("--disallowedTools");
|
|
205
|
+
if (at >= 0) {
|
|
206
|
+
const end = endOfValues(out, at);
|
|
207
|
+
const existing = new Set(out.slice(at + 1, end));
|
|
208
|
+
out.splice(end, 0, ...deny.filter((d) => !existing.has(d)));
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
out.push("--disallowedTools", ...deny);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return out;
|
|
215
|
+
}
|
|
216
|
+
/** A one-line description for the run log of what is enforced for an agent. */
|
|
217
|
+
export function describeAgentPermissions(agent, perms) {
|
|
218
|
+
const parts = [];
|
|
219
|
+
if (perms.allow)
|
|
220
|
+
parts.push(`${String(perms.allow.length)} allowed tool(s), everything else refused`);
|
|
221
|
+
if (perms.deny?.length)
|
|
222
|
+
parts.push(`${String(perms.deny.length)} denied tool(s)`);
|
|
223
|
+
if (perms.ghDeny?.length)
|
|
224
|
+
parts.push(`gh refuses: ${perms.ghDeny.join(", ")}`);
|
|
225
|
+
if (perms.protectedBranches?.length)
|
|
226
|
+
parts.push(`no pushes to: ${perms.protectedBranches.join(", ")}`);
|
|
227
|
+
return `Agent permissions for ${agent}: ${parts.length > 0 ? parts.join("; ") : "nothing declared"}.`;
|
|
228
|
+
}
|
|
229
|
+
//# sourceMappingURL=agent-permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-permissions.js","sourceRoot":"","sources":["../../src/utils/agent-permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,wEAAwE;AACxE,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC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
|
+
* company's agent set.
|
|
4
|
+
*
|
|
5
|
+
* At job start the runner asks the API for the company's resolved agent set
|
|
6
|
+
* (GET /api/v1/skill-packs/agent-set: every enabled installed pack at its
|
|
7
|
+
* installed version, with a SHA-256 per file), downloads any pack it does not
|
|
8
|
+
* already hold, and checks every file against the server's hash before the
|
|
9
|
+
* agent is spawned.
|
|
10
|
+
*
|
|
11
|
+
* - Files are cached by content hash in a private folder under the user's
|
|
12
|
+
* home (`~/.compbox/agent-store`, mode 0700) — NEVER in the customer repo.
|
|
13
|
+
* - A file whose hash already sits in the cache is reused, not re-downloaded.
|
|
14
|
+
* - A downloaded file whose hash does not match the server's blocks the run
|
|
15
|
+
* with an {@link AgentSetIntegrityError} naming the pack, version and path.
|
|
16
|
+
* - Offline, the last known agent set is used from the cache only if every
|
|
17
|
+
* cached file still matches its recorded hash; otherwise the run is blocked.
|
|
18
|
+
*
|
|
19
|
+
* The verified set is laid out in `<root>/sets/<digest>/` (pack paths with any
|
|
20
|
+
* `.github/` prefix stripped, the same normalization `compbox install` uses),
|
|
21
|
+
* so a run can point its agents at that folder.
|
|
22
|
+
*/
|
|
23
|
+
import type { AgentSet, AgentSetPack } from "@mycompbox/shared";
|
|
24
|
+
/** Thrown when a file's content does not match the hash the server published. */
|
|
25
|
+
export declare class AgentSetIntegrityError extends Error {
|
|
26
|
+
constructor(message: string);
|
|
27
|
+
}
|
|
28
|
+
/** Thrown when no agent set can be obtained (server refused, or offline with no cache). */
|
|
29
|
+
export declare class AgentSetUnavailableError extends Error {
|
|
30
|
+
constructor(message: string);
|
|
31
|
+
}
|
|
32
|
+
export interface AgentStoreDeps {
|
|
33
|
+
/** Fetch the caller company's resolved agent set from the API. */
|
|
34
|
+
fetchAgentSet(): Promise<AgentSet>;
|
|
35
|
+
/** Download one pack version as a gzip tarball. */
|
|
36
|
+
downloadPack(skillPackId: string, version: string): Promise<Buffer>;
|
|
37
|
+
}
|
|
38
|
+
export interface AgentStoreOptions {
|
|
39
|
+
/** Store root; defaults to `~/.compbox/agent-store`. */
|
|
40
|
+
root?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The customer repository the job runs in. The store refuses to live inside
|
|
43
|
+
* it so agent files are never written into the customer's repo.
|
|
44
|
+
*/
|
|
45
|
+
projectDir?: string;
|
|
46
|
+
log?: (message: string) => void;
|
|
47
|
+
}
|
|
48
|
+
export interface ResolvedAgentSet {
|
|
49
|
+
organizationId: string;
|
|
50
|
+
packs: AgentSetPack[];
|
|
51
|
+
/** Folder holding the verified, laid-out agent files (outside the repo). */
|
|
52
|
+
dir: string;
|
|
53
|
+
/** SHA-256 over the canonical set manifest; names `dir`. */
|
|
54
|
+
digest: string;
|
|
55
|
+
/** `online` when the server answered, `cache` for the offline fallback. */
|
|
56
|
+
source: "online" | "cache";
|
|
57
|
+
/** `name@version` of the packs downloaded this time (empty on a full cache hit). */
|
|
58
|
+
downloaded: string[];
|
|
59
|
+
}
|
|
60
|
+
export declare function defaultAgentStoreRoot(): string;
|
|
61
|
+
export declare function sha256Hex(content: Buffer | string): string;
|
|
62
|
+
/** Path inside the laid-out set folder: pack path with any `.github/` prefix stripped. */
|
|
63
|
+
export declare function layoutPath(filePath: string): string;
|
|
64
|
+
/** Validate the server's (or cache's) agent set shape before trusting any of it. */
|
|
65
|
+
export declare function validateAgentSet(value: unknown): AgentSet;
|
|
66
|
+
/** SHA-256 of the canonical manifest: same packs, versions and file hashes → same digest. */
|
|
67
|
+
export declare function agentSetDigest(set: AgentSet): string;
|
|
68
|
+
/**
|
|
69
|
+
* One company agent as reported to CompBox (ENG-580): name, installed version,
|
|
70
|
+
* and the SHA-256 of its file manifest — so the exact content is identifiable.
|
|
71
|
+
*/
|
|
72
|
+
export interface AgentVersion {
|
|
73
|
+
name: string;
|
|
74
|
+
version: string;
|
|
75
|
+
sha256: string;
|
|
76
|
+
}
|
|
77
|
+
/** SHA-256 of one pack's manifest: its `[path, sha256]` pairs, sorted by path. */
|
|
78
|
+
export declare function packDigest(pack: AgentSetPack): string;
|
|
79
|
+
/** The agent versions of a set's packs, ordered by name (ENG-580). */
|
|
80
|
+
export declare function agentVersionsOf(packs: readonly AgentSetPack[]): AgentVersion[];
|
|
81
|
+
export declare class AgentStore {
|
|
82
|
+
readonly root: string;
|
|
83
|
+
private readonly log;
|
|
84
|
+
constructor(options?: AgentStoreOptions);
|
|
85
|
+
private blobPath;
|
|
86
|
+
/** Cached blob content if present AND it still hashes to `sha256`; otherwise undefined. */
|
|
87
|
+
readVerifiedBlob(sha256: string): Promise<Buffer | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* Resolve the company's agent set: online when the server answers, else the
|
|
90
|
+
* last known set from the cache (only if every file still verifies).
|
|
91
|
+
*/
|
|
92
|
+
resolve(deps: AgentStoreDeps): Promise<ResolvedAgentSet>;
|
|
93
|
+
/**
|
|
94
|
+
* The agent versions of the last set this store fully verified (ENG-580),
|
|
95
|
+
* for the heartbeat. Undefined when nothing was cached yet or the record is
|
|
96
|
+
* damaged — the caller then omits the report. No network, no blob checks.
|
|
97
|
+
*/
|
|
98
|
+
installedAgentVersions(): Promise<AgentVersion[] | undefined>;
|
|
99
|
+
private resolveOffline;
|
|
100
|
+
private packCached;
|
|
101
|
+
/** Download one pack, verify every expected file's hash, then cache by hash. */
|
|
102
|
+
private fetchPack;
|
|
103
|
+
/**
|
|
104
|
+
* Lay the verified set out in `<root>/sets/<digest>/`, reusing an existing
|
|
105
|
+
* layout only if every file in it still verifies. Packs are applied in name
|
|
106
|
+
* order, so on a path clash the later name wins deterministically.
|
|
107
|
+
*/
|
|
108
|
+
private layout;
|
|
109
|
+
private layoutIntact;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* HTTP-backed deps: the agent set comes from GET /api/v1/skill-packs/agent-set
|
|
113
|
+
* (user API token required — the company is resolved server-side), and each
|
|
114
|
+
* pack from its versioned download route.
|
|
115
|
+
*/
|
|
116
|
+
export declare function createAgentStoreHttpDeps(apiBaseUrl: string, apiToken: string, timeoutMs?: number): AgentStoreDeps;
|
|
117
|
+
/** Convenience: resolve with a fresh store. */
|
|
118
|
+
export declare function resolveAgentSet(deps: AgentStoreDeps, options?: AgentStoreOptions): Promise<ResolvedAgentSet>;
|
|
119
|
+
//# sourceMappingURL=agent-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-store.d.ts","sourceRoot":"","sources":["../../src/utils/agent-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAOH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEhE,iFAAiF;AACjF,qBAAa,sBAAuB,SAAQ,KAAK;gBACnC,OAAO,EAAE,MAAM;CAI5B;AAED,2FAA2F;AAC3F,qBAAa,wBAAyB,SAAQ,KAAK;gBACrC,OAAO,EAAE,MAAM;CAI5B;AAED,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,aAAa,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnC,mDAAmD;IACnD,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACrE;AAED,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAC;IACZ,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC3B,oFAAoF;IACpF,UAAU,EAAE,MAAM,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