@oxygen-agent/cli 1.1044.18 → 1.1045.8

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.1044.18
37
+ Version: 1.1045.8
@@ -153,6 +153,18 @@ export declare function callPhoneForLead(phone: string): string | null;
153
153
  * channels can never disagree about which column holds the number.
154
154
  */
155
155
  export declare function callPhoneFromRow(rowValues: Record<string, unknown> | null | undefined, phoneColumnKey?: string | null): string | null;
156
+ /** Row columns read, in order, for a lead's timezone when the Sequence names none. */
157
+ export declare const SEQUENCE_TIMEZONE_COLUMN_KEYS: readonly ["timezone", "time_zone"];
158
+ /**
159
+ * A lead's IANA timezone for a call task, from its row_values: the Sequence's
160
+ * recipient-timezone column first, then SEQUENCE_TIMEZONE_COLUMN_KEYS.
161
+ *
162
+ * Only an Area/Location name counts ("Europe/Berlin"). Intl also resolves
163
+ * abbreviations, and reads "BST" as Bangladesh and "IST" as India, so a lead in
164
+ * London would pass the calling window at 04:30. Everything else counts as
165
+ * absent and the window keeps failing closed.
166
+ */
167
+ export declare function callTimezoneFromRow(rowValues: Record<string, unknown> | null | undefined, timezoneColumnKey?: string | null): string | null;
156
168
  /**
157
169
  * A per-step / per-sequence send window. `days` are ISO weekdays (1=Mon … 7=Sun)
158
170
  * on which sends are allowed; `start`/`end` are "HH:MM" local times. The window
@@ -1,6 +1,7 @@
1
1
  import { OxygenError } from "../cli-result.js";
2
2
  import { hashVariantKey, renderTemplate, spintaxSyntaxIssues, templateColumnKeys, } from "./template.js";
3
3
  import { isRecord } from "../type-guards.js";
4
+ import { isValidTimeZone } from "../zoned-time.js";
4
5
  import { LINKEDIN_INVITE_NOTE_LIMIT } from "./linkedin-sequences.js";
5
6
  /**
6
7
  * Multichannel sequence DSL — the shared contract validated identically by CLI,
@@ -296,6 +297,32 @@ export function callPhoneFromRow(rowValues, phoneColumnKey) {
296
297
  }
297
298
  return null;
298
299
  }
300
+ /** Row columns read, in order, for a lead's timezone when the Sequence names none. */
301
+ export const SEQUENCE_TIMEZONE_COLUMN_KEYS = ["timezone", "time_zone"];
302
+ /**
303
+ * A lead's IANA timezone for a call task, from its row_values: the Sequence's
304
+ * recipient-timezone column first, then SEQUENCE_TIMEZONE_COLUMN_KEYS.
305
+ *
306
+ * Only an Area/Location name counts ("Europe/Berlin"). Intl also resolves
307
+ * abbreviations, and reads "BST" as Bangladesh and "IST" as India, so a lead in
308
+ * London would pass the calling window at 04:30. Everything else counts as
309
+ * absent and the window keeps failing closed.
310
+ */
311
+ export function callTimezoneFromRow(rowValues, timezoneColumnKey) {
312
+ if (!rowValues)
313
+ return null;
314
+ const keys = timezoneColumnKey ? [timezoneColumnKey, ...SEQUENCE_TIMEZONE_COLUMN_KEYS] : [...SEQUENCE_TIMEZONE_COLUMN_KEYS];
315
+ for (const key of keys) {
316
+ const value = rowValues[key];
317
+ if (typeof value !== "string")
318
+ continue;
319
+ const zone = value.trim();
320
+ // Etc/GMT+1 and SystemV/EST5 are fixed offsets, never a lead's zone.
321
+ if (zone.includes("/") && !/^(etc|systemv)\//i.test(zone) && isValidTimeZone(zone))
322
+ return zone;
323
+ }
324
+ return null;
325
+ }
299
326
  /**
300
327
  * Base content + up to this many alternates per A/B step (base counts as
301
328
  * variant "a", so the ceiling is "a"–"z" — Instantly-class A/Z testing).
@@ -1,3 +1,3 @@
1
1
  export declare const OXYGEN_VERSION: string;
2
- export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.1014.913";
2
+ export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.1014.1035";
3
3
  export declare const GEO_EXPORT_MINIMUM_CLI_VERSION = "1.1013.0";
@@ -1 +1 @@
1
- export declare const OXYGEN_BUILD_VERSION = "1.1044.18";
1
+ export declare const OXYGEN_BUILD_VERSION = "1.1045.8";
@@ -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.1044.18";
2
+ export const OXYGEN_BUILD_VERSION = "1.1045.8";
@@ -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.913";
52
+ export const OXYGEN_MINIMUM_CLI_VERSION = "1.1014.1035";
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.1044.18",
3
+ "version": "1.1045.8",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",