openpond 0.0.30-bootstrap.0 → 0.0.31

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 (35) hide show
  1. package/README.md +19 -5
  2. package/dist/chunks/{app-layer-YKXEQGOW.js → app-layer-53U5JVE7.js} +24 -4
  3. package/dist/chunks/{apps-GGSIN2ZF.js → apps-MJ47WJNC.js} +3 -3
  4. package/dist/chunks/{chunk-5G4E547X.js → chunk-4GLUNJLZ.js} +1 -1
  5. package/dist/chunks/{chunk-AUJLPKGI.js → chunk-5X47XJC4.js} +2 -2
  6. package/dist/chunks/{chunk-3Y4EL3P6.js → chunk-7HZBKUUB.js} +36 -35
  7. package/dist/chunks/{chunk-Y6G6WRTG.js → chunk-7KYOO25A.js} +57 -12
  8. package/dist/chunks/{chunk-Q57SVPEH.js → chunk-BX4XSB2J.js} +5619 -6654
  9. package/dist/chunks/{chunk-KRKGHVMQ.js → chunk-DZUJ6XJC.js} +1 -1
  10. package/dist/chunks/{chunk-NLBKZZEK.js → chunk-ETBF62DB.js} +1 -1
  11. package/dist/chunks/chunk-IUTUUNAX.js +1126 -0
  12. package/dist/chunks/{chunk-74O6FGVN.js → chunk-JWL5HCO5.js} +3 -3
  13. package/dist/chunks/{chunk-XSAXENQD.js → chunk-NC2GQQOT.js} +2 -2
  14. package/dist/chunks/{chunk-FUP7EGT7.js → chunk-TQRWG54R.js} +2 -2
  15. package/dist/chunks/{chunk-I6HN3ZGW.js → chunk-WQ2GF7XT.js} +1 -1
  16. package/dist/chunks/{chunk-4HYJG2JE.js → chunk-XMW3PSI5.js} +2 -2
  17. package/dist/chunks/{chunk-3CC6MH35.js → chunk-ZIKHE5AY.js} +3 -3
  18. package/dist/chunks/{cli-NVKNE4AZ.js → cli-EP473A53.js} +5 -2
  19. package/dist/chunks/{cli-X3HPLSOV.js → cli-H7PQLPKG.js} +5 -5
  20. package/dist/chunks/{core-commands-IM2UKLU4.js → core-commands-KI53GSJF.js} +4 -4
  21. package/dist/chunks/{extend-YXCBULPO.js → extend-F4R3AI2G.js} +8 -8
  22. package/dist/chunks/{harness-GMK6IY2U.js → harness-WADDUNGU.js} +3 -3
  23. package/dist/chunks/{help-LMH5FGT2.js → help-TIEOIVOA.js} +2 -1
  24. package/dist/chunks/{opchat-BWXZ32GX.js → opchat-VYKKXDBO.js} +5 -5
  25. package/dist/chunks/{organizations-4ISQRGMQ.js → organizations-LAACUOYE.js} +73 -15
  26. package/dist/chunks/{profile-NLDZDT3L.js → profile-A75O7EZ4.js} +6 -6
  27. package/dist/chunks/{project-agent-ZPVO25HA.js → project-agent-JOZ6NRTW.js} +5 -5
  28. package/dist/chunks/{sandbox-command-5GFJ2U3V.js → sandbox-command-Q72CAVQ7.js} +4 -4
  29. package/dist/chunks/{sandbox-template-LZN4F55Z.js → sandbox-template-KWCE3OJV.js} +5 -5
  30. package/dist/chunks/{src-3RBI4DNN.js → src-CBPRIWG5.js} +7 -15
  31. package/dist/chunks/{src-EYXQS6XD.js → src-J4262EAE.js} +122 -17
  32. package/dist/chunks/{teams-bot-WP3FHKGA.js → teams-bot-KNY5OEXB.js} +3 -3
  33. package/dist/cli.js +28 -17
  34. package/docs/command-reference.md +2 -1
  35. package/package.json +3 -1
@@ -30,7 +30,7 @@ import {
30
30
  setActiveProfile,
31
31
  submitBacktestRun,
32
32
  warnOnRepoHostMismatch
33
- } from "./chunk-XSAXENQD.js";
33
+ } from "./chunk-NC2GQQOT.js";
34
34
  import {
35
35
  normalizeTemplateRepoUrl,
36
36
  resolveApiBaseUrlOption,
@@ -38,7 +38,7 @@ import {
38
38
  resolveBaseUrlOption,
39
39
  resolveChatApiBaseUrlOption,
40
40
  resolvePublicApiBaseUrl
41
- } from "./chunk-5G4E547X.js";
41
+ } from "./chunk-4GLUNJLZ.js";
42
42
  import {
43
43
  compareSemver,
44
44
  fetchLatestNpmVersion,
@@ -46,7 +46,7 @@ import {
46
46
  parseBooleanOption,
47
47
  parseJsonOption,
48
48
  resolveTemplateEnvironment
49
- } from "./chunk-3Y4EL3P6.js";
49
+ } from "./chunk-7HZBKUUB.js";
50
50
 
51
51
  // src/cli/core-commands.ts
52
52
  import { promises as fs, existsSync } from "node:fs";
@@ -5,10 +5,10 @@ import {
5
5
  mapUiBaseToApiBase,
6
6
  resolveBaseUrl,
7
7
  resolveSandboxApiUrlOption
8
- } from "./chunk-5G4E547X.js";
8
+ } from "./chunk-4GLUNJLZ.js";
9
9
  import {
10
10
  parseBooleanOption
11
- } from "./chunk-3Y4EL3P6.js";
11
+ } from "./chunk-7HZBKUUB.js";
12
12
 
13
13
  // ../../packages/cloud/src/api/core.ts
14
14
  var DEFAULT_API_TIMEOUT_MS = 3e4;
@@ -4,14 +4,14 @@ import {
4
4
  materializeSourceUploadFile,
5
5
  readSourceUploadCache,
6
6
  writeSourceUploadCache
7
- } from "./chunk-I6HN3ZGW.js";
7
+ } from "./chunk-WQ2GF7XT.js";
8
8
  import {
9
9
  yaml
10
10
  } from "./chunk-WYDVQOBL.js";
11
11
  import {
12
12
  loadGlobalConfig,
13
13
  saveGlobalConfig
14
- } from "./chunk-XSAXENQD.js";
14
+ } from "./chunk-NC2GQQOT.js";
15
15
 
16
16
  // ../../packages/cloud/src/profile/profile-setup-gate.ts
17
17
  var OpenPondProfileSetupRequiredError = class extends Error {
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
2
  import {
3
3
  writePrivateJsonFile
4
- } from "./chunk-XSAXENQD.js";
4
+ } from "./chunk-NC2GQQOT.js";
5
5
 
6
6
  // ../../packages/cloud/src/profile/source-upload-cache.ts
7
7
  import { createHash } from "node:crypto";
@@ -2,7 +2,7 @@ import { createRequire as __openpondCreateRequire } from "node:module"; var requ
2
2
  import {
3
3
  resolveOpChatApiBaseUrl,
4
4
  sendHostedChatTurn
5
- } from "./chunk-NLBKZZEK.js";
5
+ } from "./chunk-ETBF62DB.js";
6
6
  import {
7
7
  CreatePipelinePlanSchema,
8
8
  CreatePipelineSnapshotSchema,
@@ -18,7 +18,7 @@ import {
18
18
  loadGlobalConfig,
19
19
  readApiJson,
20
20
  runShellCommand
21
- } from "./chunk-XSAXENQD.js";
21
+ } from "./chunk-NC2GQQOT.js";
22
22
 
23
23
  // src/goal/cli.ts
24
24
  import { randomUUID as randomUUID9 } from "node:crypto";
@@ -3,7 +3,7 @@ import {
3
3
  materializeSourceUploadFile,
4
4
  readSourceUploadCache,
5
5
  writeSourceUploadCache
6
- } from "./chunk-I6HN3ZGW.js";
6
+ } from "./chunk-WQ2GF7XT.js";
7
7
  import {
8
8
  CreatePipelineRequestSchema
9
9
  } from "./chunk-VQX33YAG.js";
@@ -18,7 +18,7 @@ import {
18
18
  parseSandboxRuntimePromotionPolicyOption,
19
19
  parseSandboxWorkflowModeOption,
20
20
  runCommand
21
- } from "./chunk-XSAXENQD.js";
21
+ } from "./chunk-NC2GQQOT.js";
22
22
  import {
23
23
  optionString,
24
24
  optionalJsonObject,
@@ -26,7 +26,7 @@ import {
26
26
  parseCsvOption,
27
27
  parseIntegerOption,
28
28
  requiredTeamId
29
- } from "./chunk-3Y4EL3P6.js";
29
+ } from "./chunk-7HZBKUUB.js";
30
30
 
31
31
  // src/cli/agent-sdk-command.ts
32
32
  import { existsSync, readFileSync } from "node:fs";
@@ -1,11 +1,14 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
2
  import {
3
+ resolveWebLaunchMessages,
3
4
  runOpenPondServerCli
4
- } from "./chunk-Y6G6WRTG.js";
5
- import "./chunk-Q57SVPEH.js";
5
+ } from "./chunk-7KYOO25A.js";
6
+ import "./chunk-IUTUUNAX.js";
7
+ import "./chunk-BX4XSB2J.js";
6
8
  import "./chunk-LHYK6QO2.js";
7
9
  import "./chunk-WYDVQOBL.js";
8
10
  import "./chunk-UACZUFIA.js";
9
11
  export {
12
+ resolveWebLaunchMessages,
10
13
  runOpenPondServerCli
11
14
  };
@@ -3,14 +3,14 @@ import {
3
3
  createLocalGoal,
4
4
  printGoalHelp,
5
5
  runGoalCommand
6
- } from "./chunk-4HYJG2JE.js";
7
- import "./chunk-NLBKZZEK.js";
6
+ } from "./chunk-XMW3PSI5.js";
7
+ import "./chunk-ETBF62DB.js";
8
8
  import "./chunk-VQX33YAG.js";
9
9
  import "./chunk-LHYK6QO2.js";
10
10
  import "./chunk-WYDVQOBL.js";
11
- import "./chunk-XSAXENQD.js";
12
- import "./chunk-5G4E547X.js";
13
- import "./chunk-3Y4EL3P6.js";
11
+ import "./chunk-NC2GQQOT.js";
12
+ import "./chunk-4GLUNJLZ.js";
13
+ import "./chunk-7HZBKUUB.js";
14
14
  import "./chunk-UACZUFIA.js";
15
15
  export {
16
16
  createLocalGoal,
@@ -16,10 +16,10 @@ import {
16
16
  runTemplateUpdate,
17
17
  runToolList,
18
18
  runToolRun
19
- } from "./chunk-74O6FGVN.js";
20
- import "./chunk-XSAXENQD.js";
21
- import "./chunk-5G4E547X.js";
22
- import "./chunk-3Y4EL3P6.js";
19
+ } from "./chunk-JWL5HCO5.js";
20
+ import "./chunk-NC2GQQOT.js";
21
+ import "./chunk-4GLUNJLZ.js";
22
+ import "./chunk-7HZBKUUB.js";
23
23
  import "./chunk-UACZUFIA.js";
24
24
  export {
25
25
  resolveGitBranch,
@@ -1,22 +1,22 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import "./chunk-KRKGHVMQ.js";
2
+ import "./chunk-DZUJ6XJC.js";
3
3
  import "./chunk-W5GKHH77.js";
4
4
  import {
5
5
  loadOpenPondProfileState
6
- } from "./chunk-FUP7EGT7.js";
7
- import "./chunk-I6HN3ZGW.js";
6
+ } from "./chunk-TQRWG54R.js";
7
+ import "./chunk-WQ2GF7XT.js";
8
8
  import {
9
9
  createLocalGoal,
10
10
  runGoalCommand
11
- } from "./chunk-4HYJG2JE.js";
12
- import "./chunk-NLBKZZEK.js";
11
+ } from "./chunk-XMW3PSI5.js";
12
+ import "./chunk-ETBF62DB.js";
13
13
  import "./chunk-VQX33YAG.js";
14
14
  import "./chunk-LHYK6QO2.js";
15
15
  import "./chunk-BYAPLT37.js";
16
16
  import "./chunk-WYDVQOBL.js";
17
- import "./chunk-XSAXENQD.js";
18
- import "./chunk-5G4E547X.js";
19
- import "./chunk-3Y4EL3P6.js";
17
+ import "./chunk-NC2GQQOT.js";
18
+ import "./chunk-4GLUNJLZ.js";
19
+ import "./chunk-7HZBKUUB.js";
20
20
  import "./chunk-UACZUFIA.js";
21
21
 
22
22
  // src/cli/extend.ts
@@ -1,14 +1,14 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
2
  import {
3
3
  runProcessCommand
4
- } from "./chunk-XSAXENQD.js";
4
+ } from "./chunk-NC2GQQOT.js";
5
5
  import {
6
6
  CliUsageError
7
- } from "./chunk-5G4E547X.js";
7
+ } from "./chunk-4GLUNJLZ.js";
8
8
  import {
9
9
  optionString,
10
10
  parseBooleanOption
11
- } from "./chunk-3Y4EL3P6.js";
11
+ } from "./chunk-7HZBKUUB.js";
12
12
  import "./chunk-UACZUFIA.js";
13
13
 
14
14
  // src/cli/harness.ts
@@ -3,7 +3,7 @@ import {
3
3
  CLI_GLOBAL_OPTION_SCHEMA,
4
4
  formatCliCommandUsage,
5
5
  listCliCommandDefinitions
6
- } from "./chunk-3Y4EL3P6.js";
6
+ } from "./chunk-7HZBKUUB.js";
7
7
  import "./chunk-UACZUFIA.js";
8
8
 
9
9
  // src/cli/help.ts
@@ -15,6 +15,7 @@ function formatCliHelp() {
15
15
  "OpenPond CLI",
16
16
  "",
17
17
  "Usage:",
18
+ " openpond [--no-open] [--hostname HOST] [--port PORT]",
18
19
  " openpond <command> [options] [-- passthrough...]",
19
20
  " openpond --version",
20
21
  "",
@@ -1,26 +1,26 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
2
  import {
3
3
  runOpChatSmoke
4
- } from "./chunk-KRKGHVMQ.js";
4
+ } from "./chunk-DZUJ6XJC.js";
5
5
  import {
6
6
  getOpChatModel,
7
7
  listOpChatModels,
8
8
  resolveOpChatApiBaseUrl,
9
9
  sendHostedChatTurn,
10
10
  streamHostedChatTurn
11
- } from "./chunk-NLBKZZEK.js";
11
+ } from "./chunk-ETBF62DB.js";
12
12
  import {
13
13
  ensureApiKey,
14
14
  loadConfig
15
- } from "./chunk-XSAXENQD.js";
15
+ } from "./chunk-NC2GQQOT.js";
16
16
  import {
17
17
  resolveApiBaseUrlOption,
18
18
  resolveBaseUrl,
19
19
  resolveChatApiBaseUrlOption
20
- } from "./chunk-5G4E547X.js";
20
+ } from "./chunk-4GLUNJLZ.js";
21
21
  import {
22
22
  parseBooleanOption
23
- } from "./chunk-3Y4EL3P6.js";
23
+ } from "./chunk-7HZBKUUB.js";
24
24
  import "./chunk-UACZUFIA.js";
25
25
 
26
26
  // src/cli/opchat.ts
@@ -1,20 +1,85 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import {
3
+ DEFAULT_OPENPOND_API_BASE_URL,
4
+ DEFAULT_OPENPOND_WEB_BASE_URL
5
+ } from "./chunk-BX4XSB2J.js";
6
+ import "./chunk-LHYK6QO2.js";
7
+ import "./chunk-WYDVQOBL.js";
2
8
  import {
3
9
  resolveSandboxClient
4
- } from "./chunk-XSAXENQD.js";
5
- import "./chunk-5G4E547X.js";
10
+ } from "./chunk-NC2GQQOT.js";
11
+ import "./chunk-4GLUNJLZ.js";
6
12
  import {
7
13
  parseBooleanOption,
8
14
  parseCsvOption,
9
15
  parseIntegerOption,
10
16
  parseJsonOption
11
- } from "./chunk-3Y4EL3P6.js";
17
+ } from "./chunk-7HZBKUUB.js";
12
18
  import "./chunk-UACZUFIA.js";
13
19
 
14
20
  // src/cli/organizations.ts
15
- import { spawn } from "node:child_process";
16
21
  import { createHash, randomBytes } from "node:crypto";
17
22
  import { createServer } from "node:http";
23
+
24
+ // ../../packages/runtime/src/urls.ts
25
+ var DEFAULT_OPENPOND_API_HOST = new URL(DEFAULT_OPENPOND_API_BASE_URL).hostname;
26
+ var DEFAULT_OPENPOND_WEB_HOST = new URL(DEFAULT_OPENPOND_WEB_BASE_URL).hostname;
27
+ var DEFAULT_OPENPOND_OPCHAT_API_BASE_URL = `${DEFAULT_OPENPOND_API_BASE_URL}/opchat/v1`;
28
+
29
+ // ../../packages/runtime/src/system-browser.ts
30
+ import { spawn } from "node:child_process";
31
+ function resolveSystemBrowserCommand(url, platform = process.platform) {
32
+ if (platform === "darwin") return { command: "open", args: [url] };
33
+ if (platform === "win32") {
34
+ return {
35
+ command: "rundll32.exe",
36
+ args: ["url.dll,FileProtocolHandler", url]
37
+ };
38
+ }
39
+ return { command: "xdg-open", args: [url] };
40
+ }
41
+ async function openUrlWithSystemBrowser(url, options = {}) {
42
+ const browser = options.command ?? resolveSystemBrowserCommand(url);
43
+ const handoffTimeoutMs = options.handoffTimeoutMs ?? 1500;
44
+ return new Promise((resolve) => {
45
+ let settled = false;
46
+ let timer = null;
47
+ const finish = (result) => {
48
+ if (settled) return;
49
+ settled = true;
50
+ if (timer) clearTimeout(timer);
51
+ resolve(result);
52
+ };
53
+ const child = spawn(browser.command, browser.args, {
54
+ detached: false,
55
+ shell: false,
56
+ stdio: "ignore",
57
+ windowsHide: true
58
+ });
59
+ child.once("error", (error) => {
60
+ const code = error.code;
61
+ finish({
62
+ opened: false,
63
+ error: code ? `browser launcher ${browser.command} failed (${code})` : `browser launcher ${browser.command} failed`
64
+ });
65
+ });
66
+ child.once("close", (code, signal) => {
67
+ if (code === 0) {
68
+ finish({ opened: true });
69
+ return;
70
+ }
71
+ const detail = signal ? `signal ${signal}` : `code ${code ?? "unknown"}`;
72
+ finish({ opened: false, error: `browser launcher ${browser.command} exited with ${detail}` });
73
+ });
74
+ timer = setTimeout(() => {
75
+ child.unref();
76
+ finish({ opened: true });
77
+ }, handoffTimeoutMs);
78
+ timer.unref();
79
+ });
80
+ }
81
+
82
+ // src/cli/organizations.ts
18
83
  function formatOrganizationLine(organization) {
19
84
  return [
20
85
  organization.slug,
@@ -233,15 +298,8 @@ async function startMcpOAuthCallbackListener(input) {
233
298
  waitForCallback: () => callbackPromise
234
299
  };
235
300
  }
236
- function openUrlWithSystemBrowser(url) {
237
- const platform = process.platform;
238
- const command = platform === "darwin" ? "open" : platform === "win32" ? "cmd" : "xdg-open";
239
- const args = platform === "win32" ? ["/c", "start", "", url] : [url];
240
- const child = spawn(command, args, {
241
- detached: true,
242
- stdio: "ignore"
243
- });
244
- child.unref();
301
+ function openUrlWithSystemBrowser2(url) {
302
+ void openUrlWithSystemBrowser(url);
245
303
  }
246
304
  function buildMcpOAuthAuthorizeUrl(input) {
247
305
  const url = new URL(input.authorizationEndpoint);
@@ -638,7 +696,7 @@ async function runOrganizationsCommand(options, rest) {
638
696
  console.error(`Waiting for OAuth callback on ${callback.redirectUri}`);
639
697
  if (parseBooleanOption(options.open)) {
640
698
  try {
641
- openUrlWithSystemBrowser(authorizationUrl);
699
+ openUrlWithSystemBrowser2(authorizationUrl);
642
700
  } catch (error) {
643
701
  console.error(
644
702
  `Unable to open a browser automatically: ${error instanceof Error ? error.message : String(error)}`
@@ -720,7 +778,7 @@ export {
720
778
  formatOrganizationMcpServerLine,
721
779
  formatOrganizationMemberLine,
722
780
  normalizeMcpResourceUrl,
723
- openUrlWithSystemBrowser,
781
+ openUrlWithSystemBrowser2 as openUrlWithSystemBrowser,
724
782
  parseMcpOAuthScopes,
725
783
  parseMcpToolArguments,
726
784
  parseOrganizationRole,
@@ -5,7 +5,7 @@ import {
5
5
  mergeProjectSourceUploadEntries,
6
6
  parseAgentSourceCheckDispatch,
7
7
  parseAgentSourceCheckKind
8
- } from "./chunk-3CC6MH35.js";
8
+ } from "./chunk-ZIKHE5AY.js";
9
9
  import {
10
10
  buildHostedRunIdempotencyKey,
11
11
  collectProfileSourceUploadEntries,
@@ -22,8 +22,8 @@ import {
22
22
  runProfileCheck,
23
23
  runProfileSdkCommand,
24
24
  saveProfilePushStatus
25
- } from "./chunk-FUP7EGT7.js";
26
- import "./chunk-I6HN3ZGW.js";
25
+ } from "./chunk-TQRWG54R.js";
26
+ import "./chunk-WQ2GF7XT.js";
27
27
  import "./chunk-VQX33YAG.js";
28
28
  import "./chunk-LHYK6QO2.js";
29
29
  import "./chunk-OG75GMVO.js";
@@ -31,13 +31,13 @@ import "./chunk-BYAPLT37.js";
31
31
  import "./chunk-WYDVQOBL.js";
32
32
  import {
33
33
  resolveSandboxClient
34
- } from "./chunk-XSAXENQD.js";
35
- import "./chunk-5G4E547X.js";
34
+ } from "./chunk-NC2GQQOT.js";
35
+ import "./chunk-4GLUNJLZ.js";
36
36
  import {
37
37
  optionString,
38
38
  parseBooleanOption,
39
39
  requiredTeamId
40
- } from "./chunk-3Y4EL3P6.js";
40
+ } from "./chunk-7HZBKUUB.js";
41
41
  import "./chunk-UACZUFIA.js";
42
42
 
43
43
  // src/cli/profile.ts
@@ -30,8 +30,8 @@ import {
30
30
  parseProjectSourceType,
31
31
  resolveLocalAgentSdkCommand,
32
32
  resolveProjectSourceUploadBranch
33
- } from "./chunk-3CC6MH35.js";
34
- import "./chunk-I6HN3ZGW.js";
33
+ } from "./chunk-ZIKHE5AY.js";
34
+ import "./chunk-WQ2GF7XT.js";
35
35
  import "./chunk-VQX33YAG.js";
36
36
  import "./chunk-LHYK6QO2.js";
37
37
  import "./chunk-OG75GMVO.js";
@@ -41,14 +41,14 @@ import {
41
41
  parseSandboxWorkflowModeOption,
42
42
  resolveSandboxClient,
43
43
  runCommand
44
- } from "./chunk-XSAXENQD.js";
45
- import "./chunk-5G4E547X.js";
44
+ } from "./chunk-NC2GQQOT.js";
45
+ import "./chunk-4GLUNJLZ.js";
46
46
  import {
47
47
  optionString,
48
48
  optionalJsonObject,
49
49
  parseBooleanOption,
50
50
  requiredTeamId
51
- } from "./chunk-3Y4EL3P6.js";
51
+ } from "./chunk-7HZBKUUB.js";
52
52
  import "./chunk-UACZUFIA.js";
53
53
 
54
54
  // src/cli/project-agent-formatters.ts
@@ -15,19 +15,19 @@ import {
15
15
  summarizeReplayArtifact,
16
16
  summarizeSandbox,
17
17
  waitForSandboxCreateReady
18
- } from "./chunk-AUJLPKGI.js";
18
+ } from "./chunk-5X47XJC4.js";
19
19
  import {
20
20
  readSandboxSecretValue,
21
21
  resolveSandboxClient,
22
22
  summarizeSandboxSecret
23
- } from "./chunk-XSAXENQD.js";
24
- import "./chunk-5G4E547X.js";
23
+ } from "./chunk-NC2GQQOT.js";
24
+ import "./chunk-4GLUNJLZ.js";
25
25
  import {
26
26
  parseBooleanOption,
27
27
  parseIntegerOption,
28
28
  parseJsonObjectOption,
29
29
  parseNumberOption
30
- } from "./chunk-3Y4EL3P6.js";
30
+ } from "./chunk-7HZBKUUB.js";
31
31
  import "./chunk-UACZUFIA.js";
32
32
 
33
33
  // src/cli/sandbox-files-command.ts
@@ -2,10 +2,10 @@ import { createRequire as __openpondCreateRequire } from "node:module"; var requ
2
2
  import {
3
3
  createSandboxFromPlan,
4
4
  summarizeSandbox
5
- } from "./chunk-AUJLPKGI.js";
5
+ } from "./chunk-5X47XJC4.js";
6
6
  import {
7
7
  resolveGitBranch
8
- } from "./chunk-74O6FGVN.js";
8
+ } from "./chunk-JWL5HCO5.js";
9
9
  import "./chunk-OG75GMVO.js";
10
10
  import {
11
11
  OPENPOND_MANIFEST_FILE_NAME,
@@ -36,16 +36,16 @@ import {
36
36
  runCommand,
37
37
  runShellCommand,
38
38
  warnOnRepoHostMismatch
39
- } from "./chunk-XSAXENQD.js";
39
+ } from "./chunk-NC2GQQOT.js";
40
40
  import {
41
41
  resolveBaseUrl,
42
42
  resolvePublicApiBaseUrl
43
- } from "./chunk-5G4E547X.js";
43
+ } from "./chunk-4GLUNJLZ.js";
44
44
  import {
45
45
  parseBooleanOption,
46
46
  parseIntegerOption,
47
47
  parseJsonOption
48
- } from "./chunk-3Y4EL3P6.js";
48
+ } from "./chunk-7HZBKUUB.js";
49
49
  import "./chunk-UACZUFIA.js";
50
50
 
51
51
  // src/cli/sandbox-template.ts
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
3
+ import {
4
+ createReadyLineParser,
5
+ openUrlWithSystemBrowser
6
+ } from "./chunk-IUTUUNAX.js";
3
7
  import {
4
8
  ApprovalSchema,
5
9
  ContextUsageSnapshotSchema,
@@ -7,9 +11,8 @@ import {
7
11
  DEFAULT_CODEX_CHAT_MODEL,
8
12
  DEFAULT_OPENPOND_CHAT_MODEL,
9
13
  DEFAULT_OPENPOND_COMMAND_ACCESS_MODE,
10
- OpenPondCommandAccessModeSchema,
11
- createReadyLineParser
12
- } from "./chunk-Q57SVPEH.js";
14
+ OpenPondCommandAccessModeSchema
15
+ } from "./chunk-BX4XSB2J.js";
13
16
  import {
14
17
  CONNECTED_APP_CATALOG,
15
18
  buildConnectedAppInstallUrl,
@@ -19,7 +22,6 @@ import "./chunk-WYDVQOBL.js";
19
22
  import "./chunk-UACZUFIA.js";
20
23
 
21
24
  // ../terminal/src/index.ts
22
- import { spawn as spawn2 } from "node:child_process";
23
25
  import { createInterface } from "node:readline/promises";
24
26
  import { stdin as input, stdout as output } from "node:process";
25
27
  import { pathToFileURL } from "node:url";
@@ -3006,18 +3008,8 @@ function terminalStatus(terminal) {
3006
3008
  async function interruptTurn(server, token, sessionId) {
3007
3009
  await apiFetch(server, token, `/v1/sessions/${sessionId}/turns/interrupt`, { method: "POST" });
3008
3010
  }
3009
- function openUrlCommand(url) {
3010
- if (process.platform === "darwin") return { command: "open", args: [url] };
3011
- if (process.platform === "win32") return { command: "cmd", args: ["/c", "start", "", url] };
3012
- return { command: "xdg-open", args: [url] };
3013
- }
3014
3011
  function openUrlDetached(url) {
3015
- const { command, args } = openUrlCommand(url);
3016
- const child = spawn2(command, args, {
3017
- detached: true,
3018
- stdio: "ignore"
3019
- });
3020
- child.unref();
3012
+ void openUrlWithSystemBrowser(url);
3021
3013
  }
3022
3014
  async function chat(options) {
3023
3015
  const mode = resolveTerminalChatMode(options, {