@oxygen-agent/cli 1.1014.1895 → 1.1014.1997

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 (239) hide show
  1. package/README.md +1 -1
  2. package/dist/auto-update.d.ts +1 -1
  3. package/dist/auto-update.js +3 -3
  4. package/dist/cli-install.d.ts +65 -0
  5. package/dist/cli-install.js +165 -0
  6. package/dist/commands/billing.js +1 -1
  7. package/dist/commands/managed-inboxes.js +6 -2
  8. package/dist/commands/sequences.js +1 -1
  9. package/dist/commands/subscriptions.js +7 -5
  10. package/dist/update.d.ts +4 -57
  11. package/dist/update.js +17 -163
  12. package/node_modules/@oxygen/shared/dist/billing.d.ts +5 -1
  13. package/node_modules/@oxygen/shared/dist/billing.js +5 -1
  14. package/node_modules/@oxygen/shared/dist/capability-discovery-skill-audiences.generated.d.ts +30 -0
  15. package/node_modules/@oxygen/shared/dist/capability-discovery-skill-audiences.generated.js +33 -0
  16. package/node_modules/@oxygen/shared/dist/capability-discovery-skills.d.ts +39 -0
  17. package/node_modules/@oxygen/shared/dist/capability-discovery-skills.js +86 -0
  18. package/node_modules/@oxygen/shared/dist/capability-discovery-types.d.ts +93 -0
  19. package/node_modules/@oxygen/shared/dist/capability-discovery-types.js +1 -0
  20. package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +12 -270
  21. package/node_modules/@oxygen/shared/dist/capability-discovery.js +123 -3712
  22. package/node_modules/@oxygen/shared/dist/capability-intents/agency-directory.rules.d.ts +2 -0
  23. package/node_modules/@oxygen/shared/dist/capability-intents/agency-directory.rules.js +5 -0
  24. package/node_modules/@oxygen/shared/dist/capability-intents/agents.d.ts +10 -0
  25. package/node_modules/@oxygen/shared/dist/capability-intents/agents.js +53 -0
  26. package/node_modules/@oxygen/shared/dist/capability-intents/agents.rules.d.ts +2 -0
  27. package/node_modules/@oxygen/shared/dist/capability-intents/agents.rules.js +25 -0
  28. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.d.ts +31 -0
  29. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.js +70 -0
  30. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.rules.d.ts +2 -0
  31. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.rules.js +85 -0
  32. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.d.ts +9 -0
  33. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.js +54 -0
  34. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.rules.d.ts +2 -0
  35. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.rules.js +28 -0
  36. package/node_modules/@oxygen/shared/dist/capability-intents/connected-integrations.rules.d.ts +2 -0
  37. package/node_modules/@oxygen/shared/dist/capability-intents/connected-integrations.rules.js +23 -0
  38. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.d.ts +43 -0
  39. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.js +90 -0
  40. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.rules.d.ts +2 -0
  41. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.rules.js +58 -0
  42. package/node_modules/@oxygen/shared/dist/capability-intents/connected-whatsapp.rules.d.ts +2 -0
  43. package/node_modules/@oxygen/shared/dist/capability-intents/connected-whatsapp.rules.js +14 -0
  44. package/node_modules/@oxygen/shared/dist/capability-intents/geo.rules.d.ts +2 -0
  45. package/node_modules/@oxygen/shared/dist/capability-intents/geo.rules.js +9 -0
  46. package/node_modules/@oxygen/shared/dist/capability-intents/index.generated.d.ts +365 -0
  47. package/node_modules/@oxygen/shared/dist/capability-intents/index.generated.js +90 -0
  48. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.d.ts +20 -0
  49. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.js +37 -0
  50. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.rules.d.ts +2 -0
  51. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.rules.js +43 -0
  52. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.d.ts +4 -0
  53. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.js +26 -0
  54. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.rules.d.ts +2 -0
  55. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.rules.js +42 -0
  56. package/node_modules/@oxygen/shared/dist/capability-intents/messages.d.ts +6 -0
  57. package/node_modules/@oxygen/shared/dist/capability-intents/messages.js +16 -0
  58. package/node_modules/@oxygen/shared/dist/capability-intents/messages.rules.d.ts +2 -0
  59. package/node_modules/@oxygen/shared/dist/capability-intents/messages.rules.js +68 -0
  60. package/node_modules/@oxygen/shared/dist/capability-intents/normalize.d.ts +2 -0
  61. package/node_modules/@oxygen/shared/dist/capability-intents/normalize.js +4 -0
  62. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.d.ts +6 -0
  63. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.js +23 -0
  64. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.rules.d.ts +2 -0
  65. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.rules.js +25 -0
  66. package/node_modules/@oxygen/shared/dist/capability-intents/posts.d.ts +1 -0
  67. package/node_modules/@oxygen/shared/dist/capability-intents/posts.js +12 -0
  68. package/node_modules/@oxygen/shared/dist/capability-intents/posts.rules.d.ts +2 -0
  69. package/node_modules/@oxygen/shared/dist/capability-intents/posts.rules.js +20 -0
  70. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.d.ts +86 -0
  71. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.js +135 -0
  72. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.rules.d.ts +2 -0
  73. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.rules.js +89 -0
  74. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.d.ts +7 -0
  75. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.js +85 -0
  76. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.rules.d.ts +2 -0
  77. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.rules.js +28 -0
  78. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.d.ts +7 -0
  79. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.js +73 -0
  80. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.rules.d.ts +2 -0
  81. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.rules.js +36 -0
  82. package/node_modules/@oxygen/shared/dist/capability-intents/records.d.ts +86 -0
  83. package/node_modules/@oxygen/shared/dist/capability-intents/records.js +240 -0
  84. package/node_modules/@oxygen/shared/dist/capability-intents/records.rules.d.ts +2 -0
  85. package/node_modules/@oxygen/shared/dist/capability-intents/records.rules.js +71 -0
  86. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.d.ts +27 -0
  87. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.js +67 -0
  88. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.rules.d.ts +2 -0
  89. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.rules.js +115 -0
  90. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.d.ts +71 -0
  91. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.js +150 -0
  92. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.rules.d.ts +2 -0
  93. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.rules.js +149 -0
  94. package/node_modules/@oxygen/shared/dist/capability-intents/signals.d.ts +42 -0
  95. package/node_modules/@oxygen/shared/dist/capability-intents/signals.js +42 -0
  96. package/node_modules/@oxygen/shared/dist/capability-intents/signals.rules.d.ts +2 -0
  97. package/node_modules/@oxygen/shared/dist/capability-intents/signals.rules.js +47 -0
  98. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.d.ts +60 -0
  99. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.js +94 -0
  100. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.d.ts +2 -0
  101. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.js +94 -0
  102. package/node_modules/@oxygen/shared/dist/capability-intents/tables.d.ts +196 -0
  103. package/node_modules/@oxygen/shared/dist/capability-intents/tables.js +394 -0
  104. package/node_modules/@oxygen/shared/dist/capability-intents/tables.rules.d.ts +2 -0
  105. package/node_modules/@oxygen/shared/dist/capability-intents/tables.rules.js +384 -0
  106. package/node_modules/@oxygen/shared/dist/capability-intents/tags.rules.d.ts +2 -0
  107. package/node_modules/@oxygen/shared/dist/capability-intents/tags.rules.js +5 -0
  108. package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.d.ts +2 -0
  109. package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.js +8 -0
  110. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.d.ts +2 -0
  111. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.js +20 -0
  112. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.rules.d.ts +2 -0
  113. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.rules.js +90 -0
  114. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.d.ts +59 -0
  115. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.js +121 -0
  116. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.rules.d.ts +2 -0
  117. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.rules.js +58 -0
  118. package/node_modules/@oxygen/shared/dist/capability-routes/ads.d.ts +2 -0
  119. package/node_modules/@oxygen/shared/dist/capability-routes/ads.js +17 -0
  120. package/node_modules/@oxygen/shared/dist/capability-routes/agency-directory.d.ts +2 -0
  121. package/node_modules/@oxygen/shared/dist/capability-routes/agency-directory.js +17 -0
  122. package/node_modules/@oxygen/shared/dist/capability-routes/agents.d.ts +2 -0
  123. package/node_modules/@oxygen/shared/dist/capability-routes/agents.js +17 -0
  124. package/node_modules/@oxygen/shared/dist/capability-routes/billing-and-budgets.d.ts +2 -0
  125. package/node_modules/@oxygen/shared/dist/capability-routes/billing-and-budgets.js +17 -0
  126. package/node_modules/@oxygen/shared/dist/capability-routes/collaboration.d.ts +2 -0
  127. package/node_modules/@oxygen/shared/dist/capability-routes/collaboration.js +39 -0
  128. package/node_modules/@oxygen/shared/dist/capability-routes/connected-integrations.d.ts +2 -0
  129. package/node_modules/@oxygen/shared/dist/capability-routes/connected-integrations.js +17 -0
  130. package/node_modules/@oxygen/shared/dist/capability-routes/connected-linkedin.d.ts +2 -0
  131. package/node_modules/@oxygen/shared/dist/capability-routes/connected-linkedin.js +17 -0
  132. package/node_modules/@oxygen/shared/dist/capability-routes/connected-whatsapp.d.ts +2 -0
  133. package/node_modules/@oxygen/shared/dist/capability-routes/connected-whatsapp.js +17 -0
  134. package/node_modules/@oxygen/shared/dist/capability-routes/dashboards.d.ts +2 -0
  135. package/node_modules/@oxygen/shared/dist/capability-routes/dashboards.js +28 -0
  136. package/node_modules/@oxygen/shared/dist/capability-routes/discovery-and-skills.d.ts +2 -0
  137. package/node_modules/@oxygen/shared/dist/capability-routes/discovery-and-skills.js +22 -0
  138. package/node_modules/@oxygen/shared/dist/capability-routes/geo.d.ts +2 -0
  139. package/node_modules/@oxygen/shared/dist/capability-routes/geo.js +13 -0
  140. package/node_modules/@oxygen/shared/dist/capability-routes/index.d.ts +2 -0
  141. package/node_modules/@oxygen/shared/dist/capability-routes/index.js +64 -0
  142. package/node_modules/@oxygen/shared/dist/capability-routes/knowledge-graph.d.ts +2 -0
  143. package/node_modules/@oxygen/shared/dist/capability-routes/knowledge-graph.js +17 -0
  144. package/node_modules/@oxygen/shared/dist/capability-routes/linkedin-public-research.d.ts +2 -0
  145. package/node_modules/@oxygen/shared/dist/capability-routes/linkedin-public-research.js +18 -0
  146. package/node_modules/@oxygen/shared/dist/capability-routes/messages.d.ts +2 -0
  147. package/node_modules/@oxygen/shared/dist/capability-routes/messages.js +21 -0
  148. package/node_modules/@oxygen/shared/dist/capability-routes/observability.d.ts +2 -0
  149. package/node_modules/@oxygen/shared/dist/capability-routes/observability.js +17 -0
  150. package/node_modules/@oxygen/shared/dist/capability-routes/onboarding-and-copilot.d.ts +2 -0
  151. package/node_modules/@oxygen/shared/dist/capability-routes/onboarding-and-copilot.js +23 -0
  152. package/node_modules/@oxygen/shared/dist/capability-routes/platform-operations.d.ts +2 -0
  153. package/node_modules/@oxygen/shared/dist/capability-routes/platform-operations.js +17 -0
  154. package/node_modules/@oxygen/shared/dist/capability-routes/posts.d.ts +2 -0
  155. package/node_modules/@oxygen/shared/dist/capability-routes/posts.js +17 -0
  156. package/node_modules/@oxygen/shared/dist/capability-routes/publishing.d.ts +2 -0
  157. package/node_modules/@oxygen/shared/dist/capability-routes/publishing.js +20 -0
  158. package/node_modules/@oxygen/shared/dist/capability-routes/recipes.d.ts +2 -0
  159. package/node_modules/@oxygen/shared/dist/capability-routes/recipes.js +17 -0
  160. package/node_modules/@oxygen/shared/dist/capability-routes/records.d.ts +2 -0
  161. package/node_modules/@oxygen/shared/dist/capability-routes/records.js +20 -0
  162. package/node_modules/@oxygen/shared/dist/capability-routes/sending-infrastructure.d.ts +2 -0
  163. package/node_modules/@oxygen/shared/dist/capability-routes/sending-infrastructure.js +42 -0
  164. package/node_modules/@oxygen/shared/dist/capability-routes/sequences.d.ts +2 -0
  165. package/node_modules/@oxygen/shared/dist/capability-routes/sequences.js +32 -0
  166. package/node_modules/@oxygen/shared/dist/capability-routes/signals.d.ts +2 -0
  167. package/node_modules/@oxygen/shared/dist/capability-routes/signals.js +17 -0
  168. package/node_modules/@oxygen/shared/dist/capability-routes/sourcing-and-provider-tools.d.ts +2 -0
  169. package/node_modules/@oxygen/shared/dist/capability-routes/sourcing-and-provider-tools.js +21 -0
  170. package/node_modules/@oxygen/shared/dist/capability-routes/support-and-feedback.d.ts +2 -0
  171. package/node_modules/@oxygen/shared/dist/capability-routes/support-and-feedback.js +17 -0
  172. package/node_modules/@oxygen/shared/dist/capability-routes/tables.d.ts +2 -0
  173. package/node_modules/@oxygen/shared/dist/capability-routes/tables.js +34 -0
  174. package/node_modules/@oxygen/shared/dist/capability-routes/tags.d.ts +2 -0
  175. package/node_modules/@oxygen/shared/dist/capability-routes/tags.js +17 -0
  176. package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.d.ts +2 -0
  177. package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.js +17 -0
  178. package/node_modules/@oxygen/shared/dist/capability-routes/workflows.d.ts +2 -0
  179. package/node_modules/@oxygen/shared/dist/capability-routes/workflows.js +17 -0
  180. package/node_modules/@oxygen/shared/dist/capability-routes/workspace-access.d.ts +2 -0
  181. package/node_modules/@oxygen/shared/dist/capability-routes/workspace-access.js +26 -0
  182. package/node_modules/@oxygen/shared/dist/contracts/connectors.js +2 -0
  183. package/node_modules/@oxygen/shared/dist/contracts/customer-operations.d.ts +1 -1
  184. package/node_modules/@oxygen/shared/dist/contracts/operations/agent-sessions.d.ts +1 -0
  185. package/node_modules/@oxygen/shared/dist/contracts/operations/agent-sessions.js +1 -0
  186. package/node_modules/@oxygen/shared/dist/contracts/operations/browser.d.ts +1 -0
  187. package/node_modules/@oxygen/shared/dist/contracts/operations/browser.js +1 -0
  188. package/node_modules/@oxygen/shared/dist/contracts/operations/clay-migration.d.ts +2 -0
  189. package/node_modules/@oxygen/shared/dist/contracts/operations/clay-migration.js +2 -0
  190. package/node_modules/@oxygen/shared/dist/contracts/operations/connectors.d.ts +2 -0
  191. package/node_modules/@oxygen/shared/dist/contracts/operations/connectors.js +2 -0
  192. package/node_modules/@oxygen/shared/dist/contracts/operations/geo.d.ts +1 -0
  193. package/node_modules/@oxygen/shared/dist/contracts/operations/geo.js +1 -0
  194. package/node_modules/@oxygen/shared/dist/contracts/operations/guided-activation.d.ts +1 -0
  195. package/node_modules/@oxygen/shared/dist/contracts/operations/guided-activation.js +1 -0
  196. package/node_modules/@oxygen/shared/dist/contracts/operations/index.generated.d.ts +2 -0
  197. package/node_modules/@oxygen/shared/dist/contracts/operations/index.generated.js +26 -0
  198. package/node_modules/@oxygen/shared/dist/contracts/operations/reply-oxygent.d.ts +1 -0
  199. package/node_modules/@oxygen/shared/dist/contracts/operations/reply-oxygent.js +1 -0
  200. package/node_modules/@oxygen/shared/dist/contracts/operations/sender-limits.d.ts +2 -0
  201. package/node_modules/@oxygen/shared/dist/contracts/operations/sender-limits.js +2 -0
  202. package/node_modules/@oxygen/shared/dist/contracts/operations/table-feed-update.d.ts +2 -0
  203. package/node_modules/@oxygen/shared/dist/contracts/operations/table-feed-update.js +2 -0
  204. package/node_modules/@oxygen/shared/dist/contracts/operations/teammates.d.ts +1 -0
  205. package/node_modules/@oxygen/shared/dist/contracts/operations/teammates.js +1 -0
  206. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-pages.d.ts +2 -0
  207. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-pages.js +2 -0
  208. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-skills.d.ts +1 -0
  209. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-skills.js +1 -0
  210. package/node_modules/@oxygen/shared/dist/contracts/operations.d.ts +6 -0
  211. package/node_modules/@oxygen/shared/dist/contracts/operations.js +7 -15
  212. package/node_modules/@oxygen/shared/dist/contracts/sender-limits.js +1 -0
  213. package/node_modules/@oxygen/shared/dist/diagnostic-storage-lock.js +33 -22
  214. package/node_modules/@oxygen/shared/dist/diagnostics.js +11 -8
  215. package/node_modules/@oxygen/shared/dist/first-month-offer-window.d.ts +3 -0
  216. package/node_modules/@oxygen/shared/dist/first-month-offer.d.ts +15 -7
  217. package/node_modules/@oxygen/shared/dist/first-month-offer.js +23 -9
  218. package/node_modules/@oxygen/shared/dist/guided-activation.d.ts +2 -0
  219. package/node_modules/@oxygen/shared/dist/listed-website-platforms.d.ts +1 -1
  220. package/node_modules/@oxygen/shared/dist/listed-website-platforms.js +23 -1
  221. package/node_modules/@oxygen/shared/dist/onboarding-leads.d.ts +67 -0
  222. package/node_modules/@oxygen/shared/dist/onboarding-leads.js +78 -0
  223. package/node_modules/@oxygen/shared/dist/otlp-log-sink.js +20 -0
  224. package/node_modules/@oxygen/shared/dist/plan-capabilities.js +1 -1
  225. package/node_modules/@oxygen/shared/dist/plan-limits.d.ts +2 -2
  226. package/node_modules/@oxygen/shared/dist/plan-limits.js +6 -7
  227. package/node_modules/@oxygen/shared/dist/sending-domain-faults.d.ts +1 -1
  228. package/node_modules/@oxygen/shared/dist/sending-domain-faults.js +1 -1
  229. package/node_modules/@oxygen/shared/dist/tenant-migration-names.d.ts +5 -0
  230. package/node_modules/@oxygen/shared/dist/tenant-migration-names.js +8 -0
  231. package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
  232. package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
  233. package/node_modules/@oxygen/workflows/dist/graph/lint.d.ts +1 -1
  234. package/node_modules/@oxygen/workflows/dist/graph/lint.js +4 -3
  235. package/node_modules/@oxygen/workflows/dist/index.d.ts +2 -59
  236. package/node_modules/@oxygen/workflows/dist/index.js +4 -904
  237. package/node_modules/@oxygen/workflows/dist/manifest-validation.d.ts +75 -0
  238. package/node_modules/@oxygen/workflows/dist/manifest-validation.js +903 -0
  239. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import type { CapabilityIntentRules } from "../capability-discovery-types.js";
2
+ export declare const rules: CapabilityIntentRules;
@@ -0,0 +1,5 @@
1
+ export const rules = {
2
+ explicit: [
3
+ { order: 910, route: (query) => /\bagency partners?\b/.test(query) ? "agency-directory" : null },
4
+ ],
5
+ };
@@ -0,0 +1,10 @@
1
+ /** Workspace chat assistants are Oxygents; external app workspace selection stays separate. */
2
+ export declare function isOxygentChatIntent(query: string): boolean;
3
+ /**
4
+ * Watching items that change and working out what each one needs is an Agent's
5
+ * judgment, not a Workflow's fixed rule: "keep an eye on open deals and suggest
6
+ * what to do next for each" routed to Records reads, and the Oxygent proposed a
7
+ * routine without saying why (System 1 routing case, 2026-10-22).
8
+ */
9
+ export declare function isAdaptiveWatchIntent(query: string): boolean;
10
+ export declare const ADAPTIVE_WATCH_EXECUTION = "Watching items that change and deciding what fits each one is an Agent's job: each run looks at every item and works out what it needs, while a Workflow repeats one fixed rule. Tell the person that in one plain line. Set it up as an ongoing Agent session with per-run and rolling 24-hour credit caps; in an Oxygent chat, propose a routine and put that line in its why. Read the items first so the goal names real fields (for deals: stage, amount, last activity). Size the caps to one check, about 10 credits a run for reading a few dozen records and writing suggestions, and say so when that is above a limit the person gave. Suggestions stay inside OXYGEN (a task or a note); contacting anyone needs its own approval.";
@@ -0,0 +1,53 @@
1
+ import { isSecondPartyDecisionIntent } from "./collaboration.js";
2
+ import { isWorkspacePagesIntent } from "./workspace-access.js";
3
+ /** Workspace chat assistants are Oxygents; external app workspace selection stays separate. */
4
+ export function isOxygentChatIntent(query) {
5
+ if (isWorkspacePagesIntent(query) || isSecondPartyDecisionIntent(query))
6
+ return false;
7
+ if (/\boxygents?\b/.test(query))
8
+ return true;
9
+ if (/\b(chatgpt|claude|codex|oauth|mcp|connectors?|connected apps?)\b/.test(query))
10
+ return false;
11
+ const conversation = /\b(chats?|conversations?|histor(?:y|ies))\b/.test(query);
12
+ const assistantAudience = /\b(?:agents?|assistants?|teammates?)(?:'s)? visibility\b/.test(query)
13
+ || /\bvisibility (?:of|for) (?:(?:my|our|the|an?) )?(?:ai )?(?:agents?|assistants?|teammates?)\b/.test(query)
14
+ // An audience phrase ends here or introduces a relative clause.
15
+ // Trailing inputs such as "workspace email enrichment" keep their owner.
16
+ || /\b(?:assistants?|teammates?) for (?:(?:my|our|the|a) )?(?:(?:personal|private) use|(?:shared|team) workspace(?=$|[,.!?;:)]| (?:that|which|where|with)\b))\b/.test(query)
17
+ || /\b(?:private|personal|shared) (?:ai )?(?:agents?|assistants?|teammates?|chats?|conversations?)\b/.test(query);
18
+ // "Run my private agent only once" is execution, not creator-only access.
19
+ // An execution request changes owner only when it also names a visibility edit.
20
+ if (/\bagents?\b/.test(query) && /\b(?:run|execut\w*)\b/.test(query)
21
+ && !(assistantAudience && /\bvisibility\b/.test(query) && /\b(?:chang\w*|updat\w*|configur\w*|set)\b/.test(query)))
22
+ return false;
23
+ if (/\bai (?:agents? )?(?:assistants?|teammates?)\b/.test(query)) {
24
+ return (conversation || assistantAudience) && (!/\b(?:run|execut\w*)\b/.test(query) || assistantAudience);
25
+ }
26
+ // Privacy of an Agent itself belongs to Oxygents, not custom Agent runs.
27
+ // Keep ordinary run requests and private input data on the Agent gateway.
28
+ if (/\bagents?\b/.test(query) && assistantAudience
29
+ && /\b(?:visibility|only|creat\w*|make|new|privacy|configur\w*|settings?)\b/.test(query))
30
+ return true;
31
+ // Human membership asks must not re-enter Oxygent mutations through the
32
+ // generic fallback after the user-facing routine router excludes them.
33
+ // Explicit Oxygent/AI teammate access above keeps its native owner.
34
+ if (/\b(?:invite|members?|membership|permissions?|roles?|human|colleague|coworker)\b/.test(query))
35
+ return false;
36
+ return /\b(?:assistants?|teammates?)\b/.test(query)
37
+ && /\b(chats?|conversations?|histor(?:y|ies)|visibility)\b/.test(query)
38
+ && /\b(shared|private|personal|workspace|team|visibility)\b/.test(query);
39
+ }
40
+ /**
41
+ * Watching items that change and working out what each one needs is an Agent's
42
+ * judgment, not a Workflow's fixed rule: "keep an eye on open deals and suggest
43
+ * what to do next for each" routed to Records reads, and the Oxygent proposed a
44
+ * routine without saying why (System 1 routing case, 2026-10-22).
45
+ */
46
+ export function isAdaptiveWatchIntent(query) {
47
+ if (/\b(workflows?|webhooks?|cron|deterministic|fixed rule|sequences?|campaigns?|posts?|mailbox\w*|deliverability|bounce\w*)\b/.test(query))
48
+ return false;
49
+ return /\b(keeps? an eye on|keeps? tabs on|keeps? track of|watch(?:es|ing)?|monitor(?:s|ing)?|look(?:s|ing)? after)\b/.test(query)
50
+ && /\b(suggest\w*|decid\w*|works? out|figures? out|recommend\w*|judg\w*|what to do|next steps?|next moves?)\b/.test(query)
51
+ && /\b(each|every|individual\w*|differently|deals?|pipeline|opportunit(?:y|ies)|accounts?)\b/.test(query);
52
+ }
53
+ export const ADAPTIVE_WATCH_EXECUTION = "Watching items that change and deciding what fits each one is an Agent's job: each run looks at every item and works out what it needs, while a Workflow repeats one fixed rule. Tell the person that in one plain line. Set it up as an ongoing Agent session with per-run and rolling 24-hour credit caps; in an Oxygent chat, propose a routine and put that line in its why. Read the items first so the goal names real fields (for deals: stage, amount, last activity). Size the caps to one check, about 10 credits a run for reading a few dozen records and writing suggestions, and say so when that is above a limit the person gave. Suggestions stay inside OXYGEN (a task or a note); contacting anyone needs its own approval.";
@@ -0,0 +1,2 @@
1
+ import type { CapabilityIntentRules } from "../capability-discovery-types.js";
2
+ export declare const rules: CapabilityIntentRules;
@@ -0,0 +1,25 @@
1
+ import { ADAPTIVE_WATCH_EXECUTION, isAdaptiveWatchIntent, isOxygentChatIntent } from "./agents.js";
2
+ export const rules = {
3
+ explicit: [
4
+ { order: 40, route: (query) => isOxygentChatIntent(query) ? "agents" : null },
5
+ { order: 580, route: (query) => isAdaptiveWatchIntent(query) ? "agents" : null },
6
+ { order: 940, route: (query) => /\b(agent|adaptive|goal[ -]directed|persistent thread|checkpoint|standing job)\b/.test(query) ? "agents" : null },
7
+ ],
8
+ recommendations: [
9
+ {
10
+ order: 10,
11
+ recommend: (card, query) => {
12
+ if (card.id !== "agents" || !isOxygentChatIntent(query))
13
+ return null;
14
+ const continuing = /\b(continue|resume|talk)\b|\b(?:read|send|post)\b.*\b(?:chat|conversation|message)s?\b/.test(query);
15
+ return {
16
+ tools: ["oxygen_oxygents_create", "oxygen_oxygents_update", "oxygen_oxygents_access", ...(continuing ? ["oxygen_oxygents_get", "oxygen_oxygents_message"] : [])],
17
+ commands: ["oxygents create", "oxygents update", "oxygents access", ...(continuing ? ["oxygents get", "oxygents message"] : [])],
18
+ };
19
+ },
20
+ },
21
+ ],
22
+ cardViews: [
23
+ { order: 260, view: (card, query) => card.primitive === "agents" && isAdaptiveWatchIntent(query) ? { card: { ...card, execution: ADAPTIVE_WATCH_EXECUTION } } : null },
24
+ ],
25
+ };
@@ -0,0 +1,31 @@
1
+ /** This card's exact commands as MCP calls (see CAPABILITY_ROUTE_MCP_CALLS). */
2
+ export declare const mcpCalls: {
3
+ connectionPrices: () => {
4
+ tool: string;
5
+ arguments: {
6
+ view: string;
7
+ };
8
+ };
9
+ };
10
+ export declare function isPartnerBonusReadIntent(query: string): boolean;
11
+ export declare function providerPolicyReadRecommendation(query: string): {
12
+ tools: string[];
13
+ commands: string[];
14
+ execution: string;
15
+ } | null;
16
+ /**
17
+ * "Where did our credits go": the audit ranks spend areas with shares over the
18
+ * whole window. Blind agents read the raw usage ledger or left for the docs to
19
+ * find it (OXP-43.63, 2026-10-06). Balance, buying, pricing and budget asks
20
+ * keep their own readers.
21
+ */
22
+ export declare function spendBreakdownRecommendation(query: string): {
23
+ tools: string[];
24
+ commands: string[];
25
+ execution: string;
26
+ } | null;
27
+ export declare function isSubscriptionRetentionIntent(query: string): boolean;
28
+ /** Retired sending-seat questions need a stored read before any financial maintenance. */
29
+ export declare function isSeatTransitionReadIntent(query: string): boolean;
30
+ /** OXP-43.36: inspect recurring account prices before creating authorization. */
31
+ export declare function isConnectionPriceIntent(query: string): boolean;
@@ -0,0 +1,70 @@
1
+ /** This card's exact commands as MCP calls (see CAPABILITY_ROUTE_MCP_CALLS). */
2
+ export const mcpCalls = {
3
+ connectionPrices: () => ({ tool: "oxygen_billing_commitments", arguments: { view: "connection-prices" } }),
4
+ };
5
+ export function isPartnerBonusReadIntent(query) {
6
+ return /\b(partner[ _-]+(?:program[ _-]+)?(?:bonus|credits)|partners2026|promotions?|promo codes?|coupons?)\b/.test(query)
7
+ && !/\b(apply|redeem|remove|change|cancel|upgrade|downgrade|switch)\b/.test(query);
8
+ }
9
+ export function providerPolicyReadRecommendation(query) {
10
+ if (!/\bproviders?\b/.test(query)
11
+ || !/\b(limits?|request caps?|rate caps?|overrides?)\b/.test(query)
12
+ || /\b(set|setting|change|changing|update|updating|delete|deleting|remove|removing|clear|clearing|raise|raising|lower|lowering|reset|resetting|enrich\w*|find|search companies|send\w*|scrape\w*)\b/.test(query))
13
+ return null;
14
+ return {
15
+ tools: ["oxygen_provider_limits_list"], commands: ["limits provider list"],
16
+ execution: "Read saved provider request-limit overrides and the plan's BYOK daily default with its enforced or observe-only mode. Hydrate oxygen_provider_limits_list; external MCP uses oxygen_capabilities_read, built-in agents invoke the native capability. MCP pages are bounded; continue at paging.next_offset with the same provider filter. Reads cost 0 credits. Setting a policy or removing its exact selector is a separate approved admin/owner write; removing one does not clear other operation overrides.",
17
+ };
18
+ }
19
+ /**
20
+ * "Where did our credits go": the audit ranks spend areas with shares over the
21
+ * whole window. Blind agents read the raw usage ledger or left for the docs to
22
+ * find it (OXP-43.63, 2026-10-06). Balance, buying, pricing and budget asks
23
+ * keep their own readers.
24
+ */
25
+ export function spendBreakdownRecommendation(query) {
26
+ if (!/\b(credits?|spend|spent|spending)\b/.test(query)
27
+ || !/\b(where|went|breakdown|break down|broken down|by (?:category|provider|tool|model|source|run|workspace)|categor(?:y|ies)|areas?|biggest|largest|audit)\b/.test(query)
28
+ || /\b(left|remaining|balance|buy|purchase|top ?up|refill|invoices?|budgets?|limits?|caps?|estimate|prices?|pricing|plans?|subscription|cancel)\b/.test(query))
29
+ return null;
30
+ return {
31
+ tools: ["oxygen_billing_audit", "oxygen_billing_usage"], commands: ["billing audit", "billing usage"],
32
+ execution: "Read where managed credits went with oxygen_billing_audit: spend_by_category ranks each area's credits and share of managed_credits_spent, largest first, over the whole window; group_by provider, tool, model, run or workspace narrows it. Spent is reserved minus released in the window; it differs from captured (oxygen_billing_usage's managed_credits_used) because of holds at the window edges and adjustments to reserved credits, so do not attribute the whole gap to open holds. External MCP uses oxygen_capabilities_call; built-in agents invoke the native capability. Reports cost 0 credits; billing audit and billing usage may apply due plan grants or credit expiry.",
33
+ };
34
+ }
35
+ export function isSubscriptionRetentionIntent(query) {
36
+ return /\b(retention offer|win[ -]?back discount|cancellation (?:reason|feedback)|written cancellation)\b/.test(query)
37
+ || /\b(stay|cancel|cancelling)\b/.test(query) && /\b(discount|next month|subscription reason)\b/.test(query);
38
+ }
39
+ /** Retired sending-seat questions need a stored read before any financial maintenance. */
40
+ export function isSeatTransitionReadIntent(query) {
41
+ return /\b(sending seats?|seat subscriptions?|retired seats?|held seats?)\b/.test(query)
42
+ && !/\b(buy|purchase|set|increase|decrease|lower|reduce|cancel|connect|disconnect)\b/.test(query);
43
+ }
44
+ /** OXP-43.36: inspect recurring account prices before creating authorization. */
45
+ export function isConnectionPriceIntent(query) {
46
+ if (!/\b(costs?|prices?|credits?|reser(?:ve[sd]?|vations?)|charges?|charged|fees?|pay|quote)\b/.test(query))
47
+ return false;
48
+ if (/\b(per (?:message|send|action|call)|scrap\w*|research|enrich\w*|public (?:profiles?|posts?))\b/.test(query))
49
+ return false;
50
+ // A whole mailbox onboarding motion can mention price alongside importing
51
+ // history and syncing CRM. Keep that owner unless the ask isolates a quote.
52
+ if (/\b(import|sync)\b/.test(query) && /\b(history|crm|unibox)\b/.test(query)
53
+ && !/\b(monthly|recurring|quote|before (?:consent|connect|authorization))\b/.test(query))
54
+ return false;
55
+ // Lookup, purchase and sending prices keep their own previews. Naming a
56
+ // mailbox or a phone number alone does not make it an account connection.
57
+ if (/\b(?:find|look ?up|lookup)\b/.test(query) && /\bphones?\b/.test(query))
58
+ return false;
59
+ if (/\b(?:warm ?up|deliverability|placement)\b/.test(query))
60
+ return false;
61
+ if (/\bmailbox(?:es)?\b/.test(query) && /\b(?:buy|purchase|order)\b/.test(query))
62
+ return false;
63
+ if (/\blinkedin\b/.test(query) && /\b(?:messages?|invites?|invitations?|connection requests?)\b/.test(query))
64
+ return false;
65
+ const accountContext = /\b(accounts?|connect(?:ing|ed|ion)?|reconnect|oauth|consent)\b/.test(query);
66
+ return /\b(connected accounts?|account connections?|connection prices?)\b/.test(query)
67
+ || (/\b(linkedin|whatsapp|twitter|x)\b/.test(query)
68
+ && (accountContext || /\b(numbers?|seats?)\b/.test(query)))
69
+ || (/\bmailbox(?:es)?\b/.test(query) && accountContext);
70
+ }
@@ -0,0 +1,2 @@
1
+ import type { CapabilityIntentRules } from "../capability-discovery-types.js";
2
+ export declare const rules: CapabilityIntentRules;
@@ -0,0 +1,85 @@
1
+ import { isConnectionPriceIntent, isPartnerBonusReadIntent, isSeatTransitionReadIntent, isSubscriptionRetentionIntent, mcpCalls, providerPolicyReadRecommendation, spendBreakdownRecommendation, } from "./billing-and-budgets.js";
2
+ export const rules = {
3
+ explicit: [
4
+ { order: 70, route: (query) => isSubscriptionRetentionIntent(query) ? "billing-and-budgets" : null },
5
+ { order: 80, route: (query) => isSeatTransitionReadIntent(query) ? "billing-and-budgets" : null },
6
+ { order: 90, route: (query) => isConnectionPriceIntent(query) ? "billing-and-budgets" : null },
7
+ { order: 230, route: (query) => providerPolicyReadRecommendation(query) ? "billing-and-budgets" : null },
8
+ { order: 270, route: (query) => spendBreakdownRecommendation(query) ? "billing-and-budgets" : null },
9
+ ],
10
+ recommendations: [
11
+ {
12
+ order: 20,
13
+ recommend: (card, query) => card.id === "billing-and-budgets" && isPartnerBonusReadIntent(query)
14
+ ? { tools: ["oxygen_billing_summary"], commands: ["billing summary"] } : null,
15
+ },
16
+ {
17
+ order: 30,
18
+ recommend: (card, query) => card.id === "billing-and-budgets" && isSeatTransitionReadIntent(query)
19
+ ? { tools: ["oxygen_billing_summary"], commands: ["billing summary"] } : null,
20
+ },
21
+ { order: 190, recommend: (card, query) => card.id === "billing-and-budgets" ? providerPolicyReadRecommendation(query) : null },
22
+ { order: 200, recommend: (card, query) => card.id === "billing-and-budgets" ? spendBreakdownRecommendation(query) : null },
23
+ {
24
+ order: 210,
25
+ recommend: (card, query) => card.id === "billing-and-budgets" && isSubscriptionRetentionIntent(query)
26
+ ? { tools: ["oxygen_billing_cancel"], commands: ["billing retention-offer", "billing cancel", "billing retain"] } : null,
27
+ },
28
+ {
29
+ order: 220,
30
+ recommend: (card, query) => card.id === "billing-and-budgets" && isConnectionPriceIntent(query) ? {
31
+ tools: ["oxygen_billing_commitments"],
32
+ commands: ["billing commitments"],
33
+ exactCommand: "oxygen billing commitments --view connection-prices --json",
34
+ exactMcpCall: mcpCalls.connectionPrices(),
35
+ } : null,
36
+ },
37
+ {
38
+ order: 300,
39
+ recommend: (card, query) => card.id === "billing-and-budgets" && /\b(credit prices|credit price catalog|customer credit)\b/.test(query)
40
+ ? { tools: ["oxygen_customer_credit_prices"], commands: ["pricing customer-credit-prices"] } : null,
41
+ },
42
+ {
43
+ order: 310,
44
+ recommend: (card, query) => card.id === "billing-and-budgets" && /\b(plan|plans|annual|yearly|subscription)\b/.test(query)
45
+ ? { tools: ["oxygen_billing_balance", "oxygen_limits_show", "oxygen_billing_change_plan"], commands: ["billing balance", "limits show", "billing change"] } : null,
46
+ },
47
+ ],
48
+ cardViews: [
49
+ {
50
+ order: 190,
51
+ view: (card, query) => {
52
+ const providerRead = card.id === "billing-and-budgets" ? providerPolicyReadRecommendation(query) : null;
53
+ return providerRead ? { card: { ...card, posture: "read_only", execution: providerRead.execution } } : null;
54
+ },
55
+ },
56
+ {
57
+ order: 200,
58
+ view: (card, query) => {
59
+ const spendRead = card.id === "billing-and-budgets" && !providerPolicyReadRecommendation(query) ? spendBreakdownRecommendation(query) : null;
60
+ return spendRead ? { card: { ...card, posture: "mixed", execution: spendRead.execution } } : null;
61
+ },
62
+ },
63
+ {
64
+ order: 210,
65
+ view: (card, query) => card.id === "billing-and-budgets" && isPartnerBonusReadIntent(query) ? {
66
+ card: {
67
+ ...card, posture: "read_only",
68
+ execution: "Read partner_bonus eligibility, amount, conditions and timing with billing summary (oxygen_billing_summary), without grants or expiry. Captured coupon evidence is conditional and dated; a future bonus still requires a fresh Stripe check. Balance and usage can reconcile credits. Publication and plan changes need separate approval.",
69
+ },
70
+ } : null,
71
+ },
72
+ {
73
+ order: 220,
74
+ view: (card, query) => card.id === "billing-and-budgets" && isSeatTransitionReadIntent(query) ? {
75
+ card: {
76
+ ...card, posture: "read_only",
77
+ execution: "Read sending_seats with billing summary (oxygen_billing_summary), using the saved wallet without grants or expiry. It reports retired status, held-seat period-end meaning, channel capacity, current reservation prices and snapshot eligibility. Coverage of a specific account and its first future debit may remain unknown. A connection rechecks eligibility; this read reserves nothing.",
78
+ },
79
+ } : null,
80
+ },
81
+ ],
82
+ skills: [
83
+ { order: 70, skill: (card, query) => card.id === "billing-and-budgets" && /\b(explain|why|reduce|increas\w*|burn|spent)\b/.test(query) ? "oxygen-diagnostics" : null },
84
+ ],
85
+ };
@@ -0,0 +1,9 @@
1
+ import type { CapabilityRouteCard } from "../capability-discovery-types.js";
2
+ /** Recommendations point to the mounted native owners, without conferring their write authority. */
3
+ export declare function collaborationRecommendation(query: string): {
4
+ tools: string[];
5
+ commands: string[];
6
+ execution: string;
7
+ posture: CapabilityRouteCard["posture"];
8
+ } | null;
9
+ export declare function isSecondPartyDecisionIntent(query: string): boolean;
@@ -0,0 +1,54 @@
1
+ /** Recommendations point to the mounted native owners, without conferring their write authority. */
2
+ export function collaborationRecommendation(query) {
3
+ const memberRead = { tools: ["oxygen_workspace_members_list"], commands: ["approvals client list"],
4
+ execution: "Read workspace member roles, Clerk profiles and pending invitations. This does not invite anyone or change access. Free.", posture: "read_only" };
5
+ const member = /\b(members?|memberships?)\b/.test(query);
6
+ const workspace = /\b(workspace|organization|org)\b/.test(query);
7
+ const clientRole = /\bclient (?:role|access|login)\b/.test(query);
8
+ const roleWrite = /\b(set|change|grant|clear|remove|revoke|restrict|promote|demote)\b/.test(query);
9
+ if (clientRole && roleWrite && !/\b(crm|records?|contacts?|companies|api|oauth)\b/.test(query)) {
10
+ const clear = /\b(clear|remove|revoke)\b/.test(query);
11
+ return { tools: ["oxygen_members_client_role_set", ...memberRead.tools], commands: [clear ? "approvals client revoke" : "approvals client grant", ...memberRead.commands],
12
+ execution: "An admin can set or clear the restricted client overlay; a pending invite is checked in Clerk. This sends no invitation and does not change the Clerk workspace role. Free.", posture: "workspace_write" };
13
+ }
14
+ if (workspace && member && roleWrite && /\b(roles?|admin|administrator)\b/.test(query))
15
+ return {
16
+ tools: ["oxygen_members_workspace_role_set", ...memberRead.tools], commands: ["orgs member-role", ...memberRead.commands],
17
+ execution: "An admin changes a member's workspace role in Clerk before Oxygen mirrors it. Self-role changes and the last administrator are protected; the client overlay is separate. Free.", posture: "workspace_write",
18
+ };
19
+ if (((workspace && member) || clientRole || /\bwho is in (?:my|our|this|the) workspace\b/.test(query))
20
+ && !/\b(invite|add|delete|cancel|enable|disable|set|change|grant|clear|remove|revoke|restrict|promote|demote)\b/.test(query))
21
+ return memberRead;
22
+ if (/\b(?:approval|launch|sign ?off) gates?\b/.test(query)) {
23
+ const write = /\b(arm|set|enable|disable|require|change|turn)\b/.test(query);
24
+ return { tools: write ? ["oxygen_approvals_gate_set", "oxygen_approval_gates_list"] : ["oxygen_approval_gates_list", "oxygen_approvals_gate_set"],
25
+ commands: write ? ["approvals gate set", "approvals gate list"] : ["approvals gate list", "approvals gate set"],
26
+ execution: write ? "An admin configures the approval gate; this grants no approval. Launch gates a sequence; signoff gates a table. The owning primitive enforces it. Free."
27
+ : "Read configured approval gates and effective state for an exact subject. Reading a gate grants no approval. Free.", posture: write ? "workspace_write" : "read_only" };
28
+ }
29
+ if (/\bcomments?\b/.test(query) && /\b(internal|workspace|teammate|client)\b/.test(query)
30
+ && !/\b(linkedin|public|published|posts?|publishing)\b/.test(query)) {
31
+ if (/\b(edit|update|correct)\b/.test(query))
32
+ return { tools: ["oxygen_comments_edit", "oxygen_comments_list"], commands: ["comments edit", "comments list"],
33
+ execution: "Edit your own internal workspace comment by comment id; the author check and edit time are enforced by its native owner. Free.", posture: "workspace_write" };
34
+ if (/\b(delete|retract|remove)\b/.test(query))
35
+ return { tools: ["oxygen_comments_delete", "oxygen_comments_list"], commands: ["comments delete", "comments list"],
36
+ execution: "Retract your own internal comment by comment id. Its audit placeholder remains; this does not delete a public post comment. Free.", posture: "workspace_write" };
37
+ }
38
+ if (/\b(cancel|withdraw|retract)\b/.test(query) && /\b(?:approval|sign ?off) requests?\b/.test(query))
39
+ return {
40
+ tools: ["oxygen_approvals_cancel", "oxygen_approvals_list"], commands: ["approvals cancel", "approvals list"],
41
+ execution: "Withdraw an approval request you created, by request id; this grants no approval. The requester check remains enforced by the native owner. Free.", posture: "workspace_write",
42
+ };
43
+ return null;
44
+ }
45
+ export function isSecondPartyDecisionIntent(query) {
46
+ const decisionLanguage = /\b(sign ?off|signoff|approval request|request approval|approval gate|go no go)\b/.test(query);
47
+ const clientDecision = /\bclient\b.{0,20}\b(approv\w*|sign ?off|review|decide|decision|login|role)\b/.test(query)
48
+ || /\b(approv\w*|sign ?off|decision)\b.{0,20}\bfrom the client\b/.test(query);
49
+ const teammateDecision = /\b(teammate|colleague|workspace member)\b.{0,25}\b(approv\w*|sign ?off|review|decid\w*)\b/.test(query);
50
+ const internalThread = /\b(comment|comments|thread)\b/.test(query)
51
+ && /\b(internal|client|teammate|workspace member|discuss)\b/.test(query)
52
+ && !/\b(linkedin|public|published|post|posts|publishing)\b/.test(query);
53
+ return decisionLanguage || clientDecision || teammateDecision || internalThread;
54
+ }
@@ -0,0 +1,2 @@
1
+ import type { CapabilityIntentRules } from "../capability-discovery-types.js";
2
+ export declare const rules: CapabilityIntentRules;
@@ -0,0 +1,28 @@
1
+ import { collaborationRecommendation, isSecondPartyDecisionIntent } from "./collaboration.js";
2
+ export const rules = {
3
+ explicit: [
4
+ { order: 290, route: (query) => collaborationRecommendation(query) ? "collaboration" : null },
5
+ { order: 300, route: (query) => /\btables?\b/.test(query) && isSecondPartyDecisionIntent(query) ? "collaboration" : null },
6
+ // Asking a second party to decide is Collaboration even when the thing being
7
+ // decided is a campaign, a table, or a post — the subject noun would
8
+ // otherwise win outright ("campaign" is an explicit Sequences intent later,
9
+ // and that is right for every ask that is not about the decision itself).
10
+ // Deliberately narrow: bare "approve"/"approval" stays with the owning
11
+ // primitive (a publishing approval, an Observability approval queue), and
12
+ // this sits after the owned-post-comment check so a PUBLIC comment on a
13
+ // published post still routes to Posts.
14
+ { order: 630, route: (query) => isSecondPartyDecisionIntent(query) ? "collaboration" : null },
15
+ ],
16
+ recommendations: [
17
+ { order: 80, recommend: (card, query) => card.id === "collaboration" ? collaborationRecommendation(query) : null },
18
+ ],
19
+ cardViews: [
20
+ {
21
+ order: 50,
22
+ view: (card, query) => {
23
+ const collaboration = card.id === "collaboration" ? collaborationRecommendation(query) : null;
24
+ return collaboration ? { card: { ...card, execution: collaboration.execution, posture: collaboration.posture } } : null;
25
+ },
26
+ },
27
+ ],
28
+ };
@@ -0,0 +1,2 @@
1
+ import type { CapabilityIntentRules } from "../capability-discovery-types.js";
2
+ export declare const rules: CapabilityIntentRules;
@@ -0,0 +1,23 @@
1
+ export const rules = {
2
+ preRoutes: [
3
+ // A custom HTTP integration (the workspace's own REST API) and its removal.
4
+ {
5
+ order: 10,
6
+ route: (query, _rawQuery, cards) => {
7
+ if (!/\b(custom http|custom integrations?|own (?:rest|http) api)\b/.test(query))
8
+ return null;
9
+ const integrations = cards.byId("connected-integrations");
10
+ if (!integrations)
11
+ return null;
12
+ const removal = /\b(remov\w*|delet\w*|disconnect\w*|cleanup|clean up|throwaway|disposable)\b/.test(query);
13
+ const tools = removal ? ["oxygen_custom_integrations_remove", "oxygen_custom_integrations_list"] : ["oxygen_custom_integrations_list", "oxygen_custom_integrations_apply", "oxygen_custom_integration_connect"];
14
+ const commands = removal ? ["custom-integrations remove", "custom-integrations list"] : ["custom-integrations list", "custom-integrations apply", "custom-integrations connect"];
15
+ return {
16
+ card: { ...integrations, gatewayTools: tools, gatewayCommands: commands, skills: ["oxygen-custom-http"], execution: removal ? "Preview the exact custom HTTP connection and tools, then approve the returned plan_hash. Caller definitions and history remain, but bound callers stop working; provider-side key revocation is separate." : "Read oxygen-custom-http for the manifest schema and auth types. Apply registers catalog tools without a provider call; connect stores credentials separately. Preview a tool request before approved live execution." },
17
+ recommendedTools: tools,
18
+ recommendedCommands: commands,
19
+ };
20
+ },
21
+ },
22
+ ],
23
+ };
@@ -0,0 +1,43 @@
1
+ /** This card's exact commands as MCP calls (see CAPABILITY_ROUTE_MCP_CALLS). */
2
+ export declare const mcpCalls: {
3
+ senderConnect: () => {
4
+ tool: string;
5
+ arguments: {
6
+ country: string;
7
+ };
8
+ };
9
+ };
10
+ /**
11
+ * "My LinkedIn connections and followers as a table" is the connected account's
12
+ * own network, not a Tables question. Without this the phrase "into a table"
13
+ * routed a blind user to the generic Tables card, which never names
14
+ * `linkedin network setup` (blind eval, 2026-09-22).
15
+ */
16
+ export declare function isOwnLinkedInNetworkIntent(query: string): boolean;
17
+ /**
18
+ * Open connection requests on the workspace's own accounts are the connected
19
+ * account's data. A blind user searching "pending LinkedIn connection requests"
20
+ * was routed nowhere near `linkedin invitations` (blind eval, 2026-09-24).
21
+ */
22
+ export declare function isOpenLinkedInRequestsIntent(query: string): boolean;
23
+ /** One live sent-invitation page, separate from recurring capture and writes. */
24
+ export declare function sentLinkedInInvitationReadRecommendation(query: string): {
25
+ tools: string[];
26
+ commands: string[];
27
+ execution: string;
28
+ } | null;
29
+ /**
30
+ * Connecting, or asking what it takes to connect, the workspace's own LinkedIn
31
+ * sending account. The 2026-09-26 repricing baseline asked "connect a LinkedIn
32
+ * account" and was sent to Tables, and "LinkedIn on a free workspace" to
33
+ * workspace access; neither named `senders connect`, the one command that does
34
+ * it. Sending, network, profile and post asks keep their own owners.
35
+ */
36
+ export declare function isLinkedInAccountConnectIntent(query: string): boolean;
37
+ /**
38
+ * The connected account's hours, caps or pacing (`senders limits`). The
39
+ * 2026-10-02 pacing acceptance asked "linkedin sender pacing connection requests
40
+ * spread over day" and was sent to `senders connect` by the word "sender".
41
+ */
42
+ export declare function isLinkedInAccountLimitsIntent(query: string): boolean;
43
+ export declare function isMutualLinkedInConnectionsIntent(query: string): boolean;
@@ -0,0 +1,90 @@
1
+ import { isNetNewLinkedInInitiation } from "./sequences.js";
2
+ /** This card's exact commands as MCP calls (see CAPABILITY_ROUTE_MCP_CALLS). */
3
+ export const mcpCalls = {
4
+ // Like the CLI command, it leaves the LinkedIn risk acknowledgement to the user.
5
+ senderConnect: () => ({ tool: "oxygen_senders_connect", arguments: { country: "<cc>" } }),
6
+ };
7
+ /**
8
+ * "My LinkedIn connections and followers as a table" is the connected account's
9
+ * own network, not a Tables question. Without this the phrase "into a table"
10
+ * routed a blind user to the generic Tables card, which never names
11
+ * `linkedin network setup` (blind eval, 2026-09-22).
12
+ */
13
+ export function isOwnLinkedInNetworkIntent(query) {
14
+ if (!/\blinkedin\b/.test(query))
15
+ return false;
16
+ if (/\b(mutual|shared|in common|public|third party|cookieless|post engagers?)\b/.test(query))
17
+ return false;
18
+ const ownNetwork = /\b(my|our|own|whole|entire|existing) (linkedin )?(network|connections|followers)\b/.test(query)
19
+ || /\b(everyone|everybody|people) (i am|i'm|we are|we're) connected (to|with)\b/.test(query)
20
+ || /\blinkedin network\b/.test(query);
21
+ const bothHalves = /\bconnections?\b/.test(query) && /\bfollowers?\b/.test(query);
22
+ return (ownNetwork || bothHalves) && !isNetNewLinkedInInitiation(query);
23
+ }
24
+ /**
25
+ * Open connection requests on the workspace's own accounts are the connected
26
+ * account's data. A blind user searching "pending LinkedIn connection requests"
27
+ * was routed nowhere near `linkedin invitations` (blind eval, 2026-09-24).
28
+ */
29
+ export function isOpenLinkedInRequestsIntent(query) {
30
+ if (!/\blinkedin\b/.test(query))
31
+ return false;
32
+ // Sending requests to leads is Sequences, not this table.
33
+ if (/\b(send|sending|enroll|sequence|campaign|outreach|cadence)\b/.test(query))
34
+ return false;
35
+ return /\b(connection|invitation|invite|connect) requests?\b/.test(query)
36
+ || /\b(pending|open|unanswered|outstanding|received|sent) (linkedin )?(invitations?|invites?)\b/.test(query);
37
+ }
38
+ /** One live sent-invitation page, separate from recurring capture and writes. */
39
+ export function sentLinkedInInvitationReadRecommendation(query) {
40
+ if (!/\blinkedin\b/.test(query) || !/\b(invitations?|invites?|connection requests?)\b/.test(query)
41
+ || !/\b(sent|outgoing)\b/.test(query)
42
+ || /\b(incoming|received|mixed|tables?|workflows?|agents?|functions?|crm|mailbox\w*|setup|capture|monitor\w*|sync|recurring|schedule\w*|cron|send|sending|enroll|withdraw\w*|cancel|accept|decline|sequences?|outreach|cadence|research|third party|public)\b/.test(query))
43
+ return null;
44
+ if (!/\b(read|list|show|inspect|review|resume|next page|cursor|pagination)\b/.test(query)
45
+ && !/\b(cli|command line|native command)\b/.test(query))
46
+ return null;
47
+ return {
48
+ tools: ["oxygen_linkedin_invites_sent", "oxygen_senders_list"],
49
+ commands: ["linkedin invitations list", "senders list"],
50
+ execution: "Read one live, free pending-sent invitation page with oxygen_linkedin_invites_sent via oxygen_capabilities_read; CLI twin: oxygen linkedin invitations list --account <ref> --limit <n> --cursor <token> --json. Resolve the sender with oxygen_senders_list. Resume invitations.cursor unchanged with the same account; a full v2 page can need one empty final page. No provider writes or credits. Recurring received/sent capture is linkedin invitations setup; withdrawal is a separate external action.",
51
+ };
52
+ }
53
+ /**
54
+ * Connecting, or asking what it takes to connect, the workspace's own LinkedIn
55
+ * sending account. The 2026-09-26 repricing baseline asked "connect a LinkedIn
56
+ * account" and was sent to Tables, and "LinkedIn on a free workspace" to
57
+ * workspace access; neither named `senders connect`, the one command that does
58
+ * it. Sending, network, profile and post asks keep their own owners.
59
+ */
60
+ export function isLinkedInAccountConnectIntent(query) {
61
+ // Exact native command discovery has no LinkedIn noun to score.
62
+ if (/^(?:oxygen )?senders connect$/.test(query))
63
+ return true;
64
+ if (!/\b(linkedin|unipile)\b/.test(query))
65
+ return false;
66
+ if (/^(linkedin|unipile)( accounts?)?$/.test(query))
67
+ return true;
68
+ const authenticationUrl = /\b(?:authentication|authorization|oauth|auth)\b/.test(query)
69
+ && /\b(?:url|link)\b/.test(query)
70
+ && /\b(?:connect|reconnect|account|sender)\b/.test(query);
71
+ if (/\burl\b/.test(query) && !authenticationUrl)
72
+ return false;
73
+ if (/\b(send|sending|enroll|sequence|campaign|cadence|messages?|dms?|invites?|invitations?|posts?|profiles?|network|connections|followers|viewers|limits|hours|ads?|scrape|research|company|companies|pac(?:e|ing)|spacing|spaced|spread|apart|throttl\w*)\b/.test(query))
74
+ return false;
75
+ return /\b(connect|reconnect|link|add|accounts?|senders?|seats?|free|plan)\b/.test(query);
76
+ }
77
+ /**
78
+ * The connected account's hours, caps or pacing (`senders limits`). The
79
+ * 2026-10-02 pacing acceptance asked "linkedin sender pacing connection requests
80
+ * spread over day" and was sent to `senders connect` by the word "sender".
81
+ */
82
+ export function isLinkedInAccountLimitsIntent(query) {
83
+ return /\b(working hours|sending hours|business hours|office hours|weekdays?|time ?zone|linkedin limits|daily limits?|pac(?:e|ing)|spacing|spaced|spread|apart|throttl\w*)\b/.test(query);
84
+ }
85
+ export function isMutualLinkedInConnectionsIntent(query) {
86
+ const linkedInContext = /\blinkedin\b|\bprofiles?\b/.test(query);
87
+ const mutualContext = /\b(mutual|shared|in common)\b.{0,48}\b(connections?|relations?)\b/.test(query)
88
+ || /\b(connections?|relations?)\b.{0,48}\b(mutual|shared|in common)\b/.test(query);
89
+ return linkedInContext && mutualContext;
90
+ }
@@ -0,0 +1,2 @@
1
+ import type { CapabilityIntentRules } from "../capability-discovery-types.js";
2
+ export declare const rules: CapabilityIntentRules;