openpond 0.1.0 → 0.2.0
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 +4 -4
- package/dist/cache.d.ts +7 -10
- package/dist/chunks/{app-layer-XEYHFJHI.js → app-layer-F3CGXB33.js} +9 -7
- package/dist/chunks/{app-server-runtime-Y6MW4XCG.js → app-server-runtime-RHO5TFUC.js} +9 -7
- package/dist/chunks/{apps-GSXUDK6V.js → apps-L5XCL7QY.js} +12 -10
- package/dist/chunks/{chunk-J7PYGDRY.js → chunk-26AMV5ZI.js} +1 -1
- package/dist/chunks/{chunk-DNXBJZAU.js → chunk-3EB7I67T.js} +1 -1
- package/dist/chunks/{chunk-J3YDKJFD.js → chunk-3ELF4FXY.js} +19 -11
- package/dist/chunks/{chunk-HFPUR4CQ.js → chunk-3VEYNDHN.js} +10 -10
- package/dist/chunks/chunk-4KA25HUP.js +5648 -0
- package/dist/chunks/{chunk-EFET7LB7.js → chunk-6SMNG6YA.js} +62 -90
- package/dist/chunks/{chunk-N3TGCM7J.js → chunk-7RIGZB7N.js} +50 -37
- package/dist/chunks/{chunk-47EIAYI7.js → chunk-A6G3PFA5.js} +6 -4
- package/dist/chunks/{chunk-D7BO5Y5J.js → chunk-FJ2JGB2N.js} +31 -189
- package/dist/chunks/{chunk-WBAZFKC7.js → chunk-G65WAOJV.js} +2 -2
- package/dist/chunks/{chunk-CNTM26OW.js → chunk-K4TZEHAW.js} +16 -16
- package/dist/chunks/{chunk-AN2EYCN3.js → chunk-KCRCIQPD.js} +1 -5
- package/dist/chunks/chunk-OCBRPU2K.js +629 -0
- package/dist/chunks/{chunk-2JABRRNR.js → chunk-PS37DB5F.js} +1 -1
- package/dist/chunks/{chunk-TGM5IPYO.js → chunk-UZMVNKXM.js} +1 -1
- package/dist/chunks/{chunk-TZWAUV2L.js → chunk-VT6BLHMB.js} +10750 -1240
- package/dist/chunks/{chunk-5TKZBMQM.js → chunk-X6F4LBTQ.js} +102 -1
- package/dist/chunks/{chunk-6G6MDZLM.js → chunk-XA4KBDMY.js} +213 -999
- package/dist/chunks/chunk-ZNQEROWP.js +254 -0
- package/dist/chunks/{cli-L5VPOV6I.js → cli-D2MUUBEX.js} +7 -5
- package/dist/chunks/configuration-command-NR6JYIUD.js +187 -0
- package/dist/chunks/{continual-FYDKLCO7.js → continual-37CE4LLJ.js} +4 -4
- package/dist/chunks/{core-commands-MAN3CSJQ.js → core-commands-SWGIOZLW.js} +8 -6
- package/dist/chunks/database-DEYUZDIM.js +20 -0
- package/dist/chunks/{desktop-test-OE5SST2W.js → desktop-test-QOS7G5NE.js} +8 -6
- package/dist/chunks/dist-AKYCQNNF.js +187 -0
- package/dist/chunks/{extension-J3CIEDP4.js → extension-HJUJBQAD.js} +67 -730
- package/dist/chunks/{help-JNGJJFU5.js → help-J6PZ23IC.js} +1 -1
- package/dist/chunks/{opchat-6HEQJFLL.js → opchat-ABX5YBAT.js} +9 -7
- package/dist/chunks/{organizations-MWAPNOCK.js → organizations-CPNC47DO.js} +8 -6
- package/dist/chunks/{profile-P7HMONTZ.js → profile-Q3HB5MIO.js} +16 -14
- package/dist/chunks/{project-agent-2RAK7GAZ.js → project-agent-YHUBX4OR.js} +9 -7
- package/dist/chunks/{sandbox-command-G22CPFNK.js → sandbox-command-YFL5QTWX.js} +8 -6
- package/dist/chunks/{sandbox-template-S4WRUWJ6.js → sandbox-template-Z6P7NTNF.js} +12 -10
- package/dist/chunks/{src-BKBZ7WLO.js → src-7XEENEBI.js} +16 -12
- package/dist/chunks/{src-A6O6ZGIL.js → src-KBBIV4NT.js} +1338 -10969
- package/dist/chunks/{taskset-BMI7KOWP.js → taskset-2TRZBRRT.js} +1 -1
- package/dist/chunks/{teams-bot-5VBYEN7M.js → teams-bot-WD33NLH5.js} +7 -5
- package/dist/chunks/{training-UPVSGDTB.js → training-4XH37UZB.js} +1 -1
- package/dist/chunks/{workspaces-XM5BY3MO.js → workspaces-WG2MH2WE.js} +2 -2
- package/dist/cli.js +25 -17
- package/dist/client.d.ts +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/index.js +20803 -15878
- package/dist/private-json-file.d.ts +1 -2
- package/dist/skills/openpond-desktop-harness/SKILL.md +1 -1
- package/dist/web/assets/App-C9aGkxVg.js +173 -0
- package/dist/web/assets/{AppDialog-CSXu5wRu.js → AppDialog-CK6_lg8c.js} +1 -1
- package/dist/web/assets/{AppTerminalPanel-y2bVL2RV.js → AppTerminalPanel-BKqgX4sd.js} +2 -2
- package/dist/web/assets/{AppsView-Bs9pwD2H.js → AppsView-B1NUuAIf.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-CUgT5V1m.js → BrowserSidebar-DOvYxXeP.js} +1 -1
- package/dist/web/assets/{CartesianChart-DA85hfrP.js → CartesianChart-pOrYpzBr.js} +1 -1
- package/dist/web/assets/{CollaborationTabs-B8mlPhM3.js → CollaborationTabs-CgbR-MBJ.js} +1 -1
- package/dist/web/assets/{CommandMenu-EwUGCeC_.js → CommandMenu-CrIr4qUX.js} +1 -1
- package/dist/web/assets/{CommunityView-IHNq-YJz.js → CommunityView-CvAVQ_HZ.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-qOL2zA26.js → ComposerCreateImproveStrip-DybcKwwd.js} +1 -1
- package/dist/web/assets/GetStartedView-DVInkexN.js +1 -0
- package/dist/web/assets/{LabModelVersionDetailPage-BK0eoUlW.js → LabModelVersionDetailPage-NaaPElmM.js} +1 -1
- package/dist/web/assets/{LabSkillSidebar-CRPb4qBn.js → LabSkillSidebar-CuaYrtiu.js} +1 -1
- package/dist/web/assets/LabsRoute-BRR6x3SX.js +2 -0
- package/dist/web/assets/{MainChatThread-Cu6_UnNE.js → MainChatThread-BfkjCZB9.js} +2 -2
- package/dist/web/assets/MainPane-Gw-YK38n.js +8 -0
- package/dist/web/assets/{MarkdownText-N60tvLug.js → MarkdownText-DOlVQR8a.js} +1 -1
- package/dist/web/assets/{Messages-CYQFLElK.js → Messages-DMubppta.js} +6 -6
- package/dist/web/assets/{NativeSkillSidebar-zbx7WmOk.js → NativeSkillSidebar-DSFwZ-od.js} +1 -1
- package/dist/web/assets/{NewExperienceSwitcher-B0zev5Sx.js → NewExperienceSwitcher-Dj0ePIJ-.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-lZlzrp-R.js → NewProjectDialog-B8NQV-Ji.js} +1 -1
- package/dist/web/assets/{OutputsPage-B4zYYUT5.js → OutputsPage-D_LDYTgV.js} +1 -1
- package/dist/web/assets/{ProjectsPage-97wgc84s.js → ProjectsPage-xjDYPc_W.js} +1 -1
- package/dist/web/assets/RightChatPanelStack-BktRQ9wg.js +1 -0
- package/dist/web/assets/{RightSidebarHomePanel-BUcWVJi-.js → RightSidebarHomePanel-j0VckZUu.js} +1 -1
- package/dist/web/assets/ScheduledWorkPage-1aT4bBY-.js +1 -0
- package/dist/web/assets/SettingsView-BSpuMDpv.js +9 -0
- package/dist/web/assets/SettingsView-CAH0vreE.css +1 -0
- package/dist/web/assets/{TeamChatView-Fj5_yjVE.js → TeamChatView-BPWJbDf1.js} +2 -2
- package/dist/web/assets/{TerminalOverlay-D2WBeJvp.js → TerminalOverlay-CrSwUk2d.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-dYW_dh3M.js → TrainingCreationPanel-B4HMRwUg.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-zeJWmmW6.js → TrainingDraftPanel-D4r1tN3I.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-B6SBqYuB.js → UsageSettingsSection-2aymqwIM.js} +1 -1
- package/dist/web/assets/{WorkSidebarPanel-BwbWKpOZ.js → WorkSidebarPanel-B0X0OiR6.js} +1 -1
- package/dist/web/assets/WorkspaceDiffPanel-Pg7GL0br.js +14 -0
- package/dist/web/assets/{WorkspaceEnvironmentMenu-D-3YGp06.js → WorkspaceEnvironmentMenu-OAfMEt7L.js} +3 -3
- package/dist/web/assets/{WorkspaceGitDialogs-BUbzUN4m.js → WorkspaceGitDialogs-YxcPH2Rq.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-CXPY7bBI.js → WorkspaceMonacoEditor-COKTiQZl.js} +3 -3
- package/dist/web/assets/{arrow-up-right-C7VWgGQP.js → arrow-up-right-_TX-awvK.js} +1 -1
- package/dist/web/assets/{chat-file-links-CqfMdhHQ.js → chat-file-links-CWLsRYvW.js} +1 -1
- package/dist/web/assets/chevron-up--mNnEqha.js +1 -0
- package/dist/web/assets/{clipboard-B-8k7mlT.js → clipboard-CyRSS8Sy.js} +1 -1
- package/dist/web/assets/{cloud-upload-CUVFzURz.js → cloud-upload-uBJBUYTy.js} +1 -1
- package/dist/web/assets/{cssMode-DYvfmqoL.js → cssMode-BrXSsZYs.js} +1 -1
- package/dist/web/assets/{folder-open-CnbcQIy8.js → folder-open-DktdZNW7.js} +1 -1
- package/dist/web/assets/{folder-plus-BOaLAKy4.js → folder-plus-DO06i9Vo.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-DQeHsooT.js → git-commit-horizontal-zFSIkPs7.js} +1 -1
- package/dist/web/assets/{htmlMode-BXEI-BVY.js → htmlMode-X9UMFkjt.js} +1 -1
- package/dist/web/assets/index-BEPmTPIA.js +1 -0
- package/dist/web/assets/{index-CGMb_VXm.css → index-ByQIHpc9.css} +1 -1
- package/dist/web/assets/{index-D-VK8mST.js → index-UOGdfLzi.js} +1 -1
- package/dist/web/assets/{info-DtzDuGLn.js → info-BEJXUqCD.js} +1 -1
- package/dist/web/assets/{jsonMode-Dosjh_hK.js → jsonMode-DIsB-j2E.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-BNe-6FJA.js → lspLanguageFeatures-CmZ17KpA.js} +1 -1
- package/dist/web/assets/{minimize-2-DnxKN5oK.js → minimize-2-DumTpFtE.js} +1 -1
- package/dist/web/assets/{monaco.contribution-CfF-ajhi.js → monaco.contribution-D6w5PJji.js} +2 -2
- package/dist/web/assets/{monaco.contribution-ytyanGyj.js → monaco.contribution-DJ_NmcHu.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CnkROzNv.js → monaco.contribution-LZEujgny.js} +2 -2
- package/dist/web/assets/{monaco.contribution-Dyns81H2.js → monaco.contribution-YVDfJcG4.js} +2 -2
- package/dist/web/assets/{play-B3o6IAQd.js → play-CLFeH7CU.js} +1 -1
- package/dist/web/assets/{python-B7zZ_9Z_.js → python-Djbda_qZ.js} +1 -1
- package/dist/web/assets/{refresh-cw-DSJZXa8S.js → refresh-cw-B4IpQ_7Q.js} +1 -1
- package/dist/web/assets/{save-iC-AXHN6.js → save-BbTHztnA.js} +1 -1
- package/dist/web/assets/{square-B2roZTxf.js → square-BJrVbmz6.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-CjlV4YHK.js → toggleHighContrast-BopU5W9S.js} +1 -1
- package/dist/web/assets/{tsMode-XmKmSq0B.js → tsMode-CH_0_YDX.js} +1 -1
- package/dist/web/assets/{upload-BgHXNjfJ.js → upload-UumVeufu.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-CVJz0AMr.js → useLocalAgentSchedules-BRa23U7O.js} +1 -1
- package/dist/web/assets/{wifi-off-CneL8bDZ.js → wifi-off-BWJWivn6.js} +1 -1
- package/dist/web/assets/{workers-CT7VYBR5.js → workers-pTe8RvSI.js} +1 -1
- package/dist/web/assets/{yaml-CF8jchCz.js → yaml-DNLASORn.js} +1 -1
- package/dist/web/index.html +2 -2
- package/docs/command-reference.md +28 -2
- package/package.json +7 -5
- package/dist/chunks/chunk-P6JLLWMI.js +0 -238
- package/dist/web/assets/App-DfiCmBv6.js +0 -173
- package/dist/web/assets/GetStartedView-C2ypO0v7.js +0 -1
- package/dist/web/assets/LabsRoute-Bw-HD6QC.js +0 -2
- package/dist/web/assets/MainPane-k1iII9e9.js +0 -8
- package/dist/web/assets/RightChatPanelStack-I2znDCc7.js +0 -1
- package/dist/web/assets/ScheduledWorkPage-Bp-t0eVj.js +0 -1
- package/dist/web/assets/SettingsView-BRPrJuP5.css +0 -1
- package/dist/web/assets/SettingsView-C1xyn1Y4.js +0 -6
- package/dist/web/assets/WorkspaceDiffPanel-D9Kp0vFw.js +0 -14
- package/dist/web/assets/chevron-up-DD9Tei-Q.js +0 -1
- package/dist/web/assets/index-D-WCyNdJ.js +0 -1
|
@@ -1,8 +1,77 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
acquireFileLock,
|
|
4
|
+
assertHomeCompatible,
|
|
5
|
+
atomicWriteFile,
|
|
6
|
+
readJsonFile,
|
|
7
|
+
readOptionalFile,
|
|
8
|
+
withFileLock
|
|
9
|
+
} from "./chunk-4KA25HUP.js";
|
|
10
|
+
import {
|
|
11
|
+
PersistenceError,
|
|
12
|
+
resolveOpenPondHome,
|
|
13
|
+
storagePaths,
|
|
14
|
+
withOpenPondHome
|
|
15
|
+
} from "./chunk-ZNQEROWP.js";
|
|
2
16
|
import {
|
|
3
17
|
external_exports
|
|
4
18
|
} from "./chunk-FQS2QL5F.js";
|
|
5
19
|
|
|
20
|
+
// ../server/src/runtime/home-runtime-owner.ts
|
|
21
|
+
import path from "node:path";
|
|
22
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
23
|
+
import { promises as fs } from "node:fs";
|
|
24
|
+
var startupDisposers = new AsyncLocalStorage();
|
|
25
|
+
function onStartupFailure(dispose, replacesEarlier = false) {
|
|
26
|
+
const disposers = startupDisposers.getStore();
|
|
27
|
+
if (!disposers) return;
|
|
28
|
+
if (replacesEarlier) disposers.length = 0;
|
|
29
|
+
disposers.push(dispose);
|
|
30
|
+
}
|
|
31
|
+
async function ownHomeRuntime(home, start) {
|
|
32
|
+
await assertHomeCompatible(home);
|
|
33
|
+
let release;
|
|
34
|
+
try {
|
|
35
|
+
release = await acquireFileLock(path.join(storagePaths(home).runtime, "server-owner"), 100);
|
|
36
|
+
} catch (error) {
|
|
37
|
+
if (error instanceof PersistenceError && error.issue.code === "STORAGE_BUSY") {
|
|
38
|
+
const endpoint = await readJsonFile(path.join(storagePaths(home).runtime, "endpoint.json"), () => null);
|
|
39
|
+
throw new PersistenceError({
|
|
40
|
+
code: "RUNTIME_ALREADY_RUNNING",
|
|
41
|
+
path: home,
|
|
42
|
+
message: "An OpenPond runtime already owns this home.",
|
|
43
|
+
action: endpoint?.url ? `Connect to the existing runtime at ${endpoint.url}, or stop it before starting another.` : "Stop the existing runtime before starting another with this home."
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
throw error;
|
|
47
|
+
}
|
|
48
|
+
const disposers = [];
|
|
49
|
+
try {
|
|
50
|
+
const runtime = await withOpenPondHome(home, () => startupDisposers.run(disposers, start)), close = runtime.close.bind(runtime);
|
|
51
|
+
disposers.length = 0;
|
|
52
|
+
let closing;
|
|
53
|
+
return { ...runtime, close: () => closing ??= (async () => {
|
|
54
|
+
try {
|
|
55
|
+
await withOpenPondHome(home, close);
|
|
56
|
+
} finally {
|
|
57
|
+
await fs.rm(path.join(storagePaths(home).runtime, "endpoint.json"), { force: true });
|
|
58
|
+
await release();
|
|
59
|
+
}
|
|
60
|
+
})() };
|
|
61
|
+
} catch (error) {
|
|
62
|
+
try {
|
|
63
|
+
for (const dispose of disposers.reverse()) await Promise.resolve().then(() => withOpenPondHome(home, dispose)).catch(() => void 0);
|
|
64
|
+
await fs.rm(path.join(storagePaths(home).runtime, "endpoint.json"), { force: true });
|
|
65
|
+
} finally {
|
|
66
|
+
await release();
|
|
67
|
+
}
|
|
68
|
+
throw error;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async function publishRuntimeEndpoint(home, url, serverId) {
|
|
72
|
+
await atomicWriteFile(path.join(storagePaths(home).runtime, "endpoint.json"), JSON.stringify({ schemaVersion: "openpond.runtimeEndpoint.v1", pid: process.pid, url, serverId }));
|
|
73
|
+
}
|
|
74
|
+
|
|
6
75
|
// ../../packages/agent-runtime/dist/compaction.js
|
|
7
76
|
function agentCompactionDecision(input) {
|
|
8
77
|
if (!input.maxContextTokens || !input.usableContextTokens) {
|
|
@@ -710,7 +779,34 @@ async function runAppServerJsonl(input) {
|
|
|
710
779
|
}
|
|
711
780
|
}
|
|
712
781
|
|
|
782
|
+
// ../server/src/paths.ts
|
|
783
|
+
import { randomBytes } from "node:crypto";
|
|
784
|
+
function appDataDir() {
|
|
785
|
+
return resolveOpenPondHome();
|
|
786
|
+
}
|
|
787
|
+
function providersConfigPath(storeDir) {
|
|
788
|
+
return storagePaths(storeDir).config;
|
|
789
|
+
}
|
|
790
|
+
function providerSecretsConfigPath(storeDir) {
|
|
791
|
+
return storagePaths(storeDir).credentials;
|
|
792
|
+
}
|
|
793
|
+
function providerSecretsKeyPath(storeDir) {
|
|
794
|
+
return storagePaths(storeDir).key;
|
|
795
|
+
}
|
|
796
|
+
async function ensureCapabilityToken(storeDir) {
|
|
797
|
+
const tokenFile = storagePaths(storeDir).token;
|
|
798
|
+
return withFileLock(tokenFile, async () => {
|
|
799
|
+
const existing = (await readOptionalFile(tokenFile))?.trim();
|
|
800
|
+
const token = process.env.OPENPOND_APP_TOKEN || existing || randomBytes(32).toString("base64url");
|
|
801
|
+
if (token !== existing) await atomicWriteFile(tokenFile, token);
|
|
802
|
+
return { token, tokenFile };
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
|
|
713
806
|
export {
|
|
807
|
+
onStartupFailure,
|
|
808
|
+
ownHomeRuntime,
|
|
809
|
+
publishRuntimeEndpoint,
|
|
714
810
|
canonicalHash,
|
|
715
811
|
agentCompactionDecision,
|
|
716
812
|
runAgentCompaction,
|
|
@@ -727,5 +823,10 @@ export {
|
|
|
727
823
|
createAgentToolCatalogProjection,
|
|
728
824
|
executeProjectedAgentTool,
|
|
729
825
|
createAppServer,
|
|
730
|
-
runAppServerJsonl
|
|
826
|
+
runAppServerJsonl,
|
|
827
|
+
appDataDir,
|
|
828
|
+
providersConfigPath,
|
|
829
|
+
providerSecretsConfigPath,
|
|
830
|
+
providerSecretsKeyPath,
|
|
831
|
+
ensureCapabilityToken
|
|
731
832
|
};
|