@oxygen-agent/cli 1.1011.326 → 1.1011.440

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 (98) hide show
  1. package/README.md +1 -1
  2. package/dist/command-manifest.js +15 -4
  3. package/dist/connectors-commands.d.ts +4 -1
  4. package/dist/connectors-commands.js +84 -10
  5. package/dist/contract-flags.d.ts +2 -0
  6. package/dist/contract-flags.js +26 -11
  7. package/dist/crm-support-flags.d.ts +11 -0
  8. package/dist/crm-support-flags.js +60 -0
  9. package/dist/customer-operation-commands.d.ts +5 -0
  10. package/dist/customer-operation-commands.js +101 -0
  11. package/dist/database-query-flags.d.ts +2 -0
  12. package/dist/database-query-flags.js +6 -0
  13. package/dist/help.d.ts +3 -1
  14. package/dist/help.js +43 -0
  15. package/dist/http-client.d.ts +2 -0
  16. package/dist/http-client.js +41 -1
  17. package/dist/index.js +640 -234
  18. package/dist/knowledge-repository-commands.js +12 -14
  19. package/dist/mailbox-ramp-notice.d.ts +11 -0
  20. package/dist/mailbox-ramp-notice.js +53 -0
  21. package/dist/settings-commands.d.ts +11 -0
  22. package/dist/settings-commands.js +73 -0
  23. package/dist/skills.d.ts +5 -4
  24. package/dist/skills.js +106 -79
  25. package/dist/tool-catalog-detail-command.d.ts +7 -0
  26. package/dist/tool-catalog-detail-command.js +19 -0
  27. package/dist/tool-catalog-search-window.d.ts +6 -0
  28. package/dist/tool-catalog-search-window.js +12 -0
  29. package/dist/transcript.js +1 -0
  30. package/node_modules/@oxygen/shared/dist/bounded-read-result.d.ts +4 -0
  31. package/node_modules/@oxygen/shared/dist/bounded-read-result.js +25 -0
  32. package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +47 -1
  33. package/node_modules/@oxygen/shared/dist/capability-discovery.js +625 -39
  34. package/node_modules/@oxygen/shared/dist/connection-approval.d.ts +2 -0
  35. package/node_modules/@oxygen/shared/dist/connection-approval.js +2 -0
  36. package/node_modules/@oxygen/shared/dist/contracts/browser-operations.d.ts +2 -0
  37. package/node_modules/@oxygen/shared/dist/contracts/browser-operations.js +110 -0
  38. package/node_modules/@oxygen/shared/dist/contracts/connectors.d.ts +32 -6
  39. package/node_modules/@oxygen/shared/dist/contracts/connectors.js +56 -4
  40. package/node_modules/@oxygen/shared/dist/contracts/crm-attributes.d.ts +4 -0
  41. package/node_modules/@oxygen/shared/dist/contracts/crm-attributes.js +39 -0
  42. package/node_modules/@oxygen/shared/dist/contracts/crm-enrichment-read.d.ts +21 -0
  43. package/node_modules/@oxygen/shared/dist/contracts/crm-enrichment-read.js +15 -0
  44. package/node_modules/@oxygen/shared/dist/contracts/crm-support.d.ts +117 -0
  45. package/node_modules/@oxygen/shared/dist/contracts/crm-support.js +43 -0
  46. package/node_modules/@oxygen/shared/dist/contracts/customer-operations.d.ts +2 -0
  47. package/node_modules/@oxygen/shared/dist/contracts/customer-operations.js +131 -0
  48. package/node_modules/@oxygen/shared/dist/contracts/dashboard-tabs.d.ts +3 -0
  49. package/node_modules/@oxygen/shared/dist/contracts/dashboard-tabs.js +2 -0
  50. package/node_modules/@oxygen/shared/dist/contracts/database.d.ts +30 -0
  51. package/node_modules/@oxygen/shared/dist/contracts/database.js +29 -0
  52. package/node_modules/@oxygen/shared/dist/contracts/integration-connect.d.ts +4 -0
  53. package/node_modules/@oxygen/shared/dist/contracts/integration-connect.js +7 -0
  54. package/node_modules/@oxygen/shared/dist/contracts/knowledge-content-reads.d.ts +43 -0
  55. package/node_modules/@oxygen/shared/dist/contracts/knowledge-content-reads.js +20 -0
  56. package/node_modules/@oxygen/shared/dist/contracts/linkedin-invites-list.d.ts +12 -0
  57. package/node_modules/@oxygen/shared/dist/contracts/linkedin-invites-list.js +8 -0
  58. package/node_modules/@oxygen/shared/dist/contracts/operations.d.ts +48 -2
  59. package/node_modules/@oxygen/shared/dist/contracts/operations.js +68 -2
  60. package/node_modules/@oxygen/shared/dist/contracts/table-grid-query.d.ts +4 -0
  61. package/node_modules/@oxygen/shared/dist/contracts/table-grid-query.js +6 -0
  62. package/node_modules/@oxygen/shared/dist/contracts/table-query-grid.d.ts +21 -0
  63. package/node_modules/@oxygen/shared/dist/contracts/table-query-grid.js +27 -0
  64. package/node_modules/@oxygen/shared/dist/contracts/tool-catalog-detail.d.ts +19 -0
  65. package/node_modules/@oxygen/shared/dist/contracts/tool-catalog-detail.js +10 -0
  66. package/node_modules/@oxygen/shared/dist/contracts/tool-catalog-search-window.d.ts +12 -0
  67. package/node_modules/@oxygen/shared/dist/contracts/tool-catalog-search-window.js +7 -0
  68. package/node_modules/@oxygen/shared/dist/contracts/workspace-pages.d.ts +17 -0
  69. package/node_modules/@oxygen/shared/dist/contracts/workspace-pages.js +49 -0
  70. package/node_modules/@oxygen/shared/dist/decision-ledger-parser.d.ts +32 -0
  71. package/node_modules/@oxygen/shared/dist/decision-ledger-parser.js +303 -0
  72. package/node_modules/@oxygen/shared/dist/decision-ledger.d.ts +10 -0
  73. package/node_modules/@oxygen/shared/dist/decision-ledger.generated.d.ts +2 -0
  74. package/node_modules/@oxygen/shared/dist/decision-ledger.generated.js +717 -0
  75. package/node_modules/@oxygen/shared/dist/decision-ledger.js +20 -0
  76. package/node_modules/@oxygen/shared/dist/email-campaign-ramp.d.ts +104 -0
  77. package/node_modules/@oxygen/shared/dist/email-campaign-ramp.js +250 -0
  78. package/node_modules/@oxygen/shared/dist/mcp-event-contract.d.ts +10 -7
  79. package/node_modules/@oxygen/shared/dist/mcp-event-contract.js +11 -7
  80. package/node_modules/@oxygen/shared/dist/mcp-table-widget.d.ts +50 -0
  81. package/node_modules/@oxygen/shared/dist/mcp-table-widget.js +24 -0
  82. package/node_modules/@oxygen/shared/dist/plan-band.d.ts +8 -0
  83. package/node_modules/@oxygen/shared/dist/plan-band.js +12 -0
  84. package/node_modules/@oxygen/shared/dist/plan-limits.d.ts +20 -0
  85. package/node_modules/@oxygen/shared/dist/plan-limits.js +41 -0
  86. package/node_modules/@oxygen/shared/dist/provider-input-value.d.ts +5 -0
  87. package/node_modules/@oxygen/shared/dist/provider-input-value.js +10 -0
  88. package/node_modules/@oxygen/shared/dist/sequences.d.ts +33 -4
  89. package/node_modules/@oxygen/shared/dist/sequences.js +48 -13
  90. package/node_modules/@oxygen/shared/dist/user-capability-routing.js +17 -0
  91. package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
  92. package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
  93. package/node_modules/@oxygen/shared/package.json +8 -6
  94. package/package.json +1 -1
  95. package/node_modules/@oxygen/shared/dist/copilot-skills.d.ts +0 -15
  96. package/node_modules/@oxygen/shared/dist/copilot-skills.generated.d.ts +0 -31
  97. package/node_modules/@oxygen/shared/dist/copilot-skills.generated.js +0 -41
  98. package/node_modules/@oxygen/shared/dist/copilot-skills.js +0 -6
@@ -0,0 +1,25 @@
1
+ import { success } from "./cli-result.js";
2
+ import { OXYGEN_VERSION } from "./version.js";
3
+ /** Complete native receipt sizing for optional bounded JSON reads. Binary
4
+ * windows have their own outer-envelope budget and must not use this helper.
5
+ * The surface is a formatting hint, never authorization or spend authority. */
6
+ export function boundedReadResultFits(command, data, maxChars, surface, maxAgentResultChars = 6_000) {
7
+ // Preserve legacy unbounded native/CLI reads when no window was requested.
8
+ if (maxChars === undefined)
9
+ return true;
10
+ if (JSON.stringify(success(command, data)).length > maxChars)
11
+ return false;
12
+ // MCP jsonResult writes compact data to text and adds the version to its
13
+ // structured result. The unattended worker returns both; Strands serializes
14
+ // that complete host object before its 6k cap. Escapes in text count twice.
15
+ if (surface === "agent") {
16
+ const host = {
17
+ ok: true,
18
+ text: JSON.stringify(data),
19
+ structured: { ...data, oxygen_version: OXYGEN_VERSION },
20
+ };
21
+ if (JSON.stringify(host).length > Math.min(6_000, maxAgentResultChars))
22
+ return false;
23
+ }
24
+ return true;
25
+ }
@@ -79,7 +79,23 @@ export declare function inferCapabilityRoute(query: string): CapabilityRouteMatc
79
79
  */
80
80
  export declare function catalogueFindTool(row: EnrichmentIntentTaxonomyEntry): string | null;
81
81
  export declare function inferPrimitiveRoute(query: string): PrimitiveRouteMatch | null;
82
- export declare function serializeCapabilityRoute(route: CapabilityRouteMatch | null, surface?: CapabilityRouteSurface): Record<string, unknown> | null;
82
+ /** Current hosted instruction audiences, shared by discovery and Agent snapshots. */
83
+ export declare const OXYGEN_PRODUCT_SKILL_AUDIENCES: Readonly<Record<string, "workspace" | "agency_partner">>;
84
+ export declare function canReadProductSkillInstructions(name: string, entitlements: {
85
+ authenticated?: boolean;
86
+ agencyPartner: boolean;
87
+ }): boolean;
88
+ /** Identify hosted instruction bodies by native tool lineage, never by user prose. */
89
+ export declare function readProductSkillInstructionResult(capabilityName: string, result: unknown): {
90
+ slug: string | null;
91
+ } | null;
92
+ /** Public action cards never advertise invite-only or unknown skill instructions. */
93
+ export declare function isPublicCapabilitySkill(name: string): boolean;
94
+ export declare function serializeCapabilityRoute(route: CapabilityRouteMatch | null, surfaceOrOptions?: CapabilityRouteSurface | {
95
+ visibleSkills?: readonly string[];
96
+ }, options?: {
97
+ visibleSkills?: readonly string[];
98
+ }): Record<string, unknown> | null;
83
99
  /** One schedule for every channel of a Sequence, the same as Launch's Sending schedule. */
84
100
  export declare const SEQUENCE_SENDING_SCHEDULE_COMMAND = "oxygen sequences update <sequence> --schedule-timezone <IANA zone> --schedule-days mon-fri --schedule-hours-start 09:00 --schedule-hours-end 17:00 --json";
85
101
  /** Launch's unsubscribe switch: the visible link and the one-click headers together. */
@@ -97,6 +113,36 @@ export declare const CAPABILITY_ROUTE_MCP_CALLS: {
97
113
  tool: string;
98
114
  arguments: {};
99
115
  };
116
+ connectedAppEvents: () => {
117
+ tool: string;
118
+ arguments: {
119
+ connection: string;
120
+ };
121
+ };
122
+ workspacePagesList: () => {
123
+ tool: string;
124
+ arguments: {};
125
+ };
126
+ functionsList: () => {
127
+ tool: string;
128
+ arguments: {
129
+ operation: string;
130
+ };
131
+ };
132
+ functionsDescribe: () => {
133
+ tool: string;
134
+ arguments: {
135
+ operation: string;
136
+ function: string;
137
+ };
138
+ };
139
+ functionsRuns: () => {
140
+ tool: string;
141
+ arguments: {
142
+ operation: string;
143
+ function: string;
144
+ };
145
+ };
100
146
  sequenceSendingSchedule: () => {
101
147
  tool: string;
102
148
  arguments: {