@a5c-ai/agent-catalog 5.0.1-staging.ee474eb45ea7 → 5.0.1-staging.efbc1959c0a1
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 +2 -2
- package/dist/atlas-bridge.js +2 -2
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +35 -0
- package/dist/discovery-snapshot.json +11386 -11386
- package/dist/models.d.ts +93 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/sdk.d.ts +64 -1
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +241 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
`@a5c-ai/agent-catalog` is a public package for the shared agent ontology, discovery catalog, packaged evidence shards, and graph-backed helper APIs used across the Babysitter toolchain.
|
|
4
4
|
|
|
5
|
-
The package is published through the central `
|
|
5
|
+
The package is published through the central `publish.yml` and `publish-packages-from-tag.yml` workflows. `main` publishes production releases, and `staging` publishes prerelease builds with the `staging` dist-tag.
|
|
6
6
|
|
|
7
7
|
## What ships
|
|
8
8
|
|
|
@@ -79,7 +79,7 @@ When graph structure or evidence claims change, update the YAML inputs first, th
|
|
|
79
79
|
|
|
80
80
|
- The package must stay publishable: it ships with `publishConfig.access = public`, includes this README in `files`, and is owned by the central publish workflows.
|
|
81
81
|
- `npm run ci:test --workspace=@a5c-ai/agent-catalog` is the release-equivalent contract for this workspace. It covers build output, graph validation, evidence freshness, package contract tests, and the publish lifecycle policy check.
|
|
82
|
-
- `
|
|
82
|
+
- `publish.yml` and `publish-packages-from-tag.yml` version, pack, and publish this package alongside the SDK, hooks-mux, agent-mux, and plugin compiler surfaces that consume it.
|
|
83
83
|
|
|
84
84
|
## Downstream compatibility
|
|
85
85
|
|
package/dist/atlas-bridge.js
CHANGED
|
@@ -27,12 +27,12 @@ const atlas_1 = require("@a5c-ai/atlas");
|
|
|
27
27
|
// Record adaptation: Atlas `_kind` -> agent-catalog `kind`
|
|
28
28
|
// ---------------------------------------------------------------------------
|
|
29
29
|
const AGENT_CATALOG_KINDS = new Set([
|
|
30
|
-
"AgentProduct", "AgentVersion", "Capability", "CapabilitySupport",
|
|
30
|
+
"AdapterModel", "AgentProduct", "AgentVersion", "Capability", "CapabilitySupport",
|
|
31
31
|
"CiSurface", "Claim", "DiscoverySignal", "EvidenceSource",
|
|
32
32
|
"HookMapping", "HookSurface", "LifecycleSemantics", "Modality",
|
|
33
33
|
"ModelFamily", "ModelProviderProduct", "ModelProviderVersion", "ModelVersion",
|
|
34
34
|
"PackageSurface", "PathDescriptor", "PluginArtifact", "PluginTarget",
|
|
35
|
-
"ProcessDescriptor", "SessionSemantics", "TransportProtocol", "TransportRuntime",
|
|
35
|
+
"ProcessDescriptor", "ProviderTranslation", "SessionSemantics", "TransportProtocol", "TransportRuntime",
|
|
36
36
|
]);
|
|
37
37
|
function isAgentCatalogRecord(record) {
|
|
38
38
|
return AGENT_CATALOG_KINDS.has(record._kind);
|
package/dist/data.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EAEZ,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EAIpB,WAAW,EAEX,cAAc,EAEd,aAAa,EAKb,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAGlB,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EAEb,mBAAmB,EACnB,cAAc,EACf,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EAEZ,YAAY,E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AoB,EAAE,mBAAmB,EAAE,CAAC;IAC5C,YAAY,EAAE,YAAY,CAAC;CAC5B;AA2FD,wBAAgB,0BAA0B,IAAI,IAAI,CAGjD;AAED,wBAAgB,mBAAmB,IAAI,qBAAqB,CAK3D;AAoDD,eAAO,MAAM,cAAc,eAA8D,CAAC;AAC1F,eAAO,MAAM,eAAe,gBAA+D,CAAC;AAC5F,eAAO,MAAM,QAAQ,kBAAwD,CAAC;AAC9E,eAAO,MAAM,MAAM,eAAsD,CAAC;AAC1E,eAAO,MAAM,SAAS,wBAAyD,CAAC;AAChF,eAAO,MAAM,MAAM,gBAAsD,CAAC;AAC1E,eAAO,MAAM,UAAU,uBAA0D,CAAC;AAClF,eAAO,MAAM,YAAY,wBAA4D,CAAC;AACtF,eAAO,MAAM,UAAU,sBAA0D,CAAC;AAClF,eAAO,MAAM,KAAK,kBAAqD,CAAC;AACxE,eAAO,MAAM,eAAe,iBAA8D,CAAC;AAC3F,eAAO,MAAM,iBAAiB,mBAAgE,CAAC;AAC/F,eAAO,MAAM,SAAS,qBAAyD,CAAC;AAChF,eAAO,MAAM,oBAAoB,qBAAkE,CAAC;AACpG,eAAO,MAAM,MAAM,gBAAsD,CAAC;AAC1E,eAAO,MAAM,eAAe,0BAA8D,CAAC;AAC3F,eAAO,MAAM,oBAAoB,qCAAmE,CAAC;AACrG,eAAO,MAAM,yBAAyB,yBAAsE,CAAC;AAC7G,eAAO,MAAM,iBAAiB,yCAAiE,CAAC;AAChG,eAAO,MAAM,cAAc,qBAA6D,CAAC;AACzF,eAAO,MAAM,cAAc,0BAA6D,CAAC;AACzF,eAAO,MAAM,qBAAqB,uBAAoE,CAAC;AACvG,eAAO,MAAM,aAAa,cAA6D,CAAC"}
|
package/dist/data.js
CHANGED
|
@@ -371,6 +371,40 @@ function parseBridgeCapabilities(value) {
|
|
|
371
371
|
positionalPrompt: Boolean(obj.positionalPrompt),
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
+
function parseAdapterMetadata(value) {
|
|
375
|
+
if (!value || typeof value !== 'object')
|
|
376
|
+
return undefined;
|
|
377
|
+
const obj = value;
|
|
378
|
+
return {
|
|
379
|
+
installCommands: Array.isArray(obj.installCommands) ? obj.installCommands.map((c) => {
|
|
380
|
+
const cmd = c;
|
|
381
|
+
return { type: valueAsString(cmd.type), command: valueAsString(cmd.command) };
|
|
382
|
+
}) : undefined,
|
|
383
|
+
authMethods: Array.isArray(obj.authMethods) ? obj.authMethods.map((m) => {
|
|
384
|
+
const method = m;
|
|
385
|
+
return {
|
|
386
|
+
type: valueAsString(method.type),
|
|
387
|
+
name: valueAsString(method.name),
|
|
388
|
+
envVars: Array.isArray(method.envVars) ? method.envVars.map(String) : undefined,
|
|
389
|
+
};
|
|
390
|
+
}) : undefined,
|
|
391
|
+
authFiles: Array.isArray(obj.authFiles) ? obj.authFiles.map(String) : undefined,
|
|
392
|
+
hostEnvSignals: Array.isArray(obj.hostEnvSignals) ? obj.hostEnvSignals.map(String) : undefined,
|
|
393
|
+
sessionDir: valueAsString(obj.sessionDir) || undefined,
|
|
394
|
+
sessionPersistence: (['file', 'sqlite', 'none'].includes(valueAsString(obj.sessionPersistence)) ? valueAsString(obj.sessionPersistence) : undefined),
|
|
395
|
+
automationEnv: obj.automationEnv && typeof obj.automationEnv === 'object' ? Object.fromEntries(Object.entries(obj.automationEnv).map(([k, v]) => [k, String(v)])) : undefined,
|
|
396
|
+
approvalModes: Array.isArray(obj.approvalModes) ? obj.approvalModes.map(String) : undefined,
|
|
397
|
+
capabilityFlags: obj.capabilityFlags && typeof obj.capabilityFlags === 'object' ? obj.capabilityFlags : undefined,
|
|
398
|
+
runtimeHooks: obj.runtimeHooks && typeof obj.runtimeHooks === 'object' ? obj.runtimeHooks : undefined,
|
|
399
|
+
configSchema: obj.configSchema && typeof obj.configSchema === 'object' ? {
|
|
400
|
+
configFormat: valueAsString(obj.configSchema.configFormat) || undefined,
|
|
401
|
+
configFilePaths: Array.isArray(obj.configSchema.configFilePaths) ? obj.configSchema.configFilePaths.map(String) : undefined,
|
|
402
|
+
projectConfigFilePaths: Array.isArray(obj.configSchema.projectConfigFilePaths) ? obj.configSchema.projectConfigFilePaths.map(String) : undefined,
|
|
403
|
+
} : undefined,
|
|
404
|
+
displayName: valueAsString(obj.displayName) || undefined,
|
|
405
|
+
defaultModelId: valueAsString(obj.defaultModelId) || undefined,
|
|
406
|
+
};
|
|
407
|
+
}
|
|
374
408
|
function parseToolSchemaFormat(value) {
|
|
375
409
|
const normalized = valueAsString(value);
|
|
376
410
|
if (normalized === "openai" || normalized === "anthropic" || normalized === "google")
|
|
@@ -420,6 +454,7 @@ function toAgentVersion(node) {
|
|
|
420
454
|
} : undefined,
|
|
421
455
|
hookSupport: parseHookSupport(node.hookSupport),
|
|
422
456
|
bridgeCapabilities: parseBridgeCapabilities(node.bridgeCapabilities),
|
|
457
|
+
adapterMetadata: parseAdapterMetadata(node.adapterMetadata),
|
|
423
458
|
};
|
|
424
459
|
}
|
|
425
460
|
function evidenceIdFromNode(node) {
|