@noetic-tools/context 1.4.0 → 1.5.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.
@@ -19,10 +19,10 @@ export interface ObservationsConfig {
19
19
  * @returns A `ContextLayer` that accumulates and summarizes observations over time.
20
20
  */
21
21
  export declare function observations(config?: ObservationsConfig): {
22
- id: 'observations';
22
+ id: "observations";
23
23
  name: string;
24
24
  slot: 200;
25
- scope: "resource" | "thread";
25
+ scope: "thread" | "resource";
26
26
  budget: {
27
27
  min: number;
28
28
  max: number;
@@ -17,9 +17,9 @@ import type { PlanState } from './plan-state.js';
17
17
  /** How the planning briefing shapes the turn. */
18
18
  export declare const PlanStyle: {
19
19
  /** Explore → design → review → write → exit. Best when the work's shape is known. */
20
- readonly Phased: 'phased';
20
+ readonly Phased: "phased";
21
21
  /** Explore → write → ask, on repeat. Best when requirements are still vague. */
22
- readonly Interview: 'interview';
22
+ readonly Interview: "interview";
23
23
  };
24
24
  export type PlanStyle = (typeof PlanStyle)[keyof typeof PlanStyle];
25
25
  export interface PlanningPromptOptions {
@@ -5,11 +5,11 @@ import type { WorkflowDocument } from '@noetic-tools/types';
5
5
  * both depend on it without importing each other.
6
6
  */
7
7
  export declare const PlanPhase: {
8
- readonly Idle: 'idle';
9
- readonly Planning: 'planning';
10
- readonly Executing: 'executing';
11
- readonly Completed: 'completed';
12
- readonly Failed: 'failed';
8
+ readonly Idle: "idle";
9
+ readonly Planning: "planning";
10
+ readonly Executing: "executing";
11
+ readonly Completed: "completed";
12
+ readonly Failed: "failed";
13
13
  };
14
14
  export type PlanPhase = (typeof PlanPhase)[keyof typeof PlanPhase];
15
15
  export interface PlanExecutionEntry {
@@ -14,10 +14,10 @@ export interface ScratchpadConfig {
14
14
  * @returns A `ContextLayer` providing scratchpad state the model can read and write.
15
15
  */
16
16
  export declare function scratchpad(config?: ScratchpadConfig): {
17
- id: 'scratchpad';
17
+ id: "scratchpad";
18
18
  name: string;
19
19
  slot: 100;
20
- scope: "resource" | "thread";
20
+ scope: "thread" | "resource";
21
21
  budget: {
22
22
  min: number;
23
23
  max: number;
@@ -7,7 +7,7 @@ import type { AfterModelCallParams, BeforeToolCallParams, ContextScope, LedgerEn
7
7
  * @returns A `ContextLayer` that enforces steering rules via allow/deny/guide decisions.
8
8
  */
9
9
  export declare function steering(config: SteeringConfig): {
10
- id: 'steering';
10
+ id: "steering";
11
11
  name: string;
12
12
  slot: 90;
13
13
  scope: ContextScope;
@@ -46,7 +46,7 @@ export interface TaskStateOptions {
46
46
  * @returns A `ContextLayer` scoped to the thread with durable task state.
47
47
  */
48
48
  export declare function taskState(opts?: TaskStateOptions): {
49
- id: 'task-state';
49
+ id: "task-state";
50
50
  name: string;
51
51
  slot: number;
52
52
  scope: "thread";
@@ -93,7 +93,6 @@ export declare function taskState(opts?: TaskStateOptions): {
93
93
  }>;
94
94
  onComplete({ state, outcome, ctx }: import("@noetic-tools/types").CompleteParams<TaskState>): Promise<{
95
95
  state: {
96
- files: string[];
97
96
  data: {
98
97
  __outcome: import("@noetic-tools/types").ExecutionOutcome;
99
98
  };
@@ -101,6 +100,7 @@ export declare function taskState(opts?: TaskStateOptions): {
101
100
  timestamp: number;
102
101
  depth: number;
103
102
  }[];
103
+ files: string[];
104
104
  };
105
105
  } | undefined>;
106
106
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noetic-tools/context",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "description": "Context layer system for Noetic agents: the ContextLayer contract, lifecycle, budget/projection machinery, and built-in layer implementations.",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "zod": "^4.0.0"
45
45
  },
46
46
  "dependencies": {
47
- "@noetic-tools/types": "^3.4.0",
47
+ "@noetic-tools/types": "^3.6.0",
48
48
  "zod": "^4.0.0"
49
49
  },
50
50
  "scripts": {