@cadenya/cadenya 0.88.0 → 0.90.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +1 -1
  3. package/client.d.ts +1 -1
  4. package/client.js +1 -1
  5. package/client.mjs +1 -1
  6. package/package.json +1 -1
  7. package/resources/agents/variations.d.mts +11 -9
  8. package/resources/agents/variations.d.mts.map +1 -1
  9. package/resources/agents/variations.d.ts +11 -9
  10. package/resources/agents/variations.d.ts.map +1 -1
  11. package/resources/agents/variations.js +1 -1
  12. package/resources/agents/variations.mjs +1 -1
  13. package/resources/bulk-workspace-resources/results.d.mts +8 -8
  14. package/resources/bulk-workspace-resources/results.d.ts +8 -8
  15. package/resources/memory-layers/entries.d.mts +3 -3
  16. package/resources/memory-layers/entries.d.ts +3 -3
  17. package/resources/memory-layers/entries.js +1 -1
  18. package/resources/memory-layers/entries.mjs +1 -1
  19. package/resources/memory-layers/memory-layers.d.mts +10 -6
  20. package/resources/memory-layers/memory-layers.d.mts.map +1 -1
  21. package/resources/memory-layers/memory-layers.d.ts +10 -6
  22. package/resources/memory-layers/memory-layers.d.ts.map +1 -1
  23. package/resources/memory-layers/memory-layers.js +1 -1
  24. package/resources/memory-layers/memory-layers.js.map +1 -1
  25. package/resources/memory-layers/memory-layers.mjs +1 -1
  26. package/resources/memory-layers/memory-layers.mjs.map +1 -1
  27. package/resources/objectives/objectives.d.mts +36 -37
  28. package/resources/objectives/objectives.d.mts.map +1 -1
  29. package/resources/objectives/objectives.d.ts +36 -37
  30. package/resources/objectives/objectives.d.ts.map +1 -1
  31. package/resources/objectives/objectives.js.map +1 -1
  32. package/resources/objectives/objectives.mjs.map +1 -1
  33. package/src/client.ts +1 -1
  34. package/src/resources/agents/variations.ts +11 -9
  35. package/src/resources/bulk-workspace-resources/results.ts +8 -8
  36. package/src/resources/memory-layers/entries.ts +3 -3
  37. package/src/resources/memory-layers/memory-layers.ts +11 -6
  38. package/src/resources/objectives/objectives.ts +36 -37
  39. package/src/version.ts +1 -1
  40. package/version.d.mts +1 -1
  41. package/version.d.ts +1 -1
  42. package/version.js +1 -1
  43. package/version.mjs +1 -1
@@ -241,8 +241,8 @@ export interface ContextWindowCompacted {
241
241
 
242
242
  /**
243
243
  * MemoryRead is emitted each time the agent resolves a key against the memory
244
- * stack and loads an entry. Lookups that miss (key not found in any layer) do not
245
- * emit this event.
244
+ * cascade and loads an entry. Lookups that miss (key not found in any layer) do
245
+ * not emit this event.
246
246
  */
247
247
  export interface MemoryRead {
248
248
  /**
@@ -267,7 +267,7 @@ export interface MemoryRead {
267
267
 
268
268
  /**
269
269
  * MemoryReference identifies a memory layer or a specific entry within one, for
270
- * composition into a memory stack. Used on objectives (where entry pinning is
270
+ * composition into a memory cascade. Used on objectives (where entry pinning is
271
271
  * permitted).
272
272
  *
273
273
  * memory*layer_id accepts both the canonical form (memlyr*…) and the external-id
@@ -275,9 +275,10 @@ export interface MemoryRead {
275
275
  */
276
276
  export interface MemoryReference {
277
277
  /**
278
- * When set, pushes only this entry from memory_layer_id onto the stack behaves
279
- * as a single-entry layer (only this key resolves at this position). The entry
280
- * must belong to memory_layer_id; mismatches are rejected with InvalidArgument.
278
+ * When set, inserts only this entry from memory_layer_id into the cascade
279
+ * behaves as a single-entry layer (only this key resolves at this position). The
280
+ * entry must belong to memory_layer_id; mismatches are rejected with
281
+ * InvalidArgument.
281
282
  */
282
283
  memoryEntryId?: string;
283
284
 
@@ -342,23 +343,21 @@ export interface Objective {
342
343
  info?: ObjectiveInfo;
343
344
 
344
345
  /**
345
- * Memory layers/entries to push onto this objective's memory stack on top of the
346
- * baseline stack inherited from the selected variation.
346
+ * Memory layers/entries layered over the baseline cascade inherited from the
347
+ * selected variation — element-level rules over inherited styles, in CSS terms.
347
348
  *
348
- * Array order is push order: the first element sits lower in the objective's
349
- * contribution to the stack; the LAST element ends up on top of the effective
350
- * stack. Entries pinned via memory_entry_id behave as single-entry layers at their
351
- * position.
349
+ * Array order is resolution order: EARLIER elements are more specific and are
350
+ * consulted first. Entries pinned via memory_entry_id behave as single-entry
351
+ * layers at their position.
352
352
  *
353
353
  * System-managed layers (e.g., episodic) cannot be referenced here; they attach
354
- * themselves automatically based on episodic_key.
355
- *
356
- * Stack size cap: the TOTAL effective stack (variation's memory layers
354
+ * themselves automatically based on the episodic key.
357
355
  *
358
- * - this field) must not exceed 10 entries. A request that would produce an
359
- * effective stack larger than 10 is rejected with InvalidArgument.
356
+ * Size cap: the TOTAL effective cascade (this field + the variation's memory layer
357
+ * assignments) must not exceed 10 entries. A request that would produce a larger
358
+ * cascade is rejected with InvalidArgument.
360
359
  */
361
- memoryStack?: Array<MemoryReference>;
360
+ memoryCascade?: Array<MemoryReference>;
362
361
 
363
362
  /**
364
363
  * The output of the objective, populated when the objective completes. Will match
@@ -526,8 +525,8 @@ export interface ObjectiveEventData {
526
525
 
527
526
  /**
528
527
  * MemoryRead is emitted each time the agent resolves a key against the memory
529
- * stack and loads an entry. Lookups that miss (key not found in any layer) do not
530
- * emit this event.
528
+ * cascade and loads an entry. Lookups that miss (key not found in any layer) do
529
+ * not emit this event.
531
530
  */
532
531
  memoryRead?: MemoryRead;
533
532
 
@@ -688,12 +687,14 @@ export interface ObjectiveInfo {
688
687
  currentContextWindowId: string;
689
688
 
690
689
  /**
691
- * The effective memory stack at objective creation time, flattened from the
692
- * variation's baseline plus Objective.memory_stack. Order is push order (last =
693
- * top). Returned on reads so clients can see exactly what stack the objective is
694
- * using without having to re-join variation state.
690
+ * The effective memory cascade at objective creation time: the episodic layer
691
+ * (when present), then Objective.memory_cascade, then the variation's baseline
692
+ * layers by ascending position. Order is resolution order index 0 is the most
693
+ * specific and is consulted first; the first layer containing a key wins. Returned
694
+ * on reads so clients can see exactly what the objective resolves against without
695
+ * re-joining variation state.
695
696
  */
696
- effectiveMemoryStack: Array<MemoryReference>;
697
+ effectiveMemoryCascade: Array<MemoryReference>;
697
698
 
698
699
  /**
699
700
  * Total number of context windows that this objective has generated
@@ -901,23 +902,21 @@ export interface ObjectiveCreateParams {
901
902
  initialMessage?: string;
902
903
 
903
904
  /**
904
- * Memory layers/entries to push onto this objective's memory stack on top of the
905
- * baseline stack inherited from the selected variation.
905
+ * Memory layers/entries layered over the baseline cascade inherited from the
906
+ * selected variation — element-level rules over inherited styles, in CSS terms.
906
907
  *
907
- * Array order is push order: the first element sits lower in the objective's
908
- * contribution to the stack; the LAST element ends up on top of the effective
909
- * stack. Entries pinned via memory_entry_id behave as single-entry layers at their
910
- * position.
908
+ * Array order is resolution order: EARLIER elements are more specific and are
909
+ * consulted first. Entries pinned via memory_entry_id behave as single-entry
910
+ * layers at their position.
911
911
  *
912
912
  * System-managed layers (e.g., episodic) cannot be referenced here; they attach
913
- * themselves automatically based on episodic_key.
914
- *
915
- * Stack size cap: the TOTAL effective stack (variation's memory layers
913
+ * themselves automatically based on the episodic key.
916
914
  *
917
- * - this field) must not exceed 10 entries. A request that would produce an
918
- * effective stack larger than 10 is rejected with InvalidArgument.
915
+ * Size cap: the TOTAL effective cascade (this field + the variation's memory layer
916
+ * assignments) must not exceed 10 entries. A request that would produce a larger
917
+ * cascade is rejected with InvalidArgument.
919
918
  */
920
- memoryStack?: Array<MemoryReference>;
919
+ memoryCascade?: Array<MemoryReference>;
921
920
 
922
921
  /**
923
922
  * CreateOperationMetadata contains the user-provided fields for creating an
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.88.0'; // x-release-please-version
1
+ export const VERSION = '0.90.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.88.0";
1
+ export declare const VERSION = "0.90.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.88.0";
1
+ export declare const VERSION = "0.90.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.88.0'; // x-release-please-version
4
+ exports.VERSION = '0.90.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.88.0'; // x-release-please-version
1
+ export const VERSION = '0.90.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map