@oxygen-agent/cli 1.888.6 → 1.894.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.
- package/README.md +1 -1
- package/dist/command-manifest.js +11 -1
- package/dist/index.js +276 -16
- package/node_modules/@oxygen/shared/dist/billing.d.ts +3 -3
- package/node_modules/@oxygen/shared/dist/billing.js +2 -2
- package/node_modules/@oxygen/shared/dist/capability-discovery.js +3 -3
- package/node_modules/@oxygen/shared/dist/feature-gates.d.ts +5 -0
- package/node_modules/@oxygen/shared/dist/feature-gates.js +6 -0
- package/node_modules/@oxygen/shared/dist/index.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/index.js +1 -0
- package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.d.ts +255 -0
- package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.js +238 -0
- package/node_modules/@oxygen/shared/dist/knowledge-constants.d.ts +3 -0
- package/node_modules/@oxygen/shared/dist/knowledge-constants.js +19 -0
- package/node_modules/@oxygen/shared/dist/knowledge-seed-content.d.ts +23 -6
- package/node_modules/@oxygen/shared/dist/knowledge-seed-content.js +438 -29
- package/node_modules/@oxygen/shared/dist/sending-seats.d.ts +31 -8
- package/node_modules/@oxygen/shared/dist/sending-seats.js +19 -15
- package/node_modules/@oxygen/shared/dist/version.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -137,24 +137,28 @@ export function sendingSeatGateEnabled(env = process.env) {
|
|
|
137
137
|
return normalized === "1" || normalized === "true" || normalized === "yes" || normalized === "on";
|
|
138
138
|
}
|
|
139
139
|
export const SENDING_SEAT_GATE_ENABLED_ENV_VAR = "OXYGEN_SENDING_SEAT_GATE_ENABLED";
|
|
140
|
+
export const SEAT_CONNECT_ROUTES = [
|
|
141
|
+
{ path: "/api/cli/senders/connect", seatKey: "linkedin", match: "prefix" },
|
|
142
|
+
{ path: "/api/cli/whatsapp/connect", seatKey: "whatsapp", match: "prefix" },
|
|
143
|
+
{ path: "/api/cli/mailboxes/connect-oauth", seatKey: "email_sender", match: "prefix" },
|
|
144
|
+
{ path: "/api/cli/voice/numbers", seatKey: "phone_number", match: "exact" },
|
|
145
|
+
];
|
|
140
146
|
/**
|
|
141
|
-
* Which seat
|
|
147
|
+
* Which seat a request consumes, or null.
|
|
142
148
|
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
* customers who already have mailboxes attached — the precise failure this whole
|
|
147
|
-
* grandfathering design exists to prevent. Add mailboxes here only once a
|
|
148
|
-
* tenant-aware backfill has granted their legacy entitlements.
|
|
149
|
+
* METHOD MATTERS: only a request that CREATES a sender consumes capacity.
|
|
150
|
+
* `GET /api/cli/voice/numbers` lists what you already own and must never be
|
|
151
|
+
* refused for want of a seat.
|
|
149
152
|
*/
|
|
150
|
-
export
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
export function seatKindForConnect(pathname, method) {
|
|
154
|
+
if (method.toUpperCase() !== "POST")
|
|
155
|
+
return null;
|
|
156
|
+
for (const route of SEAT_CONNECT_ROUTES) {
|
|
157
|
+
const hit = route.match === "exact"
|
|
158
|
+
? pathname === route.path
|
|
159
|
+
: pathname === route.path || pathname.startsWith(`${route.path}/`);
|
|
160
|
+
if (hit)
|
|
161
|
+
return route.seatKey;
|
|
158
162
|
}
|
|
159
163
|
return null;
|
|
160
164
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const OXYGEN_VERSION = "1.
|
|
1
|
+
export declare const OXYGEN_VERSION = "1.894.0";
|
|
2
2
|
export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.181.0";
|
|
3
3
|
export declare const MANAGED_INBOX_MINIMUM_CLI_VERSION = "1.326.2";
|
|
4
4
|
export declare const SUPPORT_AGENT_REPLY_MINIMUM_CLI_VERSION = "1.747.0";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const OXYGEN_VERSION = "1.
|
|
1
|
+
export const OXYGEN_VERSION = "1.894.0";
|
|
2
2
|
// The GLOBAL CLI compatibility floor: the oldest CLI allowed to call any
|
|
3
3
|
// operational route. Raising it hard-rejects every older CLI from the entire
|
|
4
4
|
// product, so it obeys one law, enforced by scripts/ci/cli-min-version-gate.mjs:
|