openpond 0.0.30-bootstrap.0 → 0.0.30
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.
- package/README.md +19 -5
- package/dist/chunks/{app-layer-YKXEQGOW.js → app-layer-FIGCNZJX.js} +7 -4
- package/dist/chunks/{apps-GGSIN2ZF.js → apps-4RMNCKXS.js} +3 -3
- package/dist/chunks/{chunk-I6HN3ZGW.js → chunk-4S3XGFGL.js} +1 -1
- package/dist/chunks/{chunk-KRKGHVMQ.js → chunk-57P2GCW5.js} +1 -1
- package/dist/chunks/{chunk-4HYJG2JE.js → chunk-BBEVMP6O.js} +2 -2
- package/dist/chunks/{chunk-XSAXENQD.js → chunk-BNPFMGZD.js} +2 -2
- package/dist/chunks/{chunk-3CC6MH35.js → chunk-BNVHGSI7.js} +3 -3
- package/dist/chunks/{chunk-Q57SVPEH.js → chunk-BX4XSB2J.js} +5619 -6654
- package/dist/chunks/{chunk-Y6G6WRTG.js → chunk-DANRS43D.js} +57 -12
- package/dist/chunks/{chunk-FUP7EGT7.js → chunk-GGKA4HLQ.js} +2 -2
- package/dist/chunks/chunk-IUTUUNAX.js +1126 -0
- package/dist/chunks/{chunk-74O6FGVN.js → chunk-KEDXE4BA.js} +3 -3
- package/dist/chunks/{chunk-3Y4EL3P6.js → chunk-KMSMK7PI.js} +36 -35
- package/dist/chunks/{chunk-5G4E547X.js → chunk-MFS3SYUH.js} +1 -1
- package/dist/chunks/{chunk-NLBKZZEK.js → chunk-OV3KAFWB.js} +1 -1
- package/dist/chunks/{chunk-AUJLPKGI.js → chunk-RJXX6TJA.js} +2 -2
- package/dist/chunks/{cli-NVKNE4AZ.js → cli-2L4NB7HD.js} +5 -2
- package/dist/chunks/{cli-X3HPLSOV.js → cli-5RL7B2Z3.js} +5 -5
- package/dist/chunks/{core-commands-IM2UKLU4.js → core-commands-AZJZGTZS.js} +4 -4
- package/dist/chunks/{extend-YXCBULPO.js → extend-6IWYZI37.js} +8 -8
- package/dist/chunks/{harness-GMK6IY2U.js → harness-SSNXDSKM.js} +3 -3
- package/dist/chunks/{help-LMH5FGT2.js → help-MUJJMI3Q.js} +2 -1
- package/dist/chunks/{opchat-BWXZ32GX.js → opchat-RW4CFAQB.js} +5 -5
- package/dist/chunks/{organizations-4ISQRGMQ.js → organizations-V7DTNLSI.js} +73 -15
- package/dist/chunks/{profile-NLDZDT3L.js → profile-WDBKJ7YW.js} +6 -6
- package/dist/chunks/{project-agent-ZPVO25HA.js → project-agent-3TZ3BPYN.js} +5 -5
- package/dist/chunks/{sandbox-command-5GFJ2U3V.js → sandbox-command-HOYHF4NC.js} +4 -4
- package/dist/chunks/{sandbox-template-LZN4F55Z.js → sandbox-template-IYGB4CZU.js} +5 -5
- package/dist/chunks/{src-3RBI4DNN.js → src-CBPRIWG5.js} +7 -15
- package/dist/chunks/{src-EYXQS6XD.js → src-ZRQKSQTD.js} +14 -12
- package/dist/chunks/{teams-bot-WP3FHKGA.js → teams-bot-UWGCFL6C.js} +3 -3
- package/dist/cli.js +28 -17
- package/docs/command-reference.md +2 -1
- package/package.json +3 -1
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
setActiveProfile,
|
|
31
31
|
submitBacktestRun,
|
|
32
32
|
warnOnRepoHostMismatch
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BNPFMGZD.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-
|
|
41
|
+
} from "./chunk-MFS3SYUH.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-
|
|
49
|
+
} from "./chunk-KMSMK7PI.js";
|
|
50
50
|
|
|
51
51
|
// src/cli/core-commands.ts
|
|
52
52
|
import { promises as fs, existsSync } from "node:fs";
|
|
@@ -468,7 +468,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
468
468
|
name: "help",
|
|
469
469
|
usage: "openpond help",
|
|
470
470
|
optionSchema: {},
|
|
471
|
-
handler: async () => (await import("./help-
|
|
471
|
+
handler: async () => (await import("./help-MUJJMI3Q.js")).printHelp()
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
name: "version",
|
|
@@ -480,19 +480,19 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
480
480
|
name: "check-update",
|
|
481
481
|
usage: "openpond check-update",
|
|
482
482
|
optionSchema: {},
|
|
483
|
-
handler: async () => (await import("./core-commands-
|
|
483
|
+
handler: async () => (await import("./core-commands-AZJZGTZS.js")).runCheckUpdate()
|
|
484
484
|
},
|
|
485
485
|
{
|
|
486
486
|
name: "login",
|
|
487
487
|
usage: "openpond login [--base-url <url>]",
|
|
488
488
|
optionSchema: CLI_GLOBAL_OPTION_SCHEMA,
|
|
489
|
-
handler: async ({ options }) => (await import("./core-commands-
|
|
489
|
+
handler: async ({ options }) => (await import("./core-commands-AZJZGTZS.js")).runLogin(options)
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
name: "init",
|
|
493
493
|
usage: "openpond init [--path <dir>]",
|
|
494
494
|
optionSchema: { path: "string" },
|
|
495
|
-
handler: async ({ options }) => (await import("./profile-
|
|
495
|
+
handler: async ({ options }) => (await import("./profile-WDBKJ7YW.js")).runOpenPondInitCommand(options)
|
|
496
496
|
},
|
|
497
497
|
{
|
|
498
498
|
name: "profile",
|
|
@@ -521,44 +521,44 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
521
521
|
teamId: "string",
|
|
522
522
|
workItemId: "string"
|
|
523
523
|
},
|
|
524
|
-
handler: async ({ options, rest }) => (await import("./profile-
|
|
524
|
+
handler: async ({ options, rest }) => (await import("./profile-WDBKJ7YW.js")).runOpenPondProfileCommand(options, rest)
|
|
525
525
|
},
|
|
526
526
|
{
|
|
527
527
|
name: "agents",
|
|
528
528
|
usage: "openpond agents [--json]",
|
|
529
529
|
optionSchema: { json: "boolean" },
|
|
530
|
-
handler: async ({ options, rest }) => (await import("./profile-
|
|
530
|
+
handler: async ({ options, rest }) => (await import("./profile-WDBKJ7YW.js")).runOpenPondAgentsCommand(options, rest)
|
|
531
531
|
},
|
|
532
532
|
...profileSdkAliasDefinitions(),
|
|
533
533
|
{
|
|
534
534
|
name: "extend",
|
|
535
535
|
usage: "openpond extend <instructions>",
|
|
536
536
|
optionSchema: { cwd: "string" },
|
|
537
|
-
handler: async ({ options, rest }) => (await import("./extend-
|
|
537
|
+
handler: async ({ options, rest }) => (await import("./extend-6IWYZI37.js")).runOpenPondExtendCommand(options, rest)
|
|
538
538
|
},
|
|
539
539
|
{
|
|
540
540
|
name: "edit",
|
|
541
541
|
usage: "openpond edit <instructions>",
|
|
542
542
|
optionSchema: { cwd: "string" },
|
|
543
|
-
handler: async ({ options, rest }) => (await import("./extend-
|
|
543
|
+
handler: async ({ options, rest }) => (await import("./extend-6IWYZI37.js")).runOpenPondEditCommand(options, rest)
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
546
|
name: "profiles",
|
|
547
547
|
usage: "openpond profiles [args]",
|
|
548
548
|
optionSchema: { json: "boolean" },
|
|
549
|
-
handler: async ({ options, rest }) => (await import("./core-commands-
|
|
549
|
+
handler: async ({ options, rest }) => (await import("./core-commands-AZJZGTZS.js")).runProfiles(options, rest)
|
|
550
550
|
},
|
|
551
551
|
{
|
|
552
552
|
name: "account",
|
|
553
553
|
usage: "openpond account",
|
|
554
554
|
optionSchema: { json: "boolean" },
|
|
555
|
-
handler: async () => (await import("./core-commands-
|
|
555
|
+
handler: async () => (await import("./core-commands-AZJZGTZS.js")).runAccount()
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
558
|
name: "health",
|
|
559
559
|
usage: "openpond health",
|
|
560
560
|
optionSchema: { json: "boolean" },
|
|
561
|
-
handler: async ({ options }) => (await import("./core-commands-
|
|
561
|
+
handler: async ({ options }) => (await import("./core-commands-AZJZGTZS.js")).runHealth(options)
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
564
|
name: "serve",
|
|
@@ -569,19 +569,20 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
569
569
|
listen: "string",
|
|
570
570
|
port: "integer"
|
|
571
571
|
},
|
|
572
|
-
handler: async ({ options, rest }) => (await import("./app-layer-
|
|
572
|
+
handler: async ({ options, rest }) => (await import("./app-layer-FIGCNZJX.js")).runOpenPondServerCommand("serve", options, rest)
|
|
573
573
|
},
|
|
574
574
|
{
|
|
575
575
|
name: "ui",
|
|
576
|
-
usage: "openpond ui [
|
|
576
|
+
usage: "openpond ui [--no-open] [--hostname HOST] [--port PORT]",
|
|
577
577
|
optionSchema: {
|
|
578
578
|
host: "string",
|
|
579
579
|
hostname: "string",
|
|
580
580
|
listen: "string",
|
|
581
|
+
noOpen: "boolean",
|
|
581
582
|
port: "integer",
|
|
582
583
|
webRoot: "string"
|
|
583
584
|
},
|
|
584
|
-
handler: async ({ options, rest }) => (await import("./app-layer-
|
|
585
|
+
handler: async ({ options, rest }) => (await import("./app-layer-FIGCNZJX.js")).runOpenPondServerCommand("web", options, rest)
|
|
585
586
|
},
|
|
586
587
|
{
|
|
587
588
|
name: "tui",
|
|
@@ -595,13 +596,13 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
595
596
|
provider: "string",
|
|
596
597
|
server: "string"
|
|
597
598
|
},
|
|
598
|
-
handler: async ({ options, rest }) => (await import("./app-layer-
|
|
599
|
+
handler: async ({ options, rest }) => (await import("./app-layer-FIGCNZJX.js")).runOpenPondTerminalCommand(options, rest)
|
|
599
600
|
},
|
|
600
601
|
{
|
|
601
602
|
name: "chat",
|
|
602
603
|
usage: "openpond chat (--message-file <path>|--message <text>|--stdin) --non-interactive [--provider <id>] [--model <id>] [--project <id>] [--yes] [--approval-policy <policy>] [--json] [--timeout-sec <n>] [--max-output-bytes <n>] [--sandbox <mode>]",
|
|
603
604
|
optionSchema: CHAT_OPTION_SCHEMA,
|
|
604
|
-
handler: async ({ options, rest }) => (await import("./app-layer-
|
|
605
|
+
handler: async ({ options, rest }) => (await import("./app-layer-FIGCNZJX.js")).runOpenPondTerminalCommand(options, rest)
|
|
605
606
|
},
|
|
606
607
|
{
|
|
607
608
|
name: "tool",
|
|
@@ -637,7 +638,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
637
638
|
name: "sandbox-template",
|
|
638
639
|
usage: "openpond sandbox-template <command> [args]",
|
|
639
640
|
optionSchema: SANDBOX_TEMPLATE_OPTION_SCHEMA,
|
|
640
|
-
handler: async ({ options, rest }) => (await import("./sandbox-template-
|
|
641
|
+
handler: async ({ options, rest }) => (await import("./sandbox-template-IYGB4CZU.js")).runSandboxTemplateCommand(options, rest)
|
|
641
642
|
},
|
|
642
643
|
{
|
|
643
644
|
name: "repo",
|
|
@@ -659,13 +660,13 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
659
660
|
open: "boolean",
|
|
660
661
|
timeoutSeconds: "integer"
|
|
661
662
|
},
|
|
662
|
-
handler: async ({ options, rest }) => (await import("./organizations-
|
|
663
|
+
handler: async ({ options, rest }) => (await import("./organizations-V7DTNLSI.js")).runOrganizationsCommand(options, rest)
|
|
663
664
|
},
|
|
664
665
|
{
|
|
665
666
|
name: "project",
|
|
666
667
|
usage: "openpond project <list|create|upsert|get|update|sync|source-upload|archive> [args]",
|
|
667
668
|
optionSchema: PROJECT_OPTION_SCHEMA,
|
|
668
|
-
handler: async ({ options, rest }) => (await import("./project-agent-
|
|
669
|
+
handler: async ({ options, rest }) => (await import("./project-agent-3TZ3BPYN.js")).runProjectCommand(options, rest)
|
|
669
670
|
},
|
|
670
671
|
{
|
|
671
672
|
name: "agent",
|
|
@@ -678,7 +679,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
678
679
|
"openpond agent edit checkpoint-result|commit-result|pr-result <workItemId> --team-id <id> --ref <artifact-ref>"
|
|
679
680
|
],
|
|
680
681
|
optionSchema: AGENT_OPTION_SCHEMA,
|
|
681
|
-
handler: async ({ options, rest }) => (await import("./project-agent-
|
|
682
|
+
handler: async ({ options, rest }) => (await import("./project-agent-3TZ3BPYN.js")).runAgentCommand(options, rest)
|
|
682
683
|
},
|
|
683
684
|
{
|
|
684
685
|
name: "goal",
|
|
@@ -690,7 +691,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
690
691
|
json: "boolean",
|
|
691
692
|
goalId: "string"
|
|
692
693
|
},
|
|
693
|
-
handler: async ({ options, rest }) => (await import("./cli-
|
|
694
|
+
handler: async ({ options, rest }) => (await import("./cli-5RL7B2Z3.js")).runGoalCommand(options, rest)
|
|
694
695
|
},
|
|
695
696
|
{
|
|
696
697
|
name: "harness",
|
|
@@ -711,13 +712,13 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
711
712
|
token: "string",
|
|
712
713
|
tokenFile: "string"
|
|
713
714
|
},
|
|
714
|
-
handler: async ({ options, rest }) => (await import("./harness-
|
|
715
|
+
handler: async ({ options, rest }) => (await import("./harness-SSNXDSKM.js")).runHarnessCommand(options, rest)
|
|
715
716
|
},
|
|
716
717
|
{
|
|
717
718
|
name: "sandbox",
|
|
718
719
|
usage: "openpond sandbox <command> [args]",
|
|
719
720
|
optionSchema: SANDBOX_OPTION_SCHEMA,
|
|
720
|
-
handler: async ({ options, rest }) => (await import("./sandbox-command-
|
|
721
|
+
handler: async ({ options, rest }) => (await import("./sandbox-command-HOYHF4NC.js")).runSandboxCommand(options, rest)
|
|
721
722
|
},
|
|
722
723
|
{
|
|
723
724
|
name: "opchat",
|
|
@@ -726,7 +727,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
726
727
|
json: "boolean",
|
|
727
728
|
stream: "boolean"
|
|
728
729
|
},
|
|
729
|
-
handler: async ({ options, rest }) => (await import("./opchat-
|
|
730
|
+
handler: async ({ options, rest }) => (await import("./opchat-RW4CFAQB.js")).runOpChatCommand(options, rest)
|
|
730
731
|
},
|
|
731
732
|
{
|
|
732
733
|
name: "teams-bot",
|
|
@@ -735,7 +736,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
735
736
|
json: "boolean",
|
|
736
737
|
teamId: "string"
|
|
737
738
|
},
|
|
738
|
-
handler: async ({ options, rest }) => (await import("./teams-bot-
|
|
739
|
+
handler: async ({ options, rest }) => (await import("./teams-bot-UWGCFL6C.js")).runTeamsBotCommand(options, rest)
|
|
739
740
|
},
|
|
740
741
|
{
|
|
741
742
|
name: "apps",
|
|
@@ -756,7 +757,7 @@ var CLI_COMMAND_REGISTRY = [
|
|
|
756
757
|
name: "opentool",
|
|
757
758
|
usage: "openpond opentool <init|validate|build> [args]",
|
|
758
759
|
optionSchema: {},
|
|
759
|
-
handler: async ({ rest }) => (await import("./core-commands-
|
|
760
|
+
handler: async ({ rest }) => (await import("./core-commands-AZJZGTZS.js")).runOpentool(rest)
|
|
760
761
|
}
|
|
761
762
|
];
|
|
762
763
|
var CLI_COMMAND_BY_NAME = /* @__PURE__ */ new Map();
|
|
@@ -773,7 +774,7 @@ function getCliCommandDefinition(command) {
|
|
|
773
774
|
return CLI_COMMAND_BY_NAME.get(command) ?? null;
|
|
774
775
|
}
|
|
775
776
|
function getCliOptionKind(command, key) {
|
|
776
|
-
const definition = command ? getCliCommandDefinition(command) :
|
|
777
|
+
const definition = command ? getCliCommandDefinition(command) : getCliCommandDefinition("ui");
|
|
777
778
|
return definition?.optionSchema[key] ?? CLI_GLOBAL_OPTION_SCHEMA[key];
|
|
778
779
|
}
|
|
779
780
|
function getAnyCliOptionKind(key) {
|
|
@@ -828,11 +829,11 @@ function profileSdkAliasDefinitions() {
|
|
|
828
829
|
name,
|
|
829
830
|
usage: `openpond ${name} [args]`,
|
|
830
831
|
optionSchema: PROFILE_SDK_OPTION_SCHEMA,
|
|
831
|
-
handler: async ({ options, rest }) => (await import("./profile-
|
|
832
|
+
handler: async ({ options, rest }) => (await import("./profile-WDBKJ7YW.js")).runOpenPondProfileSdkAlias(name, options, rest)
|
|
832
833
|
}));
|
|
833
834
|
}
|
|
834
835
|
async function runToolCommand({ options, rest }) {
|
|
835
|
-
const { runToolList, runToolRun } = await import("./core-commands-
|
|
836
|
+
const { runToolList, runToolRun } = await import("./core-commands-AZJZGTZS.js");
|
|
836
837
|
const subcommand = rest[0];
|
|
837
838
|
if (subcommand === "list") {
|
|
838
839
|
const target = rest[1];
|
|
@@ -856,8 +857,8 @@ async function runToolCommand({ options, rest }) {
|
|
|
856
857
|
throw new Error("usage: tool <list|run> <handle>/<repo> [args]");
|
|
857
858
|
}
|
|
858
859
|
async function runBacktestCommand({ options, rest }) {
|
|
859
|
-
const { runBacktestRun } = await import("./core-commands-
|
|
860
|
-
const { runBacktestEvents, runBacktestGet } = await import("./apps-
|
|
860
|
+
const { runBacktestRun } = await import("./core-commands-AZJZGTZS.js");
|
|
861
|
+
const { runBacktestEvents, runBacktestGet } = await import("./apps-4RMNCKXS.js");
|
|
861
862
|
const subcommand = rest[0] || "run";
|
|
862
863
|
if (subcommand === "run") {
|
|
863
864
|
const target = rest[1];
|
|
@@ -891,7 +892,7 @@ async function runBacktestCommand({ options, rest }) {
|
|
|
891
892
|
throw new Error("usage: backtest <run|events|get> <handle>/<repo> [args]");
|
|
892
893
|
}
|
|
893
894
|
async function runDeployCommand({ options, rest }) {
|
|
894
|
-
const { runDeployWatch } = await import("./core-commands-
|
|
895
|
+
const { runDeployWatch } = await import("./core-commands-AZJZGTZS.js");
|
|
895
896
|
const subcommand = rest[0] || "watch";
|
|
896
897
|
if (subcommand !== "watch") {
|
|
897
898
|
throw new Error(
|
|
@@ -907,7 +908,7 @@ async function runDeployCommand({ options, rest }) {
|
|
|
907
908
|
await runDeployWatch(options, target);
|
|
908
909
|
}
|
|
909
910
|
async function runTemplateCommand({ options, rest }) {
|
|
910
|
-
const { runTemplateBranches, runTemplateStatus, runTemplateUpdate } = await import("./core-commands-
|
|
911
|
+
const { runTemplateBranches, runTemplateStatus, runTemplateUpdate } = await import("./core-commands-AZJZGTZS.js");
|
|
911
912
|
const subcommand = rest[0] || "status";
|
|
912
913
|
const target = rest[1];
|
|
913
914
|
if (!target) {
|
|
@@ -932,7 +933,7 @@ async function runTemplateCommand({ options, rest }) {
|
|
|
932
933
|
);
|
|
933
934
|
}
|
|
934
935
|
async function runRepoCommand({ options, rest }) {
|
|
935
|
-
const { runRepoCreate, runRepoPush } = await import("./core-commands-
|
|
936
|
+
const { runRepoCreate, runRepoPush } = await import("./core-commands-AZJZGTZS.js");
|
|
936
937
|
const subcommand = rest[0] || "create";
|
|
937
938
|
if (subcommand === "create") {
|
|
938
939
|
await runRepoCreate(options, rest.slice(1));
|
|
@@ -962,7 +963,7 @@ async function runAppsCommand({ options, rest }) {
|
|
|
962
963
|
runAppsTools,
|
|
963
964
|
runAppsToolsExecute,
|
|
964
965
|
runAppsTradeFacts
|
|
965
|
-
} = await import("./apps-
|
|
966
|
+
} = await import("./apps-4RMNCKXS.js");
|
|
966
967
|
const subcommand = rest[0];
|
|
967
968
|
if (subcommand === "list") {
|
|
968
969
|
await runAppsList(options);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
DEFAULT_OPENPOND_OPCHAT_API_BASE_URL
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MFS3SYUH.js";
|
|
5
5
|
|
|
6
6
|
// ../../packages/cloud/src/hosted-chat.ts
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
parseSandboxRuntimeProfileIdOption,
|
|
5
5
|
parseSandboxRuntimePromotionPolicyOption,
|
|
6
6
|
parseSandboxWorkflowModeOption
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BNPFMGZD.js";
|
|
8
8
|
import {
|
|
9
9
|
parseBooleanOption,
|
|
10
10
|
parseCsvOption,
|
|
11
11
|
parseIntegerOption,
|
|
12
12
|
parseJsonOption,
|
|
13
13
|
parseNumberOption
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KMSMK7PI.js";
|
|
15
15
|
|
|
16
16
|
// src/cli/sandbox-helpers.ts
|
|
17
17
|
import { Buffer } from "node:buffer";
|
|
@@ -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-
|
|
5
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DANRS43D.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-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-BBEVMP6O.js";
|
|
7
|
+
import "./chunk-OV3KAFWB.js";
|
|
8
8
|
import "./chunk-VQX33YAG.js";
|
|
9
9
|
import "./chunk-LHYK6QO2.js";
|
|
10
10
|
import "./chunk-WYDVQOBL.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-BNPFMGZD.js";
|
|
12
|
+
import "./chunk-MFS3SYUH.js";
|
|
13
|
+
import "./chunk-KMSMK7PI.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-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-KEDXE4BA.js";
|
|
20
|
+
import "./chunk-BNPFMGZD.js";
|
|
21
|
+
import "./chunk-MFS3SYUH.js";
|
|
22
|
+
import "./chunk-KMSMK7PI.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-
|
|
2
|
+
import "./chunk-57P2GCW5.js";
|
|
3
3
|
import "./chunk-W5GKHH77.js";
|
|
4
4
|
import {
|
|
5
5
|
loadOpenPondProfileState
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-GGKA4HLQ.js";
|
|
7
|
+
import "./chunk-4S3XGFGL.js";
|
|
8
8
|
import {
|
|
9
9
|
createLocalGoal,
|
|
10
10
|
runGoalCommand
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-BBEVMP6O.js";
|
|
12
|
+
import "./chunk-OV3KAFWB.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-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-BNPFMGZD.js";
|
|
18
|
+
import "./chunk-MFS3SYUH.js";
|
|
19
|
+
import "./chunk-KMSMK7PI.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-
|
|
4
|
+
} from "./chunk-BNPFMGZD.js";
|
|
5
5
|
import {
|
|
6
6
|
CliUsageError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MFS3SYUH.js";
|
|
8
8
|
import {
|
|
9
9
|
optionString,
|
|
10
10
|
parseBooleanOption
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KMSMK7PI.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-
|
|
6
|
+
} from "./chunk-KMSMK7PI.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-
|
|
4
|
+
} from "./chunk-57P2GCW5.js";
|
|
5
5
|
import {
|
|
6
6
|
getOpChatModel,
|
|
7
7
|
listOpChatModels,
|
|
8
8
|
resolveOpChatApiBaseUrl,
|
|
9
9
|
sendHostedChatTurn,
|
|
10
10
|
streamHostedChatTurn
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OV3KAFWB.js";
|
|
12
12
|
import {
|
|
13
13
|
ensureApiKey,
|
|
14
14
|
loadConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BNPFMGZD.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveApiBaseUrlOption,
|
|
18
18
|
resolveBaseUrl,
|
|
19
19
|
resolveChatApiBaseUrlOption
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MFS3SYUH.js";
|
|
21
21
|
import {
|
|
22
22
|
parseBooleanOption
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KMSMK7PI.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-
|
|
5
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-BNPFMGZD.js";
|
|
11
|
+
import "./chunk-MFS3SYUH.js";
|
|
6
12
|
import {
|
|
7
13
|
parseBooleanOption,
|
|
8
14
|
parseCsvOption,
|
|
9
15
|
parseIntegerOption,
|
|
10
16
|
parseJsonOption
|
|
11
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KMSMK7PI.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
|
|
237
|
-
|
|
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
|
-
|
|
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-
|
|
8
|
+
} from "./chunk-BNVHGSI7.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-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-GGKA4HLQ.js";
|
|
26
|
+
import "./chunk-4S3XGFGL.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-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-BNPFMGZD.js";
|
|
35
|
+
import "./chunk-MFS3SYUH.js";
|
|
36
36
|
import {
|
|
37
37
|
optionString,
|
|
38
38
|
parseBooleanOption,
|
|
39
39
|
requiredTeamId
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-KMSMK7PI.js";
|
|
41
41
|
import "./chunk-UACZUFIA.js";
|
|
42
42
|
|
|
43
43
|
// src/cli/profile.ts
|