@oxygen-agent/cli 1.894.0 → 1.917.5

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 (33) hide show
  1. package/README.md +1 -1
  2. package/dist/command-manifest.js +11 -3
  3. package/dist/index.js +348 -43
  4. package/node_modules/@oxygen/formula/dist/expression.d.ts +21 -0
  5. package/node_modules/@oxygen/formula/dist/expression.js +42 -1
  6. package/node_modules/@oxygen/formula/dist/formula-functions.d.ts +1 -1
  7. package/node_modules/@oxygen/formula/dist/formula-functions.js +10 -1
  8. package/node_modules/@oxygen/shared/dist/capability-discovery.js +30 -7
  9. package/node_modules/@oxygen/shared/dist/copilot-errors.d.ts +1 -0
  10. package/node_modules/@oxygen/shared/dist/copilot-errors.js +9 -0
  11. package/node_modules/@oxygen/shared/dist/copilot-plan.d.ts +169 -0
  12. package/node_modules/@oxygen/shared/dist/copilot-plan.js +476 -0
  13. package/node_modules/@oxygen/shared/dist/dnc-identities.d.ts +10 -0
  14. package/node_modules/@oxygen/shared/dist/dnc-identities.js +23 -0
  15. package/node_modules/@oxygen/shared/dist/egress-transport-readiness.d.ts +60 -0
  16. package/node_modules/@oxygen/shared/dist/egress-transport-readiness.js +67 -0
  17. package/node_modules/@oxygen/shared/dist/index.d.ts +3 -0
  18. package/node_modules/@oxygen/shared/dist/index.js +3 -0
  19. package/node_modules/@oxygen/shared/dist/langfuse.d.ts +93 -5
  20. package/node_modules/@oxygen/shared/dist/langfuse.js +326 -42
  21. package/node_modules/@oxygen/shared/dist/linkedin-quota-denial.d.ts +1 -1
  22. package/node_modules/@oxygen/shared/dist/linkedin-quota-denial.js +16 -5
  23. package/node_modules/@oxygen/shared/dist/product-briefing-rules.d.ts +58 -0
  24. package/node_modules/@oxygen/shared/dist/product-briefing-rules.js +291 -0
  25. package/node_modules/@oxygen/shared/dist/product-doctrine.d.ts +11 -0
  26. package/node_modules/@oxygen/shared/dist/product-doctrine.js +70 -0
  27. package/node_modules/@oxygen/shared/dist/sequences.d.ts +18 -11
  28. package/node_modules/@oxygen/shared/dist/sequences.js +47 -13
  29. package/node_modules/@oxygen/shared/dist/user-capability-routing.js +23 -2
  30. package/node_modules/@oxygen/shared/dist/version.d.ts +1 -1
  31. package/node_modules/@oxygen/shared/dist/version.js +1 -1
  32. package/node_modules/@oxygen/shared/package.json +10 -0
  33. package/package.json +5 -2
package/README.md CHANGED
@@ -34,4 +34,4 @@ oxygen update
34
34
 
35
35
  For product documentation, visit https://oxygen-agent.com/docs. For support, visit https://oxygen-agent.com.
36
36
 
37
- Version: 1.894.0
37
+ Version: 1.917.5
@@ -36,6 +36,9 @@ const MUTATING_VERBS = new Set([
36
36
  // recurring write, and --run can connect newly eligible mailboxes immediately.
37
37
  "auto-enroll",
38
38
  "backfill",
39
+ // A noun leaf, so the default would advertise `projects color` — a tenant
40
+ // write — to every agent as a read. `decide` is the same case.
41
+ "color",
39
42
  // Exact leaves, not the `billing` prefix — `orgs billing-owners` is a read.
40
43
  // Both move a workspace's billing owner, so an agent must treat them as writes.
41
44
  "billing-link", "billing-unlink",
@@ -76,6 +79,10 @@ const MUTATING_VERBS = new Set([
76
79
  // mode, but a small number of destructive local operations are explicitly
77
80
  // zero-credit. Keep those exceptions exact so discovery never invents spend.
78
81
  const ZERO_CREDIT_APPROVAL_COMMANDS = new Set([
82
+ // Starting an attended session itself is free. This legacy compatibility
83
+ // flag neither authorizes nor caps later inference; only `copilot send` can
84
+ // trigger the billed model loop.
85
+ "copilot start",
79
86
  "mailboxes delete",
80
87
  // This approval only reopens exact fingerprint-bound tenant rows. It never
81
88
  // calls the provider, dispatches an action, or touches the credit ledger.
@@ -255,10 +262,11 @@ function toManifestEntry(command, path) {
255
262
  spends_credits: !ZERO_CREDIT_APPROVAL_COMMANDS.has(commandName) &&
256
263
  (flagStrings.some((flags) => flags.includes("--approved") ||
257
264
  flags.includes("--max-credits") ||
258
- // Copilot's explicit session inference-budget approval flag.
265
+ // Legacy Copilot compatibility plus any future explicit budget flag.
266
+ // `copilot start` is excluded above because session creation is free.
259
267
  flags.includes("--budget-credits")) ||
260
- // `copilot send` bills managed inference (5x actual model cost) inside the
261
- // session budget approved at `copilot start`, and `copilot approve`
268
+ // `copilot send` bills managed inference (5x actual model cost), and
269
+ // `copilot approve`
262
270
  // dispatches the gated paid/external capability and requeues the paused
263
271
  // turn (waking the worker for more 5x-billed inference) — no per-command
264
272
  // cap flag exists for either, so the flag heuristic alone would misreport