openpond 0.0.58 → 0.0.60
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/dist/chunks/{app-server-runtime-WYIRC5LV.js → app-server-runtime-7LGK37P6.js} +4 -3
- package/dist/chunks/{chunk-QIB27QOT.js → chunk-AHILPQXV.js} +1 -1
- package/dist/chunks/{chunk-BFR6VZ2A.js → chunk-LDRWEAOB.js} +1 -1
- package/dist/chunks/{chunk-OI65U2B5.js → chunk-TOCZQEPW.js} +1 -1
- package/dist/chunks/{chunk-AD6KZWHL.js → chunk-XFZYNYRI.js} +7494 -6486
- package/dist/chunks/{cli-EPVMUYQT.js → cli-DBZ7S6ZF.js} +2 -2
- package/dist/chunks/{src-NJYDLJ2M.js → src-E2UCLY54.js} +857 -1816
- package/dist/chunks/{src-SR3UHNV4.js → src-KLQEJ6RO.js} +19 -1
- package/dist/chunks/{workspaces-N2WWI77O.js → workspaces-4OKABHI3.js} +2 -2
- package/dist/cli.js +6 -6
- package/package.json +1 -1
|
@@ -2728,6 +2728,15 @@ async function runOneShotChat(options, io = {}) {
|
|
|
2728
2728
|
actionId: action.id
|
|
2729
2729
|
}
|
|
2730
2730
|
}));
|
|
2731
|
+
const localProjectId = readySession?.localProjectId ?? sessionState.session?.localProjectId ?? null;
|
|
2732
|
+
const projectActionCatalog = localProjectId ? await deadline.run(
|
|
2733
|
+
"Project Action catalog",
|
|
2734
|
+
loadLocalProjectActionCatalog(
|
|
2735
|
+
{ ...connection, signal: deadline.signal },
|
|
2736
|
+
localProjectId
|
|
2737
|
+
)
|
|
2738
|
+
) : [];
|
|
2739
|
+
const openPondActionCatalog = [...profileActionCatalog, ...projectActionCatalog];
|
|
2731
2740
|
await deadline.run("turn submission", apiFetch(connection.server, connection.token, `/v1/sessions/${activeSessionId}/turns`, {
|
|
2732
2741
|
method: "POST",
|
|
2733
2742
|
body: JSON.stringify({
|
|
@@ -2735,7 +2744,7 @@ async function runOneShotChat(options, io = {}) {
|
|
|
2735
2744
|
...options.cwdExplicit || !options.project && !options.resume ? { cwd: options.cwd } : {},
|
|
2736
2745
|
model: modelId,
|
|
2737
2746
|
modelRef: activeModelRef(options, payload.providers),
|
|
2738
|
-
...
|
|
2747
|
+
...openPondActionCatalog.length > 0 ? { openPondActionCatalog } : {},
|
|
2739
2748
|
approvalPolicy: options.yes ? "never" : options.approvalPolicy,
|
|
2740
2749
|
sandbox: options.sandbox,
|
|
2741
2750
|
metadata: {
|
|
@@ -2807,6 +2816,15 @@ async function runOneShotChat(options, io = {}) {
|
|
|
2807
2816
|
if (timedOut && !options.json) output2.write("\n[turn timeout]\n");
|
|
2808
2817
|
}
|
|
2809
2818
|
}
|
|
2819
|
+
async function loadLocalProjectActionCatalog(connection, projectId) {
|
|
2820
|
+
const result = await apiFetch(
|
|
2821
|
+
connection.server,
|
|
2822
|
+
connection.token,
|
|
2823
|
+
`/v1/projects/${encodeURIComponent(projectId)}/actions`,
|
|
2824
|
+
{ signal: connection.signal }
|
|
2825
|
+
);
|
|
2826
|
+
return result.actions;
|
|
2827
|
+
}
|
|
2810
2828
|
function profileActionMatchesAgent(action, agentId) {
|
|
2811
2829
|
if (!agentId) return true;
|
|
2812
2830
|
return action.agentId === agentId || action.id === agentId || action.id.startsWith(`${agentId}.`);
|
|
@@ -45,8 +45,8 @@ import {
|
|
|
45
45
|
truncatePatch,
|
|
46
46
|
uniqueSortedPaths,
|
|
47
47
|
workspaceImageContentType
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-LDRWEAOB.js";
|
|
49
|
+
import "./chunk-TOCZQEPW.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-
|
|
74
|
-
import("./chunks/cli-
|
|
73
|
+
import("./chunks/app-server-runtime-7LGK37P6.js"),
|
|
74
|
+
import("./chunks/cli-DBZ7S6ZF.js")
|
|
75
75
|
]);
|
|
76
76
|
await runOpenPondAppServerCli(createOpenPondAppServer);
|
|
77
77
|
return true;
|
|
@@ -79,15 +79,15 @@ 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-
|
|
83
|
-
import("./chunks/cli-
|
|
82
|
+
import("./chunks/src-E2UCLY54.js"),
|
|
83
|
+
import("./chunks/cli-DBZ7S6ZF.js")
|
|
84
84
|
]);
|
|
85
|
-
const { createOpenPondAppServer } = await import("./chunks/app-server-runtime-
|
|
85
|
+
const { createOpenPondAppServer } = await import("./chunks/app-server-runtime-7LGK37P6.js");
|
|
86
86
|
await runOpenPondServerCli({ createOpenPondServer, createOpenPondAppServer });
|
|
87
87
|
return true;
|
|
88
88
|
}
|
|
89
89
|
if (argv[0] === "__terminal") {
|
|
90
|
-
await (await import("./chunks/src-
|
|
90
|
+
await (await import("./chunks/src-KLQEJ6RO.js")).runOpenPondTerminalCli(argv.slice(1));
|
|
91
91
|
return true;
|
|
92
92
|
}
|
|
93
93
|
return false;
|