@crewx/sdk 0.8.7-rc.12 → 0.8.7-rc.13
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/dist/context/DailyLoader.d.ts +2 -0
- package/dist/context/GoalLoader.d.ts +2 -0
- package/dist/esm/index.js +33 -29
- package/dist/index.browser.js +2 -2
- package/dist/index.js +32 -28
- package/dist/layout/types.d.ts +4 -0
- package/dist/platform/BrowserFsAdapter.d.ts +1 -0
- package/dist/platform/IFsAdapter.d.ts +1 -0
- package/dist/platform/NodeFsAdapter.d.ts +1 -0
- package/package.json +1 -1
- package/templates/agents/default.yaml +22 -0
package/dist/layout/types.d.ts
CHANGED
|
@@ -97,6 +97,10 @@ export interface RenderContext {
|
|
|
97
97
|
[key: string]: any;
|
|
98
98
|
};
|
|
99
99
|
context?: Record<string, any>;
|
|
100
|
+
contextOptions?: {
|
|
101
|
+
goals: boolean | string | string[];
|
|
102
|
+
daily: boolean;
|
|
103
|
+
};
|
|
100
104
|
[key: string]: unknown;
|
|
101
105
|
}
|
|
102
106
|
export interface RawLayoutYaml {
|
|
@@ -4,5 +4,6 @@ export declare class NodeFsAdapter implements IFsAdapter {
|
|
|
4
4
|
exists(path: string): Promise<boolean>;
|
|
5
5
|
resolvePath(...segments: string[]): string;
|
|
6
6
|
isAbsolute(path: string): boolean;
|
|
7
|
+
readdir(dirPath: string): Promise<string[]>;
|
|
7
8
|
}
|
|
8
9
|
export declare const defaultFsAdapter: IFsAdapter;
|
package/package.json
CHANGED
|
@@ -109,6 +109,18 @@ layouts:
|
|
|
109
109
|
</agent_profile>
|
|
110
110
|
{{/if}}
|
|
111
111
|
|
|
112
|
+
{{#if documents.active_goals}}
|
|
113
|
+
<crewx_context type="goals">
|
|
114
|
+
{{{documents.active_goals.content}}}
|
|
115
|
+
</crewx_context>
|
|
116
|
+
{{/if}}
|
|
117
|
+
|
|
118
|
+
{{#if documents.today_daily}}
|
|
119
|
+
<crewx_context type="daily">
|
|
120
|
+
{{{documents.today_daily.content}}}
|
|
121
|
+
</crewx_context>
|
|
122
|
+
{{/if}}
|
|
123
|
+
|
|
112
124
|
{{#if props.showManual}}
|
|
113
125
|
{{#if documents.crewx_manual.toc}}
|
|
114
126
|
<document name="CrewX User Manual (TOC)">
|
|
@@ -189,6 +201,16 @@ layouts:
|
|
|
189
201
|
|
|
190
202
|
Types: `exec` (has entrypoint, runs script) | `doc` (no entrypoint, outputs markdown)
|
|
191
203
|
|
|
204
|
+
### Work Instruction (`$CREWX_CLI wi`)
|
|
205
|
+
Structured task delegation. Create and issue work instructions to agents.
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
{{env.CREWX_CLI}} wi usage # Show detailed guide
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Template: docs/wi/WI-TEMPLATE.md
|
|
212
|
+
→ Full usage: `{{env.CREWX_CLI}} wi usage`
|
|
213
|
+
|
|
192
214
|
### Workflow (`{{env.CREWX_CLI}} workflow`)
|
|
193
215
|
Semantic workflow — structured collaboration recipes for agents. Not auto-executed; agents follow the flow step by step.
|
|
194
216
|
|