@ghl-ai/aw 0.1.37-beta.7 → 0.1.37-beta.8
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/cli.mjs +1 -1
- package/package.json +1 -1
- package/telemetry.mjs +3 -3
package/cli.mjs
CHANGED
package/package.json
CHANGED
package/telemetry.mjs
CHANGED
|
@@ -142,7 +142,7 @@ export async function send(payload) {
|
|
|
142
142
|
|
|
143
143
|
// ── Span API ────────────────────────────────────────────────────────
|
|
144
144
|
|
|
145
|
-
export function startSpan(command, args) {
|
|
145
|
+
export async function startSpan(command, args) {
|
|
146
146
|
const config = loadConfig();
|
|
147
147
|
const disabled = isDisabled(config);
|
|
148
148
|
const runId = randomUUID();
|
|
@@ -164,9 +164,9 @@ export function startSpan(command, args) {
|
|
|
164
164
|
|
|
165
165
|
const env = disabled ? null : collectEnv(config);
|
|
166
166
|
|
|
167
|
-
//
|
|
167
|
+
// Await command_started so it always lands before the command runs
|
|
168
168
|
if (!disabled) {
|
|
169
|
-
send({
|
|
169
|
+
await send({
|
|
170
170
|
event: 'command_started',
|
|
171
171
|
run_id: runId,
|
|
172
172
|
timestamp: new Date().toISOString(),
|