@karowanorg/orc-harness-codex 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/dist/harness.js +3 -2
  2. package/package.json +1 -1
package/dist/harness.js CHANGED
@@ -83,6 +83,7 @@ export function createCodexHarness(options = {}) {
83
83
  const appServerCommand = options.appServerCommand ?? ["codex", "app-server"];
84
84
  const interruptGraceMs = options.interruptGraceMs ?? 2000;
85
85
  const clientInfo = options.clientInfo ?? { name: "orc", version: "0.1.0" };
86
+ const initializeCapabilities = { experimentalApi: true, requestAttestation: false };
86
87
  const costRates = loadCostRates(options.costRates);
87
88
  async function discover(ctx) {
88
89
  const base = {
@@ -149,7 +150,7 @@ export function createCodexHarness(options = {}) {
149
150
  clearTimeout(timer);
150
151
  }
151
152
  };
152
- await withTimeout(rpc.request("initialize", { clientInfo }), 20_000);
153
+ await withTimeout(rpc.request("initialize", { clientInfo, capabilities: initializeCapabilities }), 20_000);
153
154
  rpc.notify("initialized", {});
154
155
  const res = await withTimeout(rpc.request("model/list", {}), 20_000);
155
156
  const visible = (res.data ?? []).filter((m) => !m.hidden && typeof m.id === "string");
@@ -501,7 +502,7 @@ export function createCodexHarness(options = {}) {
501
502
  else
502
503
  ctx.signal.addEventListener("abort", onAbort, { once: true });
503
504
  try {
504
- await rpc.request("initialize", { clientInfo });
505
+ await rpc.request("initialize", { clientInfo, capabilities: initializeCapabilities });
505
506
  rpc.notify("initialized", {});
506
507
  const developerInstructions = req.system.trim() || undefined;
507
508
  if (req.sessionId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karowanorg/orc-harness-codex",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "0BSD",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",