@oxygen-agent/cli 1.1011.288 → 1.1011.326

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.
@@ -0,0 +1,2 @@
1
+ export declare const MCP_EVENTS_ENABLED_ENV = "OXYGEN_MCP_EVENTS_ENABLED";
2
+ export declare function mcpEventsEnabled(env?: Record<string, string | undefined>): boolean;
@@ -0,0 +1,14 @@
1
+ // The one switch for MCP Events (ADR 0030 §11, D3; ledger OXP-11.5.19). The
2
+ // `events/*` handlers, the delivery producer and the delivery worker all read it,
3
+ // so events are either on for every surface or off for all of them.
4
+ //
5
+ // Fail closed: only `1` or `true` turns events on. Unset, empty, `0`, `false`,
6
+ // `TRUE` and anything else is off. Production keeps it unset until the
7
+ // per-connection credit ceiling (OXP-11.5.23) exists and a human turns events on;
8
+ // the DEV Doppler configs set it to `1`. Read from Doppler at the call site,
9
+ // never from a remote flag service (NEVER_FLAGGABLE in ./feature-gates.ts).
10
+ export const MCP_EVENTS_ENABLED_ENV = "OXYGEN_MCP_EVENTS_ENABLED";
11
+ export function mcpEventsEnabled(env = process.env) {
12
+ const value = env[MCP_EVENTS_ENABLED_ENV]?.trim();
13
+ return value === "1" || value === "true";
14
+ }
@@ -33,3 +33,9 @@ export type SelectOption = {
33
33
  order: number;
34
34
  };
35
35
  export declare function normalizeSelectOptions(raw: unknown): SelectOption[];
36
+ /**
37
+ * The id an option carries when it declares none, derived from its value. The
38
+ * web option editor saves new options with an empty id, so this is also how a
39
+ * stored cell value maps back to its option id (MCP stage events use it).
40
+ */
41
+ export declare function slugifyOption(value: string): string;
@@ -145,7 +145,12 @@ function readTrimmedString(value) {
145
145
  const trimmed = value.trim();
146
146
  return trimmed ? trimmed : null;
147
147
  }
148
- function slugifyOption(value) {
148
+ /**
149
+ * The id an option carries when it declares none, derived from its value. The
150
+ * web option editor saves new options with an empty id, so this is also how a
151
+ * stored cell value maps back to its option id (MCP stage events use it).
152
+ */
153
+ export function slugifyOption(value) {
149
154
  const slug = value
150
155
  .toLowerCase()
151
156
  .replace(/[^a-z0-9]+/g, "_")
@@ -1 +1 @@
1
- export declare const OXYGEN_BUILD_VERSION = "1.1011.288";
1
+ export declare const OXYGEN_BUILD_VERSION = "1.1011.326";
@@ -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.1011.288";
2
+ export const OXYGEN_BUILD_VERSION = "1.1011.326";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxygen-agent/cli",
3
- "version": "1.1011.288",
3
+ "version": "1.1011.326",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",