overlord-cli 0.2608091123.0 → 0.2608101034.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
- 0.3.19
1
+ 0.3.20
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://antigravity.google/schemas/v1/plugin.json",
3
3
  "name": "overlord",
4
- "version": "0.3.19",
4
+ "version": "0.3.20",
5
5
  "description": "Chat-driven access to Overlord mission protocol workflows with hook-driven activity capture.",
6
6
  "author": {
7
7
  "name": "Cooperativ",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "Overlord mission protocol workflow for Claude Code — attach/update/ask/deliver, slash commands, and hook-driven activity capture.",
5
5
  "author": {
6
6
  "name": "Cooperativ",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "Chat-driven access to Overlord mission protocol workflows with hook-driven activity capture.",
5
5
  "author": {
6
6
  "name": "Cooperativ",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "Overlord mission protocol workflow for Cursor — attach/update/ask/deliver, slash commands, MCP bridge, and follow-up capture.",
5
5
  "author": {
6
6
  "name": "Cooperativ",
@@ -513,7 +513,7 @@ process.stdin.on('data', async chunk => {
513
513
  result: {
514
514
  protocolVersion: PROTOCOL_VERSION,
515
515
  capabilities: { tools: { listChanged: false } },
516
- serverInfo: { name: 'overlord-__OVERLORD_ADAPTER_KEY__', version: '0.3.19' }
516
+ serverInfo: { name: 'overlord-__OVERLORD_ADAPTER_KEY__', version: '0.3.20' }
517
517
  }
518
518
  });
519
519
  continue;
package/dist/index.js CHANGED
@@ -2652,26 +2652,6 @@ ${after}`;
2652
2652
  ${managedBlock}
2653
2653
  `;
2654
2654
  }
2655
- function rewriteCodexHookCommands({
2656
- hooks,
2657
- eventName,
2658
- targetCommand
2659
- }) {
2660
- const hookRoot = hooks.hooks;
2661
- if (!hookRoot || typeof hookRoot !== "object" || Array.isArray(hookRoot)) return;
2662
- const groups = hookRoot[eventName];
2663
- if (!Array.isArray(groups)) return;
2664
- for (const group of groups) {
2665
- if (!group || typeof group !== "object") continue;
2666
- const entries = group.hooks;
2667
- if (!Array.isArray(entries)) continue;
2668
- for (const hook of entries) {
2669
- if (hook && typeof hook === "object" && hook.type === "command") {
2670
- hook.command = targetCommand;
2671
- }
2672
- }
2673
- }
2674
- }
2675
2655
  function configureCodexHarness({
2676
2656
  home,
2677
2657
  installPath,
@@ -2682,8 +2662,6 @@ function configureCodexHarness({
2682
2662
  const rulesPath = path6.join(home, ".codex", "rules", "default.rules");
2683
2663
  const legacyAgentsPath = path6.join(home, ".codex", "AGENTS.md");
2684
2664
  const hooksPath = path6.join(installPath, ".codex-plugin", "hooks.json");
2685
- const userPromptHook = path6.join(installPath, "scripts", "user-prompt-submit-hook.sh");
2686
- const permissionHook = path6.join(installPath, "scripts", "permission-hook.sh");
2687
2665
  const currentMarketplace = readJsonObject(marketplacePath) ?? {
2688
2666
  name: "overlord-local",
2689
2667
  interface: { displayName: "Overlord Local Plugins" },
@@ -2704,7 +2682,6 @@ function configureCodexHarness({
2704
2682
  if (dryRun) {
2705
2683
  warnings.push(`Would update Codex marketplace at ${marketplacePath}.`);
2706
2684
  warnings.push(`Would merge protocol permission rules into ${rulesPath}.`);
2707
- warnings.push(`Would rewrite Codex hook commands in ${hooksPath}.`);
2708
2685
  if (existsSync6(legacyAgentsPath)) {
2709
2686
  warnings.push(`Would remove legacy Codex bundle at ${legacyAgentsPath}.`);
2710
2687
  }
@@ -2732,21 +2709,7 @@ function configureCodexHarness({
2732
2709
  const existingRules = existsSync6(rulesPath) ? readFileSync6(rulesPath, "utf8") : "";
2733
2710
  mkdirSync3(path6.dirname(rulesPath), { recursive: true });
2734
2711
  writeFileSync3(rulesPath, mergeCodexRules(existingRules));
2735
- const hooks = readJsonObject(hooksPath);
2736
- if (hooks) {
2737
- rewriteCodexHookCommands({
2738
- hooks,
2739
- eventName: "PermissionRequest",
2740
- targetCommand: permissionHook
2741
- });
2742
- rewriteCodexHookCommands({
2743
- hooks,
2744
- eventName: "UserPromptSubmit",
2745
- targetCommand: userPromptHook
2746
- });
2747
- writeFileSync3(hooksPath, `${JSON.stringify(hooks, null, 2)}
2748
- `);
2749
- } else {
2712
+ if (!readJsonObject(hooksPath)) {
2750
2713
  warnings.push(`Codex hook manifest missing or invalid at ${hooksPath}.`);
2751
2714
  }
2752
2715
  if (existsSync6(legacyAgentsPath)) {
@@ -22375,6 +22338,16 @@ var LAUNCH_FLAGS = [
22375
22338
  "--flag",
22376
22339
  "--pre-command"
22377
22340
  ];
22341
+ var AGENT_SESSION_FLAGS = [
22342
+ "--agent",
22343
+ "--native-session-id",
22344
+ "--mission-id",
22345
+ "--payload-file",
22346
+ "--port",
22347
+ "--confirm",
22348
+ "--lease-id",
22349
+ "--wait-ms"
22350
+ ];
22378
22351
  var COMMAND_FLAGS = {
22379
22352
  version: [],
22380
22353
  update: ["--check", "--force", "--no-fund"],
@@ -22387,7 +22360,7 @@ var COMMAND_FLAGS = {
22387
22360
  auth: ["--token", "--organization-id"],
22388
22361
  "user-token": ["--label", "--expires-in", "--no-expiry", "--scope", "--id"],
22389
22362
  prune: [],
22390
- "agent-session": ["--json"],
22363
+ "agent-session": AGENT_SESSION_FLAGS,
22391
22364
  "create-project": ["--name", "--directory", "--no-directory"],
22392
22365
  "org-setup": [
22393
22366
  "--org-name",