@parall/codex-agent 1.18.3 → 1.20.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.
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE;IAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,QAyBtC"}
1
+ {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAoBA,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE;IAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,QAyBtC"}
package/dist/workspace.js CHANGED
@@ -1,6 +1,16 @@
1
1
  import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
- import { BRIDGE_WORKSPACE_INSTRUCTIONS } from "@parall/agent-core";
3
+ import { BRIDGE_WORKSPACE_INSTRUCTIONS, PRLL_BEHAVIOR, PRLL_IDENTITY, PRLL_REFERENCE_GUIDE, } from "@parall/agent-core";
4
+ // Same slot order as OpenClaw / Hermes: identity → channel-context
5
+ // (BRIDGE_WORKSPACE_INSTRUCTIONS plays that role for bridge runtimes) →
6
+ // behavior → reference guide. Keeps the agent-facing prompt schema strictly
7
+ // unified across runtimes.
8
+ const AGENTS_MD = [
9
+ PRLL_IDENTITY,
10
+ BRIDGE_WORKSPACE_INSTRUCTIONS,
11
+ PRLL_BEHAVIOR,
12
+ PRLL_REFERENCE_GUIDE,
13
+ ].join("\n\n");
4
14
  export function ensureCodexWorkspace(workspaceDir, log) {
5
15
  fs.mkdirSync(workspaceDir, { recursive: true });
6
16
  // AGENTS.md is bridge-managed: always overwrite so the workspace picks up
@@ -13,7 +23,7 @@ export function ensureCodexWorkspace(workspaceDir, log) {
13
23
  if (log) {
14
24
  try {
15
25
  const existing = fs.readFileSync(agentsMdPath, "utf8");
16
- if (existing !== BRIDGE_WORKSPACE_INSTRUCTIONS) {
26
+ if (existing !== AGENTS_MD) {
17
27
  log.warn(`codex-agent: overwriting divergent ${agentsMdPath} with bridge-managed template ` +
18
28
  `(local edits to AGENTS.md are not preserved — customize other files in the workspace instead)`);
19
29
  }
@@ -22,5 +32,5 @@ export function ensureCodexWorkspace(workspaceDir, log) {
22
32
  // file missing or unreadable — first-boot case, no warning needed
23
33
  }
24
34
  }
25
- fs.writeFileSync(agentsMdPath, BRIDGE_WORKSPACE_INSTRUCTIONS, "utf8");
35
+ fs.writeFileSync(agentsMdPath, AGENTS_MD, "utf8");
26
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/codex-agent",
3
- "version": "1.18.3",
3
+ "version": "1.20.0",
4
4
  "description": "Codex CLI bridge runtime for self-hosted Parall agents",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,9 +25,9 @@
25
25
  "src"
26
26
  ],
27
27
  "dependencies": {
28
- "@parall/agent-core": "1.18.1",
29
- "@parall/cli": "1.18.0",
30
- "@parall/sdk": "1.18.0"
28
+ "@parall/agent-core": "1.20.0",
29
+ "@parall/sdk": "1.20.0",
30
+ "@parall/cli": "1.20.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.0.0",
package/src/workspace.ts CHANGED
@@ -1,6 +1,22 @@
1
1
  import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
- import { BRIDGE_WORKSPACE_INSTRUCTIONS } from "@parall/agent-core";
3
+ import {
4
+ BRIDGE_WORKSPACE_INSTRUCTIONS,
5
+ PRLL_BEHAVIOR,
6
+ PRLL_IDENTITY,
7
+ PRLL_REFERENCE_GUIDE,
8
+ } from "@parall/agent-core";
9
+
10
+ // Same slot order as OpenClaw / Hermes: identity → channel-context
11
+ // (BRIDGE_WORKSPACE_INSTRUCTIONS plays that role for bridge runtimes) →
12
+ // behavior → reference guide. Keeps the agent-facing prompt schema strictly
13
+ // unified across runtimes.
14
+ const AGENTS_MD = [
15
+ PRLL_IDENTITY,
16
+ BRIDGE_WORKSPACE_INSTRUCTIONS,
17
+ PRLL_BEHAVIOR,
18
+ PRLL_REFERENCE_GUIDE,
19
+ ].join("\n\n");
4
20
 
5
21
  export function ensureCodexWorkspace(
6
22
  workspaceDir: string,
@@ -18,7 +34,7 @@ export function ensureCodexWorkspace(
18
34
  if (log) {
19
35
  try {
20
36
  const existing = fs.readFileSync(agentsMdPath, "utf8");
21
- if (existing !== BRIDGE_WORKSPACE_INSTRUCTIONS) {
37
+ if (existing !== AGENTS_MD) {
22
38
  log.warn(
23
39
  `codex-agent: overwriting divergent ${agentsMdPath} with bridge-managed template ` +
24
40
  `(local edits to AGENTS.md are not preserved — customize other files in the workspace instead)`,
@@ -28,5 +44,5 @@ export function ensureCodexWorkspace(
28
44
  // file missing or unreadable — first-boot case, no warning needed
29
45
  }
30
46
  }
31
- fs.writeFileSync(agentsMdPath, BRIDGE_WORKSPACE_INSTRUCTIONS, "utf8");
47
+ fs.writeFileSync(agentsMdPath, AGENTS_MD, "utf8");
32
48
  }