@oxygen-agent/cli 1.1038.33 → 1.1040.1

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.
package/README.md CHANGED
@@ -34,4 +34,4 @@ oxygen update
34
34
 
35
35
  For product documentation, visit https://oxygen-agent.com/docs. For support, visit https://oxygen-agent.com.
36
36
 
37
- Version: 1.1038.33
37
+ Version: 1.1040.1
@@ -11,7 +11,7 @@ import { OxygenError } from "@oxygen/shared/cli-result";
11
11
  import { knowledgeIndexReadContract, knowledgePageReadContract } from "@oxygen/shared/contracts/knowledge-content-reads";
12
12
  import { knowledgeProposalWindowContract } from "@oxygen/shared/contracts/knowledge-proposal-reads";
13
13
  import { KNOWLEDGE_BOOTSTRAP_MAX_CREDITS } from "@oxygen/shared/knowledge/bootstrap";
14
- import { KNOWLEDGE_PAGE_TYPES } from "@oxygen/shared/knowledge/constants";
14
+ import { KNOWLEDGE_PAGE_TYPES, KNOWLEDGE_SYNTHESIS_MAX_CREDITS_PER_DAY_MAX, KNOWLEDGE_SYNTHESIS_MAX_CREDITS_PER_DAY_MIN, } from "@oxygen/shared/knowledge/constants";
15
15
  import { parseKnowledgePageMarkdown } from "@oxygen/shared/knowledge/markdown";
16
16
  import { Command, Option } from "commander";
17
17
  import { networkMiningHostServed } from "../network-mining-host.js";
@@ -823,7 +823,7 @@ export function registerKnowledgeFamily(program, handleAsyncAction) {
823
823
  .option("--enabled", "Enable unattended synthesis.")
824
824
  .option("--disabled", "Disable unattended synthesis.")
825
825
  .option("--cadence-hours <n>", "Hours between synthesis cycles (1-168, default 24).")
826
- .option("--max-credits-per-day <n>", "Managed-credit cap per UTC day (0-10,000, default 100).")
826
+ .option("--max-credits-per-day <n>", `Managed-credit cap per UTC day (${KNOWLEDGE_SYNTHESIS_MAX_CREDITS_PER_DAY_MIN}-${KNOWLEDGE_SYNTHESIS_MAX_CREDITS_PER_DAY_MAX.toLocaleString("en-US")}, default 100).`)
827
827
  .option("--json", "Print a JSON envelope.")
828
828
  .action(async (options) => {
829
829
  await handleAsyncAction("knowledge agent set", options, () => {
@@ -1079,7 +1079,7 @@ export function registerMailboxesFamily(program, handleAsyncAction) {
1079
1079
  });
1080
1080
  }))
1081
1081
  .addCommand(new Command("google")
1082
- .description("Legacy Google owner consent for one to ten connected inboxes. Gmail connected through Composio uses warmup enable to review standard mailbox access without a second Google consent. This legacy flow is separate from native sending: no passwords or OXYGEN tokens transfer. Preview costs 0 credits and creates no link. Approve its hash with --max-credits 0, open each consent_url as that exact inbox, then poll --status. Google shows the warm-up provider's consent application. Warmup stays off until a separately approved warmup enable; its fresh preview shows the price, including 0 extra credits when included in the mailbox connection.")
1082
+ .description("Google owner consent for one to ten connected inboxes. Gmail connected through Composio signs in here when its warmup enable preview asks for Google consent; if this command answers warmup_disable_required, turn warm-up off for that inbox first. This flow is separate from native sending: no passwords or OXYGEN tokens transfer. Preview costs 0 credits and creates no link. Approve its hash with --max-credits 0, open each consent_url as that exact inbox, then poll --status. Google shows the warm-up provider's consent application. Warmup stays off until a separately approved warmup enable; its fresh preview shows the price, including 0 extra credits when included in the mailbox connection.")
1083
1083
  .requiredOption("--mailboxes <list>", "Exact Google inbox ids or addresses, comma-separated; maximum ten.")
1084
1084
  .option("--approved", "Create the previewed authorization links.")
1085
1085
  .option("--plan <hash>", "Fresh preview hash; required with approval.")
@@ -1765,7 +1765,7 @@ export function registerSequencesFamily(program, handleAsyncAction) {
1765
1765
  });
1766
1766
  }))
1767
1767
  .addCommand(new Command("draft")
1768
- .description("Draft an email or LinkedIn sequence with AI, grounded in confirmed workspace Knowledge with cited provenance. PAID: --max-credits bounds generation. Email is the default; LinkedIn drafts invite/message actions and waits. --create with --name and --slug saves an inert draft; enrollment and launch remain separate.")
1768
+ .description("Draft an email or LinkedIn sequence with AI, grounded in confirmed workspace Knowledge with cited provenance. PAID: --max-credits caps the draft and any repair call together. Email is the default; LinkedIn drafts invite/message actions and waits. --create with --name and --slug saves an inert draft; enrollment and launch remain separate.")
1769
1769
  .requiredOption("--goal <goal>", "Plain-language goal for the sequence (e.g. \"book demos with RevOps leaders at Series A SaaS\"). The trusted brief the copy is written to.")
1770
1770
  .addOption(new Option("--channel <channel>", "Outreach channel; email default, linkedin for invite/message steps.").choices(["email", "linkedin"]))
1771
1771
  .option("--activation-id <id>", "Guided onboarding activation UUID; --create reuses its bound native Sequence and exact First leads Table. Creator is derived from identity.")
@@ -1773,7 +1773,7 @@ export function registerSequencesFamily(program, handleAsyncAction) {
1773
1773
  .option("--table <id>", "Source table id whose column keys become the {{column|fallback}} personalization tokens the copy may use.")
1774
1774
  .option("--steps <n>", "Outreach actions (1-7), excluding waits; default 4 email or 3 LinkedIn.")
1775
1775
  .option("--variants <n>", "Copy variants per outreach action (1-3); default 1.")
1776
- .requiredOption("--max-credits <n>", "Credit cap for the AI call (required — this is a paid action).")
1776
+ .requiredOption("--max-credits <n>", "Credit cap for the AI calls, any repair included (required — this is a paid action). At least one call's estimate; recommended_max_credits, when quoted, covers the first call and one repair call, or is your balance if lower.")
1777
1777
  .option("--create", "Save the draft as a DRAFT sequence (requires --name and --slug). Without this, the draft is only previewed.")
1778
1778
  .option("--name <name>", "Human-readable sequence name (required with --create).")
1779
1779
  .option("--slug <slug>", "Unique slug for the sequence (required with --create).")
@@ -37,6 +37,8 @@ export declare const KNOWLEDGE_GRAPH_MAX_NODES = 2000;
37
37
  export declare const KNOWLEDGE_GRAPH_DEFAULT_DEPTH = 1;
38
38
  export declare const KNOWLEDGE_GRAPH_MAX_DEPTH = 3;
39
39
  export declare const KNOWLEDGE_SYNC_MAX_PAGE_BATCH = 200;
40
+ export declare const KNOWLEDGE_SYNTHESIS_MAX_CREDITS_PER_DAY_MIN = 0;
41
+ export declare const KNOWLEDGE_SYNTHESIS_MAX_CREDITS_PER_DAY_MAX = 1000;
40
42
  export declare const KNOWLEDGE_STUB_MARKER = "Stub \u2014 fill me.";
41
43
  export declare const KNOWLEDGE_BOOTSTRAP_COMMAND = "oxygen knowledge bootstrap";
42
44
  export declare const KNOWLEDGE_BOOTSTRAP_AVAILABLE = true;
@@ -124,6 +124,12 @@ export const KNOWLEDGE_GRAPH_MAX_NODES = 2_000;
124
124
  export const KNOWLEDGE_GRAPH_DEFAULT_DEPTH = 1;
125
125
  export const KNOWLEDGE_GRAPH_MAX_DEPTH = 3;
126
126
  export const KNOWLEDGE_SYNC_MAX_PAGE_BATCH = 200;
127
+ // The scheduled synthesis agent's per-UTC-day credit cap. The tenant-db store
128
+ // clamps to these bounds and the CLI help and MCP schema publish them. The
129
+ // 2026-09-19 credit re-denomination ($1 = 100 credits) moved the clamp from
130
+ // 10,000 to 1,000 and left both surfaces at 10,000 (OXP-3.4.264).
131
+ export const KNOWLEDGE_SYNTHESIS_MAX_CREDITS_PER_DAY_MIN = 0;
132
+ export const KNOWLEDGE_SYNTHESIS_MAX_CREDITS_PER_DAY_MAX = 1_000;
127
133
  // The domain-grounded scaffold-fill command. KNOWLEDGE_BOOTSTRAP_AVAILABLE is the
128
134
  // single gate: while it is false, `oxygen knowledge lint` reports researchable stubs
129
135
  // as FACTS (which stubs are still empty, and whether the workspace has a domain a
@@ -68,6 +68,11 @@ export type GuidedActivation = {
68
68
  turn_id?: string;
69
69
  event_seq?: number;
70
70
  finished_at?: string;
71
+ /**
72
+ * The workspace was created without a website or LinkedIn page, so the Oxygent asked for one
73
+ * and the research waits for the answer (current chat, 2026-11-11). Cleared when the research is claimed.
74
+ */
75
+ company_pending?: boolean;
71
76
  /** Agent-led onboarding's background research (Philipp, 2026-10-20): its hidden session and turn, then the chat turn that reported it. */
72
77
  research?: GuidedOnboardingResearch;
73
78
  } | null;
@@ -2,20 +2,23 @@
2
2
  * The inbound-reply CRM signal contract, shared by apps/web and apps/worker.
3
3
  *
4
4
  * The same logical event — "a lead's reply settled on a status" — is dispatched
5
- * from three places: the on-demand `inbox analyze` route, the raw provider
6
- * webhooks, and the worker's background reply bridge. They must agree on the
7
- * event name AND on the external event id, because that id is the dedupe key:
8
- * `recordWorkflowEvent` collapses repeats on it, and the run idempotency key is
9
- * derived from it. If the worker and the web route built the id differently,
10
- * the same conversation would assert the same person twice.
5
+ * from two places: the on-demand `inbox analyze` route and the worker's
6
+ * background reply bridge. The raw provider webhooks dispatch none (a raw
7
+ * message does not say whether the reply is positive). The one-click
8
+ * unsubscribe also sends it, as an opt-out with no status, and `oxygen
9
+ * workflows events emit` can send it by hand. The two reply paths must agree on
10
+ * the event name AND on the external event id, because that id is the dedupe
11
+ * key: `recordWorkflowEvent` collapses repeats on it, and the run idempotency
12
+ * key is derived from it. If the worker and the web route built the id
13
+ * differently, the same conversation would assert the same person twice.
11
14
  */
12
15
  /** Workflow event source for every inbound GTM signal that advances a lead. */
13
16
  export declare const CRM_WORKFLOW_EVENT_SOURCE = "crm";
14
17
  /**
15
- * The single channel-neutral "inbound reply → lead stage" event. A raw reply
16
- * and a classified reply both dispatch this one event; per-channel raw reply
17
- * events are deliberately not modelled, because an event no standing template
18
- * consumes is a dead signal.
18
+ * The single channel-neutral "inbound reply → lead stage" event, dispatched
19
+ * once a reply's status is settled (classified, or set at ingestion such as a
20
+ * hard opt-out). Per-channel raw reply events are deliberately not modelled,
21
+ * because an event no standing template consumes is a dead signal.
19
22
  */
20
23
  export declare const CRM_EMAIL_REPLY_CLASSIFIED_EVENT = "email_reply_classified";
21
24
  /** App-native CRM events that can start ordinary workspace workflows. */
@@ -2,20 +2,23 @@
2
2
  * The inbound-reply CRM signal contract, shared by apps/web and apps/worker.
3
3
  *
4
4
  * The same logical event — "a lead's reply settled on a status" — is dispatched
5
- * from three places: the on-demand `inbox analyze` route, the raw provider
6
- * webhooks, and the worker's background reply bridge. They must agree on the
7
- * event name AND on the external event id, because that id is the dedupe key:
8
- * `recordWorkflowEvent` collapses repeats on it, and the run idempotency key is
9
- * derived from it. If the worker and the web route built the id differently,
10
- * the same conversation would assert the same person twice.
5
+ * from two places: the on-demand `inbox analyze` route and the worker's
6
+ * background reply bridge. The raw provider webhooks dispatch none (a raw
7
+ * message does not say whether the reply is positive). The one-click
8
+ * unsubscribe also sends it, as an opt-out with no status, and `oxygen
9
+ * workflows events emit` can send it by hand. The two reply paths must agree on
10
+ * the event name AND on the external event id, because that id is the dedupe
11
+ * key: `recordWorkflowEvent` collapses repeats on it, and the run idempotency
12
+ * key is derived from it. If the worker and the web route built the id
13
+ * differently, the same conversation would assert the same person twice.
11
14
  */
12
15
  /** Workflow event source for every inbound GTM signal that advances a lead. */
13
16
  export const CRM_WORKFLOW_EVENT_SOURCE = "crm";
14
17
  /**
15
- * The single channel-neutral "inbound reply → lead stage" event. A raw reply
16
- * and a classified reply both dispatch this one event; per-channel raw reply
17
- * events are deliberately not modelled, because an event no standing template
18
- * consumes is a dead signal.
18
+ * The single channel-neutral "inbound reply → lead stage" event, dispatched
19
+ * once a reply's status is settled (classified, or set at ingestion such as a
20
+ * hard opt-out). Per-channel raw reply events are deliberately not modelled,
21
+ * because an event no standing template consumes is a dead signal.
19
22
  */
20
23
  export const CRM_EMAIL_REPLY_CLASSIFIED_EVENT = "email_reply_classified";
21
24
  /** App-native CRM events that can start ordinary workspace workflows. */
@@ -1,3 +1,3 @@
1
1
  export declare const OXYGEN_VERSION: string;
2
- export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.1014.86";
2
+ export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.1014.123";
3
3
  export declare const GEO_EXPORT_MINIMUM_CLI_VERSION = "1.1013.0";
@@ -1 +1 @@
1
- export declare const OXYGEN_BUILD_VERSION = "1.1038.33";
1
+ export declare const OXYGEN_BUILD_VERSION = "1.1040.1";
@@ -1,2 +1,2 @@
1
1
  // GENERATED by scripts/ci/version-stamp.mjs from VERSION + git history. Do not edit; do not commit.
2
- export const OXYGEN_BUILD_VERSION = "1.1038.33";
2
+ export const OXYGEN_BUILD_VERSION = "1.1040.1";
@@ -49,7 +49,7 @@ export const OXYGEN_VERSION = OXYGEN_BUILD_VERSION;
49
49
  // Since 2026-09-28 the release-preparation step advances this literal to the
50
50
  // highest CLI version published on npm for at least 30 days. It never lowers
51
51
  // the floor. The source change lands on dev before the next production release.
52
- export const OXYGEN_MINIMUM_CLI_VERSION = "1.1014.86";
52
+ export const OXYGEN_MINIMUM_CLI_VERSION = "1.1014.123";
53
53
  // The internal GEO export first gains required pagination in this dev version.
54
54
  // Earlier pilot clients would save a partial file without its continuation.
55
55
  export const GEO_EXPORT_MINIMUM_CLI_VERSION = "1.1013.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxygen-agent/cli",
3
- "version": "1.1038.33",
3
+ "version": "1.1040.1",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",