@crewx/sdk 0.8.9-rc.3 → 0.8.9-rc.31
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/activity-log/builder.d.ts +21 -0
- package/dist/config/pricing.d.ts +9 -0
- package/dist/conversation/sqlite-provider.d.ts +1 -0
- package/dist/esm/index.js +164 -45
- package/dist/esm/plugins/index.js +154 -28
- package/dist/esm/repository/index.js +149 -24
- package/dist/facade/Crewx.d.ts +2 -0
- package/dist/index.browser.d.ts +1 -0
- package/dist/index.browser.js +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +164 -45
- package/dist/plugins/index.js +154 -28
- package/dist/provider/acp/adapters/index.d.ts +0 -1
- package/dist/provider/acp/index.d.ts +1 -1
- package/dist/provider/acp/meta.d.ts +3 -0
- package/dist/provider/bridge.browser.d.ts +1 -10
- package/dist/provider/bridge.d.ts +1 -10
- package/dist/provider/cli/adapter.types.d.ts +15 -2
- package/dist/provider/cli/adapters/claude.d.ts +1 -0
- package/dist/provider/cli/adapters/cli-knob.util.d.ts +7 -0
- package/dist/provider/cli/adapters/gemini.d.ts +4 -2
- package/dist/provider/cli/adapters/index.d.ts +0 -1
- package/dist/provider/cli/index.d.ts +1 -1
- package/dist/provider/cli/meta.d.ts +2 -0
- package/dist/provider/errors.d.ts +20 -0
- package/dist/provider/order.d.ts +3 -0
- package/dist/repository/index.d.ts +1 -1
- package/dist/repository/index.js +149 -24
- package/dist/repository/task.repository.d.ts +14 -0
- package/dist/repository/thread.repository.d.ts +1 -1
- package/package.json +1 -1
- package/templates/agents/default.yaml +17 -4
|
@@ -37,6 +37,15 @@ layouts:
|
|
|
37
37
|
{{#if agent.workingDirectory}}<working_directory>{{{agent.workingDirectory}}}</working_directory>{{/if}}
|
|
38
38
|
</identity>
|
|
39
39
|
|
|
40
|
+
{{#if vars.crewx_caller_workspace_path}}
|
|
41
|
+
<dispatched_from>
|
|
42
|
+
<path>{{{vars.crewx_caller_workspace_path}}}</path>
|
|
43
|
+
{{#if vars.crewx_caller_workspace_id}}<id>{{{vars.crewx_caller_workspace_id}}}</id>{{/if}}
|
|
44
|
+
{{#if vars.crewx_caller_workspace_name}}<name>{{{vars.crewx_caller_workspace_name}}}</name>{{/if}}
|
|
45
|
+
<note>This is the caller's workspace (dispatch origin), NOT your home directory. Your working_directory is where you should run commands. Read dispatcher documents using absolute paths from the path above.</note>
|
|
46
|
+
</dispatched_from>
|
|
47
|
+
{{/if}}
|
|
48
|
+
|
|
40
49
|
{{#if agentMetadata.specialties.length}}
|
|
41
50
|
<specialties>
|
|
42
51
|
{{#each agentMetadata.specialties}}
|
|
@@ -304,7 +313,10 @@ layouts:
|
|
|
304
313
|
|
|
305
314
|
{{#if props.showConversationHistory}}
|
|
306
315
|
{{#if messages.length}}
|
|
307
|
-
{{#if
|
|
316
|
+
{{#if has_activity_log}}
|
|
317
|
+
**Activity log instructions**: If `<activity_log>` contains entries with `reused="ok"`, treat those results as current — do **not** re-run the same tool. Only re-run entries marked `reused="stale"` (file changed) or when you need fresher data than what is shown.
|
|
318
|
+
|
|
319
|
+
{{else}}{{#if thread_id}}
|
|
308
320
|
<crewx_system_message type="hint" thread_id="{{thread_id}}" agent_id="{{agent.id}}" now="{{now}}">
|
|
309
321
|
This thread may include your prior assistant task activity.
|
|
310
322
|
If the user is continuing previous work, run:
|
|
@@ -312,7 +324,7 @@ layouts:
|
|
|
312
324
|
Do not run dreaming for completely new, unrelated questions.
|
|
313
325
|
</crewx_system_message>
|
|
314
326
|
|
|
315
|
-
{{/if}}
|
|
327
|
+
{{/if}}{{/if}}
|
|
316
328
|
<conversation_history platform="{{platform}}">
|
|
317
329
|
{{#formatConversation messages platform agent.id thread_id}}
|
|
318
330
|
{{#if primaryAgentId}}
|
|
@@ -328,9 +340,9 @@ layouts:
|
|
|
328
340
|
{{/if}}
|
|
329
341
|
{{#each messages}}
|
|
330
342
|
{{#if isAssistant}}
|
|
331
|
-
<message role="assistant"{{#if metadata.agent_id}} agent="{{metadata.agent_id}}"{{/if}}{{#if
|
|
343
|
+
<message role="assistant"{{#if metadata.agent_id}} agent="{{metadata.agent_id}}"{{/if}}{{#if metadata.task_id}} task_id="{{metadata.task_id}}"{{/if}}{{#if metadata.status}} status="{{metadata.status}}"{{/if}}{{#if metadata.reason}} reason="{{metadata.reason}}"{{/if}}{{#if created_at}} created_at="{{created_at}}"{{/if}}{{#if metadata.slack}}{{#with metadata.slack}}{{#if bot_username}} name="{{bot_username}}"{{/if}}{{#if bot_user_id}} slack_user="{{bot_user_id}}"{{/if}}{{/with}}{{/if}}>
|
|
332
344
|
{{else}}
|
|
333
|
-
<message role="user"{{#if
|
|
345
|
+
<message role="user"{{#if metadata.caller_agent_id}} from="@{{metadata.caller_agent_id}}"{{/if}}{{#if created_at}} created_at="{{created_at}}"{{/if}}{{#if metadata.slack}}{{#with metadata.slack}}{{#if user_profile.display_name}} name="{{user_profile.display_name}}"{{else if username}} name="{{username}}"{{/if}}{{#if user_id}} slack_user="{{user_id}}"{{/if}}{{/with}}{{/if}}>
|
|
334
346
|
{{/if}}
|
|
335
347
|
{{{escapeHandlebars text}}}
|
|
336
348
|
{{#if files}}
|
|
@@ -338,6 +350,7 @@ layouts:
|
|
|
338
350
|
📎 {{name}}{{#if size}} ({{formatFileSize size}}){{/if}}{{#if localPath}} - Local: {{localPath}}{{/if}}
|
|
339
351
|
{{/each}}
|
|
340
352
|
{{/if}}
|
|
353
|
+
{{#if activity_log}}{{{activity_log}}}{{/if}}
|
|
341
354
|
</message>
|
|
342
355
|
{{/each}}
|
|
343
356
|
{{/formatConversation}}
|