@unblocklabs/unblock-codex-prompt 0.3.0 → 0.4.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 +346 -67
- package/dist/adapter.d.ts +23 -25
- package/dist/adapter.js +141 -152
- package/dist/claude-adapter.d.ts +63 -0
- package/dist/claude-adapter.js +255 -0
- package/dist/compatibility.d.ts +1 -1
- package/dist/compatibility.js +4 -3
- package/dist/compiler.d.ts +103 -13
- package/dist/compiler.js +42 -37
- package/dist/index.js +239 -60
- package/dist/managed-target.d.ts +16 -0
- package/dist/managed-target.js +26 -0
- package/dist/manager.d.ts +72 -18
- package/dist/manager.js +131 -40
- package/dist/patched-files.d.ts +117 -0
- package/dist/patched-files.js +160 -0
- package/dist/refresh-error.js +2 -0
- package/dist/remote.d.ts +27 -2
- package/dist/remote.js +23 -4
- package/dist/runtime.d.ts +39 -1
- package/dist/runtime.js +117 -14
- package/dist/runtimes.d.ts +34 -0
- package/dist/runtimes.js +79 -0
- package/openclaw.plugin.json +4 -4
- package/package.json +8 -8
package/dist/runtime.d.ts
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
1
|
export { normalizeOpenClawAdditions, normalizeOpenClawTurnContext } from "./context.js";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Called at the actual adapter assembly boundary; failures abort, not a swallowed hook. Non-null
|
|
4
|
+
* means this Codex run is managed. The value is the bundle's `policy`, which current syncs leave
|
|
5
|
+
* "": the Codex policy is the prompt-file prefix, delivered as base instructions.
|
|
6
|
+
*/
|
|
3
7
|
export declare function readFrozenPolicy(agentDir: string): string | null;
|
|
8
|
+
/**
|
|
9
|
+
* The verified base file, sent as each managed thread's base instructions at start and resume.
|
|
10
|
+
* Codex reads base instructions per session rather than from history, so a refreshed file
|
|
11
|
+
* reaches an existing thread when OpenClaw resumes it; the file itself stays the fallback.
|
|
12
|
+
*/
|
|
13
|
+
export declare function readCodexBaseInstructions(agentDir: string): string | null;
|
|
14
|
+
export type ClaudeManagedPrompt = {
|
|
15
|
+
prompt: string;
|
|
16
|
+
sha256: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Called from the reviewed OpenClaw CLI prompt assembly. Returns null while management is
|
|
20
|
+
* paused (restored); throws, aborting the run, when enrolled state is missing, invalid or
|
|
21
|
+
* tampered. The prompt is the Claude policy followed by the shared agent context, both read from
|
|
22
|
+
* the bundle: it never touches the Codex policy (the prompt-file prefix). Skills reach Claude live,
|
|
23
|
+
* through OpenClaw's native skills mount or the session skills prompt. The bundle is the trust
|
|
24
|
+
* root, and readVerifiedSnapshot checks the prompt file against its promptSha256.
|
|
25
|
+
*/
|
|
26
|
+
export declare function readClaudeManagedPrompt(agentDir: string): ClaudeManagedPrompt | null;
|
|
27
|
+
/** OpenClaw's generic CLI identity line; its presence means the managed assembly was lost. */
|
|
28
|
+
export declare const GENERIC_CLI_POLICY_MARKER = "You are a personal assistant running inside OpenClaw.";
|
|
29
|
+
export type ClaudeAdoption = {
|
|
30
|
+
outcome: "unmanaged";
|
|
31
|
+
} | {
|
|
32
|
+
outcome: "pass";
|
|
33
|
+
} | {
|
|
34
|
+
outcome: "block";
|
|
35
|
+
reason: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Final-adoption check for an enrolled Claude CLI run. Never-enrolled and restored agents
|
|
39
|
+
* stay upstream. Prompt text is compared only; it is never returned or logged.
|
|
40
|
+
*/
|
|
41
|
+
export declare function checkClaudeAdoption(agentDir: string, systemPrompt: string | undefined): ClaudeAdoption;
|
package/dist/runtime.js
CHANGED
|
@@ -2,6 +2,7 @@ import { lstatSync, readFileSync } from "node:fs";
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { readPromptPointer } from "./toml.js";
|
|
5
|
+
import { parseClaudePolicy, parseEnrollment } from "./manager.js";
|
|
5
6
|
export { normalizeOpenClawAdditions, normalizeOpenClawTurnContext } from "./context.js";
|
|
6
7
|
function readPrivate(path) {
|
|
7
8
|
const stat = lstatSync(path);
|
|
@@ -9,23 +10,125 @@ function readPrivate(path) {
|
|
|
9
10
|
throw new Error("Frozen bridge refuses linked or non-regular state");
|
|
10
11
|
return readFileSync(path, "utf8");
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
function readOptionalPrivate(path) {
|
|
14
|
+
try {
|
|
15
|
+
return readPrivate(path);
|
|
16
|
+
}
|
|
17
|
+
catch (error) {
|
|
18
|
+
if (error instanceof Error && "code" in error && error.code === "ENOENT")
|
|
19
|
+
return null;
|
|
20
|
+
throw error;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function sha256(text) { return createHash("sha256").update(text).digest("hex"); }
|
|
24
|
+
function readEnrollment(home) {
|
|
25
|
+
try {
|
|
26
|
+
return parseEnrollment(readOptionalPrivate(join(home, ".unblock-codex-prompt.json")));
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
throw error instanceof Error && error.message === "Invalid prompt enrollment state" ? new Error("Invalid frozen bridge enrollment") : error;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/** The compiled snapshot, verified against its sync receipt. */
|
|
33
|
+
function readVerifiedSnapshot(home) {
|
|
20
34
|
const bundle = JSON.parse(readPrivate(join(home, ".unblock-codex-prompt-bundle.json")));
|
|
21
35
|
if (!bundle || typeof bundle !== "object" || !("schema" in bundle) || bundle.schema !== 1 ||
|
|
22
36
|
!("policy" in bundle) || typeof bundle.policy !== "string" || !("promptSha256" in bundle))
|
|
23
37
|
throw new Error("Frozen bundle missing or invalid; run codex-prompt sync");
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
26
|
-
throw new Error("Frozen prompt pointer changed; refusing context suppression");
|
|
27
|
-
const hash = createHash("sha256").update(readPrivate(path)).digest("hex");
|
|
28
|
-
if (hash !== bundle.promptSha256)
|
|
38
|
+
const prompt = readPrivate(join(home, "unblock-codex-prompt.md"));
|
|
39
|
+
if (sha256(prompt) !== bundle.promptSha256)
|
|
29
40
|
throw new Error("Frozen prompt changed outside sync; refusing context suppression");
|
|
30
|
-
return bundle.policy;
|
|
41
|
+
return { bundle, policy: bundle.policy, prompt };
|
|
42
|
+
}
|
|
43
|
+
function readCodexSnapshot(agentDir) {
|
|
44
|
+
const home = join(agentDir, "codex-home");
|
|
45
|
+
const state = readEnrollment(home);
|
|
46
|
+
if (!state)
|
|
47
|
+
throw new Error("Invalid frozen bridge enrollment");
|
|
48
|
+
if (!state.active)
|
|
49
|
+
return null;
|
|
50
|
+
if (!state.runtimes.includes("codex"))
|
|
51
|
+
throw new Error("Codex bridge installed without Codex enrollment; restore or run codex-prompt sync");
|
|
52
|
+
const snapshot = readVerifiedSnapshot(home);
|
|
53
|
+
if (readPromptPointer(readPrivate(join(home, "config.toml"))) !== join(home, "unblock-codex-prompt.md")) {
|
|
54
|
+
throw new Error("Frozen prompt pointer changed; refusing context suppression");
|
|
55
|
+
}
|
|
56
|
+
return snapshot;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Called at the actual adapter assembly boundary; failures abort, not a swallowed hook. Non-null
|
|
60
|
+
* means this Codex run is managed. The value is the bundle's `policy`, which current syncs leave
|
|
61
|
+
* "": the Codex policy is the prompt-file prefix, delivered as base instructions.
|
|
62
|
+
*/
|
|
63
|
+
export function readFrozenPolicy(agentDir) {
|
|
64
|
+
return readCodexSnapshot(agentDir)?.policy ?? null;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The verified base file, sent as each managed thread's base instructions at start and resume.
|
|
68
|
+
* Codex reads base instructions per session rather than from history, so a refreshed file
|
|
69
|
+
* reaches an existing thread when OpenClaw resumes it; the file itself stays the fallback.
|
|
70
|
+
*/
|
|
71
|
+
export function readCodexBaseInstructions(agentDir) {
|
|
72
|
+
return readCodexSnapshot(agentDir)?.prompt ?? null;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Called from the reviewed OpenClaw CLI prompt assembly. Returns null while management is
|
|
76
|
+
* paused (restored); throws, aborting the run, when enrolled state is missing, invalid or
|
|
77
|
+
* tampered. The prompt is the Claude policy followed by the shared agent context, both read from
|
|
78
|
+
* the bundle: it never touches the Codex policy (the prompt-file prefix). Skills reach Claude live,
|
|
79
|
+
* through OpenClaw's native skills mount or the session skills prompt. The bundle is the trust
|
|
80
|
+
* root, and readVerifiedSnapshot checks the prompt file against its promptSha256.
|
|
81
|
+
*/
|
|
82
|
+
export function readClaudeManagedPrompt(agentDir) {
|
|
83
|
+
const home = join(agentDir, "codex-home");
|
|
84
|
+
const state = readEnrollment(home);
|
|
85
|
+
if (!state)
|
|
86
|
+
throw new Error("Claude bridge installed without enrollment; restore or run codex-prompt sync");
|
|
87
|
+
if (!state.active)
|
|
88
|
+
return null;
|
|
89
|
+
if (!state.runtimes.includes("claude-cli"))
|
|
90
|
+
throw new Error("Claude bridge installed without Claude CLI enrollment; restore or run codex-prompt sync");
|
|
91
|
+
const { bundle } = readVerifiedSnapshot(home);
|
|
92
|
+
const claudePolicy = parseClaudePolicy("claudePolicy" in bundle ? bundle.claudePolicy : undefined);
|
|
93
|
+
const agentContext = "agentContext" in bundle ? bundle.agentContext : undefined;
|
|
94
|
+
if (typeof agentContext !== "string" || !agentContext.trim())
|
|
95
|
+
throw new Error("Claude policy missing or invalid; run codex-prompt sync");
|
|
96
|
+
const managed = `${claudePolicy.text}\n\n${agentContext}`;
|
|
97
|
+
return { prompt: managed, sha256: sha256(managed) };
|
|
98
|
+
}
|
|
99
|
+
/** OpenClaw's generic CLI identity line; its presence means the managed assembly was lost. */
|
|
100
|
+
export const GENERIC_CLI_POLICY_MARKER = "You are a personal assistant running inside OpenClaw.";
|
|
101
|
+
/**
|
|
102
|
+
* Final-adoption check for an enrolled Claude CLI run. Never-enrolled and restored agents
|
|
103
|
+
* stay upstream. Prompt text is compared only; it is never returned or logged.
|
|
104
|
+
*/
|
|
105
|
+
export function checkClaudeAdoption(agentDir, systemPrompt) {
|
|
106
|
+
const home = join(agentDir, "codex-home");
|
|
107
|
+
let state;
|
|
108
|
+
try {
|
|
109
|
+
state = readEnrollment(home);
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
return { outcome: "block", reason: "Managed enrollment state is invalid; inspect codex-prompt status" };
|
|
113
|
+
}
|
|
114
|
+
if (!state?.active || !state.runtimes.includes("claude-cli"))
|
|
115
|
+
return { outcome: "unmanaged" };
|
|
116
|
+
let managed;
|
|
117
|
+
try {
|
|
118
|
+
managed = readClaudeManagedPrompt(agentDir);
|
|
119
|
+
}
|
|
120
|
+
catch {
|
|
121
|
+
return { outcome: "block", reason: "Managed snapshot is invalid or changed outside sync; run codex-prompt sync" };
|
|
122
|
+
}
|
|
123
|
+
if (!managed)
|
|
124
|
+
return { outcome: "unmanaged" };
|
|
125
|
+
if (typeof systemPrompt !== "string")
|
|
126
|
+
return { outcome: "block", reason: "The final system prompt is unavailable to verify managed policy" };
|
|
127
|
+
if (systemPrompt.includes(GENERIC_CLI_POLICY_MARKER)) {
|
|
128
|
+
return { outcome: "block", reason: "Generic OpenClaw policy is present: the Claude assembly patch is missing or inactive; restore, re-sync and restart the Gateway" };
|
|
129
|
+
}
|
|
130
|
+
if (!systemPrompt.includes(managed.prompt)) {
|
|
131
|
+
return { outcome: "block", reason: "Managed policy was replaced or altered after assembly, for example by a prompt hook or registered text transform; review those plugins" };
|
|
132
|
+
}
|
|
133
|
+
return { outcome: "pass" };
|
|
31
134
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { OpenClawConfig } from "openclaw/plugin-sdk/plugin-entry";
|
|
2
|
+
type PolicyResolver = (params: {
|
|
3
|
+
config: OpenClawConfig;
|
|
4
|
+
provider?: string;
|
|
5
|
+
modelId?: string;
|
|
6
|
+
agentId?: string;
|
|
7
|
+
}) => {
|
|
8
|
+
policy?: {
|
|
9
|
+
id?: unknown;
|
|
10
|
+
};
|
|
11
|
+
} | undefined;
|
|
12
|
+
type Detection = {
|
|
13
|
+
ref: string;
|
|
14
|
+
runtime: string | null;
|
|
15
|
+
};
|
|
16
|
+
/** OpenClaw's public configured-policy resolver (2026.10.6+), feature-detected for older hosts. */
|
|
17
|
+
export declare function runtimePolicyResolver(api: unknown): PolicyResolver | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Model refs the agent can select by configuration, resolved like OpenClaw: the agent's model
|
|
20
|
+
* replaces the default primary (and default fallbacks unless it lists its own), plus the agent's
|
|
21
|
+
* own allowed-model map, which it can switch to at run time. The Gateway-wide default map
|
|
22
|
+
* (agents.defaults.models) does not enroll a runtime for this agent.
|
|
23
|
+
*/
|
|
24
|
+
export declare function configuredModelRefs(config: OpenClawConfig, agentId: string): string[];
|
|
25
|
+
/**
|
|
26
|
+
* Explicit-sync detection only. This reads authored policy; it does not establish runtime
|
|
27
|
+
* availability. Each turn's actual execution path stays authoritative at the patched seams.
|
|
28
|
+
*/
|
|
29
|
+
export declare function detectConfiguredRuntimes(config: OpenClawConfig, agentId: string, resolve: PolicyResolver | undefined): {
|
|
30
|
+
runtimes: Set<"codex" | "claude-cli">;
|
|
31
|
+
detections: Detection[];
|
|
32
|
+
resolver: "openclaw" | "unavailable";
|
|
33
|
+
};
|
|
34
|
+
export {};
|
package/dist/runtimes.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
function record(value) { return !!value && typeof value === "object" && !Array.isArray(value); }
|
|
2
|
+
/** OpenClaw's public configured-policy resolver (2026.10.6+), feature-detected for older hosts. */
|
|
3
|
+
export function runtimePolicyResolver(api) {
|
|
4
|
+
const runtime = record(api) ? api.runtime : undefined;
|
|
5
|
+
const modelConfig = record(runtime) ? runtime.modelConfig : undefined;
|
|
6
|
+
const resolve = record(modelConfig) ? modelConfig.resolveModelRuntimePolicy : undefined;
|
|
7
|
+
return typeof resolve === "function" ? resolve : undefined;
|
|
8
|
+
}
|
|
9
|
+
function agentEntry(config, agentId) {
|
|
10
|
+
const agents = config.agents;
|
|
11
|
+
if (!record(agents))
|
|
12
|
+
return undefined;
|
|
13
|
+
if (Array.isArray(agents.list))
|
|
14
|
+
return agents.list.find((entry) => record(entry) && entry.id === agentId);
|
|
15
|
+
return record(agents.entries) && record(agents.entries[agentId]) ? agents.entries[agentId] : undefined;
|
|
16
|
+
}
|
|
17
|
+
function primaryOf(model) {
|
|
18
|
+
const value = typeof model === "string" ? model : record(model) ? model.primary : undefined;
|
|
19
|
+
return typeof value === "string" && value.trim() ? value.trim() : undefined;
|
|
20
|
+
}
|
|
21
|
+
/** OpenClaw's fallback override: an agent model replaces default fallbacks unless it lists its own. */
|
|
22
|
+
function fallbacksOverride(model) {
|
|
23
|
+
if (!model)
|
|
24
|
+
return undefined;
|
|
25
|
+
if (typeof model === "string")
|
|
26
|
+
return primaryOf(model) ? [] : undefined;
|
|
27
|
+
if (!record(model))
|
|
28
|
+
return undefined;
|
|
29
|
+
if (!Object.hasOwn(model, "fallbacks"))
|
|
30
|
+
return Object.hasOwn(model, "primary") && primaryOf(model) ? [] : undefined;
|
|
31
|
+
return Array.isArray(model.fallbacks) ? model.fallbacks : undefined;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Model refs the agent can select by configuration, resolved like OpenClaw: the agent's model
|
|
35
|
+
* replaces the default primary (and default fallbacks unless it lists its own), plus the agent's
|
|
36
|
+
* own allowed-model map, which it can switch to at run time. The Gateway-wide default map
|
|
37
|
+
* (agents.defaults.models) does not enroll a runtime for this agent.
|
|
38
|
+
*/
|
|
39
|
+
export function configuredModelRefs(config, agentId) {
|
|
40
|
+
const agents = config.agents;
|
|
41
|
+
const defaults = record(agents) && record(agents.defaults) ? agents.defaults : undefined;
|
|
42
|
+
const agent = agentEntry(config, agentId);
|
|
43
|
+
const refs = new Set();
|
|
44
|
+
const add = (value) => { if (typeof value === "string" && value.trim())
|
|
45
|
+
refs.add(value.trim()); };
|
|
46
|
+
add(primaryOf(agent?.model) ?? primaryOf(defaults?.model));
|
|
47
|
+
const fallbacks = fallbacksOverride(agent?.model) ?? (record(defaults?.model) && Array.isArray(defaults.model.fallbacks) ? defaults.model.fallbacks : []);
|
|
48
|
+
fallbacks.forEach(add);
|
|
49
|
+
if (record(agent?.models))
|
|
50
|
+
Object.keys(agent.models).forEach(add);
|
|
51
|
+
return [...refs];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Explicit-sync detection only. This reads authored policy; it does not establish runtime
|
|
55
|
+
* availability. Each turn's actual execution path stays authoritative at the patched seams.
|
|
56
|
+
*/
|
|
57
|
+
export function detectConfiguredRuntimes(config, agentId, resolve) {
|
|
58
|
+
const detections = configuredModelRefs(config, agentId).map(ref => {
|
|
59
|
+
const slash = ref.indexOf("/");
|
|
60
|
+
const provider = slash > 0 ? ref.slice(0, slash) : undefined;
|
|
61
|
+
const modelId = slash > 0 ? ref.slice(slash + 1) : ref;
|
|
62
|
+
// Legacy `claude-cli/<model>` refs name the CLI backend directly (OpenClaw compatibility input).
|
|
63
|
+
if (provider?.toLowerCase() === "claude-cli")
|
|
64
|
+
return { ref, runtime: "claude-cli" };
|
|
65
|
+
let id;
|
|
66
|
+
try {
|
|
67
|
+
id = resolve?.({ config, agentId, ...provider ? { provider } : {}, modelId })?.policy?.id;
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
id = undefined;
|
|
71
|
+
}
|
|
72
|
+
return { ref, runtime: typeof id === "string" && id.trim() ? id.trim().toLowerCase() : null };
|
|
73
|
+
});
|
|
74
|
+
const runtimes = new Set();
|
|
75
|
+
for (const { runtime } of detections)
|
|
76
|
+
if (runtime === "codex" || runtime === "claude-cli")
|
|
77
|
+
runtimes.add(runtime);
|
|
78
|
+
return { runtimes, detections, resolver: resolve ? "openclaw" : "unavailable" };
|
|
79
|
+
}
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "unblock-codex-prompt",
|
|
3
3
|
"name": "Unblock Codex Prompt",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "Maintain an agent-scoped
|
|
4
|
+
"version": "0.4.0",
|
|
5
|
+
"description": "Maintain an agent-scoped fleet prompt for Codex (model_instructions_file) and Claude CLI (guarded OpenClaw prompt assembly).",
|
|
6
6
|
"activation": { "onStartup": true },
|
|
7
7
|
"configSchema": {
|
|
8
8
|
"type": "object",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"uiHints": {
|
|
21
|
-
"agentId": { "label": "OpenClaw agent ID", "help": "Only this agent's managed
|
|
21
|
+
"agentId": { "label": "OpenClaw agent ID", "help": "Only this agent's prompt is managed; on Claude CLI only its runs through the claude-cli backend. Defaults to main." },
|
|
22
22
|
"agentName": { "label": "Legacy agent name (unused)", "help": "Accepted for existing configs only. Identity comes from agent documents; shared prompt text comes only from promptUrl." },
|
|
23
|
-
"frozenContext": { "label": "
|
|
23
|
+
"frozenContext": { "label": "Managed prompt bridge", "help": "Required: true. Codex: replaces base instructions and OpenClaw generic policy on reviewed OpenClaw/Codex >=2026.10.5 layouts. Claude CLI: replaces only OpenClaw's generic policy on reviewed OpenClaw core layouts (2026.10.6-2026.10.9) and needs hooks.allowConversationAccess for its adoption gate. Runtimes come from the agent's configured model policy at explicit sync. SOUL, IDENTITY, USER and AGENTS stay live." },
|
|
24
24
|
"promptUrl": { "label": "Fleet prompt endpoint", "help": "Required public HTTPS plain-text endpoint with X-Prompt-Revision SHA-256. The only shared-policy source. After initial sync, refreshed daily and when overdue on startup without refreshing agent context. No bundled prompt fallback." },
|
|
25
25
|
"suppressExplicitDelegationPrompt": { "label": "Compact managed Codex instructions", "help": "Manage a model_catalog_json override: suppress explicit-only delegation and Default-mode prose, trim role introductions and compact full-access/never-approval text. Runtime mechanics and permissions are unchanged. Refreshed daily from the configured provider. Requires frozenContext and an available provider env_key. Generated-file edits are replaced on refresh." },
|
|
26
26
|
"disabledCodexSkills": { "label": "Codex skills to remove", "help": "Plugin names (all of their skills) or exact skill names to disable in Codex's native skills list. Defaults to ChatGPT Pages and Pets. Applied through a managed [[skills.config]] block at startup, sync and daily refresh; other skills are untouched. Set [] to stop managing Codex skills." }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unblocklabs/unblock-codex-prompt",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Manage a shared
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Manage a shared fleet prompt for an OpenClaw agent on Codex and Claude CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -21,23 +21,23 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@openclaw/plugin-inspector": "^0.3.25",
|
|
23
23
|
"@types/node": "^22.0.0",
|
|
24
|
-
"openclaw": "2026.9
|
|
24
|
+
"openclaw": "2026.10.9",
|
|
25
25
|
"typescript": "^5.9.3"
|
|
26
26
|
},
|
|
27
|
-
"peerDependencies": { "openclaw": ">=2026.
|
|
27
|
+
"peerDependencies": { "openclaw": ">=2026.10.5" },
|
|
28
28
|
"peerDependenciesMeta": { "openclaw": { "optional": true } },
|
|
29
29
|
"openclaw": {
|
|
30
30
|
"extensions": ["./dist/index.js"],
|
|
31
|
-
"install": { "npmSpec": "@unblocklabs/unblock-codex-prompt", "defaultChoice": "npm", "minHostVersion": ">=2026.
|
|
31
|
+
"install": { "npmSpec": "@unblocklabs/unblock-codex-prompt", "defaultChoice": "npm", "minHostVersion": ">=2026.10.5" },
|
|
32
32
|
"release": { "publishToClawHub": false, "publishToNpm": true },
|
|
33
|
-
"compat": { "pluginApi": ">=2026.
|
|
34
|
-
"build": { "openclawVersion": "2026.9
|
|
33
|
+
"compat": { "pluginApi": ">=2026.10.5", "minGatewayVersion": ">=2026.10.5" },
|
|
34
|
+
"build": { "openclawVersion": "2026.10.9", "pluginSdkVersion": "2026.10.9" }
|
|
35
35
|
},
|
|
36
36
|
"engines": { "node": ">=22.22.3" },
|
|
37
37
|
"publishConfig": { "access": "public" },
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"author": "Unblock Labs",
|
|
40
|
-
"keywords": ["openclaw", "openclaw-plugin", "codex", "prompt"],
|
|
40
|
+
"keywords": ["openclaw", "openclaw-plugin", "codex", "claude-cli", "prompt"],
|
|
41
41
|
"repository": { "type": "git", "url": "git+https://github.com/unblocklabs-ai/unblock-codex-prompt.git" },
|
|
42
42
|
"bugs": { "url": "https://github.com/unblocklabs-ai/unblock-codex-prompt/issues" },
|
|
43
43
|
"homepage": "https://github.com/unblocklabs-ai/unblock-codex-prompt#readme"
|