@ycodium-ai/agent-codex 0.2.3265 → 0.2.3272

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/index.js +36 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1862,6 +1862,29 @@ function toCanonicalUserInputAnswers(answers) {
1862
1862
  );
1863
1863
  }
1864
1864
 
1865
+ // src/windowsSandbox.ts
1866
+ function windowsSandboxWarnings(input) {
1867
+ const item = isRecord3(input.params) ? input.params["item"] : void 0;
1868
+ if (!isRecord3(item) || item["type"] !== "commandExecution" || item["source"] !== "unifiedExecStartup" || item["status"] !== "failed" || item["processId"] !== null || item["exitCode"] !== -1 || item["durationMs"] !== 0)
1869
+ return [];
1870
+ const output = item["aggregatedOutput"];
1871
+ if (typeof output !== "string" || !/^Failed to create unified exec process: (?:CreateProcessWithLogonW failed: \d+\b|orchestrator_helper_launch_canceled: ShellExecuteExW failed to launch setup helper: \d+\b)/.test(
1872
+ output
1873
+ ))
1874
+ return [];
1875
+ return [
1876
+ baseEvent({
1877
+ type: "runtime.warning",
1878
+ threadId: input.threadId,
1879
+ turnId: input.turnId,
1880
+ itemId: input.itemId,
1881
+ providerInstanceId: input.providerInstanceId,
1882
+ method: "item/completed",
1883
+ payload: { code: "codex-windows-sandbox", message: output, detail: output }
1884
+ })
1885
+ ];
1886
+ }
1887
+
1865
1888
  // src/usage/codexQuota.ts
1866
1889
  var asRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
1867
1890
  var asFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value) ? value : null;
@@ -2559,7 +2582,18 @@ function mapNotificationToEvents(input) {
2559
2582
  })
2560
2583
  ] : [];
2561
2584
  const asyncQuestions = canonical === "assistant_message" && itemId ? toAsyncQuestions(params) : void 0;
2562
- if (!asyncQuestions) return [completed, ...produced];
2585
+ if (!asyncQuestions)
2586
+ return [
2587
+ completed,
2588
+ ...produced,
2589
+ ...windowsSandboxWarnings({
2590
+ params,
2591
+ threadId,
2592
+ turnId,
2593
+ itemId,
2594
+ providerInstanceId
2595
+ })
2596
+ ];
2563
2597
  return [
2564
2598
  completed,
2565
2599
  baseEvent({
@@ -6463,7 +6497,7 @@ var executors = [
6463
6497
  ];
6464
6498
  var index_default = definePlugin({
6465
6499
  id: "agent-codex",
6466
- apiVersion: 31,
6500
+ apiVersion: 32,
6467
6501
  executors,
6468
6502
  activate(ctx) {
6469
6503
  capturedAttachments = ctx.attachments;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-codex",
3
- "version": "0.2.3265",
3
+ "version": "0.2.3272",
4
4
  "description": "Codex executor: Codex CLI over the app-server JSON-RPC protocol.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -29,7 +29,7 @@
29
29
  "tailwindcss": "^4.0.0",
30
30
  "typescript": "~6.0.3",
31
31
  "vite-plus": "0.2.2",
32
- "@ycodium-ai/plugin-api": "0.2.3265",
32
+ "@ycodium-ai/plugin-api": "0.2.3272",
33
33
  "ycodium-executor-testing": "0.0.0"
34
34
  },
35
35
  "ycodium": {