@oxygen-agent/cli 1.717.11 → 1.739.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 (44) hide show
  1. package/README.md +1 -1
  2. package/dist/command-manifest.js +27 -12
  3. package/dist/index.js +243 -72
  4. package/dist/skills.js +2 -2
  5. package/node_modules/@oxygen/shared/dist/axiom-field-budget.d.ts +99 -0
  6. package/node_modules/@oxygen/shared/dist/axiom-field-budget.js +112 -17
  7. package/node_modules/@oxygen/shared/dist/cli-result.js +2 -0
  8. package/node_modules/@oxygen/shared/dist/crm-activity-events.d.ts +20 -0
  9. package/node_modules/@oxygen/shared/dist/crm-activity-events.js +5 -0
  10. package/node_modules/@oxygen/shared/dist/future-signup-events.d.ts +27 -0
  11. package/node_modules/@oxygen/shared/dist/future-signup-events.js +90 -0
  12. package/node_modules/@oxygen/shared/dist/future-signup-lifecycle-projection.d.ts +320 -0
  13. package/node_modules/@oxygen/shared/dist/future-signup-lifecycle-projection.js +1233 -0
  14. package/node_modules/@oxygen/shared/dist/index.d.ts +7 -1
  15. package/node_modules/@oxygen/shared/dist/index.js +14 -1
  16. package/node_modules/@oxygen/shared/dist/notetaker-events.d.ts +4 -0
  17. package/node_modules/@oxygen/shared/dist/notetaker-events.js +23 -0
  18. package/node_modules/@oxygen/shared/dist/plain-support-events.d.ts +40 -0
  19. package/node_modules/@oxygen/shared/dist/plain-support-events.js +43 -0
  20. package/node_modules/@oxygen/shared/dist/redaction.js +6 -1
  21. package/node_modules/@oxygen/shared/dist/user-capability-routing.d.ts +2 -0
  22. package/node_modules/@oxygen/shared/dist/user-capability-routing.js +23 -0
  23. package/node_modules/@oxygen/shared/dist/version.d.ts +1 -1
  24. package/node_modules/@oxygen/shared/dist/version.js +1 -1
  25. package/node_modules/@oxygen/shared/dist/webhook-headers.d.ts +10 -0
  26. package/node_modules/@oxygen/shared/dist/webhook-headers.js +48 -0
  27. package/node_modules/@oxygen/shared/dist/workspace-event-catalog.d.ts +31 -1
  28. package/node_modules/@oxygen/shared/dist/workspace-event-catalog.js +112 -1
  29. package/node_modules/@oxygen/workflows/dist/graph/expression.js +7 -5
  30. package/node_modules/@oxygen/workflows/dist/graph/lint.d.ts +9 -0
  31. package/node_modules/@oxygen/workflows/dist/graph/lint.js +409 -7
  32. package/node_modules/@oxygen/workflows/dist/graph/manifest-schema.d.ts +513 -0
  33. package/node_modules/@oxygen/workflows/dist/graph/manifest-schema.js +104 -1
  34. package/node_modules/@oxygen/workflows/dist/graph/params.d.ts +2 -0
  35. package/node_modules/@oxygen/workflows/dist/graph/params.js +15 -0
  36. package/node_modules/@oxygen/workflows/dist/graph/remap.js +12 -3
  37. package/node_modules/@oxygen/workflows/dist/graph/topology.d.ts +9 -0
  38. package/node_modules/@oxygen/workflows/dist/graph/topology.js +33 -1
  39. package/node_modules/@oxygen/workflows/dist/graph/types.d.ts +123 -16
  40. package/node_modules/@oxygen/workflows/dist/graph/types.js +45 -0
  41. package/node_modules/@oxygen/workflows/dist/index.d.ts +94 -2
  42. package/node_modules/@oxygen/workflows/dist/index.js +169 -26
  43. package/node_modules/@oxygen/workflows/dist/portable.js +3 -1
  44. package/package.json +1 -1
@@ -1,3 +1,148 @@
1
+ /** Published authoring schema for the nested oxygen-js-v1 Code envelope. */
2
+ export declare const workflowCodeV1Schema: {
3
+ readonly type: "object";
4
+ readonly additionalProperties: false;
5
+ readonly description: "Typed, sandboxed, network-denied JavaScript. Source is a complete `(inputs) => output` function expression; provider access belongs in explicit Tool nodes.";
6
+ readonly properties: {
7
+ readonly version: {
8
+ readonly const: 1;
9
+ };
10
+ readonly language: {
11
+ readonly const: "javascript";
12
+ };
13
+ readonly runtime: {
14
+ readonly const: "oxygen-js-v1";
15
+ };
16
+ readonly source: {
17
+ readonly type: "string";
18
+ readonly default: "(inputs) => ({})";
19
+ readonly description: "Complete JavaScript function expression; at most 65536 UTF-8 bytes.";
20
+ };
21
+ readonly inputs: {
22
+ readonly type: "object";
23
+ readonly maxProperties: 100;
24
+ readonly additionalProperties: {
25
+ readonly description: "One explicit oxygen-js-v1 input binding. Knowledge context refs are excluded in Code v1; bind trigger, step, loop, literal, template, or formula data explicitly.";
26
+ readonly properties: {
27
+ readonly type: {
28
+ readonly enum: readonly ["literal", "template", "ref", "formula"];
29
+ };
30
+ readonly value: {
31
+ readonly description: "literal: used verbatim. template: interpolated string, e.g. 'Hi {{ steps.find.output.first_name }}'.";
32
+ };
33
+ readonly path: {
34
+ readonly type: "string";
35
+ readonly description: "ref: a scope path. context_*: an optional path inside the context value.";
36
+ };
37
+ readonly expression: {
38
+ readonly type: "string";
39
+ readonly description: "formula: an OXYGEN formula-language expression.";
40
+ };
41
+ readonly assetId: {
42
+ readonly type: "string";
43
+ readonly description: "context_asset: the Knowledge-layer asset id.";
44
+ };
45
+ };
46
+ readonly type: "object";
47
+ readonly required: readonly ["type"];
48
+ };
49
+ readonly default: {};
50
+ };
51
+ readonly output_schema: {
52
+ readonly type: "object";
53
+ readonly additionalProperties: false;
54
+ readonly description: "A top-level closed object JSON Schema. Supported semantic keywords are type, const, enum, anyOf, properties, required, additionalProperties:false, and items. Every nested object schema must also be closed; maximum 65536 UTF-8 bytes, depth 8, and 200 named properties total.";
55
+ readonly properties: {
56
+ readonly type: {
57
+ readonly const: "object";
58
+ };
59
+ readonly const: {};
60
+ readonly enum: {
61
+ readonly type: "array";
62
+ readonly minItems: 1;
63
+ readonly items: {};
64
+ };
65
+ readonly anyOf: {
66
+ readonly type: "array";
67
+ readonly minItems: 1;
68
+ readonly items: {
69
+ readonly type: "object";
70
+ readonly additionalProperties: true;
71
+ };
72
+ };
73
+ readonly properties: {
74
+ readonly type: "object";
75
+ readonly maxProperties: 200;
76
+ readonly additionalProperties: {
77
+ readonly type: "object";
78
+ readonly additionalProperties: true;
79
+ };
80
+ };
81
+ readonly required: {
82
+ readonly type: "array";
83
+ readonly items: {
84
+ readonly type: "string";
85
+ };
86
+ };
87
+ readonly additionalProperties: {
88
+ readonly const: false;
89
+ };
90
+ readonly items: {
91
+ readonly type: "object";
92
+ readonly additionalProperties: true;
93
+ };
94
+ readonly title: {
95
+ readonly type: "string";
96
+ };
97
+ readonly description: {
98
+ readonly type: "string";
99
+ };
100
+ readonly default: {};
101
+ readonly examples: {
102
+ readonly type: "array";
103
+ readonly items: {};
104
+ };
105
+ };
106
+ readonly required: readonly ["type", "additionalProperties"];
107
+ readonly default: {
108
+ type: "object";
109
+ properties: {};
110
+ additionalProperties: false;
111
+ };
112
+ };
113
+ readonly limits: {
114
+ readonly type: "object";
115
+ readonly additionalProperties: false;
116
+ readonly properties: {
117
+ readonly timeout_ms: {
118
+ readonly type: "integer";
119
+ readonly minimum: 10;
120
+ readonly maximum: 10000;
121
+ readonly default: 1000;
122
+ };
123
+ readonly max_input_bytes: {
124
+ readonly type: "integer";
125
+ readonly minimum: 1000;
126
+ readonly maximum: 2000000;
127
+ readonly default: 250000;
128
+ };
129
+ readonly max_output_bytes: {
130
+ readonly type: "integer";
131
+ readonly minimum: 1000;
132
+ readonly maximum: 2000000;
133
+ readonly default: 250000;
134
+ };
135
+ };
136
+ readonly required: readonly ["timeout_ms", "max_input_bytes", "max_output_bytes"];
137
+ readonly default: {
138
+ readonly timeout_ms: 1000;
139
+ readonly max_input_bytes: 250000;
140
+ readonly max_output_bytes: 250000;
141
+ };
142
+ };
143
+ };
144
+ readonly required: readonly ["version", "language", "runtime", "source", "inputs", "output_schema", "limits"];
145
+ };
1
146
  export declare const workflowGraphManifestSchema: {
2
147
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
3
148
  readonly title: "OXYGEN Workflow Graph Manifest (oxygen-workflows-v2)";
@@ -472,6 +617,150 @@ export declare const workflowGraphManifestSchema: {
472
617
  readonly required: readonly ["type"];
473
618
  };
474
619
  };
620
+ readonly code: {
621
+ readonly type: "object";
622
+ readonly additionalProperties: false;
623
+ readonly description: "Typed, sandboxed, network-denied JavaScript. Source is a complete `(inputs) => output` function expression; provider access belongs in explicit Tool nodes.";
624
+ readonly properties: {
625
+ readonly version: {
626
+ readonly const: 1;
627
+ };
628
+ readonly language: {
629
+ readonly const: "javascript";
630
+ };
631
+ readonly runtime: {
632
+ readonly const: "oxygen-js-v1";
633
+ };
634
+ readonly source: {
635
+ readonly type: "string";
636
+ readonly default: "(inputs) => ({})";
637
+ readonly description: "Complete JavaScript function expression; at most 65536 UTF-8 bytes.";
638
+ };
639
+ readonly inputs: {
640
+ readonly type: "object";
641
+ readonly maxProperties: 100;
642
+ readonly additionalProperties: {
643
+ readonly description: "One explicit oxygen-js-v1 input binding. Knowledge context refs are excluded in Code v1; bind trigger, step, loop, literal, template, or formula data explicitly.";
644
+ readonly properties: {
645
+ readonly type: {
646
+ readonly enum: readonly ["literal", "template", "ref", "formula"];
647
+ };
648
+ readonly value: {
649
+ readonly description: "literal: used verbatim. template: interpolated string, e.g. 'Hi {{ steps.find.output.first_name }}'.";
650
+ };
651
+ readonly path: {
652
+ readonly type: "string";
653
+ readonly description: "ref: a scope path. context_*: an optional path inside the context value.";
654
+ };
655
+ readonly expression: {
656
+ readonly type: "string";
657
+ readonly description: "formula: an OXYGEN formula-language expression.";
658
+ };
659
+ readonly assetId: {
660
+ readonly type: "string";
661
+ readonly description: "context_asset: the Knowledge-layer asset id.";
662
+ };
663
+ };
664
+ readonly type: "object";
665
+ readonly required: readonly ["type"];
666
+ };
667
+ readonly default: {};
668
+ };
669
+ readonly output_schema: {
670
+ readonly type: "object";
671
+ readonly additionalProperties: false;
672
+ readonly description: "A top-level closed object JSON Schema. Supported semantic keywords are type, const, enum, anyOf, properties, required, additionalProperties:false, and items. Every nested object schema must also be closed; maximum 65536 UTF-8 bytes, depth 8, and 200 named properties total.";
673
+ readonly properties: {
674
+ readonly type: {
675
+ readonly const: "object";
676
+ };
677
+ readonly const: {};
678
+ readonly enum: {
679
+ readonly type: "array";
680
+ readonly minItems: 1;
681
+ readonly items: {};
682
+ };
683
+ readonly anyOf: {
684
+ readonly type: "array";
685
+ readonly minItems: 1;
686
+ readonly items: {
687
+ readonly type: "object";
688
+ readonly additionalProperties: true;
689
+ };
690
+ };
691
+ readonly properties: {
692
+ readonly type: "object";
693
+ readonly maxProperties: 200;
694
+ readonly additionalProperties: {
695
+ readonly type: "object";
696
+ readonly additionalProperties: true;
697
+ };
698
+ };
699
+ readonly required: {
700
+ readonly type: "array";
701
+ readonly items: {
702
+ readonly type: "string";
703
+ };
704
+ };
705
+ readonly additionalProperties: {
706
+ readonly const: false;
707
+ };
708
+ readonly items: {
709
+ readonly type: "object";
710
+ readonly additionalProperties: true;
711
+ };
712
+ readonly title: {
713
+ readonly type: "string";
714
+ };
715
+ readonly description: {
716
+ readonly type: "string";
717
+ };
718
+ readonly default: {};
719
+ readonly examples: {
720
+ readonly type: "array";
721
+ readonly items: {};
722
+ };
723
+ };
724
+ readonly required: readonly ["type", "additionalProperties"];
725
+ readonly default: {
726
+ type: "object";
727
+ properties: {};
728
+ additionalProperties: false;
729
+ };
730
+ };
731
+ readonly limits: {
732
+ readonly type: "object";
733
+ readonly additionalProperties: false;
734
+ readonly properties: {
735
+ readonly timeout_ms: {
736
+ readonly type: "integer";
737
+ readonly minimum: 10;
738
+ readonly maximum: 10000;
739
+ readonly default: 1000;
740
+ };
741
+ readonly max_input_bytes: {
742
+ readonly type: "integer";
743
+ readonly minimum: 1000;
744
+ readonly maximum: 2000000;
745
+ readonly default: 250000;
746
+ };
747
+ readonly max_output_bytes: {
748
+ readonly type: "integer";
749
+ readonly minimum: 1000;
750
+ readonly maximum: 2000000;
751
+ readonly default: 250000;
752
+ };
753
+ };
754
+ readonly required: readonly ["timeout_ms", "max_input_bytes", "max_output_bytes"];
755
+ readonly default: {
756
+ readonly timeout_ms: 1000;
757
+ readonly max_input_bytes: 250000;
758
+ readonly max_output_bytes: 250000;
759
+ };
760
+ };
761
+ };
762
+ readonly required: readonly ["version", "language", "runtime", "source", "inputs", "output_schema", "limits"];
763
+ };
475
764
  readonly workflow_id: {
476
765
  readonly type: "string";
477
766
  readonly description: "workflow nodes: the child workflow to run.";
@@ -507,6 +796,46 @@ export declare const workflowGraphManifestSchema: {
507
796
  };
508
797
  };
509
798
  readonly required: readonly ["id", "name", "kind", "ui"];
799
+ readonly allOf: readonly [{
800
+ readonly if: {
801
+ readonly properties: {
802
+ readonly kind: {
803
+ readonly const: "code";
804
+ };
805
+ };
806
+ readonly required: readonly ["kind"];
807
+ };
808
+ readonly then: {
809
+ readonly oneOf: readonly [{
810
+ readonly required: readonly ["run_source"];
811
+ readonly not: {
812
+ readonly anyOf: readonly [{
813
+ readonly required: readonly ["recipe"];
814
+ }, {
815
+ readonly required: readonly ["code"];
816
+ }];
817
+ };
818
+ }, {
819
+ readonly required: readonly ["recipe"];
820
+ readonly not: {
821
+ readonly anyOf: readonly [{
822
+ readonly required: readonly ["run_source"];
823
+ }, {
824
+ readonly required: readonly ["code"];
825
+ }];
826
+ };
827
+ }, {
828
+ readonly required: readonly ["code"];
829
+ readonly not: {
830
+ readonly anyOf: readonly [{
831
+ readonly required: readonly ["run_source"];
832
+ }, {
833
+ readonly required: readonly ["recipe"];
834
+ }];
835
+ };
836
+ }];
837
+ };
838
+ }];
510
839
  };
511
840
  readonly minItems: 1;
512
841
  };
@@ -1034,6 +1363,150 @@ export declare const portableWorkflowDefinitionSchema: {
1034
1363
  readonly required: readonly ["type"];
1035
1364
  };
1036
1365
  };
1366
+ readonly code: {
1367
+ readonly type: "object";
1368
+ readonly additionalProperties: false;
1369
+ readonly description: "Typed, sandboxed, network-denied JavaScript. Source is a complete `(inputs) => output` function expression; provider access belongs in explicit Tool nodes.";
1370
+ readonly properties: {
1371
+ readonly version: {
1372
+ readonly const: 1;
1373
+ };
1374
+ readonly language: {
1375
+ readonly const: "javascript";
1376
+ };
1377
+ readonly runtime: {
1378
+ readonly const: "oxygen-js-v1";
1379
+ };
1380
+ readonly source: {
1381
+ readonly type: "string";
1382
+ readonly default: "(inputs) => ({})";
1383
+ readonly description: "Complete JavaScript function expression; at most 65536 UTF-8 bytes.";
1384
+ };
1385
+ readonly inputs: {
1386
+ readonly type: "object";
1387
+ readonly maxProperties: 100;
1388
+ readonly additionalProperties: {
1389
+ readonly description: "One explicit oxygen-js-v1 input binding. Knowledge context refs are excluded in Code v1; bind trigger, step, loop, literal, template, or formula data explicitly.";
1390
+ readonly properties: {
1391
+ readonly type: {
1392
+ readonly enum: readonly ["literal", "template", "ref", "formula"];
1393
+ };
1394
+ readonly value: {
1395
+ readonly description: "literal: used verbatim. template: interpolated string, e.g. 'Hi {{ steps.find.output.first_name }}'.";
1396
+ };
1397
+ readonly path: {
1398
+ readonly type: "string";
1399
+ readonly description: "ref: a scope path. context_*: an optional path inside the context value.";
1400
+ };
1401
+ readonly expression: {
1402
+ readonly type: "string";
1403
+ readonly description: "formula: an OXYGEN formula-language expression.";
1404
+ };
1405
+ readonly assetId: {
1406
+ readonly type: "string";
1407
+ readonly description: "context_asset: the Knowledge-layer asset id.";
1408
+ };
1409
+ };
1410
+ readonly type: "object";
1411
+ readonly required: readonly ["type"];
1412
+ };
1413
+ readonly default: {};
1414
+ };
1415
+ readonly output_schema: {
1416
+ readonly type: "object";
1417
+ readonly additionalProperties: false;
1418
+ readonly description: "A top-level closed object JSON Schema. Supported semantic keywords are type, const, enum, anyOf, properties, required, additionalProperties:false, and items. Every nested object schema must also be closed; maximum 65536 UTF-8 bytes, depth 8, and 200 named properties total.";
1419
+ readonly properties: {
1420
+ readonly type: {
1421
+ readonly const: "object";
1422
+ };
1423
+ readonly const: {};
1424
+ readonly enum: {
1425
+ readonly type: "array";
1426
+ readonly minItems: 1;
1427
+ readonly items: {};
1428
+ };
1429
+ readonly anyOf: {
1430
+ readonly type: "array";
1431
+ readonly minItems: 1;
1432
+ readonly items: {
1433
+ readonly type: "object";
1434
+ readonly additionalProperties: true;
1435
+ };
1436
+ };
1437
+ readonly properties: {
1438
+ readonly type: "object";
1439
+ readonly maxProperties: 200;
1440
+ readonly additionalProperties: {
1441
+ readonly type: "object";
1442
+ readonly additionalProperties: true;
1443
+ };
1444
+ };
1445
+ readonly required: {
1446
+ readonly type: "array";
1447
+ readonly items: {
1448
+ readonly type: "string";
1449
+ };
1450
+ };
1451
+ readonly additionalProperties: {
1452
+ readonly const: false;
1453
+ };
1454
+ readonly items: {
1455
+ readonly type: "object";
1456
+ readonly additionalProperties: true;
1457
+ };
1458
+ readonly title: {
1459
+ readonly type: "string";
1460
+ };
1461
+ readonly description: {
1462
+ readonly type: "string";
1463
+ };
1464
+ readonly default: {};
1465
+ readonly examples: {
1466
+ readonly type: "array";
1467
+ readonly items: {};
1468
+ };
1469
+ };
1470
+ readonly required: readonly ["type", "additionalProperties"];
1471
+ readonly default: {
1472
+ type: "object";
1473
+ properties: {};
1474
+ additionalProperties: false;
1475
+ };
1476
+ };
1477
+ readonly limits: {
1478
+ readonly type: "object";
1479
+ readonly additionalProperties: false;
1480
+ readonly properties: {
1481
+ readonly timeout_ms: {
1482
+ readonly type: "integer";
1483
+ readonly minimum: 10;
1484
+ readonly maximum: 10000;
1485
+ readonly default: 1000;
1486
+ };
1487
+ readonly max_input_bytes: {
1488
+ readonly type: "integer";
1489
+ readonly minimum: 1000;
1490
+ readonly maximum: 2000000;
1491
+ readonly default: 250000;
1492
+ };
1493
+ readonly max_output_bytes: {
1494
+ readonly type: "integer";
1495
+ readonly minimum: 1000;
1496
+ readonly maximum: 2000000;
1497
+ readonly default: 250000;
1498
+ };
1499
+ };
1500
+ readonly required: readonly ["timeout_ms", "max_input_bytes", "max_output_bytes"];
1501
+ readonly default: {
1502
+ readonly timeout_ms: 1000;
1503
+ readonly max_input_bytes: 250000;
1504
+ readonly max_output_bytes: 250000;
1505
+ };
1506
+ };
1507
+ };
1508
+ readonly required: readonly ["version", "language", "runtime", "source", "inputs", "output_schema", "limits"];
1509
+ };
1037
1510
  readonly workflow_id: {
1038
1511
  readonly type: "string";
1039
1512
  readonly description: "workflow nodes: the child workflow to run.";
@@ -1069,6 +1542,46 @@ export declare const portableWorkflowDefinitionSchema: {
1069
1542
  };
1070
1543
  };
1071
1544
  readonly required: readonly ["id", "name", "kind", "ui"];
1545
+ readonly allOf: readonly [{
1546
+ readonly if: {
1547
+ readonly properties: {
1548
+ readonly kind: {
1549
+ readonly const: "code";
1550
+ };
1551
+ };
1552
+ readonly required: readonly ["kind"];
1553
+ };
1554
+ readonly then: {
1555
+ readonly oneOf: readonly [{
1556
+ readonly required: readonly ["run_source"];
1557
+ readonly not: {
1558
+ readonly anyOf: readonly [{
1559
+ readonly required: readonly ["recipe"];
1560
+ }, {
1561
+ readonly required: readonly ["code"];
1562
+ }];
1563
+ };
1564
+ }, {
1565
+ readonly required: readonly ["recipe"];
1566
+ readonly not: {
1567
+ readonly anyOf: readonly [{
1568
+ readonly required: readonly ["run_source"];
1569
+ }, {
1570
+ readonly required: readonly ["code"];
1571
+ }];
1572
+ };
1573
+ }, {
1574
+ readonly required: readonly ["code"];
1575
+ readonly not: {
1576
+ readonly anyOf: readonly [{
1577
+ readonly required: readonly ["run_source"];
1578
+ }, {
1579
+ readonly required: readonly ["recipe"];
1580
+ }];
1581
+ };
1582
+ }];
1583
+ };
1584
+ }];
1072
1585
  };
1073
1586
  readonly minItems: 1;
1074
1587
  };