@orgsdk/cli 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 +21 -7
- package/bin/orgsdk.mjs +1 -1
- package/dist/THIRD_PARTY_NOTICES.txt +278 -0
- package/dist/runtime/README.md +9 -7
- package/dist/runtime/cli.js +12 -13
- package/dist/runtime/client.js +79 -17
- package/dist/runtime/contract.js +39 -6
- package/dist/runtime/executor-configuration.js +1 -1
- package/dist/runtime/isolated-actions.js +4 -5
- package/dist/runtime/isolated-worker.js +5 -0
- package/dist/runtime/mcp/aliases.js +29 -0
- package/dist/runtime/mcp/client.js +239 -0
- package/dist/runtime/mcp/contract.js +57 -0
- package/dist/runtime/mcp/functions.js +40 -0
- package/dist/runtime/mcp/network.js +61 -0
- package/dist/runtime/mcp/schema-types.js +35 -0
- package/dist/runtime/mcp/transport.js +18 -0
- package/dist/runtime/project-data.js +1 -1
- package/dist/runtime/register-executor.js +23 -0
- package/dist/runtime/runner.js +30 -24
- package/dist/runtime/sdk-declarations.js +8 -1
- package/dist/runtime/session-job-contract.js +29 -0
- package/dist/runtime/session-job.js +256 -0
- package/dist/runtime/session-plugin-call.js +33 -0
- package/dist/runtime/sessions/manager.js +5 -3
- package/dist/runtime/sessions/process.js +3 -3
- package/dist/runtime/sessions/session-runtime.js +7 -3
- package/dist/runtime/sessions/worker-guard.js +20 -0
- package/dist/runtime/spawn-job.js +69 -0
- package/dist/runtime/supervisor.js +102 -146
- package/dist/runtime/worker.js +48 -45
- package/dist/server/{bun-driver-JKOGHIVX.js → bun-driver-DTZUUCI3.js} +1 -1
- package/dist/server/{chunk-WCVBLUNL.js → chunk-S5SFX3JM.js} +24 -0
- package/dist/server/index.js +2628 -1230
- package/dist/server/migrations/0003_remote-mcp.sql +17 -0
- package/dist/server/migrations/meta/0003_snapshot.json +3395 -0
- package/dist/server/migrations/meta/_journal.json +7 -0
- package/dist/server/{node-driver-FRDSYDBU.js → node-driver-HDJKKWXQ.js} +1 -1
- package/dist/server/out/404/index.html +1 -1
- package/dist/server/out/404.html +1 -1
- package/dist/server/out/__next.!KHdvcmtzcGFjZSk.__PAGE__.txt +10 -10
- package/dist/server/out/__next._full.txt +10 -10
- package/dist/server/out/__next._tree.txt +2 -2
- package/dist/server/out/_next/static/chunks/0ay0b1lpy734z.js +1 -0
- package/dist/server/out/_next/static/chunks/0c-3k17txbh0-.js +1 -0
- package/dist/server/out/_next/static/chunks/0cwfl2xanfapu.js +1 -0
- package/dist/server/out/_next/static/chunks/0e7s8ie0wlk66.js +1 -0
- package/dist/server/out/_next/static/chunks/0ey-6hb0za4r_.js +1 -0
- package/dist/server/out/_next/static/chunks/0huhp5j8dlai8.js +1 -0
- package/dist/server/out/_next/static/chunks/0khjy8qh1ll42.js +1 -0
- package/dist/server/out/_next/static/chunks/0r0572w1rwpcv.js +1 -0
- package/dist/server/out/_next/static/chunks/0rlc9tihf4po6.css +1 -0
- package/dist/server/out/_next/static/chunks/0u_9k8f7709np.js +1 -0
- package/dist/server/out/_next/static/chunks/0w34iczo7r1v5.js +1 -0
- package/dist/server/out/_next/static/chunks/{280w168xxgtwt.js → 0y5lgqdwpeabb.js} +4 -4
- package/dist/server/out/_next/static/chunks/0zfiikazg0_ga.js +1 -0
- package/dist/server/out/_next/static/chunks/1-75euysc3lin.js +22 -0
- package/dist/server/out/_next/static/chunks/10aam78qxauw0.js +1 -0
- package/dist/server/out/_next/static/chunks/12ro_nqb83zku.js +1 -0
- package/dist/server/out/_next/static/chunks/19ue6x5c3f_38.js +3 -0
- package/dist/server/out/_next/static/chunks/1c1ayx3fqtub5.js +31 -0
- package/dist/server/out/_next/static/chunks/1c2xcwifk3vhh.js +1 -0
- package/dist/server/out/_next/static/chunks/1dwr62uuyceq-.js +1 -0
- package/dist/server/out/_next/static/chunks/1fweh1ttncdlv.js +1 -0
- package/dist/server/out/_next/static/chunks/1iklteprcoims.js +1 -0
- package/dist/server/out/_next/static/chunks/1qaow7bdy3oid.js +1 -0
- package/dist/server/out/_next/static/chunks/1tnzhqkfwk7l8.js +1 -0
- package/dist/server/out/_next/static/chunks/1wn9ohqcnx8y8.js +3 -0
- package/dist/server/out/_next/static/chunks/1zieh-zxgxmcp.js +1 -0
- package/dist/server/out/_next/static/chunks/25qsan0t-_of0.js +1 -0
- package/dist/server/out/_next/static/chunks/26yareaaj1kyr.js +1 -0
- package/dist/server/out/_next/static/chunks/2bkkmnhngpacd.js +1 -0
- package/dist/server/out/_next/static/chunks/2e39uy7huhczu.js +1 -0
- package/dist/server/out/_next/static/chunks/2lxgam-nk-e9a.js +3 -0
- package/dist/server/out/_next/static/chunks/{3dx108d0g6032.js → 2navy2mx7--vk.js} +1 -1
- package/dist/server/out/_next/static/chunks/2ngzwwqeitkk7.js +1 -0
- package/dist/server/out/_next/static/chunks/2rp65hq6bmpxv.js +1 -0
- package/dist/server/out/_next/static/chunks/2z60o39-yshg2.js +1 -0
- package/dist/server/out/_next/static/chunks/3_d6w25_b15kx.js +1 -0
- package/dist/server/out/_next/static/chunks/3d8gkwu9nszjk.js +1 -0
- package/dist/server/out/_next/static/chunks/3l-16g1y6k5rs.js +1 -0
- package/dist/server/out/_next/static/chunks/3obu_9-ka7u_h.js +1 -0
- package/dist/server/out/_next/static/chunks/3xs2ji0dgkbmc.js +1 -0
- package/dist/server/out/_next/static/chunks/{turbopack-3-ry682tkyiqk.js → turbopack-2u1d16houkiyo.js} +1 -1
- package/dist/server/out/_not-found/__next._full.txt +3 -3
- package/dist/server/out/_not-found/__next._not-found.__PAGE__.txt +3 -3
- package/dist/server/out/_not-found/__next._tree.txt +2 -2
- package/dist/server/out/_not-found/index.html +1 -1
- package/dist/server/out/_not-found/index.txt +3 -3
- package/dist/server/out/accounts/2fa/__next._full.txt +8 -8
- package/dist/server/out/accounts/2fa/__next._tree.txt +2 -2
- package/dist/server/out/accounts/2fa/__next.accounts.2fa.__PAGE__.txt +8 -8
- package/dist/server/out/accounts/2fa/index.html +1 -1
- package/dist/server/out/accounts/2fa/index.txt +8 -8
- package/dist/server/out/accounts/email/__next._full.txt +7 -7
- package/dist/server/out/accounts/email/__next._tree.txt +2 -2
- package/dist/server/out/accounts/email/__next.accounts.email.__PAGE__.txt +7 -7
- package/dist/server/out/accounts/email/index.html +1 -1
- package/dist/server/out/accounts/email/index.txt +7 -7
- package/dist/server/out/accounts/login/__next._full.txt +7 -7
- package/dist/server/out/accounts/login/__next._tree.txt +2 -2
- package/dist/server/out/accounts/login/__next.accounts.login.__PAGE__.txt +7 -7
- package/dist/server/out/accounts/login/index.html +1 -1
- package/dist/server/out/accounts/login/index.txt +7 -7
- package/dist/server/out/accounts/logout/__next._full.txt +7 -7
- package/dist/server/out/accounts/logout/__next._tree.txt +2 -2
- package/dist/server/out/accounts/logout/__next.accounts.logout.__PAGE__.txt +7 -7
- package/dist/server/out/accounts/logout/index.html +1 -1
- package/dist/server/out/accounts/logout/index.txt +7 -7
- package/dist/server/out/accounts/password/change/__next._full.txt +7 -7
- package/dist/server/out/accounts/password/change/__next._tree.txt +2 -2
- package/dist/server/out/accounts/password/change/__next.accounts.password.change.__PAGE__.txt +7 -7
- package/dist/server/out/accounts/password/change/index.html +1 -1
- package/dist/server/out/accounts/password/change/index.txt +7 -7
- package/dist/server/out/accounts/password/reset/__next._full.txt +5 -5
- package/dist/server/out/accounts/password/reset/__next._tree.txt +2 -2
- package/dist/server/out/accounts/password/reset/__next.accounts.password.reset.__PAGE__.txt +5 -5
- package/dist/server/out/accounts/password/reset/index.html +1 -1
- package/dist/server/out/accounts/password/reset/index.txt +5 -5
- package/dist/server/out/accounts/signup/__next._full.txt +7 -7
- package/dist/server/out/accounts/signup/__next._tree.txt +2 -2
- package/dist/server/out/accounts/signup/__next.accounts.signup.__PAGE__.txt +7 -7
- package/dist/server/out/accounts/signup/index.html +1 -1
- package/dist/server/out/accounts/signup/index.txt +7 -7
- package/dist/server/out/actions/__next.!KHdvcmtzcGFjZSk.actions.__PAGE__.txt +15 -15
- package/dist/server/out/actions/__next._full.txt +15 -15
- package/dist/server/out/actions/__next._tree.txt +2 -2
- package/dist/server/out/actions/index.html +1 -1
- package/dist/server/out/actions/index.txt +15 -15
- package/dist/server/out/agents/__next.!KHdvcmtzcGFjZSk.agents.__PAGE__.txt +8 -8
- package/dist/server/out/agents/__next._full.txt +8 -8
- package/dist/server/out/agents/__next._tree.txt +2 -2
- package/dist/server/out/agents/index.html +1 -1
- package/dist/server/out/agents/index.txt +8 -8
- package/dist/server/out/approvals/__next.!KHdvcmtzcGFjZSk.approvals.__PAGE__.txt +10 -10
- package/dist/server/out/approvals/__next._full.txt +10 -10
- package/dist/server/out/approvals/__next._tree.txt +2 -2
- package/dist/server/out/approvals/index.html +1 -1
- package/dist/server/out/approvals/index.txt +10 -10
- package/dist/server/out/artifacts/__next.!KHdvcmtzcGFjZSk.artifacts.__PAGE__.txt +12 -12
- package/dist/server/out/artifacts/__next._full.txt +12 -12
- package/dist/server/out/artifacts/__next._tree.txt +2 -2
- package/dist/server/out/artifacts/index.html +1 -1
- package/dist/server/out/artifacts/index.txt +12 -12
- package/dist/server/out/audit/__next.!KHdvcmtzcGFjZSk.audit.__PAGE__.txt +10 -10
- package/dist/server/out/audit/__next._full.txt +10 -10
- package/dist/server/out/audit/__next._tree.txt +2 -2
- package/dist/server/out/audit/index.html +1 -1
- package/dist/server/out/audit/index.txt +10 -10
- package/dist/server/out/chat/__next.!KHdvcmtzcGFjZSk.chat.__PAGE__.txt +8 -8
- package/dist/server/out/chat/__next._full.txt +8 -8
- package/dist/server/out/chat/__next._tree.txt +2 -2
- package/dist/server/out/chat/index.html +1 -1
- package/dist/server/out/chat/index.txt +8 -8
- package/dist/server/out/connections/__next.!KHdvcmtzcGFjZSk.connections.__PAGE__.txt +10 -10
- package/dist/server/out/connections/__next._full.txt +10 -10
- package/dist/server/out/connections/__next._tree.txt +2 -2
- package/dist/server/out/connections/index.html +1 -1
- package/dist/server/out/connections/index.txt +10 -10
- package/dist/server/out/credentials/__next.!KHdvcmtzcGFjZSk.credentials.__PAGE__.txt +11 -11
- package/dist/server/out/credentials/__next._full.txt +11 -11
- package/dist/server/out/credentials/__next._tree.txt +2 -2
- package/dist/server/out/credentials/index.html +1 -1
- package/dist/server/out/credentials/index.txt +11 -11
- package/dist/server/out/documents/__next.!KHdvcmtzcGFjZSk.documents.__PAGE__.txt +10 -10
- package/dist/server/out/documents/__next._full.txt +10 -10
- package/dist/server/out/documents/__next._tree.txt +2 -2
- package/dist/server/out/documents/index.html +1 -1
- package/dist/server/out/documents/index.txt +10 -10
- package/dist/server/out/index.html +1 -1
- package/dist/server/out/index.txt +10 -10
- package/dist/server/out/people/__next.!KHdvcmtzcGFjZSk.people.__PAGE__.txt +10 -10
- package/dist/server/out/people/__next._full.txt +10 -10
- package/dist/server/out/people/__next._tree.txt +2 -2
- package/dist/server/out/people/index.html +1 -1
- package/dist/server/out/people/index.txt +10 -10
- package/dist/server/out/plugins/__next.!KHdvcmtzcGFjZSk.plugins.__PAGE__.txt +13 -13
- package/dist/server/out/plugins/__next._full.txt +13 -13
- package/dist/server/out/plugins/__next._tree.txt +2 -2
- package/dist/server/out/plugins/index.html +1 -1
- package/dist/server/out/plugins/index.txt +13 -13
- package/dist/server/out/projects/__next.!KHdvcmtzcGFjZSk.projects.__PAGE__.txt +10 -10
- package/dist/server/out/projects/__next._full.txt +10 -10
- package/dist/server/out/projects/__next._tree.txt +2 -2
- package/dist/server/out/projects/index.html +1 -1
- package/dist/server/out/projects/index.txt +10 -10
- package/dist/server/out/runs/__next.!KHdvcmtzcGFjZSk.runs.__PAGE__.txt +12 -12
- package/dist/server/out/runs/__next._full.txt +12 -12
- package/dist/server/out/runs/__next._tree.txt +2 -2
- package/dist/server/out/runs/index.html +1 -1
- package/dist/server/out/runs/index.txt +12 -12
- package/dist/server/out/schedules/__next.!KHdvcmtzcGFjZSk.schedules.__PAGE__.txt +12 -12
- package/dist/server/out/schedules/__next._full.txt +12 -12
- package/dist/server/out/schedules/__next._tree.txt +2 -2
- package/dist/server/out/schedules/index.html +1 -1
- package/dist/server/out/schedules/index.txt +12 -12
- package/dist/server/out/settings/__next.!KHdvcmtzcGFjZSk.settings.__PAGE__.txt +10 -10
- package/dist/server/out/settings/__next._full.txt +10 -10
- package/dist/server/out/settings/__next._tree.txt +2 -2
- package/dist/server/out/settings/index.html +1 -1
- package/dist/server/out/settings/index.txt +10 -10
- package/dist/server/out/setup/__next._full.txt +7 -7
- package/dist/server/out/setup/__next._tree.txt +2 -2
- package/dist/server/out/setup/__next.setup.__PAGE__.txt +7 -7
- package/dist/server/out/setup/index.html +1 -1
- package/dist/server/out/setup/index.txt +7 -7
- package/dist/server/out/tables/__next.!KHdvcmtzcGFjZSk.tables.__PAGE__.txt +10 -10
- package/dist/server/out/tables/__next._full.txt +10 -10
- package/dist/server/out/tables/__next._tree.txt +2 -2
- package/dist/server/out/tables/index.html +1 -1
- package/dist/server/out/tables/index.txt +10 -10
- package/dist/server/out/webhooks/__next.!KHdvcmtzcGFjZSk.webhooks.__PAGE__.txt +10 -10
- package/dist/server/out/webhooks/__next._full.txt +10 -10
- package/dist/server/out/webhooks/__next._tree.txt +2 -2
- package/dist/server/out/webhooks/index.html +1 -1
- package/dist/server/out/webhooks/index.txt +10 -10
- package/dist/server/out/workspaces/invite/__next._full.txt +6 -6
- package/dist/server/out/workspaces/invite/__next._tree.txt +2 -2
- package/dist/server/out/workspaces/invite/__next.workspaces.invite.__PAGE__.txt +6 -6
- package/dist/server/out/workspaces/invite/index.html +1 -1
- package/dist/server/out/workspaces/invite/index.txt +6 -6
- package/docs/browser-sessions.md +85 -0
- package/docs/npm-distribution.md +13 -11
- package/docs/remote-mcp.md +51 -0
- package/package.json +53 -20
- package/runtime/README.md +9 -7
- package/dist/runtime/generated/schema.d.ts +0 -6443
- package/dist/server/out/THIRD_PARTY_NOTICES.md +0 -13
- package/dist/server/out/_next/static/chunks/016glzdsa3q5_.js +0 -1
- package/dist/server/out/_next/static/chunks/05i1qq0mw887k.js +0 -1
- package/dist/server/out/_next/static/chunks/06tt8wiyre1ez.js +0 -1
- package/dist/server/out/_next/static/chunks/0cm9i2msjsy--.js +0 -1
- package/dist/server/out/_next/static/chunks/0hq5dvj7fy64b.js +0 -1
- package/dist/server/out/_next/static/chunks/0ma4vl-fj0tmu.js +0 -1
- package/dist/server/out/_next/static/chunks/0noal-jqjivtf.js +0 -1
- package/dist/server/out/_next/static/chunks/0spckmsiek0gd.js +0 -1
- package/dist/server/out/_next/static/chunks/103sekujf0rxr.js +0 -1
- package/dist/server/out/_next/static/chunks/10h8kpcnjfe_v.js +0 -1
- package/dist/server/out/_next/static/chunks/16_aurf9162_6.js +0 -1
- package/dist/server/out/_next/static/chunks/1c48yx15nlt6w.js +0 -1
- package/dist/server/out/_next/static/chunks/1jp827_2p_wkf.js +0 -1
- package/dist/server/out/_next/static/chunks/1kdk-viqnjs3j.js +0 -1
- package/dist/server/out/_next/static/chunks/1mlfee105fhl7.js +0 -1
- package/dist/server/out/_next/static/chunks/1q9jpzm9b6zy9.js +0 -1
- package/dist/server/out/_next/static/chunks/1v0-a7pehktp9.js +0 -22
- package/dist/server/out/_next/static/chunks/24qxhh2dqvhaa.js +0 -1
- package/dist/server/out/_next/static/chunks/253gnn8ai3i89.js +0 -1
- package/dist/server/out/_next/static/chunks/27umf0z4povug.js +0 -1
- package/dist/server/out/_next/static/chunks/2a_c2xcjy62fq.css +0 -1
- package/dist/server/out/_next/static/chunks/2mvlvogrl6o0u.js +0 -1
- package/dist/server/out/_next/static/chunks/2xzrcwr9q6195.js +0 -1
- package/dist/server/out/_next/static/chunks/2yi6lq56xoijl.js +0 -31
- package/dist/server/out/_next/static/chunks/30g0jo299pr8e.js +0 -1
- package/dist/server/out/_next/static/chunks/36tf56rgybjz0.js +0 -3
- package/dist/server/out/_next/static/chunks/39dofrhzg_uju.js +0 -1
- package/dist/server/out/_next/static/chunks/3a8aanmz3kfof.js +0 -1
- package/dist/server/out/_next/static/chunks/3bd3k15tx3lj1.js +0 -1
- package/dist/server/out/_next/static/chunks/3d34pxerfr389.js +0 -1
- package/dist/server/out/_next/static/chunks/3elab9vgx7_ok.js +0 -1
- package/dist/server/out/_next/static/chunks/3gvae9c-5pi5z.js +0 -1
- package/dist/server/out/_next/static/chunks/3hzia782sc9pf.js +0 -1
- package/dist/server/out/_next/static/chunks/3jl4k-15i8847.js +0 -1
- package/dist/server/out/_next/static/chunks/3lb23el6qno6s.js +0 -1
- package/dist/server/out/_next/static/chunks/3prum3lr5470i.js +0 -3
- package/dist/server/out/_next/static/chunks/3prwkrciuqwjg.js +0 -1
- package/dist/server/out/_next/static/chunks/3txmqtuo5xgfd.js +0 -3
- package/dist/server/out/third-party-licenses/monaco-editor.txt +0 -21
- package/dist/server/out/third-party-licenses/zod.txt +0 -21
- /package/dist/server/out/_next/static/{F49bfPs3jKhcIuc95hqZh → -qfuCDzkIvBZY_UFsMHnB}/_buildManifest.js +0 -0
- /package/dist/server/out/_next/static/{F49bfPs3jKhcIuc95hqZh → -qfuCDzkIvBZY_UFsMHnB}/_clientMiddlewareManifest.js +0 -0
- /package/dist/server/out/_next/static/{F49bfPs3jKhcIuc95hqZh → -qfuCDzkIvBZY_UFsMHnB}/_ssgManifest.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:"/_next/static/chunks/
|
|
2
|
+
2:"/_next/static/chunks/2ngzwwqeitkk7.js"
|
|
3
3
|
3:I[39756,["$2"],"default"]
|
|
4
4
|
4:I[37457,["$2"],"default"]
|
|
5
5
|
9:I[47257,["$2"],"ClientPageRoot"]
|
|
6
6
|
a:"/_next/static/chunks/3u7q5w03st-rs.js"
|
|
7
|
-
b:"/_next/static/chunks/
|
|
8
|
-
c:"/_next/static/chunks/
|
|
7
|
+
b:"/_next/static/chunks/3l-16g1y6k5rs.js"
|
|
8
|
+
c:"/_next/static/chunks/0huhp5j8dlai8.js"
|
|
9
9
|
d:I[18707,["$2","$a","$b","$c"],"default"]
|
|
10
10
|
10:I[97367,["$2"],"OutletBoundary"]
|
|
11
11
|
11:"$Sreact.suspense"
|
|
@@ -14,12 +14,12 @@ d:I[18707,["$2","$a","$b","$c"],"default"]
|
|
|
14
14
|
16:"MetadataBoundary"
|
|
15
15
|
17:I[97367,["$2"],"$16"]
|
|
16
16
|
19:I[68027,["$2"],"default",1]
|
|
17
|
-
:HL["/_next/static/chunks/
|
|
17
|
+
:HL["/_next/static/chunks/0rlc9tihf4po6.css","style"]
|
|
18
18
|
6:X
|
|
19
|
-
8:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$L9",null,{"Component":"$d","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@e","$@f"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/3u7q5w03st-rs.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/
|
|
19
|
+
8:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$L9",null,{"Component":"$d","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@e","$@f"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/3u7q5w03st-rs.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/3l-16g1y6k5rs.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0huhp5j8dlai8.js","async":true,"nonce":"$undefined"}]],["$","$L10",null,{"children":["$","$11",null,{"name":"Next.MetadataOutlet","children":"$@12"}]}]]}],"p":false,"v":null}}]]
|
|
20
20
|
7:[["children",{"s":"invite","h":512,"d":{"r":["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],"p":false,"v":"$6"},"c":"$Q8"}]]
|
|
21
21
|
5:[["children",{"s":"workspaces","h":512,"d":{"r":["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],"p":false,"v":"$6"},"c":"$Q7"}]]
|
|
22
|
-
0:{"P":null,"c":["","workspaces","invite",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
22
|
+
0:{"P":null,"c":["","workspaces","invite",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0rlc9tihf4po6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/2ngzwwqeitkk7.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en-AU","children":["$","body",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],"p":false,"v":null},"c":"$Q5"},"h":{"r":["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","$L17",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$11",null,{"name":"Next.Metadata","children":"$L18"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$19",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0rlc9tihf4po6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"-qfuCDzkIvBZY_UFsMHnB"}
|
|
23
23
|
6:C
|
|
24
24
|
e:{}
|
|
25
25
|
f:"$8:0:1:d:r:props:children:0:props:serverProvidedParams:params"
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Iterate on a browser workflow and save an action
|
|
2
|
+
|
|
3
|
+
An external MCP client can keep a TypeScript session on a project runner while it inspects a live browser. Each cell can use variables and helpers from earlier cells. When the route works, save a self-contained version as an action and run it with new inputs.
|
|
4
|
+
|
|
5
|
+
## Connect the browser
|
|
6
|
+
|
|
7
|
+
1. On Linux with Node.js 22.22.0 or newer, install the CLI and start its bundled local executor. Open `http://127.0.0.1:8080`, create a workspace and select a project. A separately managed runner needs `@orgsdk/executor@0.2.0` for this release.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install -g @orgsdk/cli@0.2.0
|
|
11
|
+
orgsdk start --host 127.0.0.1 --port 8080 --data "$PWD/.runtime/browser-lab"
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
2. Start one Playwright MCP process for this project. The example uses Microsoft's 0.0.86 release and a dedicated local Chromium profile. Set `CHROME_BIN` to the full path to Chrome or Chromium.
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npx --yes --package=@playwright/mcp@0.0.86 playwright-mcp \
|
|
18
|
+
--host 127.0.0.1 --port 8931 --headless \
|
|
19
|
+
--executable-path "$CHROME_BIN" \
|
|
20
|
+
--user-data-dir "$PWD/.runtime/playwright-profile" \
|
|
21
|
+
--shared-browser-context
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
3. Under **Plugins → Connect MCP server**, use the name `playwright` and the URL `http://127.0.0.1:8931/mcp` for a host runner on the same machine. Choose anonymous authentication, check the connection, review the schema, and enable `browser_run_code_unsafe`. This upstream tool executes Playwright code with the browser server's host privileges. Use a dedicated browser process and trusted local clients. Every client connected to this shared-context endpoint can see the same browser state.
|
|
25
|
+
4. Connect the external client to the **OrgSDK workspace** URL ending in `/mcp/` using a project-scoped bearer token. Grant `catalog:read`, `code:execute`, and `runs:read` for discovery and iteration. Add `actions:write`, `actions:test`, and `actions:run` to author, test, and replay. Use `list_projects` and `get_project_sdk` to discover the project ID and the reviewed tool alias. For the name above it is `playwright.browserRunCodeUnsafe`.
|
|
26
|
+
|
|
27
|
+
A project using the external Browser CDP plugin can use its named operations instead, such as `browserCdp.listPages({})` and `browserCdp.readText({ pageId, selector })`. Install that plugin and configure its CDP endpoint first. The plugin returns stable page IDs for a running Chromium instance.
|
|
28
|
+
|
|
29
|
+
## Iterate using MCP
|
|
30
|
+
|
|
31
|
+
Call `open_session` with the project and a fresh `idempotency_key`. This and each subsequent command return a run ID. Poll `get_run({id})` until the run reaches a terminal state. A successful open returns the session ID, generation, sequence and cursor in `output.result`.
|
|
32
|
+
|
|
33
|
+
Send the following source in `execute_cell`, supplying the project, `session_id`, `generation`, `expected_sequence`, a client-generated UUID for `cell_id`, and an idempotency key. Use a page you control as `inputs.url`.
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
const target = String(actionParams.url);
|
|
37
|
+
const inspect = (code: string) => playwright.browserRunCodeUnsafe({ code });
|
|
38
|
+
const first = await inspect(
|
|
39
|
+
`async page => {
|
|
40
|
+
await page.goto(${JSON.stringify(target)});
|
|
41
|
+
return await page.title();
|
|
42
|
+
}`
|
|
43
|
+
);
|
|
44
|
+
return first;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Inspect `output.result.cell.status`, `result`, `error` and `diagnostics`. A run can deliver feedback successfully even when the cell itself failed compilation. For the next cell, use the returned cell sequence and a new cell UUID. This example reuses both the existing TypeScript helper and the page opened above.
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
return await inspect('async page => await page.getByRole("heading").first().innerText()');
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Cells provide project file functions and named tools from approved MCP connections and external plugins. Call a reviewed Playwright tool to work with the page. Browser objects stay in the Playwright process.
|
|
54
|
+
|
|
55
|
+
For retries, reuse the original cell ID, source, inputs and run idempotency key. To reconnect, use `read_session` with the project, session ID and an idempotency key. Supply `after` to page through events and continue from `nextCursor` while `hasMore` is true. Session commands run one at a time per project. To interrupt an active cell, grant `runs:cancel`, call `cancel_run({id})` with the cell’s run ID, and poll `get_run` until it reaches a terminal state. Queued reads and closes can then proceed. Explicitly close with `close_session` to free the project for another discovery session. Idle sessions expire after 15 minutes. Closing or restarting the runner discards live JavaScript variables. The project files, recorded runs and saved actions persist. The browser's lifetime is controlled by the separate Playwright process. A guard stops the session worker if its supervisor exits during a cell. When running in Docker, build the job image from the same revision as the executor so it includes that guard.
|
|
56
|
+
|
|
57
|
+
## Turn the route into a reusable action
|
|
58
|
+
|
|
59
|
+
Collect the steps you need in self-contained source. Replace the discovery URL and other task-specific literals with inputs. For example, this action opens its own destination and returns the Playwright tool response for the first heading.
|
|
60
|
+
|
|
61
|
+
```ts
|
|
62
|
+
const { url } = defineParams(z.object({ url: z.string().url() }));
|
|
63
|
+
const code = `async page => {
|
|
64
|
+
await page.goto(${JSON.stringify(url)});
|
|
65
|
+
return await page.getByRole("heading").first().innerText();
|
|
66
|
+
}`;
|
|
67
|
+
return await playwright.browserRunCodeUnsafe({ code });
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Call `validate_code` with the project, source, input schema and an idempotency key. Wait for the check to succeed before saving the action. Call `save_action` with the project, name, source and input schema. Use its returned action ID and version with `save_tests`, then `run_tests` with the returned suite revision and an idempotency key. Mocks identify the reviewed tool by its full namespace and exact arguments. Finally, call `run_action` with the project, action ID, version, fresh inputs and a new idempotency key. Verify the live result through `get_run`. A saved version can be run after the discovery session is closed.
|
|
71
|
+
|
|
72
|
+
## Reproduce the local check
|
|
73
|
+
|
|
74
|
+
Install the platform checkout's dependencies with `npm run setup`. Set the paths to the installed `@playwright/mcp@0.0.86` entrypoint and a Chromium binary, then run the smoke check from the checkout. It creates an isolated workspace and browser profile, serves a local form, and verifies discovery across two session cells, validation, mocked action tests and live action replay after closing the session.
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
ORGSDK_PLAYWRIGHT_MCP_ENTRY=/path/to/node_modules/@playwright/mcp/cli.js \
|
|
78
|
+
ORGSDK_BROWSER_EXECUTABLE=/path/to/chrome npm run test:browser-agent
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
The command starts the source server and executor with Bun by default. To exercise
|
|
82
|
+
the same flow through Linux Node.js host mode, set `ORGSDK_BROWSER_AGENT_CLI` to
|
|
83
|
+
the absolute path of the built `bin/orgsdk.mjs` after `npm run build:npm`, or to
|
|
84
|
+
that file inside a locally installed candidate package. The platform and executor
|
|
85
|
+
then run with a Node-only PATH. The smoke driver still uses Bun.
|
package/docs/npm-distribution.md
CHANGED
|
@@ -2,25 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Tracking: [Node.js distribution issue #7](https://github.com/OrgSDK/OrgSDK/issues/7).
|
|
4
4
|
|
|
5
|
-
The platform package is `@orgsdk/cli
|
|
5
|
+
The platform package is `@orgsdk/cli`. Its `orgsdk` command supervises the platform and separate HTTP executor. The independently installable runner is `@orgsdk/executor`. Both packages use public access on the npm registry. The source package version is `0.2.0`; builds, checks and source merges do not publish packages. Commands containing `VERSION` require a selected published version.
|
|
6
6
|
|
|
7
7
|
On Linux with Node.js 22.22.0 or newer:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
npm install -g @orgsdk/cli
|
|
10
|
+
npm install -g @orgsdk/cli
|
|
11
11
|
orgsdk start
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
The platform already includes its local executor. Install `@orgsdk/executor
|
|
14
|
+
The platform already includes its local executor. Install `@orgsdk/executor` separately only when managing a runner independently.
|
|
15
15
|
|
|
16
16
|
## Build and install
|
|
17
17
|
|
|
18
|
-
Use Linux, Node.js 22.22.0 or newer, npm, and Bun 1.4 for development and the existing test suite. `
|
|
18
|
+
Use Linux, Node.js 22.22.0 or newer, npm, and Bun 1.4 for development and the existing test suite. `npm run setup` installs the locked development dependencies. `npm run build:npm` builds Next.js, the portable server and JavaScript executor workers. `npm pack --ignore-scripts` packs the completed build; plain `npm pack` runs that build itself.
|
|
19
|
+
|
|
20
|
+
Both platform builds generate `dist/THIRD_PARTY_NOTICES.txt` from the installed MCP client/core, Monaco and Zod packages. Package names and versions are recorded, identical license texts are grouped, and upstream license contents are preserved. The platform npm tarball includes the generated file. Ship it alongside the standalone executable; the individual notice files are not frontend assets or tracked source files. The standalone smoke and npm installation tests verify the release notice file.
|
|
19
21
|
|
|
20
22
|
Install the tarball into a separate directory or globally:
|
|
21
23
|
|
|
22
24
|
```sh
|
|
23
|
-
npm install -g ./orgsdk-cli-0.
|
|
25
|
+
npm install -g ./orgsdk-cli-0.2.0.tgz
|
|
24
26
|
orgsdk start
|
|
25
27
|
```
|
|
26
28
|
|
|
@@ -44,9 +46,9 @@ Before upgrading, stop OrgSDK and preserve the database, matching encryption key
|
|
|
44
46
|
|
|
45
47
|
## Verification
|
|
46
48
|
|
|
47
|
-
`npm run test:distribution -- ./orgsdk-cli-0.
|
|
49
|
+
`npm run test:distribution -- ./orgsdk-cli-0.2.0.tgz` installs the real tarball into an empty temporary directory. Use `npm run test:distribution -- @orgsdk/cli@VERSION` to install from the public registry instead. The application and runner are launched with a path containing only Node.js. `npm run test:distribution:bun -- ./orgsdk-cli-0.2.0.tgz` runs the same acceptance assertions with Bun. These tests exercise frontend and Monaco assets, setup, login, automatic executor registration, code, validation, reusable action tests/execution, persistent files across restart, migration, backup, cancellation and graceful shutdown. They use disposable account and installation data.
|
|
48
50
|
|
|
49
|
-
Verify the independent registry runner with `npm --prefix runtime run smoke:node -- @orgsdk/executor@
|
|
51
|
+
Verify the independent registry runner with `npm --prefix runtime run smoke:node -- @orgsdk/executor@VERSION`. Use `smoke:bun` for the matching Bun assertions. An explicit tarball argument tests that exact artifact without rebuilding it.
|
|
50
52
|
|
|
51
53
|
CI separates source quality, runtime behavior and standalone executable checks:
|
|
52
54
|
|
|
@@ -58,15 +60,15 @@ CI separates source quality, runtime behavior and standalone executable checks:
|
|
|
58
60
|
|
|
59
61
|
The pinned Node.js 22.22.0 lane checks the declared minimum. The Node.js 24 lane follows patch updates within that maintained major. This matrix does not run every unit test under Node.js: the full unit suites remain on Bun, while the shared contract and integration assertions exercise both product runtimes. The required `check` aggregator runs even when a dependency fails and requires every quality, runtime and standalone job to succeed.
|
|
60
62
|
|
|
61
|
-
After `npm run build:npm`, select the platform and execution-worker runtime for the browser suite with `ORGSDK_E2E_RUNTIME=node ORGSDK_E2E_ENTRY=dist/server/index.js
|
|
63
|
+
After `npm run build:npm`, select the platform and execution-worker runtime for the browser suite with `ORGSDK_E2E_RUNTIME=node ORGSDK_E2E_ENTRY=dist/server/index.js npm run e2e` or replace `node` with `bun`. The executor package has matching `npm --prefix runtime run smoke:node` and `npm --prefix runtime run smoke:bun` commands. They pack and install the same JavaScript artifact, then assert CLI registration, persistent project files, plugins, validation/tests, durable sessions, cancellation and shutdown under the selected runtime. The Node smoke removes Bun from PATH.
|
|
62
64
|
|
|
63
|
-
`
|
|
65
|
+
`npm run check` retains source checks. `npm run build`, compiled database tests, `ORGSDK_E2E_BINARY=dist/orgsdk npm run e2e`, and `npm run smoke:binary` retain the Bun standalone checks. Passing Linux checks does not establish other operating systems or architectures as supported.
|
|
64
66
|
|
|
65
67
|
## Release procedure
|
|
66
68
|
|
|
67
|
-
Release requires maintainer authorization separately from implementation.
|
|
69
|
+
Release requires maintainer authorization separately from implementation. First complete the [develop-to-main release workflow](release-workflow.md), including version and changelog review. Select that checked commit on `main` and record installation/upgrade notes. Authenticate with an npm account authorized for `@orgsdk`; interactive publication can require browser authentication and a second factor. Do not commit tokens.
|
|
68
70
|
|
|
69
|
-
1. Run `
|
|
71
|
+
1. Run `npm run setup`, `npm run check`, `npm run build:npm` and the runtime/browser CI matrix.
|
|
70
72
|
2. Pack the completed platform with `npm pack --ignore-scripts` and the executor with `npm pack ./runtime --ignore-scripts`. Review both tarballs, including the retained license and runtime provenance. Exclude installation data, credentials, source tests and fixtures.
|
|
71
73
|
3. Run `npm run test:distribution -- ./orgsdk-cli-VERSION.tgz` and `npm --prefix runtime run smoke:node -- /absolute/path/orgsdk-executor-VERSION.tgz` against the exact release artifacts. Retain their SHA512 integrity values.
|
|
72
74
|
4. Publish each reviewed tarball with `npm publish ./PACKAGE.tgz --access public --ignore-scripts`. Publishing the tarball avoids rebuilding after verification. If one package succeeds and another fails, verify the published package and retry only the missing package; npm versions cannot be overwritten.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Remote MCP project plugins
|
|
2
|
+
|
|
3
|
+
Project administrators can add HTTP(S) MCP servers under **Plugins → Connect MCP server**. Tools run directly from that project's executor. The OrgSDK server performs OAuth authorization and token refresh, and supplies only the connection's access headers to an authenticated run.
|
|
4
|
+
|
|
5
|
+
## Connect and use
|
|
6
|
+
|
|
7
|
+
1. Connect an updated project runner (executor protocol 4).
|
|
8
|
+
2. Enter a connection name such as `customer-tools`, the server URL and its authentication mode: anonymous, bearer/custom headers, or OAuth. Keep secrets in the credential fields, never in the URL.
|
|
9
|
+
3. For OAuth, set `ORGSDK_PUBLIC_ORIGIN` to the registered workspace origin, then use **Sign in** and open the authorization link. A pre-registered client can use `/oauth/mcp/callback` at that origin. Client ID, client secret and client metadata URL are optional; the SDK can use the server's advertised registration mechanisms.
|
|
10
|
+
4. **Check connection / refresh tools** queues a discovery job on the project runner. It lists tools without calling them. Review each input/output schema, select tools and accept the catalogue.
|
|
11
|
+
5. Discover the project SDK through the existing inbound MCP endpoint or the code editor, then call the namespace from code or a saved action:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
const result = await customerTools.searchRecords({ query: "example" });
|
|
15
|
+
return result; // MCP result envelope: content blocks and structuredContent
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
The connection name becomes the ordinary camelCase plugin namespace. Tool names receive stable camelCase aliases. Collisions and unsafe JavaScript property names get deterministic suffixes; the original name stays in SDK metadata as `remote_name`. Input and output JSON Schemas are preserved. Editor and semantic-validation types come from those schemas; unsupported constructs produce `unknown` rather than executable remote declarations.
|
|
19
|
+
|
|
20
|
+
For a complete local Playwright workflow, see [browser discovery sessions](browser-sessions.md).
|
|
21
|
+
|
|
22
|
+
## Review, recovery and access
|
|
23
|
+
|
|
24
|
+
A check does not enable new tools. A refresh produces a candidate catalogue; previously enabled, unchanged tools are preselected in the review. New or changed tools need explicit acceptance. Removed tools disappear on acceptance. Existing run snapshots retain their original endpoint, transport, schemas, approved names and aliases. This pins the OrgSDK contract, not the remote implementation.
|
|
25
|
+
|
|
26
|
+
Disable/remove, endpoint/authentication replacement and removal of an enabled tool cancel affected queued/running jobs. Workers observe cancellation through the existing heartbeat. Remote effects dispatched before cancellation cannot be undone. Adding tools or accepting schema changes does not widen existing snapshots. Actions use the project contract captured for each run.
|
|
27
|
+
|
|
28
|
+
Use **Update connection** to replace credentials, choose authentication or explicitly select Streamable HTTP or legacy HTTP/SSE. Saving disables the connection until discovery and review are completed again. Offline runners need to be connected; older runners need an upgrade. Authentication failures need sign-in or replacement credentials. Failed discovery reports a bounded diagnostic and can be checked again.
|
|
29
|
+
|
|
30
|
+
OAuth authorization endpoints must be reachable from OrgSDK. OAuth discovery checks destinations and rejects redirects. HTTPS is required except loopback servers; private destinations are allowed only at the explicitly configured MCP origin. Runner discovery can supply protected-resource metadata when the MCP resource itself is not reachable from OrgSDK. Cross-origin authentication forwarding is prohibited. Refresh tokens and client secrets stay encrypted on OrgSDK and are never sent to runners. Generic credential editing cannot repurpose an MCP credential.
|
|
31
|
+
|
|
32
|
+
## Runtime boundaries
|
|
33
|
+
|
|
34
|
+
- Official `@modelcontextprotocol/client` is pinned to **2.4.0**. Protocol negotiation is automatic. Transport `auto` attempts legacy SSE only on a definite 404/405 from the HTTP connection attempt; 401/403 and outages do not trigger fallback.
|
|
35
|
+
- A transport factory is separate from the reusable client's connect/discover/call/close operations. Connections open lazily and are reused only within one run; completion, failure and cancellation close them.
|
|
36
|
+
- Tool calls use the reviewed definition, including output validation, and are never automatically replayed after ambiguous failure. Tool-level `isError` results fail the call with bounded, redacted diagnostics.
|
|
37
|
+
- Limits: 60 seconds total discovery; 15 seconds per connection/discovery request; 100 pages, 1,000 tools and 500 KB catalogue JSON; 60 seconds per dispatched tool call; 1 MB received response stream/result; 200 KB OAuth responses and 15 seconds per OAuth HTTP request. The normal run/source/trace limits also apply.
|
|
38
|
+
- Discovery capabilities cannot execute user code, call product operations, create approvals/artifacts or retrieve unrelated credentials. They contain one configured connection and no enabled tools.
|
|
39
|
+
- Semantic validation and action tests use metadata and existing mocks only. They have no MCP connection or credential authority.
|
|
40
|
+
- Protocol 4 is required for MCP execution/discovery and isolated validation/testing of MCP metadata. Older executors continue to claim compatible jobs.
|
|
41
|
+
- Schema migration `0003_remote-mcp` adds the connection table without changing existing plugin, credential, action-version or run records. Runtime code uses HTTP APIs and never opens the product database.
|
|
42
|
+
|
|
43
|
+
Resources, prompts, sampling, elicitation, asynchronous task extensions and stdio execution are outside this implementation. HTTP servers must support ordinary MCP tool calls and one of the authentication modes above. No arbitrary external server compatibility claim is implied.
|
|
44
|
+
|
|
45
|
+
## Verification
|
|
46
|
+
|
|
47
|
+
Protocol fixtures cover current and older Streamable HTTP, JSON/SSE bodies, legacy SSE, pagination, transport fallback, auth failures, cross-origin redirects, cancellation and redaction. Server integration tests exercise catalogue review, SDK discovery, separate-process code/action execution, traces, access removal, immutable snapshots, older-worker rejection and discovery authority. OAuth fixtures cover dynamic/pre-registered clients, PKCE, browser-session state, issuer checks, endpoint replacement and concurrent refresh. Isolated tests exercise existing tool mocks without network access.
|
|
48
|
+
|
|
49
|
+
Run `npm run check`, `npm run e2e`, `npm run build` and `npm run smoke:binary`. Run the built Node application through `ORGSDK_E2E_NODE_ENTRY=dist/server/index.js npm run e2e`. Build/pack locally, then `npm run test:distribution -- /absolute/path/package.tgz`; its fresh Node-only installation now includes MCP discovery and execution through the packaged runner. These checks use temporary installations and synthetic credentials. Publication, deployment and existing installation upgrades are separate operations.
|
|
50
|
+
|
|
51
|
+
Protocol references: [SDK protocol support](https://ts.sdk.modelcontextprotocol.io/v2/protocol-versions.html) and [OAuth client guidance](https://ts.sdk.modelcontextprotocol.io/v2/clients/oauth.html).
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"version": "0.2.0",
|
|
2
3
|
"name": "@orgsdk/cli",
|
|
3
4
|
"publishConfig": {
|
|
4
5
|
"access": "public",
|
|
@@ -10,50 +11,75 @@
|
|
|
10
11
|
"type": "module",
|
|
11
12
|
"scripts": {
|
|
12
13
|
"start": "bun server/index.ts",
|
|
13
|
-
"dev": "bun --
|
|
14
|
-
"test": "
|
|
14
|
+
"dev": "bun --no-env-file scripts/dev.ts",
|
|
15
|
+
"test": "npm run test:unit && npm run test:integration",
|
|
15
16
|
"typecheck": "tsc --noEmit",
|
|
16
17
|
"build": "bun scripts/build.ts",
|
|
17
|
-
"format": "prettier --write server scripts/*.ts
|
|
18
|
-
"format:check": "prettier --check server scripts/*.ts
|
|
18
|
+
"format": "prettier --write server scripts/*.ts bin/*.mjs e2e knip.json package.json tsconfig.json playwright.config.ts eslint.config.mjs drizzle.config.ts",
|
|
19
|
+
"format:check": "prettier --check server scripts/*.ts bin/*.mjs e2e knip.json package.json tsconfig.json playwright.config.ts eslint.config.mjs drizzle.config.ts",
|
|
19
20
|
"e2e": "bun scripts/e2e.ts",
|
|
20
21
|
"lint": "eslint --max-warnings=0",
|
|
21
|
-
"check": "
|
|
22
|
+
"check": "npm run release:check && npm run test:release && npm run license:check && npm run check:server && npm run deadcode && npm --prefix runtime run typecheck && npm run test:cli && npm test && npm --prefix frontend run check && npm --prefix frontend run build",
|
|
22
23
|
"db:generate": "drizzle-kit generate",
|
|
23
24
|
"db:migrate": "bun server/index.ts migrate",
|
|
24
25
|
"db:check": "bun scripts/check-migrations.ts",
|
|
25
|
-
"build:npm": "
|
|
26
|
+
"build:npm": "tsx scripts/build-npm.ts",
|
|
27
|
+
"test:browser-agent": "bun --no-env-file scripts/browser-agent-smoke.ts",
|
|
26
28
|
"test:cli": "node --test bin/*.test.mjs",
|
|
27
29
|
"test:distribution": "esbuild scripts/distribution-smoke.ts --bundle --platform=node --packages=external --format=esm --outfile=dist/distribution-smoke.mjs && node dist/distribution-smoke.mjs",
|
|
28
30
|
"test:distribution:bun": "esbuild scripts/distribution-smoke.ts --bundle --platform=node --packages=external --format=esm --outfile=dist/distribution-smoke.mjs && bun dist/distribution-smoke.mjs",
|
|
29
|
-
"prepack": "npm run build:npm"
|
|
31
|
+
"prepack": "npm run build:npm",
|
|
32
|
+
"setup": "npm ci && npm --prefix frontend ci && npm --prefix runtime ci",
|
|
33
|
+
"check:server": "bun run format:check && bun run lint && bun run typecheck && bun run db:check",
|
|
34
|
+
"license:check": "node --input-type=module -e \"import { readFileSync } from 'node:fs'; import { strictEqual } from 'node:assert'; strictEqual(readFileSync('LICENSE', 'utf8'), readFileSync('runtime/LICENSE', 'utf8'));\"",
|
|
35
|
+
"deadcode": "knip --include files,dependencies,unlisted,unresolved",
|
|
36
|
+
"deadcode:exports": "knip --include exports,types",
|
|
37
|
+
"deps:outdated": "npm outdated; npm --prefix frontend outdated; npm --prefix runtime outdated",
|
|
38
|
+
"prune:empty": "bun scripts/prune-empty.ts",
|
|
39
|
+
"test:unit": "bun scripts/test.ts unit server runtime/src frontend/tests",
|
|
40
|
+
"test:integration": "bun scripts/test.ts integration server runtime/src frontend/tests",
|
|
41
|
+
"container:start": "bun scripts/compose.ts start",
|
|
42
|
+
"container:backup": "bun scripts/compose.ts backup",
|
|
43
|
+
"container:restore": "bun scripts/compose.ts restore",
|
|
44
|
+
"smoke:binary": "bun scripts/smoke-binary.ts",
|
|
45
|
+
"test:dev": "bun --no-env-file scripts/dev-smoke.ts",
|
|
46
|
+
"release:check": "tsx scripts/release.ts check",
|
|
47
|
+
"release:plan": "tsx scripts/release.ts plan",
|
|
48
|
+
"release:prepare": "tsx scripts/release.ts prepare",
|
|
49
|
+
"test:release": "bun test scripts/release.test.ts"
|
|
30
50
|
},
|
|
31
51
|
"dependencies": {
|
|
32
|
-
"@
|
|
52
|
+
"@modelcontextprotocol/client": "2.4.0",
|
|
53
|
+
"@node-rs/argon2": "^2.2.2",
|
|
54
|
+
"@trpc/server": "^11.24.0",
|
|
33
55
|
"ajv": "^8.17.1",
|
|
34
|
-
"cron-parser": "^5.0.0",
|
|
35
|
-
"drizzle-orm": "^0.45.0",
|
|
36
|
-
"nodemailer": "^10.2.1",
|
|
37
|
-
"zod": "^4.0.0",
|
|
38
56
|
"better-sqlite3": "^13.0.3",
|
|
39
|
-
"
|
|
57
|
+
"cron-parser": "^5.10.3",
|
|
58
|
+
"drizzle-orm": "^0.45.0",
|
|
40
59
|
"esbuild": "0.28.2",
|
|
60
|
+
"nodemailer": "^10.3.1",
|
|
41
61
|
"pino": "^10.4.0",
|
|
42
|
-
"typescript": "~6.0.3"
|
|
62
|
+
"typescript": "~6.0.3",
|
|
63
|
+
"zod": "^4.0.0"
|
|
43
64
|
},
|
|
44
65
|
"devDependencies": {
|
|
45
66
|
"@eslint/js": "^10.0.1",
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
67
|
+
"@modelcontextprotocol/server": "2.4.0",
|
|
68
|
+
"@playwright/test": "^1.65.0",
|
|
69
|
+
"@trpc/client": "^11.24.0",
|
|
70
|
+
"@types/better-sqlite3": "^9.6.0",
|
|
71
|
+
"@types/bun": "^1.4.4",
|
|
72
|
+
"@types/http-proxy": "^1.17.17",
|
|
48
73
|
"@types/nodemailer": "^8.0.2",
|
|
49
74
|
"drizzle-kit": "^0.31.0",
|
|
50
|
-
"eslint": "^10.
|
|
75
|
+
"eslint": "^10.14.0",
|
|
51
76
|
"eslint-plugin-unicorn": "^79.0.0",
|
|
77
|
+
"http-proxy": "^1.18.1",
|
|
78
|
+
"knip": "^6.44.1",
|
|
52
79
|
"prettier": "^3.9.10",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
80
|
+
"tsx": "^4.23.15",
|
|
81
|
+
"typescript-eslint": "^8.72.1"
|
|
55
82
|
},
|
|
56
|
-
"version": "0.1.0",
|
|
57
83
|
"description": "Local OrgSDK platform and code executor",
|
|
58
84
|
"license": "SEE LICENSE IN LICENSE",
|
|
59
85
|
"bin": {
|
|
@@ -66,7 +92,10 @@
|
|
|
66
92
|
"bin/supervision.mjs",
|
|
67
93
|
"dist/server/",
|
|
68
94
|
"dist/runtime/",
|
|
95
|
+
"dist/THIRD_PARTY_NOTICES.txt",
|
|
69
96
|
"docs/npm-distribution.md",
|
|
97
|
+
"docs/remote-mcp.md",
|
|
98
|
+
"docs/browser-sessions.md",
|
|
70
99
|
"runtime/README.md",
|
|
71
100
|
"README.md",
|
|
72
101
|
"LICENSE"
|
|
@@ -77,5 +106,9 @@
|
|
|
77
106
|
"repository": {
|
|
78
107
|
"type": "git",
|
|
79
108
|
"url": "git+https://github.com/OrgSDK/OrgSDK.git"
|
|
109
|
+
},
|
|
110
|
+
"overrides": {
|
|
111
|
+
"minimatch@>=7": "^11.0.1",
|
|
112
|
+
"esbuild": "$esbuild"
|
|
80
113
|
}
|
|
81
114
|
}
|
package/runtime/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Persistent project executor
|
|
2
2
|
|
|
3
|
-
The `@orgsdk/executor` npm package provides `orgsdk-executor`. Install it with `npm install -g @orgsdk/executor
|
|
3
|
+
The `@orgsdk/executor` npm package provides `orgsdk-executor`. Install it with `npm install -g @orgsdk/executor` for an independently managed runner. The `@orgsdk/cli` platform package already includes its local executor. Linux with Node 22.22.0+ and npm is required. Bun 1.4 remains an optional source-development runtime; installed JavaScript workers do not require Bun on PATH. Docker execution additionally requires Docker with `--mount volume-subpath` support, a built executor image, and network access to the OrgSDK application.
|
|
4
4
|
|
|
5
5
|
Create an executor identity for the chosen project in the application. Register using its token on stdin (or `EXECUTOR_TOKEN`), without placing the token in command history:
|
|
6
6
|
|
|
@@ -9,13 +9,13 @@ orgsdk-executor register --url http://localhost:8080 --data /path/to/private-run
|
|
|
9
9
|
orgsdk-executor start --data /path/to/private-runner
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
Registration saves the token in `registration.json` with mode 0600. Without `--data` or `EXECUTOR_DATA_DIR`, data lives at `$XDG_DATA_HOME/orgsdk/executor` (default `~/.local/share/orgsdk/executor`), independently of the package installation directory. Docker is the default mode. Configure `EXECUTOR_IMAGE`, `EXECUTION_NETWORK`, and `EXECUTOR_DATA_VOLUME`; set `--data` to the mounted volume root so it contains `agents/<agent-id>`. Docker jobs mount only their own agent subdirectory at `/agent`, use `/agent/workspace` as their working directory, and receive only their run capability through stdin. Other agents and registration files are not mounted. The managed installation runs `orgsdk-executor manage` (or `node dist/supervisor.js`) with `
|
|
12
|
+
Registration saves the token in `registration.json` with mode 0600. Without `--data` or `EXECUTOR_DATA_DIR`, data lives at `$XDG_DATA_HOME/orgsdk/executor` (default `~/.local/share/orgsdk/executor`), independently of the package installation directory. Docker is the default mode. Configure `EXECUTOR_IMAGE`, `EXECUTION_NETWORK`, and `EXECUTOR_DATA_VOLUME`; set `--data` to the mounted volume root so it contains `agents/<agent-id>`. Docker jobs mount only their own agent subdirectory at `/agent`, use `/agent/workspace` as their working directory, and receive only their run capability through stdin. Other agents and registration files are not mounted. The managed installation runs `orgsdk-executor manage` (or `node dist/supervisor.js`) with `ORGSDK_SERVER_URL` and `LOCAL_EXECUTOR_BOOTSTRAP_TOKEN`. Each identity has one serial worker; revoked identities stop and remain stopped while the same revoked registration is advertised. Bootstrap omissions stop active workers; a later explicit re-enable or replacement identity starts a new worker. Transient startup failures retry with a bounded delay.
|
|
13
13
|
|
|
14
14
|
Use `start --mode host` explicitly to run child jobs using the current OS account, its PATH and HOME. Host mode can use installed command-line tools and their account configuration; it is appropriate only for trusted plugins. It filters bootstrap, token, password, API key and credential environment variables from child jobs. Plugin code still receives only snapshot-authorized product credentials through the run capability. Host processes retain OS account filesystem access. Host validation/test workers receive only the allowlisted source, SDK metadata, test fixtures and output schema, run in a disposable directory, and have no product capability or project mount. Their OS account can still access host files; Docker provides the OS isolation boundary. Docker is the default isolation boundary.
|
|
15
15
|
|
|
16
16
|
Project workspace files and installed plugin releases survive runs. No run cleanup deletes the agent folder. Plugins install under `agents/<id>/plugins/<slug>/<sha256>/plugin.mjs`; historical pinned versions remain available to retries. Current enabled configuration is fetched before each claim. External clients own reasoning and coordination. The runtime executes action, code, validation and test jobs only; built-in chat and reasoning delegation are retired. Existing `agents/<id>` storage paths and `--agent` install arguments identify retained project IDs.
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
[Execution sessions](src/sessions/README.md) keep successive cells in one live worker, with stable session IDs, cursor-based events and retained history after close or expiry. The executor advertises session support during registration and handles authenticated session commands in its project job loop.
|
|
19
19
|
|
|
20
20
|
## External plugins
|
|
21
21
|
|
|
@@ -49,8 +49,8 @@ Docker mode also needs Docker
|
|
|
49
49
|
Engine. Extract the installer from the tarball and run it as root:
|
|
50
50
|
|
|
51
51
|
```sh
|
|
52
|
-
tar -xzf orgsdk-executor-0.
|
|
53
|
-
sudo bash package/scripts/install-service.sh "$PWD/orgsdk-executor-0.
|
|
52
|
+
tar -xzf orgsdk-executor-0.2.0.tgz package/scripts/install-service.sh
|
|
53
|
+
sudo bash package/scripts/install-service.sh "$PWD/orgsdk-executor-0.2.0.tgz" researcher docker
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
The installer creates `/opt/orgsdk-executor`, the `orgsdk-researcher` system
|
|
@@ -95,7 +95,7 @@ Browser's engine is a runner prerequisite. The optional `Dockerfile.chromium` in
|
|
|
95
95
|
|
|
96
96
|
```sh
|
|
97
97
|
docker build -t orgsdk-job:chromium -f runtime/Dockerfile.chromium runtime
|
|
98
|
-
|
|
98
|
+
EXECUTOR_IMAGE=orgsdk-job:chromium orgsdk-executor start --mode docker
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
Independently managed executors can select that image using `EXECUTOR_IMAGE`. Standard executors remain unchanged. Host-mode runners need matching Chromium at `PLAYWRIGHT_BROWSERS_PATH`.
|
|
@@ -109,4 +109,6 @@ bun --no-env-file runtime/scripts/verify-plugin-releases.ts \
|
|
|
109
109
|
|
|
110
110
|
Use `--catalog /path/releases.json --bundle-root /path/bundles` before publication. Add `--render-pdf` when the matching engine is provisioned to exercise real PDF output. Every package is checksum-verified, installed in temporary `orgsdk-platform-test` project storage, and loaded to compare its exported tools to the catalog. Data Tools is exercised through the VM action interface. This does not prove provider OAuth setup or live external writes.
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
`ORGSDK_SERVER_URL` is the executor's application base URL. Point it at the application server, for example `http://127.0.0.1:8080`. The server binary does not include or start the executor. Separately managed executors must configure `ORGSDK_SERVER_URL` when upgrading; the platform CLI and managed development command supply it automatically.
|
|
113
|
+
|
|
114
|
+
Protocol 4 adds project-owned remote MCP discovery and execution over Streamable HTTP or legacy HTTP/SSE. Connections and reviewed tool schemas are supplied in immutable jobs; authentication headers are retrieved using run-scoped credentials. Each run owns and closes its connections. No stdio servers are launched. See the platform [remote MCP guide](../docs/remote-mcp.md).
|