@crewx/sdk 0.8.7-rc.2 → 0.8.7-rc.21
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/esm/plugins/index.js +10 -10
- package/dist/esm/repository/index.js +10 -10
- package/dist/index.browser.js +2 -2
- package/dist/index.js +33 -29
- package/dist/layout/types.d.ts +4 -0
- package/dist/migrations/0004_add_thread_pin_star.sql +2 -0
- package/dist/migrations/meta/_journal.json +7 -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/dist/plugins/index.js +9 -9
- package/dist/provider/cli/adapters/antigravity.d.ts +2 -0
- package/dist/provider/cli/adapters/index.d.ts +1 -0
- package/dist/provider/cli/index.d.ts +1 -1
- package/dist/repository/index.js +10 -10
- package/dist/repository/task.repository.d.ts +1 -0
- package/dist/repository/thread.repository.d.ts +6 -0
- package/dist/schema/threads.d.ts +34 -0
- package/package.json +1 -1
- package/templates/agents/default.yaml +22 -0
|
@@ -53,4 +53,10 @@ export declare class ThreadRepository extends BaseSqliteRepository {
|
|
|
53
53
|
title?: string;
|
|
54
54
|
titleLocked?: boolean;
|
|
55
55
|
}): void;
|
|
56
|
+
togglePin(threadId: string, workspaceId?: string): {
|
|
57
|
+
pinned: boolean;
|
|
58
|
+
} | null;
|
|
59
|
+
toggleStar(threadId: string, workspaceId?: string): {
|
|
60
|
+
starred: boolean;
|
|
61
|
+
} | null;
|
|
56
62
|
}
|
package/dist/schema/threads.d.ts
CHANGED
|
@@ -207,6 +207,40 @@ export declare const threads: import("drizzle-orm/sqlite-core").SQLiteTableWithC
|
|
|
207
207
|
identity: undefined;
|
|
208
208
|
generated: undefined;
|
|
209
209
|
}, {}, {}>;
|
|
210
|
+
pinned: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
211
|
+
name: "pinned";
|
|
212
|
+
tableName: "threads";
|
|
213
|
+
dataType: "number";
|
|
214
|
+
columnType: "SQLiteInteger";
|
|
215
|
+
data: number;
|
|
216
|
+
driverParam: number;
|
|
217
|
+
notNull: true;
|
|
218
|
+
hasDefault: true;
|
|
219
|
+
isPrimaryKey: false;
|
|
220
|
+
isAutoincrement: false;
|
|
221
|
+
hasRuntimeDefault: false;
|
|
222
|
+
enumValues: undefined;
|
|
223
|
+
baseColumn: never;
|
|
224
|
+
identity: undefined;
|
|
225
|
+
generated: undefined;
|
|
226
|
+
}, {}, {}>;
|
|
227
|
+
starred: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
228
|
+
name: "starred";
|
|
229
|
+
tableName: "threads";
|
|
230
|
+
dataType: "number";
|
|
231
|
+
columnType: "SQLiteInteger";
|
|
232
|
+
data: number;
|
|
233
|
+
driverParam: number;
|
|
234
|
+
notNull: true;
|
|
235
|
+
hasDefault: true;
|
|
236
|
+
isPrimaryKey: false;
|
|
237
|
+
isAutoincrement: false;
|
|
238
|
+
hasRuntimeDefault: false;
|
|
239
|
+
enumValues: undefined;
|
|
240
|
+
baseColumn: never;
|
|
241
|
+
identity: undefined;
|
|
242
|
+
generated: undefined;
|
|
243
|
+
}, {}, {}>;
|
|
210
244
|
};
|
|
211
245
|
dialect: "sqlite";
|
|
212
246
|
}>;
|
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
|
|