@moda-ai/cli 1.55.25 → 1.55.26

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.
Files changed (32) hide show
  1. package/dist/{agent-t7dxmpdq.js → agent-nqmha8ck.js} +8 -8
  2. package/dist/{cli-9hc5bg2r.js → cli-1mbb0ct0.js} +1 -1
  3. package/dist/{cli-mebf5vtr.js → cli-5g1tv80h.js} +5 -5
  4. package/dist/{cli-m0045npe.js → cli-8tfk8qeb.js} +7 -6
  5. package/dist/{cli-m805msp6.js → cli-b4740tnv.js} +7 -7
  6. package/dist/{cli-qvg26twp.js → cli-cdrvjva5.js} +11 -8
  7. package/dist/{cli-7xc585hc.js → cli-d577kq6h.js} +5 -5
  8. package/dist/{cli-dn91fb56.js → cli-jgfm7w1r.js} +89 -47
  9. package/dist/{cli-9btx12wp.js → cli-jtyvbd8d.js} +1 -1
  10. package/dist/{cli-qycsmxev.js → cli-k6q8dbpk.js} +3 -3
  11. package/dist/{cli-0wr3483h.js → cli-q6f6vrrr.js} +1 -1
  12. package/dist/{cli-dve50x7p.js → cli-sqsjd08w.js} +784 -725
  13. package/dist/cli.js +708 -232
  14. package/dist/{doctor-q21mr5ya.js → doctor-w913fj4g.js} +8 -8
  15. package/dist/{fix-0qdtdz5h.js → fix-crkwdkt4.js} +6 -6
  16. package/dist/{harness-github-actions-atc5bbkj.js → harness-github-actions-fjhvhgpj.js} +5 -5
  17. package/dist/{harness-vzy7n7ea.js → harness-x3e7d68b.js} +5 -5
  18. package/dist/{index-4b1ybz51.js → index-2kf3fnnb.js} +11 -11
  19. package/dist/{production-intelligence-c8e0xw3n.js → production-intelligence-7n83c701.js} +75 -15
  20. package/dist/{profile-commands-6e2dgv72.js → profile-commands-ct2t0bfr.js} +3 -3
  21. package/dist/prompt-source-mcp.js +5 -5
  22. package/dist/{prompts-3h5jcjrw.js → prompts-92aqqb2k.js} +6 -6
  23. package/dist/{provision-q86phh4a.js → provision-gn8raqpt.js} +5 -5
  24. package/dist/{registry-s2vdsfw8.js → registry-ex162j5y.js} +3 -3
  25. package/dist/{skills-vq3njc8a.js → skills-2mbsj9bt.js} +5 -5
  26. package/dist/{sync-hq9dpqpr.js → sync-kghmmmk5.js} +7 -7
  27. package/package.json +1 -1
  28. package/skills/integration/index.json +2 -2
  29. package/skills/moda-cli/SKILL.md +4 -1
  30. package/skills/moda-cli/references/dashboard-parity.md +1 -1
  31. package/skills/moda-cli/references/output-protocol.md +35 -10
  32. package/skills/moda-cli/references/search-and-traces.md +20 -2
@@ -110,7 +110,16 @@ moda traces get <conversation_id> --all --from=500 --max-messages=500 # continu
110
110
  ```
111
111
 
112
112
  `--all` returns `has_more`/`next_from`; when it stops at the cap, the warning
113
- prints the exact `--from` command to continue.
113
+ prints the exact `--from` command to continue. In agent output `--all` reads
114
+ only about what fits the byte budget (a ~50-message first page), so
115
+ `returned` can be well under `--max-messages`; follow `next_from`.
116
+
117
+ A window over the agent byte budget is cut around its anchor, never past it:
118
+ the requested message is always returned, the rest are kept nearest-first on
119
+ both sides, `context.from_index`/`to_index` describe what was returned
120
+ (`requested_from_index`/`requested_to_index` and `omitted_for_byte_limit`
121
+ what was asked for), and `next_commands` has an `--all --from` command for
122
+ each side that lost messages.
114
123
 
115
124
  **Several traces? Batch them in one call instead of looping `moda traces get`
116
125
  per id.** Pass up to 25 targets as positionals or one per line with
@@ -130,7 +139,9 @@ plus `succeeded`/`failed` counts. A missing trace is a per-item
130
139
  `error.code: "not_found"`, not a failed call; the exit code is 1 only when
131
140
  every target failed. When the agent byte budget would overflow, the items that
132
141
  fit are returned and `remaining_targets` plus a `next_commands` entry read the
133
- rest. One positional id keeps the single-trace output above.
142
+ rest. Agent output stops reading targets once the budget is spent, so the
143
+ targets it names were not read yet (nothing is read and then dropped). One
144
+ positional id keeps the single-trace output above.
134
145
 
135
146
  `moda traces get` returns messages whole, with their tool calls and results. An
136
147
  older Moda server cuts message text, tool inputs, and tool results at 500
@@ -148,6 +159,7 @@ moda traces spans <conversation_id> --include-raw # attach verbatim raw_event
148
159
  moda traces spans <conversation_id> --include-bodies # keep prompt/response/attribute bodies
149
160
  moda traces spans <conversation_id> --limit=1000 # ingest rows to read (default 200, max 1000)
150
161
  moda traces spans <conversation_id> --cursor=<next_cursor> # next page of a capped audit
162
+ moda traces spans <conversation_id> --cursor=<c> --span-offset=N # rest of a page cut for the agent budget
151
163
  moda traces spans <id1> <id2> <id3> # batch: up to 25 ids, one envelope
152
164
  ```
153
165
 
@@ -162,6 +174,12 @@ A full `--limit` page of ingest rows, the server's ~3 MB response budget
162
174
  (`summary.truncated_reason: "byte_limit"`) or a span cap sets both, and a
163
175
  warning plus `next_commands` give the follow-up — usually the `--cursor=` page
164
176
  from `next_cursor`; for very large traces audit one OTLP trace at a time
177
+ (see below). In agent output a page over the byte budget (the server's
178
+ smallest page, 32 KiB, is over the 24,000-byte default) keeps the most spans
179
+ that fit: `span_offset`/`next_span_offset`/`page_spans` say which,
180
+ `next_cursor` is `null` until the last spans of the page are read, and
181
+ `next_commands` has the `--span-offset=N` command that reads the rest of the
182
+ same page. Following `next_commands` never skips a span;
165
183
  (`summary.trace_ids`, `--kind=trace`). Prompt/response bodies are omitted by
166
184
  default (`{"omitted": true, "original_bytes": N}`); `--include-bodies` keeps
167
185
  them, cutting strings over 8 KB to `{"truncated": true, "original_bytes": N,