@crewx/cli 0.9.0-rc.88 → 0.9.0-rc.89
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/commands/query.js +7 -0
- package/package.json +12 -12
package/dist/commands/query.js
CHANGED
|
@@ -132,6 +132,12 @@ async function handleQuery(args, command = 'query', emitState = (0, emit_trailer
|
|
|
132
132
|
process.exit(2);
|
|
133
133
|
return;
|
|
134
134
|
}
|
|
135
|
+
// A trace with a rootTraceId but no parentTaskId means the id was pre-assigned
|
|
136
|
+
// to *this* task itself. Keep query and execute on the same contract so the
|
|
137
|
+
// reserved trace id remains the single source of truth for this task row.
|
|
138
|
+
const selfTaskId = inheritedTrace && !inheritedTrace.parentTaskId
|
|
139
|
+
? (inheritedTrace.rootTraceId || undefined)
|
|
140
|
+
: undefined;
|
|
135
141
|
let exitCode = 0;
|
|
136
142
|
let result;
|
|
137
143
|
try {
|
|
@@ -141,6 +147,7 @@ async function handleQuery(args, command = 'query', emitState = (0, emit_trailer
|
|
|
141
147
|
effort: effort || undefined,
|
|
142
148
|
overdrive: overdrive || undefined,
|
|
143
149
|
threadId: thread,
|
|
150
|
+
taskId: selfTaskId,
|
|
144
151
|
metadata: Object.keys(parsedMetadata).length > 0 ? parsedMetadata : undefined,
|
|
145
152
|
vars: Object.keys(vars).length > 0 ? vars : undefined,
|
|
146
153
|
trace: inheritedTrace,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewx/cli",
|
|
3
|
-
"version": "0.9.0-rc.
|
|
3
|
+
"version": "0.9.0-rc.89",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.19.0"
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"better-sqlite3": "*",
|
|
26
26
|
"dotenv": "17.2.3",
|
|
27
27
|
"isomorphic-git": "1.37.1",
|
|
28
|
-
"@crewx/
|
|
29
|
-
"@crewx/search": "0.1.10-rc.
|
|
30
|
-
"@crewx/
|
|
31
|
-
"@crewx/
|
|
32
|
-
"@crewx/
|
|
33
|
-
"@crewx/
|
|
34
|
-
"@crewx/
|
|
35
|
-
"@crewx/
|
|
28
|
+
"@crewx/sdk": "0.9.0-rc.89",
|
|
29
|
+
"@crewx/search": "0.1.10-rc.85",
|
|
30
|
+
"@crewx/memory": "0.1.23-rc.106",
|
|
31
|
+
"@crewx/wbs": "0.1.10-rc.115",
|
|
32
|
+
"@crewx/doc": "0.1.9-rc.82",
|
|
33
|
+
"@crewx/cron": "0.1.10-rc.124",
|
|
34
|
+
"@crewx/workflow": "0.3.22-rc.135",
|
|
35
|
+
"@crewx/chromex": "0.1.0-rc.122",
|
|
36
|
+
"@crewx/skill": "0.1.20",
|
|
36
37
|
"@crewx/shared": "0.0.6",
|
|
37
|
-
"@crewx/
|
|
38
|
-
"@crewx/
|
|
39
|
-
"@crewx/skill": "0.1.20"
|
|
38
|
+
"@crewx/notify": "0.1.0-rc.60",
|
|
39
|
+
"@crewx/wi": "0.1.10-rc.109"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/better-sqlite3": "*",
|