@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.
- package/README.md +1 -1
- package/dist/connectors-commands.d.ts +11 -0
- package/dist/connectors-commands.js +63 -0
- package/dist/index.js +14 -3
- package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +4 -0
- package/node_modules/@oxygen/shared/dist/capability-discovery.js +39 -6
- package/node_modules/@oxygen/shared/dist/contracts/connectors.d.ts +23 -0
- package/node_modules/@oxygen/shared/dist/contracts/connectors.js +34 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations.d.ts +0 -6
- package/node_modules/@oxygen/shared/dist/contracts/operations.js +8 -1
- 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/knowledge-bootstrap.d.ts +57 -8
- package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.js +74 -13
- package/node_modules/@oxygen/shared/dist/mcp-event-contract.d.ts +597 -0
- package/node_modules/@oxygen/shared/dist/mcp-event-contract.js +713 -0
- package/node_modules/@oxygen/shared/dist/mcp-events-enabled.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/mcp-events-enabled.js +14 -0
- package/node_modules/@oxygen/shared/dist/select-options.d.ts +6 -0
- package/node_modules/@oxygen/shared/dist/select-options.js +6 -1
- package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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.
|
|
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.
|
|
2
|
+
export const OXYGEN_BUILD_VERSION = "1.1011.326";
|