@modular-prompt/process 0.3.2 → 0.3.3

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 (32) hide show
  1. package/dist/workflows/agentic-workflow/agentic-workflow.d.ts.map +1 -1
  2. package/dist/workflows/agentic-workflow/agentic-workflow.js +56 -18
  3. package/dist/workflows/agentic-workflow/agentic-workflow.js.map +1 -1
  4. package/dist/workflows/agentic-workflow/process/builtin-tools.d.ts +5 -11
  5. package/dist/workflows/agentic-workflow/process/builtin-tools.d.ts.map +1 -1
  6. package/dist/workflows/agentic-workflow/process/builtin-tools.js +53 -44
  7. package/dist/workflows/agentic-workflow/process/builtin-tools.js.map +1 -1
  8. package/dist/workflows/agentic-workflow/process/query-with-tools.d.ts +13 -5
  9. package/dist/workflows/agentic-workflow/process/query-with-tools.d.ts.map +1 -1
  10. package/dist/workflows/agentic-workflow/process/query-with-tools.js +82 -34
  11. package/dist/workflows/agentic-workflow/process/query-with-tools.js.map +1 -1
  12. package/dist/workflows/agentic-workflow/task-types/execution-tasks.d.ts +2 -2
  13. package/dist/workflows/agentic-workflow/task-types/execution-tasks.d.ts.map +1 -1
  14. package/dist/workflows/agentic-workflow/task-types/execution-tasks.js +13 -21
  15. package/dist/workflows/agentic-workflow/task-types/execution-tasks.js.map +1 -1
  16. package/dist/workflows/agentic-workflow/task-types/index.d.ts +10 -4
  17. package/dist/workflows/agentic-workflow/task-types/index.d.ts.map +1 -1
  18. package/dist/workflows/agentic-workflow/task-types/index.js +53 -15
  19. package/dist/workflows/agentic-workflow/task-types/index.js.map +1 -1
  20. package/dist/workflows/agentic-workflow/task-types/output.d.ts +3 -3
  21. package/dist/workflows/agentic-workflow/task-types/output.d.ts.map +1 -1
  22. package/dist/workflows/agentic-workflow/task-types/output.js +4 -12
  23. package/dist/workflows/agentic-workflow/task-types/output.js.map +1 -1
  24. package/dist/workflows/agentic-workflow/task-types/planning.d.ts +12 -2
  25. package/dist/workflows/agentic-workflow/task-types/planning.d.ts.map +1 -1
  26. package/dist/workflows/agentic-workflow/task-types/planning.js +90 -26
  27. package/dist/workflows/agentic-workflow/task-types/planning.js.map +1 -1
  28. package/dist/workflows/agentic-workflow/types.d.ts +4 -5
  29. package/dist/workflows/agentic-workflow/types.d.ts.map +1 -1
  30. package/dist/workflows/agentic-workflow/types.js +2 -2
  31. package/dist/workflows/agentic-workflow/types.js.map +1 -1
  32. package/package.json +3 -3
@@ -9,51 +9,91 @@
9
9
  * - userModule compiled as "Prompt to analyze" material (includes inputs)
10
10
  *
11
11
  * Output side:
12
- * - cue: user message instructing to call __insert_tasks tool
12
+ * - cue: user message instructing to call __register_tasks tool
13
13
  *
14
- * Tools: __insert_tasks
14
+ * Tools: __register_tasks
15
15
  */
16
16
  import { distribute } from '@modular-prompt/core';
17
17
  import { formatCompletionPrompt } from '@modular-prompt/driver';
18
+ import { buildTaskListWithResults } from './index.js';
18
19
  const planningModule = {
19
20
  objective: [
20
21
  '- You are the planner. Analysis and task design are your responsibility.',
21
22
  '- Analyze the given prompt to understand what needs to be accomplished.',
22
- '- Design a Workflow by composing the minimum sequence of Tasks needed.',
23
+ '- Design a Workflow by composing Tasks that satisfy these principles:',
24
+ ' - **Solvability**: Each task must be completable by a single AI instance with available tools.',
25
+ ' - **Completeness**: The full set of tasks must cover the entire user objective.',
26
+ ' - **Non-redundancy**: No unnecessary or overlapping tasks.',
23
27
  ],
24
28
  terms: [
25
- '- **Workflow**: The entire process that achieves the Objective by executing a sequence of Tasks.',
26
- '- **Task**: A unit of work in the Workflow. Each Task is executed by a separate AI instance.',
27
- '- **Task Type**: Defines the role of a Task. The prompt is pre-configured for each type.',
28
- '- **Tool**: A function that a Task can call to perform actions or retrieve information. See "Available Tools" in Guidelines.',
29
- '- **State**: Persistent information shared across Tasks. Updated via `__update_state` and visible to all subsequent Tasks.',
29
+ '- **Workflow**: A chain of deliverables that achieves the Objective.',
30
+ '- **Task**: A unit of work that produces a specific deliverable. Each Task is executed by a separate AI instance.',
31
+ '- **Deliverable**: The concrete output a Task produces. It becomes input for subsequent Tasks.',
32
+ '- **Task Type**: Defines the role and prompt structure of a Task.',
33
+ '- **Tool**: A function available to Tasks for performing external actions or retrieving information. Used primarily in act and recall Tasks.',
30
34
  ],
31
35
  methodology: [
36
+ '- Define Tasks in terms of what they produce (deliverables), not just what they do.',
37
+ '- Each Task receives the deliverables of all previously completed Tasks.',
38
+ '- Design the deliverable chain so that each Task has sufficient input to produce its output.',
32
39
  '- Tasks are executed sequentially by separate AI instances.',
33
- '- Each Task receives results from all previously completed Tasks.',
34
- '- Tool call results from one Task are passed to the next Task.',
35
40
  ],
36
41
  instructions: [
37
- '- Read "Prompt to analyze" and determine what the final output should be.',
38
- '- Check "Available Tools" to understand what tools can be used in the Workflow.',
39
- '- Determine the minimum set of Tasks needed — a simple prompt may need only one.',
40
- '- If tools are needed, schedule toolCall Tasks for them.',
41
- '- Call `__insert_tasks` to register Tasks. If the work is simple enough (e.g. a single tool call), you may call the tool directly instead of scheduling a Task.',
42
+ {
43
+ type: 'subsection',
44
+ title: 'Analyze',
45
+ items: [
46
+ '- Read "Prompt to analyze" and identify the final deliverable.',
47
+ '- Check "Available Tools" to understand what deliverables tools can produce.',
48
+ ],
49
+ },
50
+ {
51
+ type: 'subsection',
52
+ title: 'Design',
53
+ items: [
54
+ '- Work backward from the final deliverable: identify what intermediate deliverables are needed.',
55
+ '- Assign a Task for each deliverable. Choose the Task Type by what it produces.',
56
+ '- For each Task, clarify why it is necessary (reason) and which prior deliverables it depends on (dep).',
57
+ '- For each Task, determine what context it needs to do its work. If it needs to read the original user request, enable withMessages. See "What Each Task Can See" for details.',
58
+ '- If a deliverable requires an external action via tools, use an act Task.',
59
+ ],
60
+ },
61
+ {
62
+ type: 'subsection',
63
+ title: 'Register',
64
+ items: [
65
+ '- Call `__register_tasks` to register the designed Tasks.',
66
+ '- If the work is simple enough (e.g. a single tool call), you may call the tool directly.',
67
+ ],
68
+ },
42
69
  ],
43
70
  guidelines: [
44
- '- Only register Tasks for work that requires a separate AI instance to execute.',
45
- '- Write each Task instruction as a descriptive action statement — what the Task does and what outcome is expected. A longer paragraph is fine, but step-by-step procedural instructions are unnecessary.',
71
+ '- Focus on designing the flow of deliverables, not on solving the problem itself. Each Task executor will handle the specifics — never dictate how a Task should be solved.',
72
+ '- Only register a Task when it produces a distinct deliverable that no other Task covers.',
73
+ '- Write each Task instruction as a description of the deliverable to produce. A longer paragraph is fine, but step-by-step procedural instructions are unnecessary.',
46
74
  {
47
75
  type: 'subsection',
48
76
  title: 'Task Type Guide',
49
77
  items: [
50
- '- **think**: General reasoning, analysis, or processing.',
51
- '- **toolCall**: Call tools and report results.',
52
- '- **extractContext**: Extract information from inputs, messages, or materials.',
53
- '- **recall**: Retrieve information via search tools or training knowledge.',
54
- '- **verify**: Validate results from previous Tasks.',
55
- '- **determine**: Make a definitive decision or judgment.',
56
- '- **output**: Format and present the final response from previous Task results. No new work is performed. Must be the last Task.',
78
+ '- **think**: Produces analysis, reasoning, or processed results.',
79
+ '- **act**: Performs an external action using tools listed in "Available Tools" and reports its outcome. Only tools shown there can be used.',
80
+ '- **extractContext**: Produces structured extraction from inputs, messages, or materials.',
81
+ '- **recall**: Produces retrieved knowledge from search tools or training data.',
82
+ '- **verify**: Produces a validation report on previous deliverables.',
83
+ '- **determine**: Produces a definitive decision with supporting reasoning.',
84
+ '- **output**: Produces the final user-facing response from previous deliverables. Must be the last Task.',
85
+ ],
86
+ },
87
+ {
88
+ type: 'subsection',
89
+ title: 'What Each Task Can See',
90
+ items: [
91
+ '- By default, each Task sees ONLY the Objective, Terms, and deliverables from previous Tasks. The original user messages, inputs, and materials are NOT visible unless explicitly enabled.',
92
+ '- When the source data is large, use an **extractContext** Task first to extract relevant information as a deliverable, rather than passing the full data to every Task.',
93
+ '- Task options to enable visibility:',
94
+ ' - **withMessages**: Pass the original user messages (the conversation/request) to the Task.',
95
+ ' - **withInputs**: Pass the user-provided input data to the Task.',
96
+ ' - **withMaterials**: Pass the user-provided materials to the Task.',
57
97
  ],
58
98
  },
59
99
  {
@@ -90,13 +130,37 @@ const planningModule = {
90
130
  {
91
131
  type: 'message',
92
132
  role: 'user',
93
- content: 'Analyze the prompt and register tasks by calling `__insert_tasks`.',
133
+ content: 'Analyze the prompt and register tasks by calling `__register_tasks`.',
134
+ },
135
+ ],
136
+ };
137
+ /**
138
+ * Additional module for re-planning.
139
+ *
140
+ * Merged with planningModule when existing deliverables are present
141
+ * (either from executionLog after __replan, or from trailing tool results).
142
+ * Provides the planner with visibility into completed work and current task list.
143
+ */
144
+ export const replanningModule = {
145
+ methodology: [
146
+ '- This is a re-planning phase. Previous tasks and their results are shown below.',
147
+ '- Factor existing deliverables into the new plan without re-requesting them.',
148
+ {
149
+ type: 'subsection',
150
+ title: 'Previous Execution',
151
+ items: [
152
+ (ctx) => buildTaskListWithResults(ctx),
153
+ ],
94
154
  },
95
155
  ],
156
+ instructions: [
157
+ '- Review the completed deliverables and design a new set of tasks to achieve the remaining objective.',
158
+ '- If the messages in "Prompt to analyze" contain tool results, understand the user message → tool call → tool result sequence as planning context.',
159
+ ],
96
160
  };
97
161
  export const config = {
98
162
  module: planningModule,
99
- builtinToolNames: ['__insert_tasks', '__update_state', '__time'],
163
+ builtinToolNames: ['__register_tasks', '__time'],
100
164
  maxTokensTier: 'high',
101
165
  };
102
166
  //# sourceMappingURL=planning.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"planning.js","sourceRoot":"","sources":["../../../../src/workflows/agentic-workflow/task-types/planning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAIhE,MAAM,cAAc,GAAyC;IAC3D,SAAS,EAAE;QACT,0EAA0E;QAC1E,yEAAyE;QACzE,wEAAwE;KACzE;IACD,KAAK,EAAE;QACL,kGAAkG;QAClG,8FAA8F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E,UAAmB;gBACzB,EAAE,EAAE,aAAa;gBACjB,KAAK,EAAE,mBAAmB;gBAC1B,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;KACF;IAED,GAAG,EAAE;QACH;YACE,IAAI,EAAE,SAAkB;YACxB,IAAI,EAAE,MAAe;YACrB,OAAO,EAAE,oEAAoE;SAC9E;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAmB;IACpC,MAAM,EAAE,cAAc;IACtB,gBAAgB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,QAAQ,CAAC;IAChE,aAAa,EAAE,MAAM;CACtB,CAAC"}
1
+ {"version":3,"file":"planning.js","sourceRoot":"","sources":["../../../../src/workflows/agentic-workflow/task-types/planning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAEtD,MAAM,cAAc,GAAyC;IAC3D,SAAS,EAAE;QACT,0EAA0E;QAC1E,yEAAyE;QACzE,uEAAuE;QACvE,kGAAkG;QAClG,mFAAmF;QACnF,8DAA8D;KAC/D;IACD,KAAK,EAAE;QACL,sEAAsE;QACtE,mHAAmH;QACnH,gGAAgG;QAChG,mEAAmE;QACnE,8IAA8I;KAC/I;IACD,WAAW,EAAE;QACX,qFAAqF;QACrF,0EAA0E;QAC1E,8FAA8F;QAC9F,6DAA6D;KAC9D;IACD,YAAY,EAAE;QACZ;YACE,IAAI,EAAE,YAAqB;YAC3B,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE;gBACL,gEAAgE;gBAChE,8EAA8E;aAC/E;SACF;QACD;YACE,IAAI,EAAE,YAAqB;YAC3B,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE;gBACL,iGAAiG;gBACjG,iFAAiF;gBACjF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AAQ,EAAE;gBAC5C,mBAAmB,EAAE,EAAE;aACxB,CAAC,CAAC;YACH,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;gBAAE,OAAO,IAAI,CAAC;YAC9B,OAAO;gBACL,IAAI,EAAE,UAAmB;gBACzB,EAAE,EAAE,aAAa;gBACjB,KAAK,EAAE,mBAAmB;gBAC1B,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;KACF;IAED,GAAG,EAAE;QACH;YACE,IAAI,EAAE,SAAkB;YACxB,IAAI,EAAE,MAAe;YACrB,OAAO,EAAE,sEAAsE;SAChF;KACF;CACF,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAyC;IACpE,WAAW,EAAE;QACX,kFAAkF;QAClF,8EAA8E;QAC9E;YACE,IAAI,EAAE,YAAqB;YAC3B,KAAK,EAAE,oBAAoB;YAC3B,KAAK,EAAE;gBACL,CAAC,GAA2B,EAAE,EAAE,CAAC,wBAAwB,CAAC,GAAG,CAAC;aAC/D;SACF;KACF;IACD,YAAY,EAAE;QACZ,uGAAuG;QACvG,oJAAoJ;KACrJ;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAmB;IACpC,MAAM,EAAE,cAAc;IACtB,gBAAgB,EAAE,CAAC,kBAAkB,EAAE,QAAQ,CAAC;IAChD,aAAa,EAAE,MAAM;CACtB,CAAC"}
@@ -24,7 +24,7 @@ export interface ToolCallLog {
24
24
  * - What tools are available
25
25
  * - Default driver role
26
26
  */
27
- export type TaskType = 'planning' | 'toolCall' | 'think' | 'verify' | 'extractContext' | 'recall' | 'determine' | 'output';
27
+ export type TaskType = 'planning' | 'act' | 'think' | 'verify' | 'extractContext' | 'recall' | 'determine' | 'output';
28
28
  /**
29
29
  * Default driver role for each task type.
30
30
  * planning/output are hardcoded; execution tasks are derived from EXECUTION_TASK_DEFS.
@@ -42,6 +42,8 @@ export declare const DEFAULT_DATA_OPTIONS: Record<TaskType, {
42
42
  * Agentic workflow task definition
43
43
  */
44
44
  export interface AgenticTask {
45
+ /** Short identifier for this task (used in dep references and display) */
46
+ name?: string;
45
47
  /** What this task should accomplish */
46
48
  instruction: string;
47
49
  /** Task type determining prompt construction and input contract */
@@ -59,6 +61,7 @@ export interface AgenticTask {
59
61
  * Record of a single task execution
60
62
  */
61
63
  export interface AgenticTaskExecutionLog {
64
+ taskName?: string;
62
65
  taskType: TaskType;
63
66
  instruction: string;
64
67
  result: string;
@@ -85,8 +88,6 @@ export interface AgenticWorkflowContext {
85
88
  executionLog?: AgenticTaskExecutionLog[];
86
89
  /** Index of the currently executing task */
87
90
  currentTaskIndex?: number;
88
- /** Persisted state string from previous task execution */
89
- state?: string;
90
91
  /** External tool definitions available to tasks (for planning visibility) */
91
92
  availableTools?: ToolDefinition[];
92
93
  }
@@ -101,8 +102,6 @@ export interface AgenticResumeState {
101
102
  taskList?: AgenticTask[];
102
103
  /** Execution log from the previous run */
103
104
  executionLog?: AgenticTaskExecutionLog[];
104
- /** Persisted state from the previous run */
105
- state?: string;
106
105
  }
107
106
  /**
108
107
  * Options for agentic workflow
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/workflows/agentic-workflow/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAMpD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,cAAc,CAAC;IAC3B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9D;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb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/C,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;KAC9B,CAAC;CACH;AAMD;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,wBAAwB;IACxB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,uCAAuC;IACvC,YAAY,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACzC,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;CACnC;AAMD;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC1C;AAMD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,8DAA8D;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,yGAAyG;IACzG,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wDAAwD;IACxD,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC"}
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export const DEFAULT_DRIVER_ROLE = {
6
6
  planning: 'plan',
7
- toolCall: 'instruct',
7
+ act: 'instruct',
8
8
  think: 'instruct',
9
9
  verify: 'instruct',
10
10
  extractContext: 'thinking',
@@ -17,7 +17,7 @@ export const DEFAULT_DRIVER_ROLE = {
17
17
  */
18
18
  export const DEFAULT_DATA_OPTIONS = {
19
19
  planning: { withInputs: true, withMessages: false, withMaterials: true },
20
- toolCall: { withInputs: false, withMessages: false, withMaterials: false },
20
+ act: { withInputs: false, withMessages: false, withMaterials: false },
21
21
  think: { withInputs: false, withMessages: false, withMaterials: false },
22
22
  verify: { withInputs: false, withMessages: false, withMaterials: false },
23
23
  extractContext: { withInputs: true, withMessages: true, withMaterials: true },
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/workflows/agentic-workflow/types.ts"],"names":[],"mappings":"AA+CA;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAgC;IAC9D,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,UAAU;IAClB,cAAc,EAAE,UAAU;IAC1B,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,UAAU;IACrB,MAAM,EAAE,MAAM;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA6F;IAC5H,QAAQ,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE;IACxE,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;IAC1E,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;IACvE,MAAM,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;IACxE,cAAc,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IAC7E,MAAM,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EA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AY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IACxE,MAAM,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;CACzE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modular-prompt/process",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Process module for modular prompt framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,8 +25,8 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@modular-prompt/core": "0.2.1",
28
- "@modular-prompt/driver": "0.10.3",
29
- "@modular-prompt/utils": "0.3.1"
28
+ "@modular-prompt/utils": "0.3.1",
29
+ "@modular-prompt/driver": "0.10.3"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@eslint/js": "^9.34.0",