@oxygen-agent/cli 1.739.1 → 1.766.0

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 (51) hide show
  1. package/README.md +1 -1
  2. package/dist/command-manifest.js +17 -2
  3. package/dist/help.js +8 -0
  4. package/dist/index.js +562 -125
  5. package/node_modules/@oxygen/shared/dist/billing.d.ts +88 -46
  6. package/node_modules/@oxygen/shared/dist/billing.js +134 -74
  7. package/node_modules/@oxygen/shared/dist/capability-discovery.js +12 -4
  8. package/node_modules/@oxygen/shared/dist/cli-result.js +1 -0
  9. package/node_modules/@oxygen/shared/dist/copilot-journeys.d.ts +8 -0
  10. package/node_modules/@oxygen/shared/dist/copilot-journeys.js +23 -5
  11. package/node_modules/@oxygen/shared/dist/future-signup-events.d.ts +13 -2
  12. package/node_modules/@oxygen/shared/dist/future-signup-events.js +17 -2
  13. package/node_modules/@oxygen/shared/dist/future-signup-lifecycle-projection.d.ts +106 -1
  14. package/node_modules/@oxygen/shared/dist/future-signup-lifecycle-projection.js +156 -45
  15. package/node_modules/@oxygen/shared/dist/index.d.ts +5 -1
  16. package/node_modules/@oxygen/shared/dist/index.js +5 -1
  17. package/node_modules/@oxygen/shared/dist/object-storage.d.ts +33 -0
  18. package/node_modules/@oxygen/shared/dist/object-storage.js +69 -4
  19. package/node_modules/@oxygen/shared/dist/person-name.d.ts +40 -0
  20. package/node_modules/@oxygen/shared/dist/person-name.js +23 -0
  21. package/node_modules/@oxygen/shared/dist/plan-capabilities.d.ts +82 -0
  22. package/node_modules/@oxygen/shared/dist/plan-capabilities.js +130 -0
  23. package/node_modules/@oxygen/shared/dist/plan-limits.d.ts +2 -2
  24. package/node_modules/@oxygen/shared/dist/plan-limits.js +18 -2
  25. package/node_modules/@oxygen/shared/dist/pricing-sheet.d.ts +50 -56
  26. package/node_modules/@oxygen/shared/dist/pricing-sheet.js +77 -90
  27. package/node_modules/@oxygen/shared/dist/pricing-snapshot.generated.d.ts +62 -0
  28. package/node_modules/@oxygen/shared/dist/pricing-snapshot.generated.js +91 -0
  29. package/node_modules/@oxygen/shared/dist/provider-funding-errors.d.ts +44 -0
  30. package/node_modules/@oxygen/shared/dist/provider-funding-errors.js +81 -0
  31. package/node_modules/@oxygen/shared/dist/publishing-limits.d.ts +24 -0
  32. package/node_modules/@oxygen/shared/dist/publishing-limits.js +24 -0
  33. package/node_modules/@oxygen/shared/dist/spend-safety.d.ts +27 -6
  34. package/node_modules/@oxygen/shared/dist/spend-safety.js +34 -6
  35. package/node_modules/@oxygen/shared/dist/version.d.ts +2 -1
  36. package/node_modules/@oxygen/shared/dist/version.js +14 -3
  37. package/node_modules/@oxygen/shared/package.json +10 -0
  38. package/node_modules/@oxygen/workflows/dist/graph/expression.d.ts +29 -1
  39. package/node_modules/@oxygen/workflows/dist/graph/expression.js +307 -42
  40. package/node_modules/@oxygen/workflows/dist/graph/index.d.ts +1 -0
  41. package/node_modules/@oxygen/workflows/dist/graph/index.js +1 -0
  42. package/node_modules/@oxygen/workflows/dist/graph/lint.js +153 -19
  43. package/node_modules/@oxygen/workflows/dist/graph/manifest-schema.d.ts +92 -0
  44. package/node_modules/@oxygen/workflows/dist/graph/manifest-schema.js +4 -0
  45. package/node_modules/@oxygen/workflows/dist/graph/mapping.d.ts +79 -0
  46. package/node_modules/@oxygen/workflows/dist/graph/mapping.js +436 -0
  47. package/node_modules/@oxygen/workflows/dist/graph/topology.d.ts +36 -0
  48. package/node_modules/@oxygen/workflows/dist/graph/topology.js +147 -0
  49. package/node_modules/@oxygen/workflows/dist/graph/types.d.ts +31 -0
  50. package/node_modules/@oxygen/workflows/dist/graph/types.js +16 -0
  51. package/package.json +1 -1
@@ -2,6 +2,8 @@ export const WORKFLOW_GRAPH_MANIFEST_VERSION = 2;
2
2
  export const WORKFLOW_GRAPH_COMPILER_VERSION = "oxygen-workflows-v2";
3
3
  export const PORTABLE_WORKFLOW_DEFINITION_VERSION = 1;
4
4
  export const PORTABLE_WORKFLOW_DEFINITION_COMPILER_VERSION = "oxygen-workflow-definition-v1";
5
+ /** Source-run metadata key for the exact non-live graph scope a test executed. */
6
+ export const WORKFLOW_TEST_SCOPE_METADATA_KEY = "workflow_test_scope";
5
7
  // Node ids become keys on the runtime scope object (`steps.<id>.output`), exactly
6
8
  // as v1 step ids become keys on ctx.steps. The same JavaScript-internals collision
7
9
  // applies: a node named `__proto__` would silently lose its output.
@@ -69,6 +71,20 @@ export const BILLABLE_WORKFLOW_GRAPH_NODE_KINDS = new Set([
69
71
  export function workflowGraphNodeKindBills(kind) {
70
72
  return BILLABLE_WORKFLOW_GRAPH_NODE_KINDS.has(kind);
71
73
  }
74
+ /**
75
+ * Explicit, fail-closed scalar conversions for a mapped value.
76
+ *
77
+ * A mapping never changes type merely because the destination field expects a
78
+ * different one. Authors may choose one of these conversions after the editor
79
+ * explains the mismatch; conversion failure stops the step instead of turning
80
+ * an invalid value into a provider request.
81
+ */
82
+ export const WORKFLOW_VALUE_COERCIONS = [
83
+ "string",
84
+ "number",
85
+ "integer",
86
+ "boolean",
87
+ ];
72
88
  export const WORKFLOW_CODE_V1_VERSION = 1;
73
89
  export const WORKFLOW_CODE_V1_LANGUAGE = "javascript";
74
90
  export const WORKFLOW_CODE_V1_RUNTIME = "oxygen-js-v1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxygen-agent/cli",
3
- "version": "1.739.1",
3
+ "version": "1.766.0",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",