@cadenya/cadenya 1.2.0 → 1.3.1
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/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/types.d.ts +13 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/types.ts +13 -1
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -85,7 +85,7 @@ export class Cadenya {
|
|
|
85
85
|
authHeader: () => ({ Authorization: `Bearer ${apiKey}` }),
|
|
86
86
|
maxRetries: options.maxRetries ?? 0,
|
|
87
87
|
timeout: options.timeout,
|
|
88
|
-
defaultHeaders: { 'User-Agent': 'cadenya-typescript/1.
|
|
88
|
+
defaultHeaders: { 'User-Agent': 'cadenya-typescript/1.3.0 (api 1.0)', ...options.defaultHeaders },
|
|
89
89
|
fetch: options.fetch,
|
|
90
90
|
logger: options.logger,
|
|
91
91
|
logLevel: options.logLevel,
|
package/src/types.ts
CHANGED
|
@@ -605,6 +605,18 @@ export interface AgentVariationInfo {
|
|
|
605
605
|
* regardless of which tools progressive discovery has loaded.
|
|
606
606
|
*/
|
|
607
607
|
effectiveToolCount: number;
|
|
608
|
+
/**
|
|
609
|
+
* Current display metadata for targets explicitly referenced by
|
|
610
|
+
* spec.assignments and spec.memory_layer_assignments, keyed by canonical
|
|
611
|
+
* resource ID. Includes tools, tool sets, sub-agents, and memory layers in
|
|
612
|
+
* one map; each value's id equals its key. Does not expand tools within
|
|
613
|
+
* assigned tool sets or assignments within sub-agents.
|
|
614
|
+
* Populated whenever info is returned; empty when there are no assignments.
|
|
615
|
+
* Missing or inaccessible targets are omitted, and names may be absent.
|
|
616
|
+
* Clients use spec for assignment type/order and fall back to the ID when
|
|
617
|
+
* display metadata is unavailable. This map never accepts assignment writes.
|
|
618
|
+
*/
|
|
619
|
+
assignmentMetadata: Record<string, BareMetadata>;
|
|
608
620
|
}
|
|
609
621
|
|
|
610
622
|
/**
|
|
@@ -883,7 +895,7 @@ export interface AssistantToolCall {
|
|
|
883
895
|
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
884
896
|
* optional human-readable name. These are used for reference fields where the
|
|
885
897
|
* full metadata (account scoping, timestamps, labels, external IDs) is not
|
|
886
|
-
* needed — e.g., the
|
|
898
|
+
* needed — e.g., the assignment metadata inside agent variation info or the
|
|
887
899
|
* tools assigned to an objective. Both fields are server-populated; clients
|
|
888
900
|
* provide IDs through sibling fields rather than by constructing a
|
|
889
901
|
* BareMetadata themselves.
|