@orgsdk/cli 0.0.0-stage → 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/LICENSE +122 -0
- package/README.md +81 -2
- package/bin/configuration.mjs +60 -0
- package/bin/options.mjs +122 -0
- package/bin/orgsdk.mjs +97 -0
- package/bin/supervision.mjs +157 -0
- package/dist/THIRD_PARTY_NOTICES.txt +278 -0
- package/dist/runtime/LICENSE +122 -0
- package/dist/runtime/PROVENANCE.md +15 -0
- package/dist/runtime/README.md +114 -0
- package/dist/runtime/cli-options.js +41 -0
- package/dist/runtime/cli.js +80 -0
- package/dist/runtime/client.js +116 -0
- package/dist/runtime/contract.js +102 -0
- package/dist/runtime/embedded-plugin-loader.mjs +56 -0
- package/dist/runtime/engine/plugins/namespace.js +157 -0
- package/dist/runtime/engine/plugins/types.js +0 -0
- package/dist/runtime/engine/retry.js +67 -0
- package/dist/runtime/engine/sandbox/context.js +115 -0
- package/dist/runtime/engine/sandbox/cpu-budget.js +16 -0
- package/dist/runtime/engine/sandbox/executor.js +196 -0
- package/dist/runtime/engine/sandbox/function-proxy.js +177 -0
- package/dist/runtime/engine/sandbox/index.js +6 -0
- package/dist/runtime/engine/sandbox/secret-refs.js +116 -0
- package/dist/runtime/engine/sandbox/trace.js +65 -0
- package/dist/runtime/engine/sandbox/transpile.js +51 -0
- package/dist/runtime/engine/sandbox/types.js +0 -0
- package/dist/runtime/engine/sandbox/validate.js +63 -0
- package/dist/runtime/engine/sandbox/webhook-handler.js +69 -0
- package/dist/runtime/engine/shared.js +14 -0
- package/dist/runtime/executor-configuration.js +44 -0
- package/dist/runtime/isolated-actions.js +188 -0
- package/dist/runtime/isolated-worker.js +232 -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/package-dependencies.js +144 -0
- package/dist/runtime/package-plugin.js +151 -0
- package/dist/runtime/plugin-module.js +22 -0
- package/dist/runtime/plugin-store.js +159 -0
- package/dist/runtime/plugins.js +124 -0
- package/dist/runtime/process-runtime.js +72 -0
- package/dist/runtime/project-data.js +97 -0
- package/dist/runtime/project-files.js +259 -0
- package/dist/runtime/register-executor.js +23 -0
- package/dist/runtime/runner.js +239 -0
- package/dist/runtime/sdk-declarations.js +204 -0
- 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/cell-request.js +79 -0
- package/dist/runtime/sessions/compiler/analysis.js +86 -0
- package/dist/runtime/sessions/compiler/binding-pattern.js +35 -0
- package/dist/runtime/sessions/compiler/bindings.js +60 -0
- package/dist/runtime/sessions/compiler/emit.js +111 -0
- package/dist/runtime/sessions/compiler/references.js +62 -0
- package/dist/runtime/sessions/compiler/source-policy.js +62 -0
- package/dist/runtime/sessions/compiler.js +34 -0
- package/dist/runtime/sessions/configuration.js +68 -0
- package/dist/runtime/sessions/events.js +72 -0
- package/dist/runtime/sessions/execute-cell.js +80 -0
- package/dist/runtime/sessions/function-broker.js +78 -0
- package/dist/runtime/sessions/index.js +9 -0
- package/dist/runtime/sessions/journal.js +86 -0
- package/dist/runtime/sessions/kernel.js +142 -0
- package/dist/runtime/sessions/manager.js +155 -0
- package/dist/runtime/sessions/process.js +209 -0
- package/dist/runtime/sessions/records.js +61 -0
- package/dist/runtime/sessions/redaction.js +33 -0
- package/dist/runtime/sessions/scope.js +46 -0
- package/dist/runtime/sessions/session-runtime.js +155 -0
- package/dist/runtime/sessions/types.js +12 -0
- package/dist/runtime/sessions/values.js +40 -0
- package/dist/runtime/sessions/worker-guard.js +20 -0
- package/dist/runtime/sessions/worker.js +81 -0
- package/dist/runtime/spawn-job.js +69 -0
- package/dist/runtime/supervisor.js +224 -0
- package/dist/runtime/validate-code.js +114 -0
- package/dist/runtime/worker.js +57 -0
- package/dist/server/bun-driver-DTZUUCI3.js +20 -0
- package/dist/server/chunk-S5SFX3JM.js +709 -0
- package/dist/server/index.js +9830 -0
- package/dist/server/migrations/0000_initial.sql +436 -0
- package/dist/server/migrations/0001_queue_indexes.sql +3 -0
- package/dist/server/migrations/0002_trpc_transport.sql +1 -0
- package/dist/server/migrations/0003_remote-mcp.sql +17 -0
- package/dist/server/migrations/meta/0000_snapshot.json +3233 -0
- package/dist/server/migrations/meta/0001_snapshot.json +3260 -0
- package/dist/server/migrations/meta/0002_snapshot.json +3262 -0
- package/dist/server/migrations/meta/0003_snapshot.json +3395 -0
- package/dist/server/migrations/meta/_journal.json +34 -0
- package/dist/server/node-driver-HDJKKWXQ.js +25 -0
- package/dist/server/out/192.png +0 -0
- package/dist/server/out/404/index.html +1 -0
- package/dist/server/out/404.html +1 -0
- package/dist/server/out/512.png +0 -0
- package/dist/server/out/LICENSE.txt +122 -0
- package/dist/server/out/__next.!KHdvcmtzcGFjZSk.__PAGE__.txt +35 -0
- package/dist/server/out/__next._full.txt +29 -0
- package/dist/server/out/__next._tree.txt +4 -0
- package/dist/server/out/_next/static/-qfuCDzkIvBZY_UFsMHnB/_buildManifest.js +11 -0
- package/dist/server/out/_next/static/-qfuCDzkIvBZY_UFsMHnB/_clientMiddlewareManifest.js +1 -0
- package/dist/server/out/_next/static/-qfuCDzkIvBZY_UFsMHnB/_ssgManifest.js +1 -0
- 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/0cz1d0mv5g_q7.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/0y5lgqdwpeabb.js +402 -0
- 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/2bbfbmv0vf3j0.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/2navy2mx7--vk.js +55 -0
- 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/3u7q5w03st-rs.js +1 -0
- package/dist/server/out/_next/static/chunks/3xs2ji0dgkbmc.js +1 -0
- package/dist/server/out/_next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
- package/dist/server/out/_not-found/__next._full.txt +21 -0
- package/dist/server/out/_not-found/__next._not-found.__PAGE__.txt +27 -0
- package/dist/server/out/_not-found/__next._tree.txt +4 -0
- package/dist/server/out/_not-found/index.html +1 -0
- package/dist/server/out/_not-found/index.txt +21 -0
- package/dist/server/out/accounts/2fa/__next._full.txt +26 -0
- package/dist/server/out/accounts/2fa/__next._tree.txt +5 -0
- package/dist/server/out/accounts/2fa/__next.accounts.2fa.__PAGE__.txt +33 -0
- package/dist/server/out/accounts/2fa/index.html +1 -0
- package/dist/server/out/accounts/2fa/index.txt +26 -0
- package/dist/server/out/accounts/email/__next._full.txt +26 -0
- package/dist/server/out/accounts/email/__next._tree.txt +5 -0
- package/dist/server/out/accounts/email/__next.accounts.email.__PAGE__.txt +33 -0
- package/dist/server/out/accounts/email/index.html +1 -0
- package/dist/server/out/accounts/email/index.txt +26 -0
- package/dist/server/out/accounts/login/__next._full.txt +26 -0
- package/dist/server/out/accounts/login/__next._tree.txt +5 -0
- package/dist/server/out/accounts/login/__next.accounts.login.__PAGE__.txt +33 -0
- package/dist/server/out/accounts/login/index.html +1 -0
- package/dist/server/out/accounts/login/index.txt +26 -0
- package/dist/server/out/accounts/logout/__next._full.txt +26 -0
- package/dist/server/out/accounts/logout/__next._tree.txt +5 -0
- package/dist/server/out/accounts/logout/__next.accounts.logout.__PAGE__.txt +33 -0
- package/dist/server/out/accounts/logout/index.html +1 -0
- package/dist/server/out/accounts/logout/index.txt +26 -0
- package/dist/server/out/accounts/password/change/__next._full.txt +27 -0
- package/dist/server/out/accounts/password/change/__next._tree.txt +6 -0
- package/dist/server/out/accounts/password/change/__next.accounts.password.change.__PAGE__.txt +35 -0
- package/dist/server/out/accounts/password/change/index.html +1 -0
- package/dist/server/out/accounts/password/change/index.txt +27 -0
- package/dist/server/out/accounts/password/reset/__next._full.txt +25 -0
- package/dist/server/out/accounts/password/reset/__next._tree.txt +6 -0
- package/dist/server/out/accounts/password/reset/__next.accounts.password.reset.__PAGE__.txt +33 -0
- package/dist/server/out/accounts/password/reset/index.html +1 -0
- package/dist/server/out/accounts/password/reset/index.txt +25 -0
- package/dist/server/out/accounts/signup/__next._full.txt +26 -0
- package/dist/server/out/accounts/signup/__next._tree.txt +5 -0
- package/dist/server/out/accounts/signup/__next.accounts.signup.__PAGE__.txt +33 -0
- package/dist/server/out/accounts/signup/index.html +1 -0
- package/dist/server/out/accounts/signup/index.txt +26 -0
- package/dist/server/out/actions/__next.!KHdvcmtzcGFjZSk.actions.__PAGE__.txt +44 -0
- package/dist/server/out/actions/__next._full.txt +37 -0
- package/dist/server/out/actions/__next._tree.txt +5 -0
- package/dist/server/out/actions/index.html +1 -0
- package/dist/server/out/actions/index.txt +37 -0
- package/dist/server/out/agents/__next.!KHdvcmtzcGFjZSk.agents.__PAGE__.txt +39 -0
- package/dist/server/out/agents/__next._full.txt +32 -0
- package/dist/server/out/agents/__next._tree.txt +5 -0
- package/dist/server/out/agents/index.html +1 -0
- package/dist/server/out/agents/index.txt +32 -0
- package/dist/server/out/app-icon.svg +7 -0
- package/dist/server/out/apple-touch-icon.png +0 -0
- package/dist/server/out/approvals/__next.!KHdvcmtzcGFjZSk.approvals.__PAGE__.txt +39 -0
- package/dist/server/out/approvals/__next._full.txt +32 -0
- package/dist/server/out/approvals/__next._tree.txt +5 -0
- package/dist/server/out/approvals/index.html +1 -0
- package/dist/server/out/approvals/index.txt +32 -0
- package/dist/server/out/artifacts/__next.!KHdvcmtzcGFjZSk.artifacts.__PAGE__.txt +41 -0
- package/dist/server/out/artifacts/__next._full.txt +34 -0
- package/dist/server/out/artifacts/__next._tree.txt +5 -0
- package/dist/server/out/artifacts/index.html +1 -0
- package/dist/server/out/artifacts/index.txt +34 -0
- package/dist/server/out/audit/__next.!KHdvcmtzcGFjZSk.audit.__PAGE__.txt +36 -0
- package/dist/server/out/audit/__next._full.txt +29 -0
- package/dist/server/out/audit/__next._tree.txt +5 -0
- package/dist/server/out/audit/index.html +1 -0
- package/dist/server/out/audit/index.txt +29 -0
- package/dist/server/out/brand/logo/README.md +92 -0
- package/dist/server/out/brand/logo/app-icon.svg +7 -0
- package/dist/server/out/brand/logo/favicon.svg +8 -0
- package/dist/server/out/brand/logo/fonts/Inter-Bold.ttf +0 -0
- package/dist/server/out/brand/logo/fonts/Inter-Regular.ttf +0 -0
- package/dist/server/out/brand/logo/lockup-dark.svg +11 -0
- package/dist/server/out/brand/logo/lockup-integrated.svg +14 -0
- package/dist/server/out/brand/logo/lockup-light.svg +11 -0
- package/dist/server/out/brand/logo/og-image.svg +20 -0
- package/dist/server/out/brand/logo/primary-solid.svg +6 -0
- package/dist/server/out/brand/logo/primary.svg +7 -0
- package/dist/server/out/brand/logo/raster/banner-1500x500.png +0 -0
- package/dist/server/out/brand/logo/raster/profile-1024.png +0 -0
- package/dist/server/out/brand/logo/raster/profile-512.png +0 -0
- package/dist/server/out/brand/logo/raster/square-1080.png +0 -0
- package/dist/server/out/brand/tokens.md +74 -0
- package/dist/server/out/chat/__next.!KHdvcmtzcGFjZSk.chat.__PAGE__.txt +35 -0
- package/dist/server/out/chat/__next._full.txt +28 -0
- package/dist/server/out/chat/__next._tree.txt +5 -0
- package/dist/server/out/chat/index.html +1 -0
- package/dist/server/out/chat/index.txt +28 -0
- package/dist/server/out/connections/__next.!KHdvcmtzcGFjZSk.connections.__PAGE__.txt +39 -0
- package/dist/server/out/connections/__next._full.txt +32 -0
- package/dist/server/out/connections/__next._tree.txt +5 -0
- package/dist/server/out/connections/index.html +1 -0
- package/dist/server/out/connections/index.txt +32 -0
- package/dist/server/out/credentials/__next.!KHdvcmtzcGFjZSk.credentials.__PAGE__.txt +40 -0
- package/dist/server/out/credentials/__next._full.txt +33 -0
- package/dist/server/out/credentials/__next._tree.txt +5 -0
- package/dist/server/out/credentials/index.html +1 -0
- package/dist/server/out/credentials/index.txt +33 -0
- package/dist/server/out/documents/__next.!KHdvcmtzcGFjZSk.documents.__PAGE__.txt +39 -0
- package/dist/server/out/documents/__next._full.txt +32 -0
- package/dist/server/out/documents/__next._tree.txt +5 -0
- package/dist/server/out/documents/index.html +1 -0
- package/dist/server/out/documents/index.txt +32 -0
- package/dist/server/out/favicon.ico +0 -0
- package/dist/server/out/favicon.svg +8 -0
- package/dist/server/out/index.html +1 -0
- package/dist/server/out/index.txt +29 -0
- package/dist/server/out/logo.svg +12 -0
- package/dist/server/out/monaco/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/dist/server/out/monaco/vs/base/worker/workerMain.js +31 -0
- package/dist/server/out/monaco/vs/basic-languages/abap/abap.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/apex/apex.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/azcli/azcli.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/bat/bat.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/bicep/bicep.js +11 -0
- package/dist/server/out/monaco/vs/basic-languages/cameligo/cameligo.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/clojure/clojure.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/coffee/coffee.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/cpp/cpp.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/csharp/csharp.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/csp/csp.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/css/css.js +12 -0
- package/dist/server/out/monaco/vs/basic-languages/cypher/cypher.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/dart/dart.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/dockerfile/dockerfile.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/ecl/ecl.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/elixir/elixir.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/flow9/flow9.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/freemarker2/freemarker2.js +12 -0
- package/dist/server/out/monaco/vs/basic-languages/fsharp/fsharp.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/go/go.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/graphql/graphql.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/handlebars/handlebars.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/hcl/hcl.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/html/html.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/ini/ini.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/java/java.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/javascript/javascript.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/julia/julia.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/kotlin/kotlin.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/less/less.js +11 -0
- package/dist/server/out/monaco/vs/basic-languages/lexon/lexon.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/liquid/liquid.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/lua/lua.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/m3/m3.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/markdown/markdown.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/mdx/mdx.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/mips/mips.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/msdax/msdax.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/mysql/mysql.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/objective-c/objective-c.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/pascal/pascal.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/pascaligo/pascaligo.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/perl/perl.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/pgsql/pgsql.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/php/php.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/pla/pla.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/postiats/postiats.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/powerquery/powerquery.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/powershell/powershell.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/protobuf/protobuf.js +11 -0
- package/dist/server/out/monaco/vs/basic-languages/pug/pug.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/python/python.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/qsharp/qsharp.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/r/r.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/razor/razor.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/redis/redis.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/redshift/redshift.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/restructuredtext/restructuredtext.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/ruby/ruby.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/rust/rust.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/sb/sb.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/scala/scala.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/scheme/scheme.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/scss/scss.js +12 -0
- package/dist/server/out/monaco/vs/basic-languages/shell/shell.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/solidity/solidity.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/sophia/sophia.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/sparql/sparql.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/sql/sql.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/st/st.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/swift/swift.js +13 -0
- package/dist/server/out/monaco/vs/basic-languages/systemverilog/systemverilog.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/tcl/tcl.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/twig/twig.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/typescript/typescript.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/typespec/typespec.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/vb/vb.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/wgsl/wgsl.js +307 -0
- package/dist/server/out/monaco/vs/basic-languages/xml/xml.js +10 -0
- package/dist/server/out/monaco/vs/basic-languages/yaml/yaml.js +10 -0
- package/dist/server/out/monaco/vs/editor/editor.main.css +8 -0
- package/dist/server/out/monaco/vs/editor/editor.main.js +798 -0
- package/dist/server/out/monaco/vs/language/css/cssMode.js +13 -0
- package/dist/server/out/monaco/vs/language/css/cssWorker.js +77 -0
- package/dist/server/out/monaco/vs/language/html/htmlMode.js +13 -0
- package/dist/server/out/monaco/vs/language/html/htmlWorker.js +454 -0
- package/dist/server/out/monaco/vs/language/json/jsonMode.js +19 -0
- package/dist/server/out/monaco/vs/language/json/jsonWorker.js +42 -0
- package/dist/server/out/monaco/vs/language/typescript/tsMode.js +20 -0
- package/dist/server/out/monaco/vs/language/typescript/tsWorker.js +51328 -0
- package/dist/server/out/monaco/vs/loader.js +11 -0
- package/dist/server/out/monaco/vs/nls.messages.de.js +21 -0
- package/dist/server/out/monaco/vs/nls.messages.es.js +21 -0
- package/dist/server/out/monaco/vs/nls.messages.fr.js +19 -0
- package/dist/server/out/monaco/vs/nls.messages.it.js +19 -0
- package/dist/server/out/monaco/vs/nls.messages.ja.js +21 -0
- package/dist/server/out/monaco/vs/nls.messages.ko.js +19 -0
- package/dist/server/out/monaco/vs/nls.messages.ru.js +21 -0
- package/dist/server/out/monaco/vs/nls.messages.zh-cn.js +21 -0
- package/dist/server/out/monaco/vs/nls.messages.zh-tw.js +19 -0
- package/dist/server/out/og-image.png +0 -0
- package/dist/server/out/people/__next.!KHdvcmtzcGFjZSk.people.__PAGE__.txt +39 -0
- package/dist/server/out/people/__next._full.txt +32 -0
- package/dist/server/out/people/__next._tree.txt +5 -0
- package/dist/server/out/people/index.html +1 -0
- package/dist/server/out/people/index.txt +32 -0
- package/dist/server/out/plugins/__next.!KHdvcmtzcGFjZSk.plugins.__PAGE__.txt +42 -0
- package/dist/server/out/plugins/__next._full.txt +35 -0
- package/dist/server/out/plugins/__next._tree.txt +5 -0
- package/dist/server/out/plugins/index.html +1 -0
- package/dist/server/out/plugins/index.txt +35 -0
- package/dist/server/out/projects/__next.!KHdvcmtzcGFjZSk.projects.__PAGE__.txt +39 -0
- package/dist/server/out/projects/__next._full.txt +32 -0
- package/dist/server/out/projects/__next._tree.txt +5 -0
- package/dist/server/out/projects/index.html +1 -0
- package/dist/server/out/projects/index.txt +32 -0
- package/dist/server/out/runs/__next.!KHdvcmtzcGFjZSk.runs.__PAGE__.txt +41 -0
- package/dist/server/out/runs/__next._full.txt +34 -0
- package/dist/server/out/runs/__next._tree.txt +5 -0
- package/dist/server/out/runs/index.html +1 -0
- package/dist/server/out/runs/index.txt +34 -0
- package/dist/server/out/schedules/__next.!KHdvcmtzcGFjZSk.schedules.__PAGE__.txt +41 -0
- package/dist/server/out/schedules/__next._full.txt +34 -0
- package/dist/server/out/schedules/__next._tree.txt +5 -0
- package/dist/server/out/schedules/index.html +1 -0
- package/dist/server/out/schedules/index.txt +34 -0
- package/dist/server/out/settings/__next.!KHdvcmtzcGFjZSk.settings.__PAGE__.txt +39 -0
- package/dist/server/out/settings/__next._full.txt +32 -0
- package/dist/server/out/settings/__next._tree.txt +5 -0
- package/dist/server/out/settings/index.html +1 -0
- package/dist/server/out/settings/index.txt +32 -0
- package/dist/server/out/setup/__next._full.txt +28 -0
- package/dist/server/out/setup/__next._tree.txt +4 -0
- package/dist/server/out/setup/__next.setup.__PAGE__.txt +34 -0
- package/dist/server/out/setup/index.html +1 -0
- package/dist/server/out/setup/index.txt +28 -0
- package/dist/server/out/tables/__next.!KHdvcmtzcGFjZSk.tables.__PAGE__.txt +36 -0
- package/dist/server/out/tables/__next._full.txt +29 -0
- package/dist/server/out/tables/__next._tree.txt +5 -0
- package/dist/server/out/tables/index.html +1 -0
- package/dist/server/out/tables/index.txt +29 -0
- package/dist/server/out/webhooks/__next.!KHdvcmtzcGFjZSk.webhooks.__PAGE__.txt +39 -0
- package/dist/server/out/webhooks/__next._full.txt +32 -0
- package/dist/server/out/webhooks/__next._tree.txt +5 -0
- package/dist/server/out/webhooks/index.html +1 -0
- package/dist/server/out/webhooks/index.txt +32 -0
- package/dist/server/out/workspaces/invite/__next._full.txt +29 -0
- package/dist/server/out/workspaces/invite/__next._tree.txt +5 -0
- package/dist/server/out/workspaces/invite/__next.workspaces.invite.__PAGE__.txt +36 -0
- package/dist/server/out/workspaces/invite/index.html +1 -0
- package/dist/server/out/workspaces/invite/index.txt +29 -0
- package/docs/browser-sessions.md +85 -0
- package/docs/npm-distribution.md +78 -0
- package/docs/remote-mcp.md +51 -0
- package/package.json +112 -4
- package/runtime/LICENSE +122 -0
- package/runtime/README.md +114 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
OrgSDK third-party notices
|
|
2
|
+
Generated from installed, lockfile-resolved dependencies during the release build.
|
|
3
|
+
These notices cover the listed redistributed components. Other dependencies
|
|
4
|
+
retain their own notices; OrgSDK's license is supplied separately.
|
|
5
|
+
|
|
6
|
+
==============================================================================
|
|
7
|
+
@modelcontextprotocol/client@2.4.0
|
|
8
|
+
@modelcontextprotocol/core@2.4.0
|
|
9
|
+
|
|
10
|
+
The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
|
|
11
|
+
|
|
12
|
+
Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
|
|
13
|
+
|
|
14
|
+
No rights beyond those granted by the applicable original license are conveyed for such contributions.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
Apache License
|
|
19
|
+
Version 2.0, January 2004
|
|
20
|
+
http://www.apache.org/licenses/
|
|
21
|
+
|
|
22
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
23
|
+
|
|
24
|
+
1. Definitions.
|
|
25
|
+
|
|
26
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
27
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
28
|
+
|
|
29
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
30
|
+
the copyright owner that is granting the License.
|
|
31
|
+
|
|
32
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
33
|
+
other entities that control, are controlled by, or are under common
|
|
34
|
+
control with that entity. For the purposes of this definition,
|
|
35
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
36
|
+
direction or management of such entity, whether by contract or
|
|
37
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
38
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
39
|
+
|
|
40
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
41
|
+
exercising permissions granted by this License.
|
|
42
|
+
|
|
43
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
44
|
+
including but not limited to software source code, documentation
|
|
45
|
+
source, and configuration files.
|
|
46
|
+
|
|
47
|
+
"Object" form shall mean any form resulting from mechanical
|
|
48
|
+
transformation or translation of a Source form, including but
|
|
49
|
+
not limited to compiled object code, generated documentation,
|
|
50
|
+
and conversions to other media types.
|
|
51
|
+
|
|
52
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
53
|
+
Object form, made available under the License, as indicated by a
|
|
54
|
+
copyright notice that is included in or attached to the work
|
|
55
|
+
(an example is provided in the Appendix below).
|
|
56
|
+
|
|
57
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
58
|
+
form, that is based on (or derived from) the Work and for which the
|
|
59
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
60
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
61
|
+
of this License, Derivative Works shall not include works that remain
|
|
62
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
63
|
+
the Work and Derivative Works thereof.
|
|
64
|
+
|
|
65
|
+
"Contribution" shall mean any work of authorship, including
|
|
66
|
+
the original version of the Work and any modifications or additions
|
|
67
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
68
|
+
submitted to the Licensor for inclusion in the Work by the copyright
|
|
69
|
+
owner or by an individual or Legal Entity authorized to submit on behalf
|
|
70
|
+
of the copyright owner. For the purposes of this definition, "submitted"
|
|
71
|
+
means any form of electronic, verbal, or written communication sent
|
|
72
|
+
to the Licensor or its representatives, including but not limited to
|
|
73
|
+
communication on electronic mailing lists, source code control systems,
|
|
74
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
75
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
76
|
+
excluding communication that is conspicuously marked or otherwise
|
|
77
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
78
|
+
|
|
79
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
80
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
81
|
+
subsequently incorporated within the Work.
|
|
82
|
+
|
|
83
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
84
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
85
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
86
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
87
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
88
|
+
Work and such Derivative Works in Source or Object form.
|
|
89
|
+
|
|
90
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
91
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
92
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
93
|
+
(except as stated in this section) patent license to make, have made,
|
|
94
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
95
|
+
where such license applies only to those patent claims licensable
|
|
96
|
+
by such Contributor that are necessarily infringed by their
|
|
97
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
98
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
99
|
+
institute patent litigation against any entity (including a
|
|
100
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
101
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
102
|
+
or contributory patent infringement, then any patent licenses
|
|
103
|
+
granted to You under this License for that Work shall terminate
|
|
104
|
+
as of the date such litigation is filed.
|
|
105
|
+
|
|
106
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
107
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
108
|
+
modifications, and in Source or Object form, provided that You
|
|
109
|
+
meet the following conditions:
|
|
110
|
+
|
|
111
|
+
(a) You must give any other recipients of the Work or
|
|
112
|
+
Derivative Works a copy of this License; and
|
|
113
|
+
|
|
114
|
+
(b) You must cause any modified files to carry prominent notices
|
|
115
|
+
stating that You changed the files; and
|
|
116
|
+
|
|
117
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
118
|
+
that You distribute, all copyright, patent, trademark, and
|
|
119
|
+
attribution notices from the Source form of the Work,
|
|
120
|
+
excluding those notices that do not pertain to any part of
|
|
121
|
+
the Derivative Works; and
|
|
122
|
+
|
|
123
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
124
|
+
distribution, then any Derivative Works that You distribute must
|
|
125
|
+
include a readable copy of the attribution notices contained
|
|
126
|
+
within such NOTICE file, excluding those notices that do not
|
|
127
|
+
pertain to any part of the Derivative Works, in at least one
|
|
128
|
+
of the following places: within a NOTICE text file distributed
|
|
129
|
+
as part of the Derivative Works; within the Source form or
|
|
130
|
+
documentation, if provided along with the Derivative Works; or,
|
|
131
|
+
within a display generated by the Derivative Works, if and
|
|
132
|
+
wherever such third-party notices normally appear. The contents
|
|
133
|
+
of the NOTICE file are for informational purposes only and
|
|
134
|
+
do not modify the License. You may add Your own attribution
|
|
135
|
+
notices within Derivative Works that You distribute, alongside
|
|
136
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
137
|
+
that such additional attribution notices cannot be construed
|
|
138
|
+
as modifying the License.
|
|
139
|
+
|
|
140
|
+
You may add Your own copyright statement to Your modifications and
|
|
141
|
+
may provide additional or different license terms and conditions
|
|
142
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
143
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
144
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
145
|
+
the conditions stated in this License.
|
|
146
|
+
|
|
147
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
148
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
149
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
150
|
+
this License, without any additional terms or conditions.
|
|
151
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
152
|
+
the terms of any separate license agreement you may have executed
|
|
153
|
+
with Licensor regarding such Contributions.
|
|
154
|
+
|
|
155
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
156
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
157
|
+
except as required for reasonable and customary use in describing the
|
|
158
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
159
|
+
|
|
160
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
161
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
162
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
163
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
164
|
+
implied, including, without limitation, any warranties or conditions
|
|
165
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
166
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
167
|
+
appropriateness of using or redistributing the Work and assume any
|
|
168
|
+
risks associated with Your exercise of permissions under this License.
|
|
169
|
+
|
|
170
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
171
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
172
|
+
unless required by applicable law (such as deliberate and grossly
|
|
173
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
174
|
+
liable to You for damages, including any direct, indirect, special,
|
|
175
|
+
incidental, or consequential damages of any character arising as a
|
|
176
|
+
result of this License or out of the use or inability to use the
|
|
177
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
178
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
179
|
+
other commercial damages or losses), even if such Contributor
|
|
180
|
+
has been advised of the possibility of such damages.
|
|
181
|
+
|
|
182
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
183
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
184
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
185
|
+
or other liability obligations and/or rights consistent with this
|
|
186
|
+
License. However, in accepting such obligations, You may act only
|
|
187
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
188
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
189
|
+
defend, and hold each Contributor harmless for any liability
|
|
190
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
191
|
+
of your accepting any such warranty or additional liability.
|
|
192
|
+
|
|
193
|
+
END OF TERMS AND CONDITIONS
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
MIT License
|
|
198
|
+
|
|
199
|
+
Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
|
|
200
|
+
|
|
201
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
202
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
203
|
+
in the Software without restriction, including without limitation the rights
|
|
204
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
205
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
206
|
+
furnished to do so, subject to the following conditions:
|
|
207
|
+
|
|
208
|
+
The above copyright notice and this permission notice shall be included in all
|
|
209
|
+
copies or substantial portions of the Software.
|
|
210
|
+
|
|
211
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
212
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
213
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
214
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
215
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
216
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
217
|
+
SOFTWARE.
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
Creative Commons Attribution 4.0 International (CC-BY-4.0)
|
|
222
|
+
|
|
223
|
+
Documentation in this project (excluding specifications) is licensed under
|
|
224
|
+
CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
|
|
225
|
+
the full license text.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
==============================================================================
|
|
229
|
+
monaco-editor@0.52.2
|
|
230
|
+
|
|
231
|
+
The MIT License (MIT)
|
|
232
|
+
|
|
233
|
+
Copyright (c) 2016 - present Microsoft Corporation
|
|
234
|
+
|
|
235
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
236
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
237
|
+
in the Software without restriction, including without limitation the rights
|
|
238
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
239
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
240
|
+
furnished to do so, subject to the following conditions:
|
|
241
|
+
|
|
242
|
+
The above copyright notice and this permission notice shall be included in all
|
|
243
|
+
copies or substantial portions of the Software.
|
|
244
|
+
|
|
245
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
246
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
247
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
248
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
249
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
250
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
251
|
+
SOFTWARE.
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
==============================================================================
|
|
255
|
+
zod@4.6.7
|
|
256
|
+
|
|
257
|
+
MIT License
|
|
258
|
+
|
|
259
|
+
Copyright (c) 2025 Colin McDonnell
|
|
260
|
+
|
|
261
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
262
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
263
|
+
in the Software without restriction, including without limitation the rights
|
|
264
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
265
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
266
|
+
furnished to do so, subject to the following conditions:
|
|
267
|
+
|
|
268
|
+
The above copyright notice and this permission notice shall be included in all
|
|
269
|
+
copies or substantial portions of the Software.
|
|
270
|
+
|
|
271
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
272
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
273
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
274
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
275
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
276
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
277
|
+
SOFTWARE.
|
|
278
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
OrgSDK Source-Available License
|
|
2
|
+
Version 1.0
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 the OrgSDK copyright holders and contributors.
|
|
5
|
+
|
|
6
|
+
1. Scope and acceptance
|
|
7
|
+
|
|
8
|
+
These terms apply to the OrgSDK material made available under this license,
|
|
9
|
+
including modifications of that material (the Software). The Licensor is each
|
|
10
|
+
copyright holder offering their material under these terms. Exercising a right
|
|
11
|
+
granted here means accepting these terms. Rights not expressly granted remain
|
|
12
|
+
with their holders.
|
|
13
|
+
|
|
14
|
+
Separately identified third-party material is governed by its own license. These
|
|
15
|
+
terms do not replace or restrict rights granted by third-party licenses. Retain
|
|
16
|
+
the applicable notices, including those accompanying dependencies and copied
|
|
17
|
+
source. These terms do not give ownership of your data, actions or outputs to
|
|
18
|
+
the Licensor.
|
|
19
|
+
|
|
20
|
+
2. Source access and sharing
|
|
21
|
+
|
|
22
|
+
You may inspect, copy and modify the Software, and share original or modified
|
|
23
|
+
copies without charging for the copies. Every shared copy must include these
|
|
24
|
+
terms and retain applicable copyright, attribution and license notices.
|
|
25
|
+
Identify your modifications. Recipients obtain their rights directly under
|
|
26
|
+
these terms and must independently qualify for running the Software. You may
|
|
27
|
+
not offer broader rights to the covered material than you have received.
|
|
28
|
+
|
|
29
|
+
3. Permitted operation without a separate agreement
|
|
30
|
+
|
|
31
|
+
You may run original or modified copies of the Software without a license fee:
|
|
32
|
+
|
|
33
|
+
(a) as an individual for your own personal, non-business activities; or
|
|
34
|
+
(b) for a business's own internal activities while its entire Organization
|
|
35
|
+
Group has fewer than 15 Staff.
|
|
36
|
+
|
|
37
|
+
Business activity performed by an individual on behalf of an organization is
|
|
38
|
+
subject to (b), including use through a personal account or personal computer.
|
|
39
|
+
The threshold is 0 through 14 Staff across the Organization Group, rather than
|
|
40
|
+
the number of users, accounts, projects, installations or concurrent sessions.
|
|
41
|
+
Part-time and full-time Staff each count as one person, counted only once.
|
|
42
|
+
|
|
43
|
+
An Organization Group is a business, sole trader or other business entity
|
|
44
|
+
together with all entities that control it, that it controls, or that are under
|
|
45
|
+
common control. Control means the ability to direct an entity's management,
|
|
46
|
+
whether through ownership, agreement or another arrangement.
|
|
47
|
+
|
|
48
|
+
Staff are working owners, employees, and individual contractors or agency
|
|
49
|
+
workers regularly working in the Organization Group's operations. Inactive
|
|
50
|
+
investors and suppliers merely providing goods or occasional services are not
|
|
51
|
+
Staff. Count Staff across the whole group, including people who do not use the
|
|
52
|
+
Software. Dividing an operation between entities, installations or accounts
|
|
53
|
+
does not reduce its Staff count.
|
|
54
|
+
|
|
55
|
+
An Organization Group with 15 or more Staff must obtain a separate written
|
|
56
|
+
commercial license before starting or continuing to run the Software. A group
|
|
57
|
+
that grows to that size must obtain that permission or stop running it.
|
|
58
|
+
|
|
59
|
+
4. Hosting, resale and customer access
|
|
60
|
+
|
|
61
|
+
Regardless of Staff count, a separate written commercial license from the
|
|
62
|
+
relevant Licensor is required to:
|
|
63
|
+
|
|
64
|
+
(a) sell, rent, sublicense for a fee, or charge for copies of the Software;
|
|
65
|
+
(b) operate or host the Software for third parties as a service; or
|
|
66
|
+
(c) give customers or other third parties access to the Software's project,
|
|
67
|
+
action-authoring, execution, orchestration or management capabilities as
|
|
68
|
+
part of a product or service, including an embedded or white-label product.
|
|
69
|
+
|
|
70
|
+
These restrictions apply to direct access and to access through another user
|
|
71
|
+
interface, API, MCP endpoint, agent or intermediary. They apply when access is
|
|
72
|
+
free, charged separately, or bundled into another product or service. Renaming,
|
|
73
|
+
modifying or concealing the Software does not remove these restrictions.
|
|
74
|
+
|
|
75
|
+
A qualifying business may use the Software internally to carry out its own
|
|
76
|
+
work and deliver ordinary results to customers. Giving a customer a report or
|
|
77
|
+
other completed result does not by itself provide access to the Software.
|
|
78
|
+
Giving customers the ability to define, configure, submit or manage their own
|
|
79
|
+
work through the Software is access requiring a commercial license.
|
|
80
|
+
|
|
81
|
+
You may charge for consulting, installation, training, maintenance or custom
|
|
82
|
+
development for a qualifying recipient's own internal installation. The
|
|
83
|
+
recipient must control that installation, independently qualify under section
|
|
84
|
+
3 or hold a commercial license, and retain control of its data and accounts.
|
|
85
|
+
Operation solely to install, develop or maintain that recipient-controlled
|
|
86
|
+
installation is assessed using the recipient's eligibility, rather than the
|
|
87
|
+
service provider's Staff count.
|
|
88
|
+
This permission does not include operating a hosted service for the recipient
|
|
89
|
+
or licensing use on behalf of an otherwise ineligible organization.
|
|
90
|
+
|
|
91
|
+
For permission beyond these terms, contact the maintainers through the OrgSDK
|
|
92
|
+
organization at https://github.com/OrgSDK. A separate written agreement may
|
|
93
|
+
grant additional rights to material its parties are authorized to license.
|
|
94
|
+
|
|
95
|
+
5. Patents and branding
|
|
96
|
+
|
|
97
|
+
Each Licensor grants permission under patent claims it controls that would
|
|
98
|
+
necessarily be infringed by the unmodified Software, solely for activities
|
|
99
|
+
permitted by these terms. This does not cover infringement introduced by your
|
|
100
|
+
changes or combinations. If you bring a patent claim alleging that the
|
|
101
|
+
Software infringes a patent, your patent permission under this section ends.
|
|
102
|
+
|
|
103
|
+
No trademark or branding rights are granted, other than displaying the notices
|
|
104
|
+
required by these terms and accurately identifying the origin of the Software.
|
|
105
|
+
Do not imply endorsement of your modifications or services.
|
|
106
|
+
|
|
107
|
+
6. Ending and restoring permission
|
|
108
|
+
|
|
109
|
+
Permission ends automatically when you breach these terms. If you correct the
|
|
110
|
+
breach within 30 days after first receiving written notice of it, permission
|
|
111
|
+
is restored. A later breach after such restoration requires written permission
|
|
112
|
+
from the relevant Licensor to restore your rights. Rights of recipients who
|
|
113
|
+
continue to comply with these terms are unaffected by your breach.
|
|
114
|
+
|
|
115
|
+
7. Warranty and liability
|
|
116
|
+
|
|
117
|
+
To the extent allowed by applicable law, the Software is supplied without
|
|
118
|
+
warranties or promises about quality, fitness, availability, security or
|
|
119
|
+
non-infringement. You are responsible for evaluating and operating it. To that
|
|
120
|
+
same extent, the Licensor and contributors are not liable for losses or damages
|
|
121
|
+
arising from the Software or these terms. Nothing here excludes a right,
|
|
122
|
+
guarantee or liability that applicable law does not allow to be excluded.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Retained OrgSDK engine
|
|
2
|
+
|
|
3
|
+
Source: OrgSDK/OrgSDK, commit 6cd23db588985072bddf8b9f4f64d512712b3494
|
|
4
|
+
|
|
5
|
+
This attribution is included in the executor npm package alongside the compiled
|
|
6
|
+
retained engine. It records origin and modifications; it does not grant a new license or
|
|
7
|
+
replace any applicable upstream copyright and permission notices.
|
|
8
|
+
|
|
9
|
+
Sandbox, CPU budgeting, TypeScript validation/transpilation, function proxies, secret redaction, plugin namespacing, plugin types and retry utilities are retained from packages/daemon/src. Local changes replace repository-specific logging/constants and the database AgentRow type. Product orchestration uses scoped OrgSDK HTTP APIs rather than the old AllStores/Postgres boot path. Original tests are retained where their dependencies belong to this extracted engine.
|
|
10
|
+
|
|
11
|
+
The eleven vendored product plugins and generated bundled catalog have been removed. Plugins are independently released, self-contained ESM artifacts, verified against the snapshot SHA256 before execution. No external plugin source is included in this package. The retained factory-context and safeFunctions adapter derives from the previously integrated OrgSDK plugin interface.
|
|
12
|
+
|
|
13
|
+
The project/action refactor removes the local OpenAI reasoning loop and chat-stream collector. The retained sandbox, plugin adapters, process isolation and execution tests continue to support code/actions and isolated validation/tests. Historical chat/delegation jobs fail explicitly; their removal does not replace the original vendor provenance.
|
|
14
|
+
|
|
15
|
+
Node portability changes replace Bun process, stream, timer, hashing and build APIs with Node standard-library APIs and esbuild. The npm artifact contains compiled JavaScript workers and retained SDK declarations; TypeScript sources and tests remain in the repository. These changes do not alter the HTTP-only product authority boundary or plugin digest verification.
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# Persistent project executor
|
|
2
|
+
|
|
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
|
+
|
|
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
|
+
|
|
7
|
+
```sh
|
|
8
|
+
orgsdk-executor register --url http://localhost:8080 --data /path/to/private-runner
|
|
9
|
+
orgsdk-executor start --data /path/to/private-runner
|
|
10
|
+
```
|
|
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 `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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
20
|
+
## External plugins
|
|
21
|
+
|
|
22
|
+
No built-in plugin implementations are shipped. Supply a self-contained ESM JavaScript release URL over HTTPS in `package_url`, its lowercase SHA256 as `digest`, and repository/source links in marketplace metadata. Up to five HTTPS redirects are followed (HTTP downgrades are rejected), streaming downloads are capped at 32 MiB, bytes are verified before import, and cached releases are verified without fetching again. Modules can export `safeFunctions` directly or a default context factory returning `safeFunctions`, optional `onLoad`, and optional Zod config schema. Inline custom plugins continue to accept TypeScript and positional handlers with the authorized secret as the first argument when configured. External factory handlers use the named canonical contract. The factory receives snapshot-scoped credential/config stores; mutation is denied. Bundle dependencies into the release. Raw npm packages and tarballs are not accepted by this version.
|
|
23
|
+
|
|
24
|
+
An administrator can preinstall a local bundle with the same digest checks. Leave `package_url` blank in the catalog for a release available only as a local file; each assigned agent needs its own installed copy:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
orgsdk-executor install --agent AGENT_ID --manifest manifest.json --file plugin.mjs --data /path/to/private-runner
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Runtime checks: `bun run check`. Run `npm run smoke:node` and `npm run smoke:bun` to pack and install into temporary storage, then exercise the same built-worker, plugin, validation/test, session and shutdown assertions under the selected runtime. The Node check removes Bun from PATH. The Bun check executes the suite and its CLI, job, validation, session and manager child processes with Bun. Both verify the executing runtime and clean their temporary fixtures. Source unit tests use `bun:test` and Bun HTTP/process fixtures, so `bun run check` remains a separate Bun-only gate; the packed behavioral suite supplies the matching Node/Bun coverage. Docker execution remains an opt-in integration check. Build JavaScript with `npm run build`; build a local installable artifact with `npm pack` (which runs the build automatically). Do not publish without separate authorization.
|
|
31
|
+
|
|
32
|
+
For an existing plugin checkout using the canonical `.plugin.json` with `name`, `version`, and `entry`, install its dependencies in that checkout, then run `orgsdk-executor package-plugin --directory CHECKOUT --output RELEASE_DIR`. This adapter uses esbuild to bundle the entry and installed dependencies into one ESM file and emits a manifest preserving the original plugin metadata (including any declared tools/docs/auth/config). The adapter accepts a checkout root containing `plugin/.plugin.json` or the plugin directory itself. It also emits `<slug>.catalog.json`, an array matching the OrgSDK marketplace catalog (tool schemas, documentation, auth metadata and configuration schema). Set the immutable HTTPS `package_url` in that catalog and configure `PLUGIN_CATALOG_PATH` to use it; `release_metadata` is pinned when installed. The companion manifest is for the local install command. The emitted digest pins the exact compiled bytes; reproducing the source build still requires the checkout's own dependency lock. Canonical source `.tgz` packages are not directly installed or executed. Local preinstall via `install --file` avoids a release server for development without weakening digest checks.
|
|
33
|
+
|
|
34
|
+
## Install an optional local Linux service
|
|
35
|
+
|
|
36
|
+
Use this optional systemd service to run a project executor on a local Linux machine.
|
|
37
|
+
The service communicates with the application over HTTP and never accesses the application database.
|
|
38
|
+
Use `http://localhost:8080` when the service runs on the server machine, or the
|
|
39
|
+
server's reachable local network address when using another machine. Docker
|
|
40
|
+
jobs also need a server address reachable from their container; container
|
|
41
|
+
`localhost` refers to the job container itself. Allow outbound access to the
|
|
42
|
+
server, plugin release URLs and configured model providers. No inbound executor
|
|
43
|
+
port is needed. Create one executor identity per agent in the application; a
|
|
44
|
+
service instance uses that identity and processes one run at a time.
|
|
45
|
+
|
|
46
|
+
Build the npm artifact from `runtime/` with `npm pack`, and transfer the
|
|
47
|
+
resulting tarball to the local Linux machine if needed. Install Node 22.22.0+/npm and systemd, with Node in a system-wide path such as `/usr/local/bin/node`.
|
|
48
|
+
Docker mode also needs Docker
|
|
49
|
+
Engine. Extract the installer from the tarball and run it as root:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
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
|
+
```
|
|
55
|
+
|
|
56
|
+
The installer creates `/opt/orgsdk-executor`, the `orgsdk-researcher` system
|
|
57
|
+
account, `/var/lib/orgsdk-executor/researcher` (0700), the root-only environment
|
|
58
|
+
file `/etc/orgsdk-executor/researcher.env`, and a systemd template. It prints the
|
|
59
|
+
exact registration command with a silent shell token prompt and stdin pipe;
|
|
60
|
+
the token is never a command argument. Registration saves it as 0600 in the
|
|
61
|
+
private data directory. The service starts only after registration and your
|
|
62
|
+
explicit `systemctl enable --now orgsdk-executor@researcher` command. Replace
|
|
63
|
+
the printed `https://YOUR-SERVER` placeholder with your reachable local server URL.
|
|
64
|
+
|
|
65
|
+
For Docker mode, build the job image on the service machine from the repository
|
|
66
|
+
root with `docker build -t orgsdk-executor:local runtime`. When using another
|
|
67
|
+
local build machine, transfer the image with `docker save`/`docker load`. Set
|
|
68
|
+
`EXECUTOR_IMAGE` in the environment file to that image. The default
|
|
69
|
+
`EXECUTION_NETWORK=bridge` supports outbound server access. Each job bind-mounts
|
|
70
|
+
only its agent directory, runs as the service account's numeric UID/GID, and
|
|
71
|
+
receives a run capability through stdin. Registration and environment files
|
|
72
|
+
are outside that mount. Docker group access grants host administration power;
|
|
73
|
+
use a dedicated trusted executor machine.
|
|
74
|
+
|
|
75
|
+
For host execution, pass `host` to the installer explicitly. Host plugins run
|
|
76
|
+
under the instance account and can access its private files, including its
|
|
77
|
+
registration; use this mode only with trusted plugins. Docker is the default.
|
|
78
|
+
No bootstrap token is required for either service mode.
|
|
79
|
+
|
|
80
|
+
Repeat the installer with another instance name and register another agent to
|
|
81
|
+
add independent services and persistent folders. Package files are shared;
|
|
82
|
+
stop all executor services before upgrading the package, rerun the installer,
|
|
83
|
+
then restart them. Existing data and environment files are preserved. Inspect
|
|
84
|
+
logs with `journalctl -u orgsdk-executor@researcher`; stop a runner with
|
|
85
|
+
`systemctl stop orgsdk-executor@researcher`. Stopping does not delete files.
|
|
86
|
+
The artifact includes built JavaScript, workers, SDK declarations, and the embedded plugin loader. npm installs its production dependencies; it is not a standalone executable. Source TypeScript, tests and development fixtures are omitted.
|
|
87
|
+
|
|
88
|
+
## Publishing compatible plugin bundles
|
|
89
|
+
|
|
90
|
+
`package-plugin` creates a standalone ESM release with dependencies bundled. Supply `--license FILE` when publishing to retain that first-party license plus the installed production dependency licenses in the bundle and its `.notices.txt` companion. Missing upstream license files must be supplied from their actual upstream source before publication; the builder never fetches licenses or changes source-repository visibility.
|
|
91
|
+
|
|
92
|
+
Some libraries (such as Playwright) need their original package-file layout. Opt in with `--embed-dependencies playwright`: the package carries a compressed dependency closure, validates every extracted file against its embedded SHA256 before loading, and uses a package-local directory. It does not depend on a checkout or a shared `node_modules` directory. Do not use this to distribute platform-specific native binaries as portable JavaScript.
|
|
93
|
+
|
|
94
|
+
Browser's engine is a runner prerequisite. The optional `Dockerfile.chromium` includes the Chromium version matching Playwright 1.60.0; it adds no plugin implementations to the platform:
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
docker build -t orgsdk-job:chromium -f runtime/Dockerfile.chromium runtime
|
|
98
|
+
EXECUTOR_IMAGE=orgsdk-job:chromium orgsdk-executor start --mode docker
|
|
99
|
+
```
|
|
100
|
+
|
|
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`.
|
|
102
|
+
|
|
103
|
+
Release acceptance can be repeated without a personal installation or provider API calls:
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
bun --no-env-file runtime/scripts/verify-plugin-releases.ts \
|
|
107
|
+
--catalog https://orgsdk.ai/plugins/releases.json
|
|
108
|
+
```
|
|
109
|
+
|
|
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
|
+
|
|
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).
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// src/cli-options.ts
|
|
2
|
+
import { parseArgs } from "node:util";
|
|
3
|
+
var commandOptions = {
|
|
4
|
+
register: ["url", "data"],
|
|
5
|
+
start: ["mode", "data"],
|
|
6
|
+
manage: ["mode", "data"],
|
|
7
|
+
install: ["agent", "manifest", "file", "data"],
|
|
8
|
+
"package-plugin": ["directory", "output", "embed-dependencies", "license"]
|
|
9
|
+
};
|
|
10
|
+
function executorArguments(args) {
|
|
11
|
+
const command = args[0] ?? "--help";
|
|
12
|
+
if (command === "--help" || command === "--version") {
|
|
13
|
+
if (args.length > 1)
|
|
14
|
+
throw new Error("Help and version do not accept arguments");
|
|
15
|
+
return {
|
|
16
|
+
command,
|
|
17
|
+
option: (_name) => void 0
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
const allowed = commandOptions[command];
|
|
21
|
+
if (!allowed) throw new Error("Unknown executor command; use --help");
|
|
22
|
+
const { values } = parseArgs({
|
|
23
|
+
args: args.slice(1),
|
|
24
|
+
options: Object.fromEntries(
|
|
25
|
+
allowed.map((name) => [name, { type: "string" }])
|
|
26
|
+
),
|
|
27
|
+
strict: true,
|
|
28
|
+
allowPositionals: false
|
|
29
|
+
});
|
|
30
|
+
for (const [name, value] of Object.entries(values)) {
|
|
31
|
+
if (typeof value !== "string" || !value.trim())
|
|
32
|
+
throw new Error(`--${name} requires a nonempty value`);
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
command,
|
|
36
|
+
option: (name) => values[name]
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
executorArguments
|
|
41
|
+
};
|