openpond 0.2.0 → 0.2.1
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/actions-command-QP3NMDK4.js +2 -0
- package/dist/chunks/app-layer-N7VFRVJ2.js +3 -0
- package/dist/chunks/app-server-runtime-OCLPUI7F.js +2 -0
- package/dist/chunks/apps-AMG75TI4.js +2 -0
- package/dist/chunks/chunk-22UARBPW.js +3 -0
- package/dist/chunks/chunk-3A7HZJNE.js +1 -0
- package/dist/chunks/chunk-3M53YXEI.js +2 -0
- package/dist/chunks/chunk-3NDRIQTI.js +2 -0
- package/dist/chunks/chunk-5BBVEWG3.js +2 -0
- package/dist/chunks/chunk-5O7ZVCMV.js +6 -0
- package/dist/chunks/chunk-6FA3GG5B.js +33 -0
- package/dist/chunks/chunk-6MI4KKWF.js +2 -0
- package/dist/chunks/chunk-BBG546O6.js +6 -0
- package/dist/chunks/chunk-BX4J2VDU.js +2 -0
- package/dist/chunks/chunk-BZMVB3GS.js +2 -0
- package/dist/chunks/chunk-C5LOZSVS.js +2 -0
- package/dist/chunks/chunk-CWQWV2T3.js +2 -0
- package/dist/chunks/chunk-DUA3QP6Y.js +19 -0
- package/dist/chunks/chunk-EAPFMACH.js +10 -0
- package/dist/chunks/chunk-ES2ISFJC.js +66 -0
- package/dist/chunks/chunk-F65NIZLM.js +2199 -0
- package/dist/chunks/chunk-FGJ5LFPL.js +5 -0
- package/dist/chunks/chunk-FTQLQJQV.js +2 -0
- package/dist/chunks/chunk-FY7OQ5RK.js +24 -0
- package/dist/chunks/chunk-FYCJSUFV.js +53 -0
- package/dist/chunks/chunk-GLUWATL5.js +2 -0
- package/dist/chunks/chunk-H7IWJN7L.js +17 -0
- package/dist/chunks/chunk-HZP5U2AA.js +3 -0
- package/dist/chunks/chunk-I5K74TOH.js +3 -0
- package/dist/chunks/chunk-IR3YJWPW.js +7 -0
- package/dist/chunks/chunk-KU7QOHFT.js +2872 -0
- package/dist/chunks/chunk-KV553EWX.js +16 -0
- package/dist/chunks/chunk-MGN6GLNZ.js +2 -0
- package/dist/chunks/chunk-OG5Q6NXK.js +28 -0
- package/dist/chunks/chunk-OGPHXXCD.js +1 -0
- package/dist/chunks/chunk-PI36UHRA.js +18 -0
- package/dist/chunks/chunk-RWSAGQTP.js +2 -0
- package/dist/chunks/chunk-SAE4OIPC.js +2 -0
- package/dist/chunks/chunk-SDO4FC4Q.js +2 -0
- package/dist/chunks/chunk-UKUVMXOW.js +12 -0
- package/dist/chunks/chunk-VCLCFK3O.js +36 -0
- package/dist/chunks/chunk-VYUMTRB3.js +5 -0
- package/dist/chunks/chunk-X37KMV27.js +1 -0
- package/dist/chunks/chunk-XDHAGACI.js +3 -0
- package/dist/chunks/chunk-XEOEKFG6.js +71 -0
- package/dist/chunks/chunk-ZF7TEGY5.js +5 -0
- package/dist/chunks/chunk-ZVOO7FKM.js +2 -0
- package/dist/chunks/cli-M2FG7SSI.js +2 -0
- package/dist/chunks/configuration-command-XBKBIZBO.js +2 -0
- package/dist/chunks/continual-D75WA7E7.js +7 -0
- package/dist/chunks/core-commands-LUZVWXQR.js +2 -0
- package/dist/chunks/database-X2CUV732.js +2 -0
- package/dist/chunks/desktop-test-KGC4JVJ7.js +3 -0
- package/dist/chunks/dist-NKLXFA37.js +2 -0
- package/dist/chunks/extension-NQ7N5LEY.js +5 -0
- package/dist/chunks/help-MWK66XZK.js +8 -0
- package/dist/chunks/module-ES6BEMUI-ZVL3F6NW.js +2 -0
- package/dist/chunks/module-asyncify-2EFITU5U-R7TVXNAE.js +2 -0
- package/dist/chunks/opchat-XJZA3QKZ.js +3 -0
- package/dist/chunks/organizations-UECDFEYE.js +2 -0
- package/dist/chunks/profile-KUMIZURM.js +3 -0
- package/dist/chunks/project-agent-NILMJHLV.js +2 -0
- package/dist/chunks/sandbox-command-QHH65OSE.js +2 -0
- package/dist/chunks/sandbox-template-N7I63PNU.js +10 -0
- package/dist/chunks/src-724HF43W.js +82 -0
- package/dist/chunks/src-VTKTTKQO.js +319 -0
- package/dist/chunks/taskset-PISBOILQ.js +2 -0
- package/dist/chunks/teams-bot-UV4RU53M.js +3 -0
- package/dist/chunks/training-2NDOWH5S.js +2 -0
- package/dist/chunks/workspaces-XXT4KUD3.js +2 -0
- package/dist/cli.js +3 -109
- package/dist/index.js +1 -31230
- package/dist/sandbox-template/manifest.js +1 -18380
- package/dist/web/assets/App-DxecRQUL.js +176 -0
- package/dist/web/assets/AppDialog-B65Eo3gp.js +1 -0
- package/dist/web/assets/AppTerminalPanel-B2EKQM7W.js +2 -0
- package/dist/web/assets/{AppsView-B1NUuAIf.js → AppsView-BBoVe7s2.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-DOvYxXeP.js → BrowserSidebar-CSM1atSJ.js} +1 -1
- package/dist/web/assets/{CartesianChart-pOrYpzBr.js → CartesianChart-CJKfXiEG.js} +1 -1
- package/dist/web/assets/{CollaborationTabs-CgbR-MBJ.js → CollaborationTabs-BMZamWFC.js} +1 -1
- package/dist/web/assets/{CommandMenu-CrIr4qUX.js → CommandMenu-B3U1z2eo.js} +1 -1
- package/dist/web/assets/{CommunityView-CvAVQ_HZ.js → CommunityView-CTyRUcfy.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-DybcKwwd.js → ComposerCreateImproveStrip-D7usvRtK.js} +1 -1
- package/dist/web/assets/GetStartedView-Ibu7oKWJ.js +1 -0
- package/dist/web/assets/HostedModelLearningReview-qnzIkT70.js +1 -0
- package/dist/web/assets/HostedModelLearningSettings--PKjpYsy.js +1 -0
- package/dist/web/assets/LabModelVersionDetailPage-s9uUN6fV.js +1 -0
- package/dist/web/assets/{LabSkillSidebar-CuaYrtiu.js → LabSkillSidebar-BKYseMiJ.js} +1 -1
- package/dist/web/assets/LabsRoute-C1FWCoYb.css +1 -0
- package/dist/web/assets/LabsRoute-DoRs0K6v.js +32 -0
- package/dist/web/assets/MainChatThread-DvuyMcMB.js +2 -0
- package/dist/web/assets/MainPane-BWwcxgHD.js +8 -0
- package/dist/web/assets/{MarkdownText-DOlVQR8a.js → MarkdownText-D8XC5UT_.js} +1 -1
- package/dist/web/assets/{Messages-DMubppta.js → Messages-e4A8JUjD.js} +6 -6
- package/dist/web/assets/{NativeSkillSidebar-DSFwZ-od.js → NativeSkillSidebar-D2Joh8XB.js} +1 -1
- package/dist/web/assets/{NewExperienceSwitcher-Dj0ePIJ-.js → NewExperienceSwitcher-CzGebt2E.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-B8NQV-Ji.js → NewProjectDialog-CdMTSxUE.js} +1 -1
- package/dist/web/assets/{OutputsPage-D_LDYTgV.js → OutputsPage-m7cSb8dW.js} +1 -1
- package/dist/web/assets/{ProjectsPage-xjDYPc_W.js → ProjectsPage-C9mz8W1g.js} +1 -1
- package/dist/web/assets/RightChatPanelStack-B4LEqKEj.js +1 -0
- package/dist/web/assets/{RightSidebarHomePanel-j0VckZUu.js → RightSidebarHomePanel-DOeUsH7h.js} +1 -1
- package/dist/web/assets/{ScheduledWorkPage-1aT4bBY-.js → ScheduledWorkPage-UXZSSWgA.js} +1 -1
- package/dist/web/assets/{SettingsView-BSpuMDpv.js → SettingsView-CQm1ai73.js} +7 -7
- package/dist/web/assets/TeamChatView-C4haojB7.js +3 -0
- package/dist/web/assets/{TerminalOverlay-CrSwUk2d.js → TerminalOverlay-p2GZsuyQ.js} +3 -3
- package/dist/web/assets/{TrainingCreationPanel-B4HMRwUg.js → TrainingCreationPanel-BYJSlO8X.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-D4r1tN3I.js → TrainingDraftPanel-DR5KlayH.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-2aymqwIM.js → UsageSettingsSection-BQToNXE4.js} +5 -5
- package/dist/web/assets/{WorkSidebarPanel-B0X0OiR6.js → WorkSidebarPanel--EeytWeg.js} +1 -1
- package/dist/web/assets/WorkspaceDiffPanel-BrovSYhn.js +14 -0
- package/dist/web/assets/{WorkspaceEnvironmentMenu-OAfMEt7L.js → WorkspaceEnvironmentMenu-l-keRgvj.js} +3 -3
- package/dist/web/assets/{WorkspaceGitDialogs-YxcPH2Rq.js → WorkspaceGitDialogs-aicWzaZu.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-COKTiQZl.js → WorkspaceMonacoEditor-CO_E74jM.js} +36 -36
- package/dist/web/assets/{arrow-up-right-_TX-awvK.js → arrow-up-right-rwPXNfVn.js} +1 -1
- package/dist/web/assets/chat-file-links-B3jDstSC.js +1 -0
- package/dist/web/assets/chevron-up-D089nvYQ.js +1 -0
- package/dist/web/assets/{clipboard-CyRSS8Sy.js → clipboard-DwEExyU4.js} +1 -1
- package/dist/web/assets/{cloud-upload-uBJBUYTy.js → cloud-upload-D2he0-vQ.js} +1 -1
- package/dist/web/assets/{cssMode-BrXSsZYs.js → cssMode-DS4k0NcI.js} +1 -1
- package/dist/web/assets/{folder-open-DktdZNW7.js → folder-open-CAOLduKD.js} +1 -1
- package/dist/web/assets/{folder-plus-DO06i9Vo.js → folder-plus-D56MrxVT.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-zFSIkPs7.js → git-commit-horizontal-CeNM0oKJ.js} +1 -1
- package/dist/web/assets/{htmlMode-X9UMFkjt.js → htmlMode-Xkni5erh.js} +1 -1
- package/dist/web/assets/{index-ByQIHpc9.css → index-BGMzUaup.css} +1 -1
- package/dist/web/assets/{index-UOGdfLzi.js → index-KwyAyscP.js} +1 -1
- package/dist/web/assets/{info-BEJXUqCD.js → info-CcrBaEE_.js} +1 -1
- package/dist/web/assets/{jsonMode-DIsB-j2E.js → jsonMode-C4YPbQB7.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-CmZ17KpA.js → lspLanguageFeatures-CF5oMTz6.js} +1 -1
- package/dist/web/assets/{minimize-2-DumTpFtE.js → minimize-2-DzHQnInk.js} +1 -1
- package/dist/web/assets/{monaco.contribution-DJ_NmcHu.js → monaco.contribution-0EN4mGCC.js} +2 -2
- package/dist/web/assets/{monaco.contribution-YVDfJcG4.js → monaco.contribution-B4qcTP0w.js} +2 -2
- package/dist/web/assets/{monaco.contribution-LZEujgny.js → monaco.contribution-CJK_NrBm.js} +2 -2
- package/dist/web/assets/{monaco.contribution-D6w5PJji.js → monaco.contribution-CkPGKNd-.js} +2 -2
- package/dist/web/assets/{play-CLFeH7CU.js → play-p3-AMTPL.js} +1 -1
- package/dist/web/assets/{python-Djbda_qZ.js → python-B0kpTxAZ.js} +1 -1
- package/dist/web/assets/{refresh-cw-B4IpQ_7Q.js → refresh-cw-_jbTIzzr.js} +1 -1
- package/dist/web/assets/{save-BbTHztnA.js → save-Cy6hEotx.js} +1 -1
- package/dist/web/assets/{square-BJrVbmz6.js → square-DKQkcrOH.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-BopU5W9S.js → toggleHighContrast-Bnk1VVVq.js} +1 -1
- package/dist/web/assets/{tsMode-CH_0_YDX.js → tsMode-BDrSVy7V.js} +1 -1
- package/dist/web/assets/{upload-UumVeufu.js → upload-COn0my_O.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-BRa23U7O.js → useLocalAgentSchedules-iZNB4Oee.js} +1 -1
- package/dist/web/assets/{wifi-off-BWJWivn6.js → wifi-off-Cqt-ZLXY.js} +1 -1
- package/dist/web/assets/{workers-pTe8RvSI.js → workers-hu0Ym93h.js} +1 -1
- package/dist/web/assets/{yaml-DNLASORn.js → yaml-D-JLDGL6.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +4 -3
- package/dist/chunks/actions-command-6N5XWMR6.js +0 -185
- package/dist/chunks/app-layer-F3CGXB33.js +0 -216
- package/dist/chunks/app-server-runtime-RHO5TFUC.js +0 -23
- package/dist/chunks/apps-L5XCL7QY.js +0 -429
- package/dist/chunks/chunk-26AMV5ZI.js +0 -634
- package/dist/chunks/chunk-3EB7I67T.js +0 -630
- package/dist/chunks/chunk-3ELF4FXY.js +0 -96
- package/dist/chunks/chunk-3VEYNDHN.js +0 -669
- package/dist/chunks/chunk-4KA25HUP.js +0 -5648
- package/dist/chunks/chunk-4L3ZJS2T.js +0 -1207
- package/dist/chunks/chunk-6SMNG6YA.js +0 -1303
- package/dist/chunks/chunk-7RIGZB7N.js +0 -1148
- package/dist/chunks/chunk-A6G3PFA5.js +0 -2164
- package/dist/chunks/chunk-BVY5JYM6.js +0 -512
- package/dist/chunks/chunk-DLQQIWN2.js +0 -648
- package/dist/chunks/chunk-FJ2JGB2N.js +0 -1373
- package/dist/chunks/chunk-FQS2QL5F.js +0 -14522
- package/dist/chunks/chunk-G65WAOJV.js +0 -1643
- package/dist/chunks/chunk-JTHL5XJ2.js +0 -1838
- package/dist/chunks/chunk-K4TZEHAW.js +0 -602
- package/dist/chunks/chunk-KCRCIQPD.js +0 -66
- package/dist/chunks/chunk-KSRWKXRB.js +0 -12
- package/dist/chunks/chunk-MUMPWI4O.js +0 -92
- package/dist/chunks/chunk-NTK22KJD.js +0 -10707
- package/dist/chunks/chunk-OCBRPU2K.js +0 -629
- package/dist/chunks/chunk-PS37DB5F.js +0 -183
- package/dist/chunks/chunk-R3C3MNSI.js +0 -140
- package/dist/chunks/chunk-SMNFI2FU.js +0 -113
- package/dist/chunks/chunk-UACZUFIA.js +0 -47
- package/dist/chunks/chunk-UZMVNKXM.js +0 -1275
- package/dist/chunks/chunk-VT6BLHMB.js +0 -67198
- package/dist/chunks/chunk-W5GKHH77.js +0 -168
- package/dist/chunks/chunk-X6F4LBTQ.js +0 -832
- package/dist/chunks/chunk-X7ZG4TSW.js +0 -3063
- package/dist/chunks/chunk-XA4KBDMY.js +0 -13723
- package/dist/chunks/chunk-YVCYVDNP.js +0 -746
- package/dist/chunks/chunk-ZNQEROWP.js +0 -254
- package/dist/chunks/cli-D2MUUBEX.js +0 -23
- package/dist/chunks/configuration-command-NR6JYIUD.js +0 -187
- package/dist/chunks/continual-37CE4LLJ.js +0 -803
- package/dist/chunks/core-commands-SWGIOZLW.js +0 -50
- package/dist/chunks/database-DEYUZDIM.js +0 -20
- package/dist/chunks/desktop-test-QOS7G5NE.js +0 -148
- package/dist/chunks/dist-AKYCQNNF.js +0 -187
- package/dist/chunks/extension-HJUJBQAD.js +0 -9378
- package/dist/chunks/help-J6PZ23IC.js +0 -67
- package/dist/chunks/opchat-ABX5YBAT.js +0 -169
- package/dist/chunks/organizations-CPNC47DO.js +0 -806
- package/dist/chunks/profile-Q3HB5MIO.js +0 -1136
- package/dist/chunks/project-agent-YHUBX4OR.js +0 -516
- package/dist/chunks/sandbox-command-YFL5QTWX.js +0 -1661
- package/dist/chunks/sandbox-template-Z6P7NTNF.js +0 -1655
- package/dist/chunks/src-7XEENEBI.js +0 -3628
- package/dist/chunks/src-KBBIV4NT.js +0 -56125
- package/dist/chunks/taskset-2TRZBRRT.js +0 -66
- package/dist/chunks/teams-bot-WD33NLH5.js +0 -146
- package/dist/chunks/training-4XH37UZB.js +0 -17
- package/dist/chunks/workspaces-WG2MH2WE.js +0 -99
- package/dist/web/assets/App-C9aGkxVg.js +0 -173
- package/dist/web/assets/AppDialog-CK6_lg8c.js +0 -1
- package/dist/web/assets/AppTerminalPanel-BKqgX4sd.js +0 -2
- package/dist/web/assets/GetStartedView-DVInkexN.js +0 -1
- package/dist/web/assets/LabModelVersionDetailPage-NaaPElmM.js +0 -1
- package/dist/web/assets/LabsRoute-BRR6x3SX.js +0 -2
- package/dist/web/assets/LabsRoute-CGFgymTX.css +0 -1
- package/dist/web/assets/MainChatThread-BfkjCZB9.js +0 -2
- package/dist/web/assets/MainPane-Gw-YK38n.js +0 -8
- package/dist/web/assets/RightChatPanelStack-BktRQ9wg.js +0 -1
- package/dist/web/assets/TeamChatView-BPWJbDf1.js +0 -3
- package/dist/web/assets/WorkspaceDiffPanel-Pg7GL0br.js +0 -14
- package/dist/web/assets/chat-file-links-CWLsRYvW.js +0 -1
- package/dist/web/assets/chevron-up--mNnEqha.js +0 -1
- package/dist/web/assets/index-BEPmTPIA.js +0 -1
package/dist/web/assets/{useLocalAgentSchedules-BRa23U7O.js → useLocalAgentSchedules-iZNB4Oee.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,o as s}from"./App-
|
|
1
|
+
import{c as v,o as s}from"./App-DxecRQUL.js";import{r as c}from"./index-KwyAyscP.js";const m=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],x=v("rotate-ccw",m),I=5e3;function C(t){const[S,n]=c.useState([]),[y,r]=c.useState(!1),[p,l]=c.useState(null),[o,w]=c.useState(()=>new Set);c.useEffect(()=>{if(!t){n([]),l(null),r(!1);return}const e=t;let a=!1;async function d(g){if(!a){g&&r(!0);try{const h=await s.localAgentSchedules(e);if(a)return;n(h.schedules),l(null)}catch(h){a||l(f(h))}finally{!a&&g&&r(!1)}}}d(!0);const u=window.setInterval(()=>{d(!1)},I);return()=>{a=!0,window.clearInterval(u)}},[t]);async function L(){if(t){r(!0);try{const e=await s.syncLocalAgentSchedules(t);n(e.schedules),l(null)}catch(e){l(f(e))}finally{r(!1)}}}async function A(e){if(!(!t||o.has(e.id))){i(e.id,!0);try{await s.runLocalAgentSchedule(t,e.id);const a=await s.localAgentSchedules(t);n(a.schedules),l(null)}catch(a){l(f(a))}finally{i(e.id,!1)}}}async function E(e){if(!(!t||o.has(e.id))){i(e.id,!0);try{await s.patchLocalAgentSchedule(t,e.id,{enabled:!e.enabled});const a=await s.localAgentSchedules(t);n(a.schedules),l(null)}catch(a){l(f(a))}finally{i(e.id,!1)}}}function i(e,a){w(d=>{const u=new Set(d);return a?u.add(e):u.delete(e),u})}return{error:p,loading:y,pendingScheduleIds:o,refresh:L,run:A,schedules:S,toggle:E}}function f(t){return t instanceof Error?t.message:String(t)}export{x as R,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a}from"./App-
|
|
1
|
+
import{c as a}from"./App-DxecRQUL.js";const e=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],y=a("bell",e);const t=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],c=a("bell-off",t);const o=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],k=a("scroll-text",o);const h=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],p=a("wifi-off",h);export{c as B,k as S,p as W,y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j7 as c}from"./WorkspaceMonacoEditor-
|
|
1
|
+
import{j7 as c}from"./WorkspaceMonacoEditor-CO_E74jM.js";import"./toggleHighContrast-Bnk1VVVq.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function u(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{u as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./WorkspaceMonacoEditor-
|
|
1
|
+
import{l as e}from"./WorkspaceMonacoEditor-CO_E74jM.js";import"./toggleHighContrast-Bnk1VVVq.js";import"./index-KwyAyscP.js";const r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},l={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{r as conf,l as language};
|
package/dist/web/index.html
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png" />
|
|
8
8
|
<link rel="apple-touch-icon" href="./openpond-icon.png" />
|
|
9
9
|
<title>OpenPond App</title>
|
|
10
|
-
<script type="module" crossorigin src="./assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
10
|
+
<script type="module" crossorigin src="./assets/index-KwyAyscP.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BGMzUaup.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openpond",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"openpondReleaseVersioned": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "OpenPond CLI and local harness",
|
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
"lint": "pnpm run typecheck",
|
|
26
26
|
"typecheck": "tsc --noEmit --project tsconfig.json",
|
|
27
27
|
"test": "vitest run test",
|
|
28
|
-
"build": "pnpm run clean && pnpm run docs:commands && pnpm run build:
|
|
29
|
-
"prepublishOnly": "pnpm run build"
|
|
28
|
+
"build": "pnpm run clean && pnpm run docs:commands && pnpm run build:bundles && pnpm run build:local-assets && pnpm run build:types",
|
|
29
|
+
"prepublishOnly": "pnpm run build",
|
|
30
|
+
"build:bundles": "tsx ../../scripts/build/bundle-cli.ts all"
|
|
30
31
|
},
|
|
31
32
|
"files": [
|
|
32
33
|
"dist/**/*",
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
buildProjectActions,
|
|
4
|
-
createLocalActionRunner,
|
|
5
|
-
loadProjectActionConfiguration
|
|
6
|
-
} from "./chunk-DLQQIWN2.js";
|
|
7
|
-
import {
|
|
8
|
-
createOpenPondClient
|
|
9
|
-
} from "./chunk-4L3ZJS2T.js";
|
|
10
|
-
import "./chunk-JTHL5XJ2.js";
|
|
11
|
-
import "./chunk-FQS2QL5F.js";
|
|
12
|
-
import {
|
|
13
|
-
parseBooleanOption
|
|
14
|
-
} from "./chunk-MUMPWI4O.js";
|
|
15
|
-
import "./chunk-UACZUFIA.js";
|
|
16
|
-
|
|
17
|
-
// src/cli/actions-command.ts
|
|
18
|
-
import { promises as fs, watch } from "node:fs";
|
|
19
|
-
import path from "node:path";
|
|
20
|
-
import { execFile } from "node:child_process";
|
|
21
|
-
import { promisify } from "node:util";
|
|
22
|
-
var execFileAsync = promisify(execFile);
|
|
23
|
-
async function runProjectActionsCommand(options, rest) {
|
|
24
|
-
const subcommand = rest[0] ?? "check";
|
|
25
|
-
const projectRoot = path.resolve(stringOption(options, "cwd") ?? process.cwd());
|
|
26
|
-
const sourceDirectory = stringOption(options, "sourceDirectory");
|
|
27
|
-
const outputDirectory = stringOption(options, "outputDirectory");
|
|
28
|
-
const json = parseBooleanOption(options.json);
|
|
29
|
-
if (subcommand === "check" || subcommand === "build") {
|
|
30
|
-
const result = await buildProjectActions({ projectRoot, sourceDirectory, outputDirectory });
|
|
31
|
-
if (json) {
|
|
32
|
-
console.log(JSON.stringify({
|
|
33
|
-
status: "passed",
|
|
34
|
-
actionCount: result.registry.actions.length,
|
|
35
|
-
registry: result.registry,
|
|
36
|
-
manifest: result.manifest,
|
|
37
|
-
outputDirectory: result.outputDirectory
|
|
38
|
-
}, null, 2));
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const verb = subcommand === "check" ? "Validated" : "Built";
|
|
42
|
-
console.log(`${verb} ${result.registry.actions.length} Project Action${result.registry.actions.length === 1 ? "" : "s"}.`);
|
|
43
|
-
console.log(`Registry: ${result.registryPath}`);
|
|
44
|
-
console.log(`Bundle: ${result.bundlePath}`);
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (subcommand === "run") {
|
|
48
|
-
const actionId = rest[1];
|
|
49
|
-
if (!actionId) throw new Error("usage: openpond actions run <action-id> [--input JSON|--input-file PATH]");
|
|
50
|
-
const runner = createLocalActionRunner({
|
|
51
|
-
projectRoot,
|
|
52
|
-
sourceDirectory,
|
|
53
|
-
outputDirectory,
|
|
54
|
-
build: "always"
|
|
55
|
-
});
|
|
56
|
-
const result = await runner.run({
|
|
57
|
-
actionId,
|
|
58
|
-
input: await actionInput(options, projectRoot),
|
|
59
|
-
timeoutMs: integerOption(options, "timeoutMs")
|
|
60
|
-
});
|
|
61
|
-
console.log(JSON.stringify(result, null, 2));
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
if (subcommand === "dev") {
|
|
65
|
-
const actionId = rest[1] ?? null;
|
|
66
|
-
await runDev({ projectRoot, sourceDirectory, outputDirectory, actionId, options, json });
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (subcommand === "publish") {
|
|
70
|
-
const projectId = requiredOption(options, "projectId");
|
|
71
|
-
const teamId = requiredOption(options, "teamId");
|
|
72
|
-
const apiKey = stringOption(options, "apiKey") ?? process.env.OPENPOND_API_KEY?.trim();
|
|
73
|
-
if (!apiKey) throw new Error("OpenPond API key is required. Set OPENPOND_API_KEY or pass --api-key.");
|
|
74
|
-
const build = await buildProjectActions({ projectRoot, sourceDirectory, outputDirectory });
|
|
75
|
-
const sourceCommitSha = stringOption(options, "sourceCommitSha") ?? await gitValue(projectRoot, ["rev-parse", "HEAD"]);
|
|
76
|
-
const sourceRef = stringOption(options, "sourceRef") ?? await gitValue(projectRoot, ["rev-parse", "--abbrev-ref", "HEAD"]);
|
|
77
|
-
const release = await createOpenPondClient({
|
|
78
|
-
apiKey,
|
|
79
|
-
baseUrl: stringOption(options, "baseUrl") ?? process.env.OPENPOND_API_URL
|
|
80
|
-
}).actions.publish({
|
|
81
|
-
projectId,
|
|
82
|
-
teamId,
|
|
83
|
-
sourceRef,
|
|
84
|
-
sourceCommitSha,
|
|
85
|
-
build
|
|
86
|
-
});
|
|
87
|
-
console.log(json ? JSON.stringify({ release }, null, 2) : `Published Project Actions release ${release.id} from ${release.sourceCommitSha}.`);
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
throw new Error("usage: openpond actions <check|build|run|dev|publish> [action-id]");
|
|
91
|
-
}
|
|
92
|
-
async function runDev(input) {
|
|
93
|
-
let running = false;
|
|
94
|
-
let rerun = false;
|
|
95
|
-
const execute = async () => {
|
|
96
|
-
if (running) {
|
|
97
|
-
rerun = true;
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
running = true;
|
|
101
|
-
try {
|
|
102
|
-
const runner = createLocalActionRunner({
|
|
103
|
-
projectRoot: input.projectRoot,
|
|
104
|
-
sourceDirectory: input.sourceDirectory,
|
|
105
|
-
outputDirectory: input.outputDirectory,
|
|
106
|
-
build: "always"
|
|
107
|
-
});
|
|
108
|
-
if (input.actionId) {
|
|
109
|
-
const result = await runner.run({
|
|
110
|
-
actionId: input.actionId,
|
|
111
|
-
input: await actionInput(input.options, input.projectRoot),
|
|
112
|
-
timeoutMs: integerOption(input.options, "timeoutMs")
|
|
113
|
-
});
|
|
114
|
-
console.log(JSON.stringify(result, null, 2));
|
|
115
|
-
} else {
|
|
116
|
-
const result = await runner.build();
|
|
117
|
-
const message = {
|
|
118
|
-
status: "ready",
|
|
119
|
-
actionCount: result.registry.actions.length,
|
|
120
|
-
bundleHash: result.manifest.bundleHash
|
|
121
|
-
};
|
|
122
|
-
console.log(input.json ? JSON.stringify(message) : `Ready with ${message.actionCount} Project Action${message.actionCount === 1 ? "" : "s"}.`);
|
|
123
|
-
}
|
|
124
|
-
} catch (error) {
|
|
125
|
-
console.error(error instanceof Error ? error.message : String(error));
|
|
126
|
-
} finally {
|
|
127
|
-
running = false;
|
|
128
|
-
if (rerun) {
|
|
129
|
-
rerun = false;
|
|
130
|
-
await execute();
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
await execute();
|
|
135
|
-
const configuration = await loadProjectActionConfiguration(input.projectRoot);
|
|
136
|
-
const sourceRoot = path.resolve(
|
|
137
|
-
input.projectRoot,
|
|
138
|
-
input.sourceDirectory ?? configuration.sourceDirectory ?? "openpond/actions"
|
|
139
|
-
);
|
|
140
|
-
console.log(`Watching ${sourceRoot}`);
|
|
141
|
-
const watcher = watch(sourceRoot, { recursive: true }, () => {
|
|
142
|
-
setTimeout(() => void execute(), 50);
|
|
143
|
-
});
|
|
144
|
-
await new Promise((resolve) => {
|
|
145
|
-
const stop = () => {
|
|
146
|
-
watcher.close();
|
|
147
|
-
resolve();
|
|
148
|
-
};
|
|
149
|
-
process.once("SIGINT", stop);
|
|
150
|
-
process.once("SIGTERM", stop);
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
async function actionInput(options, projectRoot) {
|
|
154
|
-
const inline = stringOption(options, "input");
|
|
155
|
-
const inputFile = stringOption(options, "inputFile");
|
|
156
|
-
if (inline && inputFile) throw new Error("Use either --input or --input-file, not both.");
|
|
157
|
-
if (inline) return JSON.parse(inline);
|
|
158
|
-
if (inputFile) return JSON.parse(await fs.readFile(path.resolve(projectRoot, inputFile), "utf8"));
|
|
159
|
-
return {};
|
|
160
|
-
}
|
|
161
|
-
function stringOption(options, name) {
|
|
162
|
-
const value = options[name];
|
|
163
|
-
return typeof value === "string" && value.trim() ? value.trim() : void 0;
|
|
164
|
-
}
|
|
165
|
-
function requiredOption(options, name) {
|
|
166
|
-
const value = stringOption(options, name);
|
|
167
|
-
if (!value) throw new Error(`--${name.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)} is required.`);
|
|
168
|
-
return value;
|
|
169
|
-
}
|
|
170
|
-
async function gitValue(projectRoot, args) {
|
|
171
|
-
const { stdout } = await execFileAsync("git", args, { cwd: projectRoot });
|
|
172
|
-
const value = stdout.trim();
|
|
173
|
-
if (!value) throw new Error(`git ${args.join(" ")} returned no value.`);
|
|
174
|
-
return value;
|
|
175
|
-
}
|
|
176
|
-
function integerOption(options, name) {
|
|
177
|
-
const value = stringOption(options, name);
|
|
178
|
-
if (value === void 0) return void 0;
|
|
179
|
-
const parsed = Number(value);
|
|
180
|
-
if (!Number.isInteger(parsed) || parsed <= 0) throw new Error(`--${name} must be a positive integer.`);
|
|
181
|
-
return parsed;
|
|
182
|
-
}
|
|
183
|
-
export {
|
|
184
|
-
runProjectActionsCommand
|
|
185
|
-
};
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
runProcessCommand
|
|
4
|
-
} from "./chunk-3VEYNDHN.js";
|
|
5
|
-
import "./chunk-FJ2JGB2N.js";
|
|
6
|
-
import "./chunk-SMNFI2FU.js";
|
|
7
|
-
import "./chunk-KSRWKXRB.js";
|
|
8
|
-
import {
|
|
9
|
-
CliUsageError
|
|
10
|
-
} from "./chunk-PS37DB5F.js";
|
|
11
|
-
import "./chunk-4KA25HUP.js";
|
|
12
|
-
import "./chunk-ZNQEROWP.js";
|
|
13
|
-
import "./chunk-7RIGZB7N.js";
|
|
14
|
-
import "./chunk-4L3ZJS2T.js";
|
|
15
|
-
import "./chunk-JTHL5XJ2.js";
|
|
16
|
-
import "./chunk-FQS2QL5F.js";
|
|
17
|
-
import "./chunk-MUMPWI4O.js";
|
|
18
|
-
import "./chunk-UACZUFIA.js";
|
|
19
|
-
|
|
20
|
-
// src/cli/app-layer.ts
|
|
21
|
-
import { existsSync } from "node:fs";
|
|
22
|
-
import { createRequire } from "node:module";
|
|
23
|
-
import path from "node:path";
|
|
24
|
-
import { fileURLToPath } from "node:url";
|
|
25
|
-
|
|
26
|
-
// src/cli/build-mode.ts
|
|
27
|
-
var IS_COMPILED_CLI = false;
|
|
28
|
-
|
|
29
|
-
// src/cli/node-runtime.ts
|
|
30
|
-
var OPENPOND_NODE_MAJOR = 24;
|
|
31
|
-
var OPENPOND_NODE_MIN_MINOR = 18;
|
|
32
|
-
var OPENPOND_NODE_MIN_VERSION = `${OPENPOND_NODE_MAJOR}.${OPENPOND_NODE_MIN_MINOR}.0`;
|
|
33
|
-
function openPondTuiNodeRuntimeMessage(version = process.versions.node) {
|
|
34
|
-
const match = /^(\d+)\.(\d+)\.(\d+)/.exec(version);
|
|
35
|
-
const major = match ? Number(match[1]) : Number.NaN;
|
|
36
|
-
const minor = match ? Number(match[2]) : Number.NaN;
|
|
37
|
-
if (major === OPENPOND_NODE_MAJOR && minor >= OPENPOND_NODE_MIN_MINOR) return null;
|
|
38
|
-
return [
|
|
39
|
-
`OpenPond TUI requires Node.js ${OPENPOND_NODE_MIN_VERSION} or newer in the Node ${OPENPOND_NODE_MAJOR} release line; detected Node.js ${version}.`,
|
|
40
|
-
`Switch Node versions and retry (with nvm: \`nvm install ${OPENPOND_NODE_MIN_VERSION} && nvm use ${OPENPOND_NODE_MIN_VERSION}\`).`
|
|
41
|
-
].join("\n");
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// src/cli/app-layer.ts
|
|
45
|
-
var __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
46
|
-
var OpenPondChildProcessExitError = class extends Error {
|
|
47
|
-
constructor(message, exitCode) {
|
|
48
|
-
super(message);
|
|
49
|
-
this.exitCode = exitCode;
|
|
50
|
-
this.name = "OpenPondChildProcessExitError";
|
|
51
|
-
}
|
|
52
|
-
exitCode;
|
|
53
|
-
};
|
|
54
|
-
async function runOpenPondServerCommand(mode, options, rest) {
|
|
55
|
-
const server = resolveAppEntrypoint(
|
|
56
|
-
mode === "app-server" ? "app-server" : "server"
|
|
57
|
-
);
|
|
58
|
-
const args = [...server.args, mode, ...forwardedOptions(options), ...rest];
|
|
59
|
-
if (mode === "web") {
|
|
60
|
-
args.push(options.noOpen === true || options.noOpen === "true" ? "--print-access-url" : "--open-browser");
|
|
61
|
-
}
|
|
62
|
-
const webRoot = mode === "web" && typeof options.webRoot !== "string" ? packagedWebRoot() : null;
|
|
63
|
-
if (webRoot) args.push("--web-root", webRoot);
|
|
64
|
-
await runChild(
|
|
65
|
-
server.runner,
|
|
66
|
-
args,
|
|
67
|
-
mode === "app-server" ? process.cwd() : server.cwd
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
async function runOpenPondTerminalCommand(options, rest) {
|
|
71
|
-
validateTerminalForwardingOptions(options);
|
|
72
|
-
const runtimeMessage = openPondTuiNodeRuntimeMessage();
|
|
73
|
-
if (runtimeMessage) throw new CliUsageError(runtimeMessage);
|
|
74
|
-
const terminal = resolveAppEntrypoint("terminal");
|
|
75
|
-
const server = resolveAppEntrypoint("server");
|
|
76
|
-
const args = [...terminal.args, "chat", ...forwardedOptions(normalizeTerminalPaths(options)), ...rest];
|
|
77
|
-
await runChild(terminal.runner, args, process.cwd(), {
|
|
78
|
-
OPENPOND_SERVER_RUNNER: server.runner,
|
|
79
|
-
OPENPOND_SERVER_ARGS: JSON.stringify(server.args),
|
|
80
|
-
OPENPOND_SERVER_CWD: server.cwd
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function findWorkspaceRoot() {
|
|
84
|
-
if (process.env.OPENPOND_FORCE_EMBEDDED_COMPANIONS === "1") return null;
|
|
85
|
-
const candidates = [
|
|
86
|
-
path.resolve(__dirname, "../../../.."),
|
|
87
|
-
path.resolve(__dirname, "../../.."),
|
|
88
|
-
process.cwd()
|
|
89
|
-
];
|
|
90
|
-
for (const candidate of candidates) {
|
|
91
|
-
if (existsSync(path.join(candidate, "apps", "server")) && existsSync(path.join(candidate, "apps", "terminal"))) {
|
|
92
|
-
return candidate;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
function resolveAppEntrypoint(app) {
|
|
98
|
-
const workspaceRoot = findWorkspaceRoot();
|
|
99
|
-
if (workspaceRoot) {
|
|
100
|
-
const source = app === "app-server" ? path.join(
|
|
101
|
-
workspaceRoot,
|
|
102
|
-
"apps",
|
|
103
|
-
"server",
|
|
104
|
-
"src",
|
|
105
|
-
"app-server-entry.ts"
|
|
106
|
-
) : path.join(workspaceRoot, "apps", app, "src", "index.ts");
|
|
107
|
-
if (existsSync(source)) {
|
|
108
|
-
const workspaceRequire = createRequire(path.join(workspaceRoot, "package.json"));
|
|
109
|
-
return {
|
|
110
|
-
runner: process.execPath,
|
|
111
|
-
args: [workspaceRequire.resolve("tsx/cli"), source],
|
|
112
|
-
cwd: workspaceRoot
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
const built = app === "app-server" ? path.join(
|
|
116
|
-
workspaceRoot,
|
|
117
|
-
"apps",
|
|
118
|
-
"server",
|
|
119
|
-
"dist",
|
|
120
|
-
"app-server-entry.js"
|
|
121
|
-
) : path.join(workspaceRoot, "apps", app, "dist", "index.js");
|
|
122
|
-
if (existsSync(built)) {
|
|
123
|
-
return { runner: process.execPath, args: [built], cwd: workspaceRoot };
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
const installedCli = installedCliEntrypoint();
|
|
127
|
-
const embeddedMode = app === "app-server" ? "__app-server" : app === "server" ? "__server" : "__terminal";
|
|
128
|
-
if (installedCli) {
|
|
129
|
-
return {
|
|
130
|
-
runner: process.execPath,
|
|
131
|
-
args: [installedCli, embeddedMode],
|
|
132
|
-
cwd: path.dirname(path.dirname(installedCli))
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
if (isCompiledExecutable()) return { runner: process.execPath, args: [embeddedMode], cwd: process.cwd() };
|
|
136
|
-
throw new Error(`Could not find the installed OpenPond ${app} companion.`);
|
|
137
|
-
}
|
|
138
|
-
function installedCliEntrypoint() {
|
|
139
|
-
for (const candidate of [
|
|
140
|
-
path.resolve(__dirname, "../cli.js"),
|
|
141
|
-
path.resolve(__dirname, "../../dist/cli.js")
|
|
142
|
-
]) {
|
|
143
|
-
if (existsSync(candidate)) return candidate;
|
|
144
|
-
}
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
function packagedWebRoot() {
|
|
148
|
-
if (IS_COMPILED_CLI) {
|
|
149
|
-
const candidate2 = path.join(path.dirname(process.execPath), "web");
|
|
150
|
-
return existsSync(path.join(candidate2, "index.html")) ? candidate2 : null;
|
|
151
|
-
}
|
|
152
|
-
const installedCli = installedCliEntrypoint();
|
|
153
|
-
if (!installedCli) return null;
|
|
154
|
-
const candidate = path.join(path.dirname(installedCli), "web");
|
|
155
|
-
return existsSync(path.join(candidate, "index.html")) ? candidate : null;
|
|
156
|
-
}
|
|
157
|
-
function isCompiledExecutable() {
|
|
158
|
-
if (IS_COMPILED_CLI) return true;
|
|
159
|
-
const argvEntry = process.argv[1];
|
|
160
|
-
return Boolean(argvEntry && path.resolve(argvEntry) === path.resolve(process.execPath));
|
|
161
|
-
}
|
|
162
|
-
function forwardedOptions(options) {
|
|
163
|
-
const ignored = /* @__PURE__ */ new Set(["account", "handle", "baseUrl", "noOpen", "tui", "home"]);
|
|
164
|
-
const args = [];
|
|
165
|
-
for (const [key, value] of Object.entries(options)) {
|
|
166
|
-
if (ignored.has(key)) continue;
|
|
167
|
-
const flag = `--${key.replace(/[A-Z]/g, (char) => `-${char.toLowerCase()}`)}`;
|
|
168
|
-
if (value === true || value === "true") {
|
|
169
|
-
args.push(flag);
|
|
170
|
-
} else if (value === false || value === "false") {
|
|
171
|
-
continue;
|
|
172
|
-
} else {
|
|
173
|
-
args.push(flag, value);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
return args;
|
|
177
|
-
}
|
|
178
|
-
function normalizeTerminalPaths(options) {
|
|
179
|
-
const callerCwd = process.cwd();
|
|
180
|
-
const next = { ...options };
|
|
181
|
-
if (typeof options.cwd === "string" && options.cwd.trim().length > 0) {
|
|
182
|
-
next.cwd = path.resolve(callerCwd, options.cwd);
|
|
183
|
-
}
|
|
184
|
-
if (typeof options.messageFile === "string" && options.messageFile.trim().length > 0) {
|
|
185
|
-
next.messageFile = path.resolve(callerCwd, options.messageFile);
|
|
186
|
-
}
|
|
187
|
-
return next;
|
|
188
|
-
}
|
|
189
|
-
function validateTerminalForwardingOptions(options) {
|
|
190
|
-
if (typeof options.approvalPolicy === "string" && !["on-request", "never", "on-failure", "untrusted"].includes(options.approvalPolicy)) {
|
|
191
|
-
throw new CliUsageError("approval-policy must be on-request, never, on-failure, or untrusted");
|
|
192
|
-
}
|
|
193
|
-
if (typeof options.sandbox === "string" && !["read-only", "workspace-write", "danger-full-access"].includes(options.sandbox)) {
|
|
194
|
-
throw new CliUsageError("sandbox must be read-only, workspace-write, or danger-full-access");
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
async function runChild(command, args, cwd, env) {
|
|
198
|
-
const result = await runProcessCommand(command, args, {
|
|
199
|
-
cwd,
|
|
200
|
-
// Keep embedded companions in the CLI's process group so an outer package
|
|
201
|
-
// runner can stop the complete installed CLI tree with one signal.
|
|
202
|
-
detached: false,
|
|
203
|
-
env,
|
|
204
|
-
inherit: true,
|
|
205
|
-
timeoutMs: 0
|
|
206
|
-
});
|
|
207
|
-
if (result.code !== 0 || result.signal) {
|
|
208
|
-
const detail = result.signal ? `signal ${result.signal}` : `code ${result.code ?? "unknown"}`;
|
|
209
|
-
throw new OpenPondChildProcessExitError(`${path.basename(command)} exited with ${detail}`, result.code ?? 1);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
export {
|
|
213
|
-
OpenPondChildProcessExitError,
|
|
214
|
-
runOpenPondServerCommand,
|
|
215
|
-
runOpenPondTerminalCommand
|
|
216
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
APP_SERVER_COMPOSITION,
|
|
4
|
-
createOpenPondAppServer
|
|
5
|
-
} from "./chunk-VT6BLHMB.js";
|
|
6
|
-
import "./chunk-UZMVNKXM.js";
|
|
7
|
-
import "./chunk-X6F4LBTQ.js";
|
|
8
|
-
import "./chunk-6SMNG6YA.js";
|
|
9
|
-
import "./chunk-KCRCIQPD.js";
|
|
10
|
-
import "./chunk-XA4KBDMY.js";
|
|
11
|
-
import "./chunk-NTK22KJD.js";
|
|
12
|
-
import "./chunk-R3C3MNSI.js";
|
|
13
|
-
import "./chunk-X7ZG4TSW.js";
|
|
14
|
-
import "./chunk-4KA25HUP.js";
|
|
15
|
-
import "./chunk-ZNQEROWP.js";
|
|
16
|
-
import "./chunk-DLQQIWN2.js";
|
|
17
|
-
import "./chunk-JTHL5XJ2.js";
|
|
18
|
-
import "./chunk-FQS2QL5F.js";
|
|
19
|
-
import "./chunk-UACZUFIA.js";
|
|
20
|
-
export {
|
|
21
|
-
APP_SERVER_COMPOSITION,
|
|
22
|
-
createOpenPondAppServer
|
|
23
|
-
};
|