@agentproto/cli 0.7.0 → 0.8.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/README.md +3 -0
- package/dist/cli.mjs +17841 -17221
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.ts +40 -4
- package/dist/index.mjs +15946 -15354
- package/dist/index.mjs.map +1 -1
- package/dist/registry/builtins.mjs +1 -1
- package/dist/registry/manifest.mjs +1 -1
- package/dist/registry/plugins.mjs +1 -1
- package/dist/registry/runtime.mjs +1 -1
- package/dist/util/credentials.mjs +1 -1
- package/package.json +16 -16
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,33 @@ declare function runServe(args: readonly string[]): Promise<number>;
|
|
|
98
98
|
*/
|
|
99
99
|
declare function runAcp(args: readonly string[]): Promise<number>;
|
|
100
100
|
|
|
101
|
+
declare function runPackSkill(args: readonly string[]): Promise<number>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Single shared `zip` implementation for a skill pack directory. Used by
|
|
105
|
+
* `claude-plugin.ts` (consumer-side install, `agentproto install skill/...`)
|
|
106
|
+
* and by a package's own release-time build script (producer-side, see
|
|
107
|
+
* `packages/skill-pack-<name>/scripts/build.mjs`) — one zip technique, not
|
|
108
|
+
* one per caller.
|
|
109
|
+
*/
|
|
110
|
+
interface ZipPackResult {
|
|
111
|
+
zipped: boolean;
|
|
112
|
+
zipPath: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Best-effort zip of `dirToZip` into `<dirToZip>.zip` (or `zipPath` when
|
|
116
|
+
* given). The directory is the canonical artifact; the archive is a
|
|
117
|
+
* convenience — `zip` may be absent on minimal/Windows environments, so a
|
|
118
|
+
* failure to zip is reported via `zipped: false` rather than thrown.
|
|
119
|
+
*
|
|
120
|
+
* Runs `zip` with cwd set to `dirToZip`'s parent and zips its bare basename,
|
|
121
|
+
* so archive entries read as `<name>/...` — not the full absolute path a
|
|
122
|
+
* naive `zip -r <zipPath> <dirToZip>` would bake in when `dirToZip` is
|
|
123
|
+
* absolute (as every caller here passes it). Unzipping must not recreate
|
|
124
|
+
* the machine's own directory tree.
|
|
125
|
+
*/
|
|
126
|
+
declare function zipPackDir(dirToZip: string, zipPath?: string): Promise<ZipPackResult>;
|
|
127
|
+
|
|
101
128
|
/**
|
|
102
129
|
* Resolve a slug like "claude-code" to a runnable `AgentCliHandle`.
|
|
103
130
|
*
|
|
@@ -231,14 +258,23 @@ declare function listInstalledAdapters(opts?: {
|
|
|
231
258
|
* with its runtime availability status:
|
|
232
259
|
*
|
|
233
260
|
* "supported" — known to agentproto, package not importable (not installed)
|
|
234
|
-
* "available" — package resolves; requiresSetup but no ledger yet
|
|
235
|
-
*
|
|
261
|
+
* "available" — package resolves; requiresSetup but no ledger yet, OR
|
|
262
|
+
* authRequired but no billing credential resolves
|
|
263
|
+
* "ready" — package resolves + setup complete (or no setup needed) AND
|
|
264
|
+
* (authRequired is false, or a credential DOES resolve)
|
|
236
265
|
*
|
|
237
266
|
* Also appends any adapters discovered in node_modules that aren't in the
|
|
238
267
|
* catalog, so locally-installed custom adapters still appear.
|
|
239
268
|
*
|
|
240
269
|
* Status is derived via the kit's `computeStatus`: resolved × requiresSetup ×
|
|
241
|
-
* ledger-exists — never via `handle.check()`
|
|
270
|
+
* ledger-exists × (authRequired × authConfigured) — never via `handle.check()`
|
|
271
|
+
* (per OQ-5). The auth axis is independent of `requiresSetup`: claude-code
|
|
272
|
+
* declares no `setup[]` at all (`requiresSetup` is always false for it) but
|
|
273
|
+
* `authEnforce:"always"` hard-fails every spawn without a billing credential
|
|
274
|
+
* — `authProbe` (wired to the runtime's `isAgentCliAuthConfigured`, which
|
|
275
|
+
* mirrors `resolveAuthSpec`'s exact precedence including the explicit-gate
|
|
276
|
+
* on the providers store, PR #321) is what makes that honest instead of the
|
|
277
|
+
* old `!requiresSetup` short-circuit reporting "ready" on zero credentials.
|
|
242
278
|
*
|
|
243
279
|
* A fourth status, `"unresolvable"`, sits outside that kit-owned vocabulary:
|
|
244
280
|
* when `resolveAdapter` falls back to its last-known-good cache (see there),
|
|
@@ -369,4 +405,4 @@ declare function listAcpGenericAdapters(opts?: {
|
|
|
369
405
|
excludeSlugs?: ReadonlySet<string>;
|
|
370
406
|
}): Promise<AcpGenericListEntry[]>;
|
|
371
407
|
|
|
372
|
-
export { ACP_CATALOG, type AcpAgentSpec, type AcpGenericListEntry, type AcpSpecSource, type AdapterInfo, type AdapterListing, type ResolvedAdapter, acpHandleFromSpec, binOnPath, listAcpGenericAdapters, listAdaptersWithAcp, listAdaptersWithCatalog, listInstalledAdapters, resolveAcpSpec, resolveAdapter, runAcp, runInstall, runRun, runServe };
|
|
408
|
+
export { ACP_CATALOG, type AcpAgentSpec, type AcpGenericListEntry, type AcpSpecSource, type AdapterInfo, type AdapterListing, type ResolvedAdapter, type ZipPackResult, acpHandleFromSpec, binOnPath, listAcpGenericAdapters, listAdaptersWithAcp, listAdaptersWithCatalog, listInstalledAdapters, resolveAcpSpec, resolveAdapter, runAcp, runInstall, runPackSkill, runRun, runServe, zipPackDir };
|