@cadenya/cadenya 0.45.0 → 0.46.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/CHANGELOG.md +14 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-variations.d.mts +79 -1
- package/resources/agent-variations.d.mts.map +1 -1
- package/resources/agent-variations.d.ts +79 -1
- package/resources/agent-variations.d.ts.map +1 -1
- package/resources/agent-variations.js +31 -0
- package/resources/agent-variations.js.map +1 -1
- package/resources/agent-variations.mjs +31 -0
- package/resources/agent-variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +2 -2
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +2 -2
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +1 -2
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +1 -2
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/objectives/index.d.mts +1 -1
- package/resources/objectives/index.d.mts.map +1 -1
- package/resources/objectives/index.d.ts +1 -1
- package/resources/objectives/index.d.ts.map +1 -1
- package/resources/objectives/index.js.map +1 -1
- package/resources/objectives/index.mjs.map +1 -1
- package/resources/objectives/objectives.d.mts +76 -1
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +76 -1
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs.map +1 -1
- package/src/client.ts +12 -0
- package/src/resources/agent-variations.ts +124 -0
- package/src/resources/agents/webhook-deliveries.ts +4 -2
- package/src/resources/index.ts +6 -0
- package/src/resources/memory-layers/memory-layers.ts +1 -2
- package/src/resources/objectives/index.ts +2 -0
- package/src/resources/objectives/objectives.ts +85 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -90,8 +90,7 @@ export type MemoryLayersCursorPagination = CursorPagination<MemoryLayer>;
|
|
|
90
90
|
* controls how its entries participate in the agent loop — see MemoryLayerType for
|
|
91
91
|
* details.
|
|
92
92
|
*
|
|
93
|
-
* Memory
|
|
94
|
-
* the top of the stack downward, and the first matching entry wins.
|
|
93
|
+
* See "Memory stack composition" above for how layers compose at lookup time.
|
|
95
94
|
*/
|
|
96
95
|
export interface MemoryLayer {
|
|
97
96
|
/**
|
|
@@ -207,6 +207,51 @@ export interface ContextWindowCompacted {
|
|
|
207
207
|
summary?: string;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
/**
|
|
211
|
+
* MemoryRead is emitted each time the agent resolves a key against the memory
|
|
212
|
+
* stack and loads an entry. Lookups that miss (key not found in any layer) do not
|
|
213
|
+
* emit this event.
|
|
214
|
+
*/
|
|
215
|
+
export interface MemoryRead {
|
|
216
|
+
/**
|
|
217
|
+
* The specific entry that was read.
|
|
218
|
+
*/
|
|
219
|
+
memoryEntryId?: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The layer the entry resolved to. The top-most layer that contained the key —
|
|
223
|
+
* other layers beneath it that also contained the key are shadowed and not
|
|
224
|
+
* referenced here.
|
|
225
|
+
*/
|
|
226
|
+
memoryLayerId?: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Human-readable description of the read, set by the runtime. For example: "Loaded
|
|
230
|
+
* skill", "Resolved context key". Not machine-parsed; intended for UI display
|
|
231
|
+
* alongside the other events in an objective's timeline.
|
|
232
|
+
*/
|
|
233
|
+
message?: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* MemoryReference identifies a memory layer or a specific entry within one, for
|
|
238
|
+
* composition into a memory stack. Used on objectives (where entry pinning is
|
|
239
|
+
* permitted).
|
|
240
|
+
*
|
|
241
|
+
* memory*layer_id accepts both the canonical form (memlyr*…) and the external-id
|
|
242
|
+
* form (external_id:my-custom-id). The same applies to memory_entry_id.
|
|
243
|
+
*/
|
|
244
|
+
export interface MemoryReference {
|
|
245
|
+
/**
|
|
246
|
+
* When set, pushes only this entry from memory_layer_id onto the stack — behaves
|
|
247
|
+
* as a single-entry layer (only this key resolves at this position). The entry
|
|
248
|
+
* must belong to memory_layer_id; mismatches are rejected with InvalidArgument.
|
|
249
|
+
*/
|
|
250
|
+
memoryEntryId?: string;
|
|
251
|
+
|
|
252
|
+
memoryLayerId?: string;
|
|
253
|
+
}
|
|
254
|
+
|
|
210
255
|
export interface Objective {
|
|
211
256
|
data: ObjectiveData;
|
|
212
257
|
|
|
@@ -316,6 +361,29 @@ export interface ObjectiveData {
|
|
|
316
361
|
*/
|
|
317
362
|
initialMessage?: string;
|
|
318
363
|
|
|
364
|
+
/**
|
|
365
|
+
* Memory layers/entries to push onto this objective's memory stack on top of the
|
|
366
|
+
* baseline stack inherited from the selected variation.
|
|
367
|
+
*
|
|
368
|
+
* See "Memory stack composition" in memory.proto for lookup semantics.
|
|
369
|
+
*
|
|
370
|
+
* Array order is push order: the first element sits lower in the objective's
|
|
371
|
+
* contribution to the stack; the LAST element ends up on top of the effective
|
|
372
|
+
* stack. Entries pinned via memory_entry_id behave as single-entry layers at their
|
|
373
|
+
* position.
|
|
374
|
+
*
|
|
375
|
+
* System-managed layers (e.g., episodic) cannot be referenced here; they attach
|
|
376
|
+
* themselves automatically via the runtime based on episodic_key.
|
|
377
|
+
*
|
|
378
|
+
* Stack size cap: the TOTAL effective stack (variation's memory layers
|
|
379
|
+
*
|
|
380
|
+
* - this field) must not exceed 10 entries. A request that would produce an
|
|
381
|
+
* effective stack larger than 10 is rejected with InvalidArgument. Variations
|
|
382
|
+
* themselves are capped at 10 memory layer assignments, so a variation that is
|
|
383
|
+
* already "full" leaves no room for objective-level references.
|
|
384
|
+
*/
|
|
385
|
+
memoryStack?: Array<MemoryReference>;
|
|
386
|
+
|
|
319
387
|
/**
|
|
320
388
|
* A parent objective means the objective was spawned off using a separate agent to
|
|
321
389
|
* complete an objective
|
|
@@ -358,6 +426,13 @@ export interface ObjectiveEventData {
|
|
|
358
426
|
|
|
359
427
|
error?: ObjectiveError;
|
|
360
428
|
|
|
429
|
+
/**
|
|
430
|
+
* MemoryRead is emitted each time the agent resolves a key against the memory
|
|
431
|
+
* stack and loads an entry. Lookups that miss (key not found in any layer) do not
|
|
432
|
+
* emit this event.
|
|
433
|
+
*/
|
|
434
|
+
memoryRead?: MemoryRead;
|
|
435
|
+
|
|
361
436
|
subObjectiveCreated?: SubObjectiveCreated;
|
|
362
437
|
|
|
363
438
|
toolApprovalRequested?: ToolApprovalRequested;
|
|
@@ -472,6 +547,14 @@ export interface ObjectiveInfo {
|
|
|
472
547
|
*/
|
|
473
548
|
createdBy?: AccountAPI.Profile;
|
|
474
549
|
|
|
550
|
+
/**
|
|
551
|
+
* The effective memory stack at objective creation time, flattened from the
|
|
552
|
+
* variation's baseline plus ObjectiveData.memory_stack. Order is push order (last
|
|
553
|
+
* = top). Returned on reads so clients can see exactly what stack the objective is
|
|
554
|
+
* using without having to re-join variation state.
|
|
555
|
+
*/
|
|
556
|
+
effectiveMemoryStack?: Array<MemoryReference>;
|
|
557
|
+
|
|
475
558
|
/**
|
|
476
559
|
* Total number of context windows that this objective has generated
|
|
477
560
|
*/
|
|
@@ -746,6 +829,8 @@ export declare namespace Objectives {
|
|
|
746
829
|
type AssistantToolCall as AssistantToolCall,
|
|
747
830
|
type CallableTool as CallableTool,
|
|
748
831
|
type ContextWindowCompacted as ContextWindowCompacted,
|
|
832
|
+
type MemoryRead as MemoryRead,
|
|
833
|
+
type MemoryReference as MemoryReference,
|
|
749
834
|
type Objective as Objective,
|
|
750
835
|
type ObjectiveContextWindow as ObjectiveContextWindow,
|
|
751
836
|
type ObjectiveContextWindowData as ObjectiveContextWindowData,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.46.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.46.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.46.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.46.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|