@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 CHANGED
@@ -154,7 +154,7 @@ export async function run(argv) {
154
154
  }
155
155
 
156
156
  if (command && COMMANDS[command]) {
157
- const span = startSpan(command, args);
157
+ const span = await startSpan(command, args);
158
158
  span.notice();
159
159
  args._updateCheck = updateCheck;
160
160
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.37-beta.7",
3
+ "version": "0.1.37-beta.8",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": "bin.js",
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
- // Fire command_started (non-blocking)
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(),