openpond 0.0.41 → 0.0.42

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.
@@ -2,11 +2,11 @@ import { createRequire as __openpondCreateRequire } from "node:module"; var requ
2
2
  import {
3
3
  APP_SERVER_COMPOSITION,
4
4
  createOpenPondAppServer
5
- } from "./chunk-OBQP6UAS.js";
5
+ } from "./chunk-UNNPZEFB.js";
6
6
  import "./chunk-VCVQLECH.js";
7
7
  import "./chunk-ZTE6A2VE.js";
8
- import "./chunk-FTHWWUKZ.js";
9
- import "./chunk-4SWPERMD.js";
8
+ import "./chunk-KWZJAKIR.js";
9
+ import "./chunk-SGWTAB4R.js";
10
10
  import "./chunk-2SF6HLT7.js";
11
11
  import "./chunk-M2NXTLH2.js";
12
12
  import "./chunk-WYDVQOBL.js";
@@ -10,7 +10,7 @@ import {
10
10
  DEFAULT_HOST,
11
11
  DEFAULT_PORT,
12
12
  parseListen
13
- } from "./chunk-4SWPERMD.js";
13
+ } from "./chunk-SGWTAB4R.js";
14
14
 
15
15
  // ../server/src/cli.ts
16
16
  import { existsSync } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
2
  import {
3
3
  now
4
- } from "./chunk-4SWPERMD.js";
4
+ } from "./chunk-SGWTAB4R.js";
5
5
 
6
6
  // ../server/src/workspace/workspace-command.ts
7
7
  import { spawn, spawnSync } from "node:child_process";
@@ -3,7 +3,7 @@ import { createRequire as __openpondCreateRequire } from "node:module"; var requ
3
3
  // ../server/src/constants.ts
4
4
  var DEFAULT_HOST = "127.0.0.1";
5
5
  var DEFAULT_PORT = 17874;
6
- var VERSION = "0.0.41";
6
+ var VERSION = "0.0.42";
7
7
  var HOSTED_CHAT_SYSTEM_PROMPT = "You are OpenPond Chat. Respond in the user's language. If the user's latest message is language-neutral, ambiguous, or only a short test, respond in English. Be concise and directly answer the latest request. Do not use emojis. Use Markdown when it improves scanability. If you emit reasoning or thinking content, keep it sparse and user-readable: at most one short sentence for major progress, decisions, or blockers. Omit reasoning for routine searches, reads, tool calls, and obvious next steps. Do not restate the user request, narrate every action, or include code blocks, code excerpts, diffs, raw tool payloads, or markdown examples in reasoning. Put necessary code or exact snippets only in the final assistant answer. When the user asks to show or preview an image that is available as a workspace path or signed image URL, use Markdown image syntax like ![description](path-or-url) instead of a bare path or raw HTML. For workspace-backed answers, use a Codex-style shape: brief outcome first, then Changed Files if files changed, then Verification if checks ran. End with a concise final answer that summarizes the result and verification when relevant. Do not mention raw tool JSON, internal repo paths, or origin/remote URLs unless the user explicitly asks for them or they are necessary to explain a git/deploy failure.";
8
8
  var APP_PREFERENCES_CACHE_TYPE = "app_preferences";
9
9
  var APP_PREFERENCES_CACHE_KEY = "global";
@@ -33,14 +33,14 @@ import {
33
33
  truncatePatch,
34
34
  uniqueSortedPaths,
35
35
  workspaceImageContentType
36
- } from "./chunk-FTHWWUKZ.js";
36
+ } from "./chunk-KWZJAKIR.js";
37
37
  import {
38
38
  HOSTED_CHAT_SYSTEM_PROMPT,
39
39
  VERSION,
40
40
  event,
41
41
  now,
42
42
  textFromUnknown
43
- } from "./chunk-4SWPERMD.js";
43
+ } from "./chunk-SGWTAB4R.js";
44
44
  import {
45
45
  AppPreferencesSchema,
46
46
  ApplyCreateImproveRunActionRequestSchema,
@@ -19597,6 +19597,7 @@ function resolveSandboxBaseUrl(context) {
19597
19597
  }
19598
19598
 
19599
19599
  // ../server/src/runtime/app-server-sandbox-tools.ts
19600
+ import { Buffer as Buffer2 } from "node:buffer";
19600
19601
  var REMOTE_SANDBOX_ACTIONS = /* @__PURE__ */ new Set([
19601
19602
  "sandbox_status",
19602
19603
  "sandbox_start",
@@ -19641,14 +19642,16 @@ async function executeAppServerSandboxTool(input) {
19641
19642
  }
19642
19643
  });
19643
19644
  } else if (action === "sandbox_read_file") {
19644
- data = await input.sandboxRequest({
19645
- type: "download_file",
19646
- sandboxId,
19647
- payload: {
19648
- path: requiredString(args.path, "path"),
19649
- maxBytes: numberValue2(args.maxBytes) ?? 512 * 1024
19650
- }
19651
- });
19645
+ data = withDecodedFileContent(
19646
+ await input.sandboxRequest({
19647
+ type: "download_file",
19648
+ sandboxId,
19649
+ payload: {
19650
+ path: requiredString(args.path, "path"),
19651
+ maxBytes: numberValue2(args.maxBytes) ?? 512 * 1024
19652
+ }
19653
+ })
19654
+ );
19652
19655
  } else if (action === "sandbox_search_files") {
19653
19656
  data = await input.sandboxRequest({
19654
19657
  type: "search_files",
@@ -19757,7 +19760,7 @@ async function editRemoteSandboxFile(input) {
19757
19760
  })
19758
19761
  );
19759
19762
  const file = asRecord5(downloaded.file);
19760
- const content = optionalString(downloaded.contents) || optionalString(downloaded.content) || optionalString(file.contents) || optionalString(file.content);
19763
+ const content = optionalString(downloaded.contents) || optionalString(downloaded.content) || optionalString(file.contents) || optionalString(file.content) || decodeBase64(optionalString(file.contentsBase64));
19761
19764
  if (!content.includes(oldText)) {
19762
19765
  throw new Error(`Text to replace was not found in ${path37}.`);
19763
19766
  }
@@ -19771,6 +19774,23 @@ async function editRemoteSandboxFile(input) {
19771
19774
  payload: { path: path37, contents: nextContent }
19772
19775
  });
19773
19776
  }
19777
+ function withDecodedFileContent(value) {
19778
+ const result = asRecord5(value);
19779
+ const file = asRecord5(result.file);
19780
+ const contentsBase64 = optionalString(file.contentsBase64);
19781
+ if (!contentsBase64) return value;
19782
+ return {
19783
+ ...result,
19784
+ file: {
19785
+ ...file,
19786
+ content: decodeBase64(contentsBase64)
19787
+ }
19788
+ };
19789
+ }
19790
+ function decodeBase64(value) {
19791
+ if (!value) return "";
19792
+ return Buffer2.from(value, "base64").toString("utf8");
19793
+ }
19774
19794
  function asRecord5(value) {
19775
19795
  return value && typeof value === "object" && !Array.isArray(value) ? value : {};
19776
19796
  }
@@ -33098,7 +33118,7 @@ function uniqueEvidence(run, evidence) {
33098
33118
  }
33099
33119
  async function verifyAppliedProfileCommit(input) {
33100
33120
  const command = input.command ?? (async (name, args, cwd, env) => {
33101
- const { runWorkspaceCommand } = await import("./workspaces-C3DGNUX2.js");
33121
+ const { runWorkspaceCommand } = await import("./workspaces-Y3GSQO3Y.js");
33102
33122
  return runWorkspaceCommand(name, args, cwd, env);
33103
33123
  });
33104
33124
  const result = await command("git", ["rev-parse", "HEAD"], input.repoPath);
@@ -3,10 +3,10 @@ import {
3
3
  resolveWebLaunchMessages,
4
4
  runOpenPondAppServerCli,
5
5
  runOpenPondServerCli
6
- } from "./chunk-ISMG72XN.js";
6
+ } from "./chunk-F6LVYXS4.js";
7
7
  import "./chunk-VCVQLECH.js";
8
8
  import "./chunk-ZTE6A2VE.js";
9
- import "./chunk-4SWPERMD.js";
9
+ import "./chunk-SGWTAB4R.js";
10
10
  import "./chunk-2SF6HLT7.js";
11
11
  import "./chunk-M2NXTLH2.js";
12
12
  import "./chunk-WYDVQOBL.js";
@@ -96,10 +96,10 @@ import {
96
96
  workspaceHasHead,
97
97
  workspaceToolExperienceBlocker,
98
98
  writeWorkspaceFile
99
- } from "./chunk-OBQP6UAS.js";
99
+ } from "./chunk-UNNPZEFB.js";
100
100
  import {
101
101
  runOpenPondServerCli
102
- } from "./chunk-ISMG72XN.js";
102
+ } from "./chunk-F6LVYXS4.js";
103
103
  import {
104
104
  createAppServer,
105
105
  runAgentCompaction
@@ -145,7 +145,7 @@ import {
145
145
  runCommand,
146
146
  startMacOSCommandLineToolsInstall,
147
147
  workspaceImageContentType
148
- } from "./chunk-FTHWWUKZ.js";
148
+ } from "./chunk-KWZJAKIR.js";
149
149
  import {
150
150
  APP_PREFERENCES_CACHE_KEY,
151
151
  APP_PREFERENCES_CACHE_TYPE,
@@ -157,7 +157,7 @@ import {
157
157
  isCliEntrypoint,
158
158
  now,
159
159
  textFromUnknown
160
- } from "./chunk-4SWPERMD.js";
160
+ } from "./chunk-SGWTAB4R.js";
161
161
  import {
162
162
  AccountStateSchema,
163
163
  AdapterValidationReceiptSchema,
@@ -45,8 +45,8 @@ import {
45
45
  truncatePatch,
46
46
  uniqueSortedPaths,
47
47
  workspaceImageContentType
48
- } from "./chunk-FTHWWUKZ.js";
49
- import "./chunk-4SWPERMD.js";
48
+ } from "./chunk-KWZJAKIR.js";
49
+ import "./chunk-SGWTAB4R.js";
50
50
  import "./chunk-UACZUFIA.js";
51
51
  export {
52
52
  MACOS_GIT_MISSING_DEVELOPER_TOOLS_ERROR,
package/dist/cli.js CHANGED
@@ -70,8 +70,8 @@ async function runEmbeddedCompanion(argv) {
70
70
  if (argv[0] === "__app-server") {
71
71
  process.argv = [process.execPath, "openpond-app-server", ...argv.slice(1)];
72
72
  const [{ createOpenPondAppServer }, { runOpenPondAppServerCli }] = await Promise.all([
73
- import("./chunks/app-server-runtime-SZ76TNNY.js"),
74
- import("./chunks/cli-SEPGE6SM.js")
73
+ import("./chunks/app-server-runtime-PCDSSESR.js"),
74
+ import("./chunks/cli-D5AU4WHW.js")
75
75
  ]);
76
76
  await runOpenPondAppServerCli(createOpenPondAppServer);
77
77
  return true;
@@ -79,10 +79,10 @@ async function runEmbeddedCompanion(argv) {
79
79
  if (argv[0] === "__server") {
80
80
  process.argv = [process.execPath, "openpond-server", ...argv.slice(1)];
81
81
  const [{ createOpenPondServer }, { runOpenPondServerCli }] = await Promise.all([
82
- import("./chunks/src-44QFJZM5.js"),
83
- import("./chunks/cli-SEPGE6SM.js")
82
+ import("./chunks/src-3DUVYM7O.js"),
83
+ import("./chunks/cli-D5AU4WHW.js")
84
84
  ]);
85
- const { createOpenPondAppServer } = await import("./chunks/app-server-runtime-SZ76TNNY.js");
85
+ const { createOpenPondAppServer } = await import("./chunks/app-server-runtime-PCDSSESR.js");
86
86
  await runOpenPondServerCli({ createOpenPondServer, createOpenPondAppServer });
87
87
  return true;
88
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openpond",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "openpondReleaseVersioned": true,
5
5
  "license": "MIT",
6
6
  "description": "OpenPond CLI and local harness",