@noetic-tools/context 1.1.0 → 1.2.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.
Files changed (43) hide show
  1. package/README.md +2 -3
  2. package/dist/context/cache-anchoring.d.ts +103 -0
  3. package/dist/context/cache-anchoring.js +273 -0
  4. package/dist/context/layer-lifecycle.d.ts +3 -5
  5. package/dist/context/layer-lifecycle.js +12 -2
  6. package/dist/context/layer-provides.d.ts +1 -1
  7. package/dist/context/layer-provides.js +1 -1
  8. package/dist/context/layer-usage.d.ts +18 -3
  9. package/dist/context/layer-usage.js +10 -1
  10. package/dist/context/layers/{file-reference.d.ts → filesystem.d.ts} +1 -1
  11. package/dist/context/layers/{file-reference.js → filesystem.js} +60 -3
  12. package/dist/context/layers/{history-window.d.ts → history.d.ts} +4 -4
  13. package/dist/context/layers/{history-window.js → history.js} +6 -6
  14. package/dist/context/layers/{static-content.d.ts → instructions.d.ts} +3 -2
  15. package/dist/context/layers/{static-content.js → instructions.js} +5 -2
  16. package/dist/context/layers/{observational-context.d.ts → observations.d.ts} +12 -12
  17. package/dist/context/layers/{observational-context.js → observations.js} +7 -7
  18. package/dist/context/layers/plan-prompts.d.ts +1 -1
  19. package/dist/context/layers/plan-prompts.js +16 -16
  20. package/dist/context/layers/plan-state.d.ts +31 -0
  21. package/dist/context/layers/plan-state.js +12 -0
  22. package/dist/context/layers/{plan-context.d.ts → plan.d.ts} +6 -28
  23. package/dist/context/layers/plan.js +697 -0
  24. package/dist/context/layers/{working-memory-context.d.ts → scratchpad.d.ts} +13 -13
  25. package/dist/context/layers/{working-memory-context.js → scratchpad.js} +8 -8
  26. package/dist/context/layers/steering.d.ts +1 -0
  27. package/dist/context/layers/steering.js +6 -1
  28. package/dist/context/layers/{durable-task-state.d.ts → task-state.d.ts} +20 -20
  29. package/dist/context/layers/{durable-task-state.js → task-state.js} +9 -9
  30. package/dist/context/layers/{temporal-context.d.ts → temporal.d.ts} +5 -5
  31. package/dist/context/layers/{temporal-context.js → temporal.js} +11 -5
  32. package/dist/context/layers/{tool-context-layer.d.ts → tool-calls.d.ts} +2 -2
  33. package/dist/context/layers/{tool-context-layer.js → tool-calls.js} +1 -1
  34. package/dist/context/projector.d.ts +27 -8
  35. package/dist/context/projector.js +42 -13
  36. package/dist/context/strip-unresolved.d.ts +1 -1
  37. package/dist/context/strip-unresolved.js +1 -1
  38. package/dist/index.d.ts +10 -10
  39. package/dist/index.js +10 -10
  40. package/package.json +2 -2
  41. package/dist/context/layers/plan-context.js +0 -683
  42. package/dist/deprecated.d.ts +0 -43
  43. package/dist/deprecated.js +0 -28
@@ -1,43 +0,0 @@
1
- /**
2
- * Deprecated aliases from the "memory layer" era of the framework.
3
- *
4
- * The layer system assembles the model's *context window* — recall, budget
5
- * allocation, history projection, the item-append pipeline — so it is named
6
- * after context, not memory. Every name below still resolves to its
7
- * replacement; nothing here changes behaviour.
8
- *
9
- * These are scheduled for removal in the next major of `@noetic-tools/context`.
10
- */
11
- export type { ContextMemory, InferMemory, InferMemoryShape, MemoryCallModelRequest, MemoryConfig, MemoryHooks, MemoryLayer, MemoryScope, ToolMemory, ToolMemoryDeclaration, } from '@noetic-tools/types';
12
- export {
13
- /** @deprecated Renamed to `buildContextData`. */
14
- buildContextData as buildContextMemory, } from './context/layer-api.js';
15
- export {
16
- /** @deprecated Renamed to `observationalContext`. */
17
- observationalContext as observationalMemory, } from './context/layers/observational-context.js';
18
- export {
19
- /** @deprecated Renamed to `planContext`. */
20
- planContext as planMemory, } from './context/layers/plan-context.js';
21
- export {
22
- /** @deprecated Renamed to `temporalContext`. */
23
- temporalContext as temporalMemory, } from './context/layers/temporal-context.js';
24
- export {
25
- /** @deprecated Renamed to `toolContextLayer`. */
26
- toolContextLayer as toolMemoryLayer, } from './context/layers/tool-context-layer.js';
27
- export {
28
- /** @deprecated Renamed to `workingMemoryContext`. */
29
- workingMemoryContext as workingMemory, } from './context/layers/working-memory-context.js';
30
- import type { ObservationalContextConfig } from './context/layers/observational-context.js';
31
- import type { PlanContextConfig } from './context/layers/plan-context.js';
32
- import type { TemporalContextConfig } from './context/layers/temporal-context.js';
33
- import type { WorkingMemoryContextConfig, WorkingMemoryContextState } from './context/layers/working-memory-context.js';
34
- /** @deprecated Renamed to {@link WorkingMemoryContextConfig}. */
35
- export type WorkingMemoryConfig = WorkingMemoryContextConfig;
36
- /** @deprecated Renamed to {@link WorkingMemoryContextState}. */
37
- export type WorkingMemoryState = WorkingMemoryContextState;
38
- /** @deprecated Renamed to {@link ObservationalContextConfig}. */
39
- export type ObservationalMemoryConfig = ObservationalContextConfig;
40
- /** @deprecated Renamed to {@link TemporalContextConfig}. */
41
- export type TemporalMemoryConfig = TemporalContextConfig;
42
- /** @deprecated Renamed to {@link PlanContextConfig}. */
43
- export type PlanMemoryConfig = PlanContextConfig;
@@ -1,28 +0,0 @@
1
- /**
2
- * Deprecated aliases from the "memory layer" era of the framework.
3
- *
4
- * The layer system assembles the model's *context window* — recall, budget
5
- * allocation, history projection, the item-append pipeline — so it is named
6
- * after context, not memory. Every name below still resolves to its
7
- * replacement; nothing here changes behaviour.
8
- *
9
- * These are scheduled for removal in the next major of `@noetic-tools/context`.
10
- */
11
- export {
12
- /** @deprecated Renamed to `buildContextData`. */
13
- buildContextData as buildContextMemory, } from './context/layer-api.js';
14
- export {
15
- /** @deprecated Renamed to `observationalContext`. */
16
- observationalContext as observationalMemory, } from './context/layers/observational-context.js';
17
- export {
18
- /** @deprecated Renamed to `planContext`. */
19
- planContext as planMemory, } from './context/layers/plan-context.js';
20
- export {
21
- /** @deprecated Renamed to `temporalContext`. */
22
- temporalContext as temporalMemory, } from './context/layers/temporal-context.js';
23
- export {
24
- /** @deprecated Renamed to `toolContextLayer`. */
25
- toolContextLayer as toolMemoryLayer, } from './context/layers/tool-context-layer.js';
26
- export {
27
- /** @deprecated Renamed to `workingMemoryContext`. */
28
- workingMemoryContext as workingMemory, } from './context/layers/working-memory-context.js';