@oxygen-agent/cli 1.1032.12 → 1.1032.14

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.1032.12
37
+ Version: 1.1032.14
@@ -200,6 +200,8 @@ export type LinkedInRefusalScope =
200
200
  "oxygen_request_invalid"
201
201
  /** We could not READ the lead's profile. Not a verdict on a send. */
202
202
  | "profile_unreadable"
203
+ /** LinkedIn says the lead's profile does not exist. Nothing was sent; other channels may still reach the lead. */
204
+ | "profile_not_found"
203
205
  /** This sender has exhausted a LinkedIn allowance. Nothing to do with the lead. */
204
206
  | "sender_allowance"
205
207
  /** The step needs a connection this lead has not accepted. Ours to sequence. */
@@ -221,8 +223,8 @@ export type LinkedInRefusalScope =
221
223
  */
222
224
  /**
223
225
  * Enrollment metadata key set when LinkedIn would not open the lead's profile on
224
- * any attempt of a LinkedIn step, in a journey that still reaches the lead by
225
- * email, call or WhatsApp.
226
+ * any attempt of a LinkedIn step, or answered that the profile does not exist,
227
+ * in a journey that still reaches the lead by email, call or WhatsApp.
226
228
  * The planner then treats the lead as having no LinkedIn profile: each later
227
229
  * LinkedIn step is skipped as linkedin_profile_unreadable, a connection wait
228
230
  * passes and a connection branch takes its not-connected path, while the email,
@@ -115,8 +115,8 @@ export const LINKEDIN_INVITE_NOTE_LIMIT_BASIC = 200;
115
115
  */
116
116
  /**
117
117
  * Enrollment metadata key set when LinkedIn would not open the lead's profile on
118
- * any attempt of a LinkedIn step, in a journey that still reaches the lead by
119
- * email, call or WhatsApp.
118
+ * any attempt of a LinkedIn step, or answered that the profile does not exist,
119
+ * in a journey that still reaches the lead by email, call or WhatsApp.
120
120
  * The planner then treats the lead as having no LinkedIn profile: each later
121
121
  * LinkedIn step is skipped as linkedin_profile_unreadable, a connection wait
122
122
  * passes and a connection branch takes its not-connected path, while the email,
@@ -156,6 +156,17 @@ export function classifyLinkedInRefusal(input) {
156
156
  && /^Insufficient permissions: This profile can't be accessed$/u.test(message)) {
157
157
  return "profile_unreadable";
158
158
  }
159
+ // LinkedIn's own answer to the profile READ: no such profile (deleted, or the
160
+ // URL no longer leads to anyone). Production 2026-11-05 (Plain T-406). Unipile
161
+ // answers its own route miss with the same 404 under `api/resource_not_found`
162
+ // ("Route Not Found", the 2026-09-24 DEV misrouting); that one is ours, not
163
+ // the lead's, so only the `provider/*` namespace matches.
164
+ if (input.status === 404
165
+ && input.operation === "users_get"
166
+ && input.providerType === "provider/resource_not_found"
167
+ && /^(?:Resource not found: )?This profile was not found\.$/u.test(message)) {
168
+ return "profile_not_found";
169
+ }
159
170
  if (input.status === 403
160
171
  && input.providerType === "provider/access_restricted"
161
172
  && /^Access restricted: You have reached the limit for custom messages\.$/u.test(message)) {
@@ -1 +1 @@
1
- export declare const OXYGEN_BUILD_VERSION = "1.1032.12";
1
+ export declare const OXYGEN_BUILD_VERSION = "1.1032.14";
@@ -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.1032.12";
2
+ export const OXYGEN_BUILD_VERSION = "1.1032.14";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxygen-agent/cli",
3
- "version": "1.1032.12",
3
+ "version": "1.1032.14",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",