@jingyi0605/codingns 0.8.1 → 0.8.5
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/bin/codingns.mjs +180 -0
- package/dist/public/assets/{AdaptiveButlerPage-b7s6F_sd.js → AdaptiveButlerPage-CJw8Ae62.js} +3 -3
- package/dist/public/assets/App-BOHBGFOd.js +30 -0
- package/dist/public/assets/{BootstrapPage-jFfl7KNK.js → BootstrapPage-BxHQT4nA.js} +1 -1
- package/dist/public/assets/{ConversationPage-sj_rn4q0.js → ConversationPage-DWFsF6BB.js} +6 -6
- package/dist/public/assets/{DesktopDetachPreviewPage-C5c88SOX.js → DesktopDetachPreviewPage-DOgEjYEf.js} +1 -1
- package/dist/public/assets/DesktopModal-D_A8sgQU.js +1 -0
- package/dist/public/assets/DesktopWindowPage-DK7L7osV.js +2 -0
- package/dist/public/assets/FileContextPanel-BdCoubcJ.js +1 -0
- package/dist/public/assets/GitSidebar-BeZ0hj7A.js +6 -0
- package/dist/public/assets/MobileCreateSessionSheet-DfLMVu8q.js +1 -0
- package/dist/public/assets/MobileSheet-5kZ-w-gU.js +1 -0
- package/dist/public/assets/{MobileTopHeaderFrame-_I0t7cC_.js → MobileTopHeaderFrame-lcp2GscV.js} +1 -1
- package/dist/public/assets/MobileWorkspaceSwitcherHeader-C6JMiOq_.js +1 -0
- package/dist/public/assets/PluginAccessOverview-DGcKAMQl.js +1 -0
- package/dist/public/assets/PluginContainerPage-BlY-xJDh.js +1 -0
- package/dist/public/assets/PluginDetailPage-CAJ7LFpD.js +1 -0
- package/dist/public/assets/PluginsListPage-BxZG1NyT.js +1 -0
- package/dist/public/assets/{RelayConnectEntryPage-CMtDWyGS.js → RelayConnectEntryPage-CfNO_TIl.js} +1 -1
- package/dist/public/assets/ServerSettingsModal-by36Z_5k.js +1 -0
- package/dist/public/assets/SessionIndexPage-DkBp9Mqz.js +1 -0
- package/dist/public/assets/SettingsPage-C-ASmJAG.js +2 -0
- package/dist/public/assets/TerminalManagerPanel-NVZRxxmH.js +1 -0
- package/dist/public/assets/{TerminalPage-CBIKHI33.js → TerminalPage-C4LNoPBp.js} +3 -3
- package/dist/public/assets/TerminalRuntimeFallbackModal-Bzum5nZ0.js +1 -0
- package/dist/public/assets/ToolFilesPage-47zbdgTW.js +1 -0
- package/dist/public/assets/ToolGitPage-Fuk_b_jg.js +1 -0
- package/dist/public/assets/ToolProcessesPage-sWSMWD-9.js +1 -0
- package/dist/public/assets/ToolsHomePage-R1mZlbZi.js +1 -0
- package/dist/public/assets/WorkbenchLandingPage-CqmiFH2u.js +1 -0
- package/dist/public/assets/WorkbenchLayout-OFi6CWgH.js +244 -0
- package/dist/public/assets/WorkbenchModal-C7qoQElW.js +1 -0
- package/dist/public/assets/WorkbenchShellRoute-BAQe_E0O.js +1 -0
- package/dist/public/assets/WorkspaceDebugDetailPage-DhKa6e9y.js +1 -0
- package/dist/public/assets/WorkspaceDetailPage-BPsrFffw.js +1 -0
- package/dist/public/assets/WorkspaceHomePage-KAtqZOAb.js +1 -0
- package/dist/public/assets/{client-runtime-manager-CdJP7nUp.js → client-runtime-manager-wmCJZKYd.js} +1 -1
- package/dist/public/assets/file-tree-icon-Mg1DiBRX.js +590 -0
- package/dist/public/assets/{index-VVxfF0s5.css → index-C4t-vvqk.css} +1 -1
- package/dist/public/assets/index-CL97fwWB.js +42 -0
- package/dist/public/assets/{login-direct-candidate-resolver-C-mo698r.js → login-direct-candidate-resolver-BOAgTuUf.js} +1 -1
- package/dist/public/assets/plugin-permission-copy-Cq99cnzV.js +1 -0
- package/dist/public/assets/plugins-api-BQTV5DOp.js +1 -0
- package/dist/public/assets/{preferences-service-CnaTvZq2.js → preferences-service-DJxbEEeg.js} +1 -1
- package/dist/public/assets/realtime-client-CLafKzzJ.js +1 -0
- package/dist/public/assets/{relay-entry-D7OgZZN-.js → relay-entry-D-LfvdiX.js} +1 -1
- package/dist/public/assets/{terminal-runtime-meta-BCtAYB0E.js → terminal-runtime-meta-BJmy8dyK.js} +1 -1
- package/dist/public/assets/useRegisteredDebugTemplates-DQAWVdCo.js +1 -0
- package/dist/public/assets/workbench-navigation-MEzCSmsK.js +1 -0
- package/dist/public/index.html +2 -2
- package/dist/server/config/env.d.ts +1 -0
- package/dist/server/config/env.js +4 -0
- package/dist/server/config/env.js.map +1 -1
- package/dist/server/helpers/wechat-claw-runtime/modules/runtime-state-store.js +1 -1
- package/dist/server/helpers/wechat-claw-runtime/modules/runtime-state-store.js.map +1 -1
- package/dist/server/modules/channels/wechat-claw-client.d.ts +51 -0
- package/dist/server/modules/channels/wechat-claw-client.js +245 -0
- package/dist/server/modules/channels/wechat-claw-client.js.map +1 -0
- package/dist/server/modules/file/file-access-guard.d.ts +2 -0
- package/dist/server/modules/file/file-access-guard.js +24 -2
- package/dist/server/modules/file/file-access-guard.js.map +1 -1
- package/dist/server/modules/file/file-controller.d.ts +153 -1
- package/dist/server/modules/file/file-controller.js +215 -1
- package/dist/server/modules/file/file-controller.js.map +1 -1
- package/dist/server/modules/file/file-preview-link-service.d.ts +2 -0
- package/dist/server/modules/file/file-preview-link-service.js +5 -1
- package/dist/server/modules/file/file-preview-link-service.js.map +1 -1
- package/dist/server/modules/file/runtime/codingns-workspace-bridge.js +911 -0
- package/dist/server/modules/file/workspace-file-bridge-service.d.ts +126 -0
- package/dist/server/modules/file/workspace-file-bridge-service.js +471 -0
- package/dist/server/modules/file/workspace-file-bridge-service.js.map +1 -0
- package/dist/server/modules/file/workspace-file-bridge-watch-service.d.ts +42 -0
- package/dist/server/modules/file/workspace-file-bridge-watch-service.js +304 -0
- package/dist/server/modules/file/workspace-file-bridge-watch-service.js.map +1 -0
- package/dist/server/modules/model-switch/cc-switch-adapter.js +1 -1
- package/dist/server/modules/model-switch/cc-switch-adapter.js.map +1 -1
- package/dist/server/modules/plugins/plugin-controller.d.ts +131 -0
- package/dist/server/modules/plugins/plugin-controller.js +277 -0
- package/dist/server/modules/plugins/plugin-controller.js.map +1 -0
- package/dist/server/modules/plugins/plugin-file-gateway-service.d.ts +38 -0
- package/dist/server/modules/plugins/plugin-file-gateway-service.js +178 -0
- package/dist/server/modules/plugins/plugin-file-gateway-service.js.map +1 -0
- package/dist/server/modules/plugins/plugin-manifest.d.ts +8 -0
- package/dist/server/modules/plugins/plugin-manifest.js +420 -0
- package/dist/server/modules/plugins/plugin-manifest.js.map +1 -0
- package/dist/server/modules/plugins/plugin-permission-service.d.ts +49 -0
- package/dist/server/modules/plugins/plugin-permission-service.js +267 -0
- package/dist/server/modules/plugins/plugin-permission-service.js.map +1 -0
- package/dist/server/modules/plugins/plugin-process-runner.d.ts +21 -0
- package/dist/server/modules/plugins/plugin-process-runner.js +127 -0
- package/dist/server/modules/plugins/plugin-process-runner.js.map +1 -0
- package/dist/server/modules/plugins/plugin-registry-service.d.ts +41 -0
- package/dist/server/modules/plugins/plugin-registry-service.js +238 -0
- package/dist/server/modules/plugins/plugin-registry-service.js.map +1 -0
- package/dist/server/modules/plugins/plugin-runtime-service.d.ts +55 -0
- package/dist/server/modules/plugins/plugin-runtime-service.js +252 -0
- package/dist/server/modules/plugins/plugin-runtime-service.js.map +1 -0
- package/dist/server/modules/plugins/plugin-runtime-session-service.d.ts +21 -0
- package/dist/server/modules/plugins/plugin-runtime-session-service.js +83 -0
- package/dist/server/modules/plugins/plugin-runtime-session-service.js.map +1 -0
- package/dist/server/modules/plugins/plugin-scheduler-service.d.ts +31 -0
- package/dist/server/modules/plugins/plugin-scheduler-service.js +232 -0
- package/dist/server/modules/plugins/plugin-scheduler-service.js.map +1 -0
- package/dist/server/modules/plugins/plugin-static-service.d.ts +11 -0
- package/dist/server/modules/plugins/plugin-static-service.js +145 -0
- package/dist/server/modules/plugins/plugin-static-service.js.map +1 -0
- package/dist/server/modules/presentation/presentation-controller.d.ts +3 -0
- package/dist/server/modules/presentation/presentation-controller.js +11 -0
- package/dist/server/modules/presentation/presentation-controller.js.map +1 -1
- package/dist/server/modules/presentation/presentation-export-task-service.d.ts +6 -0
- package/dist/server/modules/presentation/presentation-export-task-service.js +52 -8
- package/dist/server/modules/presentation/presentation-export-task-service.js.map +1 -1
- package/dist/server/modules/presentation/presentation-pptx-export-service.js +200 -14
- package/dist/server/modules/presentation/presentation-pptx-export-service.js.map +1 -1
- package/dist/server/modules/presentation/presentation-renderer.d.ts +50 -0
- package/dist/server/modules/presentation/presentation-renderer.js +450 -37
- package/dist/server/modules/presentation/presentation-renderer.js.map +1 -1
- package/dist/server/modules/tasks/task-types.d.ts +2 -0
- package/dist/server/modules/tasks/task-types.js +2 -0
- package/dist/server/modules/tasks/task-types.js.map +1 -1
- package/dist/server/modules/terminal/runtime/terminal-log-writer-process.js +1 -1
- package/dist/server/modules/terminal/runtime/terminal-log-writer-process.js.map +1 -1
- package/dist/server/routes/files.js +40 -0
- package/dist/server/routes/files.js.map +1 -1
- package/dist/server/routes/plugins-public.d.ts +3 -0
- package/dist/server/routes/plugins-public.js +5 -0
- package/dist/server/routes/plugins-public.js.map +1 -0
- package/dist/server/routes/plugins.d.ts +3 -0
- package/dist/server/routes/plugins.js +19 -0
- package/dist/server/routes/plugins.js.map +1 -0
- package/dist/server/routes/presentation.js +1 -0
- package/dist/server/routes/presentation.js.map +1 -1
- package/dist/server/server/create-server.d.ts +20 -0
- package/dist/server/server/create-server.js +47 -1
- package/dist/server/server/create-server.js.map +1 -1
- package/dist/server/shared/http/error-handler.js +10 -6
- package/dist/server/shared/http/error-handler.js.map +1 -1
- package/dist/server/shared/runtime/better-sqlite3.d.ts +5 -0
- package/dist/server/shared/runtime/better-sqlite3.js +6 -0
- package/dist/server/shared/runtime/better-sqlite3.js.map +1 -0
- package/dist/server/storage/repositories/plugin-audit-event-repository.d.ts +8 -0
- package/dist/server/storage/repositories/plugin-audit-event-repository.js +49 -0
- package/dist/server/storage/repositories/plugin-audit-event-repository.js.map +1 -0
- package/dist/server/storage/repositories/plugin-definition-repository.d.ts +10 -0
- package/dist/server/storage/repositories/plugin-definition-repository.js +84 -0
- package/dist/server/storage/repositories/plugin-definition-repository.js.map +1 -0
- package/dist/server/storage/repositories/plugin-enablement-repository.d.ts +9 -0
- package/dist/server/storage/repositories/plugin-enablement-repository.js +74 -0
- package/dist/server/storage/repositories/plugin-enablement-repository.js.map +1 -0
- package/dist/server/storage/repositories/plugin-permission-grant-repository.d.ts +12 -0
- package/dist/server/storage/repositories/plugin-permission-grant-repository.js +142 -0
- package/dist/server/storage/repositories/plugin-permission-grant-repository.js.map +1 -0
- package/dist/server/storage/repositories/plugin-run-repository.d.ts +10 -0
- package/dist/server/storage/repositories/plugin-run-repository.js +111 -0
- package/dist/server/storage/repositories/plugin-run-repository.js.map +1 -0
- package/dist/server/storage/repositories/plugin-runtime-session-repository.d.ts +10 -0
- package/dist/server/storage/repositories/plugin-runtime-session-repository.js +86 -0
- package/dist/server/storage/repositories/plugin-runtime-session-repository.js.map +1 -0
- package/dist/server/storage/sqlite/client.d.ts +2 -2
- package/dist/server/storage/sqlite/client.js +250 -1
- package/dist/server/storage/sqlite/client.js.map +1 -1
- package/dist/server/storage/sqlite/schema.sql +140 -0
- package/dist/server/types/domain.d.ts +122 -0
- package/package.json +10 -3
- package/scripts/postinstall.mjs +248 -11
- package/vendor/better-sqlite3-win32-x64-node22/LICENSE +21 -0
- package/vendor/better-sqlite3-win32-x64-node22/README.md +12 -0
- package/vendor/better-sqlite3-win32-x64-node22/README.upstream.md +99 -0
- package/vendor/better-sqlite3-win32-x64-node22/binding.gyp +38 -0
- package/vendor/better-sqlite3-win32-x64-node22/build/Release/better_sqlite3.node +0 -0
- package/vendor/better-sqlite3-win32-x64-node22/deps/common.gypi +68 -0
- package/vendor/better-sqlite3-win32-x64-node22/deps/copy.js +31 -0
- package/vendor/better-sqlite3-win32-x64-node22/deps/defines.gypi +41 -0
- package/vendor/better-sqlite3-win32-x64-node22/deps/download.sh +122 -0
- package/vendor/better-sqlite3-win32-x64-node22/deps/patches/1208.patch +15 -0
- package/vendor/better-sqlite3-win32-x64-node22/deps/sqlite3/sqlite3.c +265994 -0
- package/vendor/better-sqlite3-win32-x64-node22/deps/sqlite3/sqlite3.h +13968 -0
- package/vendor/better-sqlite3-win32-x64-node22/deps/sqlite3/sqlite3ext.h +730 -0
- package/vendor/better-sqlite3-win32-x64-node22/deps/sqlite3.gyp +80 -0
- package/vendor/better-sqlite3-win32-x64-node22/deps/test_extension.c +21 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/database.js +90 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/index.js +3 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/methods/aggregate.js +43 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/methods/backup.js +67 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/methods/function.js +31 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/methods/inspect.js +7 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/methods/pragma.js +12 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/methods/serialize.js +16 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/methods/table.js +189 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/methods/transaction.js +78 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/methods/wrappers.js +54 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/sqlite-error.js +20 -0
- package/vendor/better-sqlite3-win32-x64-node22/lib/util.js +12 -0
- package/vendor/better-sqlite3-win32-x64-node22/package.json +38 -0
- package/vendor/better-sqlite3-win32-x64-node22/scripts/verify-runtime.cjs +42 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/addon.cpp +47 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/better_sqlite3.cpp +74 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/objects/backup.cpp +120 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/objects/backup.hpp +36 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/objects/database.cpp +417 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/objects/database.hpp +103 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/objects/statement-iterator.cpp +113 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/objects/statement-iterator.hpp +50 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/objects/statement.cpp +383 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/objects/statement.hpp +58 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/bind-map.cpp +73 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/binder.cpp +193 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/constants.cpp +172 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/custom-aggregate.cpp +121 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/custom-function.cpp +59 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/custom-table.cpp +409 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/data-converter.cpp +17 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/data.cpp +194 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/helpers.cpp +109 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/macros.cpp +83 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/query-macros.cpp +71 -0
- package/vendor/better-sqlite3-win32-x64-node22/src/util/row-builder.cpp +49 -0
- package/vendor/node-pty-fork/README.md +1 -0
- package/vendor/node-pty-fork/scripts/runtime-install-context.cjs +24 -0
- package/vendor/node-pty-fork/scripts/verify-runtime.cjs +8 -0
- package/vendor/node-pty-fork/scripts/verify-runtime.test.cjs +30 -0
- package/vendor-src/better-sqlite3-win32-x64-node22/README.md +12 -0
- package/dist/public/assets/App-B0q8uDA-.js +0 -30
- package/dist/public/assets/DesktopWindowPage-BdKUZrKG.js +0 -2
- package/dist/public/assets/FileContextPanel-lM5mBcfn.js +0 -1
- package/dist/public/assets/GitSidebar-CmXAhyjo.js +0 -6
- package/dist/public/assets/MobileCreateSessionSheet-CceV0-AH.js +0 -1
- package/dist/public/assets/MobileWorkspaceSwitcherHeader-DhaM9fgx.js +0 -1
- package/dist/public/assets/ServerSettingsModal-Rkgn3jft.js +0 -1
- package/dist/public/assets/SessionIndexPage-BOumP3ij.js +0 -1
- package/dist/public/assets/SettingsPage-vx_c-00-.js +0 -2
- package/dist/public/assets/TerminalManagerPanel-D9JHCS6d.js +0 -1
- package/dist/public/assets/TerminalRuntimeFallbackModal-W5NjqFEz.js +0 -1
- package/dist/public/assets/ToolFilesPage-DWtpaN_7.js +0 -1
- package/dist/public/assets/ToolGitPage-MpGXsw4_.js +0 -1
- package/dist/public/assets/ToolProcessesPage-B1jHQKhZ.js +0 -1
- package/dist/public/assets/ToolsHomePage-CJrn8ZFl.js +0 -1
- package/dist/public/assets/WorkbenchLandingPage-CJQ1V5U-.js +0 -1
- package/dist/public/assets/WorkbenchLayout-D48i71PU.js +0 -244
- package/dist/public/assets/WorkbenchModal-BYNuMIoV.js +0 -1
- package/dist/public/assets/WorkbenchShellRoute-CGKjy4J-.js +0 -1
- package/dist/public/assets/WorkspaceDebugDetailPage-DCAYgays.js +0 -1
- package/dist/public/assets/WorkspaceDetailPage-D5v-nUIi.js +0 -1
- package/dist/public/assets/WorkspaceHomePage-I5G1p5SR.js +0 -1
- package/dist/public/assets/file-tree-icon-BFwaPxKs.js +0 -590
- package/dist/public/assets/index-CjewzOUG.js +0 -42
- package/dist/public/assets/model-switch-api-Br0ivfe5.js +0 -1
- package/dist/public/assets/realtime-client-BlQRqVmm.js +0 -1
- package/dist/public/assets/useRegisteredDebugTemplates-CXmxu69X.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-log-writer-process.js","sourceRoot":"","sources":["../../../../../src/modules/terminal/runtime/terminal-log-writer-process.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,IAAI,M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AAS,QAAQ;IACf,WAAW,CAAC,KAAK,EAAE,CAAC;IAEpB,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;QACZ,EAAE,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;IAED,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"}
|
|
1
|
+
{"version":3,"file":"terminal-log-writer-process.js","sourceRoot":"","sources":["../../../../../src/modules/terminal/runtime/terminal-log-writer-process.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AAqDjE,MAAM,sBAAsB,GAAG,GAAG,CAAC;AACnC,MAAM,2BAA2B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,CAAU,CAAC;AAChF,MAAM,kCAAkC,GAAG,GAAG,CAAC;AAE/C,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,MAAM,YAAY,GAAG,kBAAkB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AAClE,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;AAC7E,MAAM,EAAE,GAAG,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC;AAEtC,iDAAiD;AACjD,EAAE,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;AAChC,EAAE,CAAC,MAAM,CAAC,mBAAmB,C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,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;AACH,CAAC;AAED,KAAK,UAAU,WAAW,CAAC,OAK1B;IACC,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC1C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE;YAC7D,IAAI,KAAK,EAAE,CAAC;gBACV,MAAM,CAAC,KAAK,CAAC,CAAC;gBACd,OAAO;YACT,CAAC;YAED,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,QAAQ;IACf,WAAW,CAAC,KAAK,EAAE,CAAC;IAEpB,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;QACZ,EAAE,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;IAED,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -12,6 +12,46 @@ export async function registerFileRoutes(app, fileController) {
|
|
|
12
12
|
app.get("/api/files/recent", fileController.getRecent);
|
|
13
13
|
app.get("/api/files/preview", fileController.preview);
|
|
14
14
|
app.get("/api/files/preview-link", fileController.createPreviewLink);
|
|
15
|
+
app.get("/api/files/workspace-bridge/capabilities", fileController.getWorkspaceBridgeCapabilities);
|
|
16
|
+
app.post("/api/files/workspace-bridge/list-dir", fileController.workspaceBridgeListDir);
|
|
17
|
+
app.post("/api/files/workspace-bridge/read-text", fileController.workspaceBridgeReadText);
|
|
18
|
+
app.post("/api/files/workspace-bridge/read-texts", fileController.workspaceBridgeReadTexts);
|
|
19
|
+
app.post("/api/files/workspace-bridge/write-text", fileController.workspaceBridgeWriteText);
|
|
20
|
+
app.post("/api/files/workspace-bridge/delete-file", fileController.workspaceBridgeDeleteFile);
|
|
21
|
+
app.get("/api/files/workspace-bridge/stat", fileController.workspaceBridgeStat);
|
|
22
|
+
app.get("/api/files/workspace-bridge/exists", fileController.workspaceBridgeExists);
|
|
23
|
+
app.post("/api/files/workspace-bridge/open-file", fileController.workspaceBridgeOpenFile);
|
|
24
|
+
app.post("/api/files/workspace-bridge/reveal-in-file-manager", fileController.workspaceBridgeRevealInFileManager);
|
|
25
|
+
app.post("/api/files/workspace-bridge/watch-dir", fileController.workspaceBridgeWatchDir);
|
|
26
|
+
app.post("/api/files/workspace-bridge/unwatch", fileController.workspaceBridgeUnwatch);
|
|
27
|
+
app.get("/api/files/workspace-bridge/watch-events", fileController.workspaceBridgePollWatch);
|
|
28
|
+
app.get("/preview/runtime/codingns-workspace-bridge.js", fileController.workspaceBridgeRuntime);
|
|
29
|
+
app.get("/preview/workspace-bridge/capabilities", fileController.previewWorkspaceBridgeCapabilities);
|
|
30
|
+
app.post("/preview/workspace-bridge/list-dir", fileController.previewWorkspaceBridgeListDir);
|
|
31
|
+
app.post("/preview/workspace-bridge/read-text", fileController.previewWorkspaceBridgeReadText);
|
|
32
|
+
app.post("/preview/workspace-bridge/read-texts", fileController.previewWorkspaceBridgeReadTexts);
|
|
33
|
+
app.post("/preview/workspace-bridge/write-text", fileController.previewWorkspaceBridgeWriteText);
|
|
34
|
+
app.post("/preview/workspace-bridge/delete-file", fileController.previewWorkspaceBridgeDeleteFile);
|
|
35
|
+
app.get("/preview/workspace-bridge/stat", fileController.previewWorkspaceBridgeStat);
|
|
36
|
+
app.get("/preview/workspace-bridge/exists", fileController.previewWorkspaceBridgeExists);
|
|
37
|
+
app.post("/preview/workspace-bridge/open-file", fileController.previewWorkspaceBridgeOpenFile);
|
|
38
|
+
app.post("/preview/workspace-bridge/reveal-in-file-manager", fileController.previewWorkspaceBridgeRevealInFileManager);
|
|
39
|
+
app.post("/preview/workspace-bridge/watch-dir", fileController.previewWorkspaceBridgeWatchDir);
|
|
40
|
+
app.post("/preview/workspace-bridge/unwatch", fileController.previewWorkspaceBridgeUnwatch);
|
|
41
|
+
app.get("/preview/workspace-bridge/watch-events", fileController.previewWorkspaceBridgePollWatch);
|
|
42
|
+
app.get("/preview/workspace-bridge/:token/capabilities", fileController.previewWorkspaceBridgeCapabilities);
|
|
43
|
+
app.post("/preview/workspace-bridge/:token/list-dir", fileController.previewWorkspaceBridgeListDir);
|
|
44
|
+
app.post("/preview/workspace-bridge/:token/read-text", fileController.previewWorkspaceBridgeReadText);
|
|
45
|
+
app.post("/preview/workspace-bridge/:token/read-texts", fileController.previewWorkspaceBridgeReadTexts);
|
|
46
|
+
app.post("/preview/workspace-bridge/:token/write-text", fileController.previewWorkspaceBridgeWriteText);
|
|
47
|
+
app.post("/preview/workspace-bridge/:token/delete-file", fileController.previewWorkspaceBridgeDeleteFile);
|
|
48
|
+
app.get("/preview/workspace-bridge/:token/stat", fileController.previewWorkspaceBridgeStat);
|
|
49
|
+
app.get("/preview/workspace-bridge/:token/exists", fileController.previewWorkspaceBridgeExists);
|
|
50
|
+
app.post("/preview/workspace-bridge/:token/open-file", fileController.previewWorkspaceBridgeOpenFile);
|
|
51
|
+
app.post("/preview/workspace-bridge/:token/reveal-in-file-manager", fileController.previewWorkspaceBridgeRevealInFileManager);
|
|
52
|
+
app.post("/preview/workspace-bridge/:token/watch-dir", fileController.previewWorkspaceBridgeWatchDir);
|
|
53
|
+
app.post("/preview/workspace-bridge/:token/unwatch", fileController.previewWorkspaceBridgeUnwatch);
|
|
54
|
+
app.get("/preview/workspace-bridge/:token/watch-events", fileController.previewWorkspaceBridgePollWatch);
|
|
15
55
|
app.get("/preview/files/*", fileController.publicPreview);
|
|
16
56
|
}
|
|
17
57
|
//# sourceMappingURL=files.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/routes/files.ts"],"names":[],"mappings":"AAIA,MAAM,4BAA4B,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvD,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,GAAoB,EACpB,cA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C,EAAE,cAAc,CAAC,+BAA+B,CAAC,CAAC;IACzG,GAAG,CAAC,GAAG,CAAC,kBAAkB,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export async function registerPluginPublicRoutes(app, pluginController) {
|
|
2
|
+
app.get("/preview/plugins/runtime-sdk.js", pluginController.publicRuntimeSdk);
|
|
3
|
+
app.get("/preview/plugins/:pluginId/frontend/*", pluginController.publicFrontendAsset);
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=plugins-public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins-public.js","sourceRoot":"","sources":["../../../src/routes/plugins-public.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,GAAoB,EACpB,gBAAkC;IAElC,GAAG,CAAC,GAAG,CAAC,iCAAiC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC9E,GAAG,CAAC,GAAG,CAAC,uCAAuC,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;AACzF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export async function registerPluginRoutes(app, pluginController) {
|
|
2
|
+
app.get("/api/plugins", pluginController.list);
|
|
3
|
+
app.get("/api/plugins/:pluginId", pluginController.get);
|
|
4
|
+
app.post("/api/plugins/:pluginId/runtime-sessions", pluginController.createRuntimeSession);
|
|
5
|
+
app.post("/api/plugins/:pluginId/runtime-sessions/:runtimeSessionId/close", pluginController.closeRuntimeSession);
|
|
6
|
+
app.post("/api/plugins/:pluginId/enable", pluginController.enable);
|
|
7
|
+
app.post("/api/plugins/:pluginId/disable", pluginController.disable);
|
|
8
|
+
app.post("/api/plugins/:pluginId/actions/:actionId", pluginController.callAction);
|
|
9
|
+
app.get("/api/plugins/:pluginId/permissions/grants", pluginController.listPermissionGrants);
|
|
10
|
+
app.post("/api/plugins/:pluginId/permissions/grants", pluginController.createPermissionGrant);
|
|
11
|
+
app.post("/api/plugins/:pluginId/permissions/grants/:grantId/revoke", pluginController.revokePermissionGrant);
|
|
12
|
+
app.post("/api/plugins/:pluginId/files/read", pluginController.readFile);
|
|
13
|
+
app.post("/api/plugins/:pluginId/files/write", pluginController.writeFile);
|
|
14
|
+
app.post("/api/plugins/:pluginId/files/list", pluginController.listDirectory);
|
|
15
|
+
app.get("/api/plugins/:pluginId/runs", pluginController.listRuns);
|
|
16
|
+
app.post("/api/plugins/:pluginId/desktop/open-file", pluginController.desktopOpenFile);
|
|
17
|
+
app.post("/api/plugins/:pluginId/desktop/reveal-in-file-manager", pluginController.desktopRevealInFileManager);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/routes/plugins.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,GAAoB,EACpB,gBAAkC;IAElC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC/C,GAAG,CAAC,GAAG,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACxD,GAAG,CAAC,IAAI,CAAC,yCAAyC,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IAC3F,GAAG,CAAC,IAAI,CAAC,iEAAiE,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAClH,GAAG,CAAC,IAAI,CAAC,+BAA+B,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACnE,GAAG,CAAC,IAAI,CAAC,gCAAgC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACrE,GAAG,CAAC,IAAI,CAAC,0CAA0C,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAClF,GAAG,CAAC,GAAG,CAAC,2CAA2C,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IAC5F,GAAG,CAAC,IAAI,CAAC,2CAA2C,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;IAC9F,GAAG,CAAC,IAAI,CAAC,2DAA2D,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;IAC9G,GAAG,CAAC,IAAI,CAAC,mCAAmC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACzE,GAAG,CAAC,IAAI,CAAC,oCAAoC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC3E,GAAG,CAAC,IAAI,CAAC,mCAAmC,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC9E,GAAG,CAAC,GAAG,CAAC,6BAA6B,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAClE,GAAG,CAAC,IAAI,CAAC,0CAA0C,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;IACvF,GAAG,CAAC,IAAI,CAAC,uDAAuD,EAAE,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;AACjH,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export async function registerPresentationRoutes(app, presentationController) {
|
|
2
2
|
app.post("/api/presentation-exports", presentationController.createExportTask);
|
|
3
3
|
app.get("/api/presentation-exports/:taskId", presentationController.getExportTask);
|
|
4
|
+
app.get("/api/presentation-exports/:taskId/download", presentationController.downloadExportTask);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=presentation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../../src/routes/presentation.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,GAAoB,EACpB,sBAA8C;IAE9C,GAAG,CAAC,IAAI,CAAC,2BAA2B,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAC/E,GAAG,CAAC,GAAG,CAAC,mCAAmC,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../../src/routes/presentation.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,GAAoB,EACpB,sBAA8C;IAE9C,GAAG,CAAC,IAAI,CAAC,2BAA2B,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAC/E,GAAG,CAAC,GAAG,CAAC,mCAAmC,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACnF,GAAG,CAAC,GAAG,CAAC,4CAA4C,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;AACnG,CAAC"}
|
|
@@ -102,6 +102,7 @@ import { DebugTargetRepository } from "../storage/repositories/debug-target-repo
|
|
|
102
102
|
import { OfficeApprovalRepository } from "../storage/repositories/office-approval-repository.js";
|
|
103
103
|
import { OfficeArtifactRepository } from "../storage/repositories/office-artifact-repository.js";
|
|
104
104
|
import { OfficeAuditEventRepository } from "../storage/repositories/office-audit-event-repository.js";
|
|
105
|
+
import { PluginAuditEventRepository } from "../storage/repositories/plugin-audit-event-repository.js";
|
|
105
106
|
import { OfficeConnectorRepository } from "../storage/repositories/office-connector-repository.js";
|
|
106
107
|
import { OfficeReceiptRepository } from "../storage/repositories/office-receipt-repository.js";
|
|
107
108
|
import { OfficeRollbackRecordRepository } from "../storage/repositories/office-rollback-record-repository.js";
|
|
@@ -115,6 +116,11 @@ import { ManagedSkillRepository } from "../storage/repositories/managed-skill-re
|
|
|
115
116
|
import { OpenCliCatalogEntryRepository } from "../storage/repositories/opencli-catalog-entry-repository.js";
|
|
116
117
|
import { OpenCliProviderRepository } from "../storage/repositories/opencli-provider-repository.js";
|
|
117
118
|
import { OpenCliRuntimeProfileRepository } from "../storage/repositories/opencli-runtime-profile-repository.js";
|
|
119
|
+
import { PluginDefinitionRepository } from "../storage/repositories/plugin-definition-repository.js";
|
|
120
|
+
import { PluginEnablementRepository } from "../storage/repositories/plugin-enablement-repository.js";
|
|
121
|
+
import { PluginPermissionGrantRepository } from "../storage/repositories/plugin-permission-grant-repository.js";
|
|
122
|
+
import { PluginRuntimeSessionRepository } from "../storage/repositories/plugin-runtime-session-repository.js";
|
|
123
|
+
import { PluginRunRepository } from "../storage/repositories/plugin-run-repository.js";
|
|
118
124
|
import { PortLeaseRepository } from "../storage/repositories/port-lease-repository.js";
|
|
119
125
|
import { ParallelSessionGroupRepository } from "../storage/repositories/parallel-session-group-repository.js";
|
|
120
126
|
import { ParallelSessionMemberRepository } from "../storage/repositories/parallel-session-member-repository.js";
|
|
@@ -147,6 +153,10 @@ import { UserQuickPhrasePreferenceRepository } from "../storage/repositories/use
|
|
|
147
153
|
import { WorkspaceRepository } from "../storage/repositories/workspace-repository.js";
|
|
148
154
|
import { WorkspaceWorktreeRepository } from "../storage/repositories/workspace-worktree-repository.js";
|
|
149
155
|
import { WorkspaceNavigationStateRepository } from "../storage/repositories/workspace-navigation-state-repository.js";
|
|
156
|
+
import { PluginRegistryService } from "../modules/plugins/plugin-registry-service.js";
|
|
157
|
+
import { PluginRuntimeSessionService } from "../modules/plugins/plugin-runtime-session-service.js";
|
|
158
|
+
import { PluginRuntimeService } from "../modules/plugins/plugin-runtime-service.js";
|
|
159
|
+
import { PluginSchedulerService } from "../modules/plugins/plugin-scheduler-service.js";
|
|
150
160
|
export declare function createServer(config: HostConfig): {
|
|
151
161
|
app: Fastify.FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, Fastify.FastifyBaseLogger, Fastify.FastifyTypeProviderDefault> & PromiseLike<Fastify.FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, Fastify.FastifyBaseLogger, Fastify.FastifyTypeProviderDefault>> & {
|
|
152
162
|
__linterBrands: "SafePromiseLike";
|
|
@@ -184,6 +194,12 @@ export declare function createServer(config: HostConfig): {
|
|
|
184
194
|
officeAuditEventRepository: OfficeAuditEventRepository;
|
|
185
195
|
officeRollbackRecordRepository: OfficeRollbackRecordRepository;
|
|
186
196
|
browserProfileRepository: BrowserProfileRepository;
|
|
197
|
+
pluginDefinitionRepository: PluginDefinitionRepository;
|
|
198
|
+
pluginEnablementRepository: PluginEnablementRepository;
|
|
199
|
+
pluginAuditEventRepository: PluginAuditEventRepository;
|
|
200
|
+
pluginPermissionGrantRepository: PluginPermissionGrantRepository;
|
|
201
|
+
pluginRuntimeSessionRepository: PluginRuntimeSessionRepository;
|
|
202
|
+
pluginRunRepository: PluginRunRepository;
|
|
187
203
|
documentTemplateRepository: DocumentTemplateRepository;
|
|
188
204
|
documentRepository: DocumentRepository;
|
|
189
205
|
documentRevisionRepository: DocumentRevisionRepository;
|
|
@@ -295,6 +311,10 @@ export declare function createServer(config: HostConfig): {
|
|
|
295
311
|
modelSwitchService: ModelSwitchService;
|
|
296
312
|
officeService: OfficeService;
|
|
297
313
|
browserProfileService: BrowserProfileService;
|
|
314
|
+
pluginRegistryService: PluginRegistryService;
|
|
315
|
+
pluginRuntimeSessionService: PluginRuntimeSessionService;
|
|
316
|
+
pluginRuntimeService: PluginRuntimeService;
|
|
317
|
+
pluginSchedulerService: PluginSchedulerService;
|
|
298
318
|
documentRuntimeService: DocumentRuntimeService;
|
|
299
319
|
opsRuntimeService: OpsRuntimeService;
|
|
300
320
|
runtimeObservabilityService: RuntimeObservabilityService;
|
|
@@ -77,6 +77,8 @@ import { FileSearchService } from "../modules/file/file-search-service.js";
|
|
|
77
77
|
import { FileTreeService } from "../modules/file/file-tree-service.js";
|
|
78
78
|
import { FileVersionChecker } from "../modules/file/file-version-checker.js";
|
|
79
79
|
import { RecentFileService } from "../modules/file/recent-file-service.js";
|
|
80
|
+
import { WorkspaceFileBridgeService } from "../modules/file/workspace-file-bridge-service.js";
|
|
81
|
+
import { WorkspaceFileBridgeWatchService } from "../modules/file/workspace-file-bridge-watch-service.js";
|
|
80
82
|
import { CommitDraftService } from "../modules/git/commit-draft-service.js";
|
|
81
83
|
import { CommitOrchestrator } from "../modules/git/commit-orchestrator.js";
|
|
82
84
|
import { CommitRuleEngine } from "../modules/git/commit-rule-engine.js";
|
|
@@ -181,6 +183,8 @@ import { registerOfficeRoutes } from "../routes/office.js";
|
|
|
181
183
|
import { registerOpenCliRoutes } from "../routes/opencli.js";
|
|
182
184
|
import { registerObservabilityRoutes } from "../routes/observability.js";
|
|
183
185
|
import { registerParallelGroupRoutes } from "../routes/parallel-groups.js";
|
|
186
|
+
import { registerPluginRoutes } from "../routes/plugins.js";
|
|
187
|
+
import { registerPluginPublicRoutes } from "../routes/plugins-public.js";
|
|
184
188
|
import { registerPresentationRoutes } from "../routes/presentation.js";
|
|
185
189
|
import { registerPreferenceRoutes } from "../routes/preferences.js";
|
|
186
190
|
import { registerProviderRoutes } from "../routes/providers.js";
|
|
@@ -239,6 +243,7 @@ import { DebugTargetRepository } from "../storage/repositories/debug-target-repo
|
|
|
239
243
|
import { OfficeApprovalRepository } from "../storage/repositories/office-approval-repository.js";
|
|
240
244
|
import { OfficeArtifactRepository } from "../storage/repositories/office-artifact-repository.js";
|
|
241
245
|
import { OfficeAuditEventRepository } from "../storage/repositories/office-audit-event-repository.js";
|
|
246
|
+
import { PluginAuditEventRepository } from "../storage/repositories/plugin-audit-event-repository.js";
|
|
242
247
|
import { OfficeConnectorRepository } from "../storage/repositories/office-connector-repository.js";
|
|
243
248
|
import { OfficeReceiptRepository } from "../storage/repositories/office-receipt-repository.js";
|
|
244
249
|
import { OfficeRollbackRecordRepository } from "../storage/repositories/office-rollback-record-repository.js";
|
|
@@ -252,6 +257,11 @@ import { ManagedSkillRepository } from "../storage/repositories/managed-skill-re
|
|
|
252
257
|
import { OpenCliCatalogEntryRepository } from "../storage/repositories/opencli-catalog-entry-repository.js";
|
|
253
258
|
import { OpenCliProviderRepository } from "../storage/repositories/opencli-provider-repository.js";
|
|
254
259
|
import { OpenCliRuntimeProfileRepository } from "../storage/repositories/opencli-runtime-profile-repository.js";
|
|
260
|
+
import { PluginDefinitionRepository } from "../storage/repositories/plugin-definition-repository.js";
|
|
261
|
+
import { PluginEnablementRepository } from "../storage/repositories/plugin-enablement-repository.js";
|
|
262
|
+
import { PluginPermissionGrantRepository } from "../storage/repositories/plugin-permission-grant-repository.js";
|
|
263
|
+
import { PluginRuntimeSessionRepository } from "../storage/repositories/plugin-runtime-session-repository.js";
|
|
264
|
+
import { PluginRunRepository } from "../storage/repositories/plugin-run-repository.js";
|
|
255
265
|
import { PortLeaseRepository } from "../storage/repositories/port-lease-repository.js";
|
|
256
266
|
import { ParallelSessionGroupRepository } from "../storage/repositories/parallel-session-group-repository.js";
|
|
257
267
|
import { ParallelSessionMemberRepository } from "../storage/repositories/parallel-session-member-repository.js";
|
|
@@ -291,6 +301,15 @@ import { createWsServer } from "../ws/ws-server.js";
|
|
|
291
301
|
import { WsAuthGuard } from "../ws/ws-auth-guard.js";
|
|
292
302
|
import { registerStaticWebRoutes } from "./static-web.js";
|
|
293
303
|
import { registerWorkbenchRuntimeTerminalSync } from "./workbench-runtime-terminal-sync.js";
|
|
304
|
+
import { PluginRegistryService } from "../modules/plugins/plugin-registry-service.js";
|
|
305
|
+
import { PluginController } from "../modules/plugins/plugin-controller.js";
|
|
306
|
+
import { PluginPermissionService } from "../modules/plugins/plugin-permission-service.js";
|
|
307
|
+
import { PluginRuntimeSessionService } from "../modules/plugins/plugin-runtime-session-service.js";
|
|
308
|
+
import { PluginStaticService } from "../modules/plugins/plugin-static-service.js";
|
|
309
|
+
import { PluginFileGatewayService } from "../modules/plugins/plugin-file-gateway-service.js";
|
|
310
|
+
import { PluginProcessRunner } from "../modules/plugins/plugin-process-runner.js";
|
|
311
|
+
import { PluginRuntimeService } from "../modules/plugins/plugin-runtime-service.js";
|
|
312
|
+
import { PluginSchedulerService } from "../modules/plugins/plugin-scheduler-service.js";
|
|
294
313
|
export function createServer(config) {
|
|
295
314
|
// Demo 模式下覆盖 token TTL 为 15 分钟
|
|
296
315
|
const effectiveConfig = config.demoMode
|
|
@@ -334,6 +353,12 @@ export function createServer(config) {
|
|
|
334
353
|
officeAuditEventRepository: new OfficeAuditEventRepository(database.db),
|
|
335
354
|
officeRollbackRecordRepository: new OfficeRollbackRecordRepository(database.db),
|
|
336
355
|
browserProfileRepository: new BrowserProfileRepository(database.db),
|
|
356
|
+
pluginDefinitionRepository: new PluginDefinitionRepository(database.db),
|
|
357
|
+
pluginEnablementRepository: new PluginEnablementRepository(database.db),
|
|
358
|
+
pluginAuditEventRepository: new PluginAuditEventRepository(database.db),
|
|
359
|
+
pluginPermissionGrantRepository: new PluginPermissionGrantRepository(database.db),
|
|
360
|
+
pluginRuntimeSessionRepository: new PluginRuntimeSessionRepository(database.db),
|
|
361
|
+
pluginRunRepository: new PluginRunRepository(database.db),
|
|
337
362
|
documentTemplateRepository: new DocumentTemplateRepository(database.db),
|
|
338
363
|
documentRepository: new DocumentRepository(database.db),
|
|
339
364
|
documentRevisionRepository: new DocumentRevisionRepository(database.db),
|
|
@@ -425,7 +450,18 @@ export function createServer(config) {
|
|
|
425
450
|
const fileSearchService = new FileSearchService(fileAccessGuard);
|
|
426
451
|
const fileContentService = new FileContentService(fileAccessGuard, recentFileService, repositories.fileContextBindingRepository, fileVersionChecker);
|
|
427
452
|
const filePreviewService = new FilePreviewService(fileAccessGuard, fileContentService, recentFileService);
|
|
453
|
+
const workspaceFileBridgeWatchService = new WorkspaceFileBridgeWatchService(fileAccessGuard, app.log);
|
|
454
|
+
const workspaceFileBridgeService = new WorkspaceFileBridgeService(workspaceService, fileAccessGuard, app.log, workspaceFileBridgeWatchService);
|
|
428
455
|
const filePreviewLinkService = new FilePreviewLinkService(fileAccessGuard, config.filePreviewTokenSecret);
|
|
456
|
+
const pluginRegistryService = new PluginRegistryService(repositories.pluginDefinitionRepository, repositories.pluginEnablementRepository, repositories.pluginAuditEventRepository, config.pluginRootDir, app.log);
|
|
457
|
+
pluginRegistryService.syncPluginsFromDisk();
|
|
458
|
+
const pluginPermissionService = new PluginPermissionService(repositories.pluginPermissionGrantRepository, repositories.pluginAuditEventRepository);
|
|
459
|
+
const pluginRuntimeSessionService = new PluginRuntimeSessionService(pluginRegistryService, repositories.pluginRuntimeSessionRepository, workspaceService);
|
|
460
|
+
const pluginStaticService = new PluginStaticService(pluginRegistryService);
|
|
461
|
+
const pluginFileGatewayService = new PluginFileGatewayService(pluginRegistryService, fileAccessGuard, pluginPermissionService, repositories.pluginAuditEventRepository);
|
|
462
|
+
const pluginProcessRunner = new PluginProcessRunner();
|
|
463
|
+
const pluginRuntimeService = new PluginRuntimeService(pluginRegistryService, repositories.pluginRunRepository, repositories.pluginAuditEventRepository, workspaceService, fileAccessGuard, pluginPermissionService, pluginProcessRunner, taskManager);
|
|
464
|
+
const pluginSchedulerService = new PluginSchedulerService(pluginRegistryService, pluginRuntimeService, repositories.pluginAuditEventRepository, workspaceService, taskManager, schedulerMetrics);
|
|
429
465
|
const presentationPdfExportService = new PresentationPdfExportService(config);
|
|
430
466
|
const presentationPptxExportService = new PresentationPptxExportService(config);
|
|
431
467
|
const presentationExportTaskService = new PresentationExportTaskService(taskManager, presentationPdfExportService, presentationPptxExportService, fileAccessGuard);
|
|
@@ -688,6 +724,7 @@ export function createServer(config) {
|
|
|
688
724
|
const officeService = new OfficeService(repositories.officeTaskRepository, repositories.officeTaskStepRepository, repositories.officeArtifactRepository, repositories.officeApprovalRepository, repositories.officeReceiptRepository, repositories.officeConnectorRepository, repositories.officeAuditEventRepository, repositories.officeRollbackRecordRepository, config.databasePath);
|
|
689
725
|
const officePreviewLinkService = new OfficePreviewLinkService(officeService, config.filePreviewTokenSecret);
|
|
690
726
|
const officeController = new OfficeController(officeService, officePreviewLinkService);
|
|
727
|
+
const pluginController = new PluginController(pluginRegistryService, pluginRuntimeService, pluginStaticService, pluginRuntimeSessionService, pluginFileGatewayService, pluginPermissionService);
|
|
691
728
|
const browserProfileService = new BrowserProfileService(repositories.browserProfileRepository, config.databasePath);
|
|
692
729
|
const playwrightBrowserExecutor = new PlaywrightBrowserExecutor(config, repositories.officeTaskRepository, repositories.officeTaskStepRepository, repositories.officeArtifactRepository, repositories.officeReceiptRepository, repositories.officeAuditEventRepository);
|
|
693
730
|
const openCliBrowserBridgeService = new OpenCliBrowserBridgeService(openCliHealthService);
|
|
@@ -704,7 +741,7 @@ export function createServer(config) {
|
|
|
704
741
|
const opsRuntimeController = new OpsRuntimeController(opsRuntimeService);
|
|
705
742
|
const assistantCapabilityController = new AssistantCapabilityController(new AssistantCapabilityService(butlerProjectService, butlerSessionService, butlerControlSessionService, assistantAutomationService, assistantSandboxService, butlerControlTimerService, sessionHistoryService, sessionLiveRuntimeService, terminalService, debugTargetService, workspaceService, repositories.workspaceWorktreeRepository, worktreeManager, worktreeSyncService, worktreeMergeService, worktreeCleanupService, repositories.sessionMessageOriginRepository, butlerFollowUpService, repositories.providerControlRepository, documentRuntimeService, officeService, officePreviewLinkService, browserRuntimeService, opsRuntimeService));
|
|
706
743
|
const presentationController = new PresentationController(presentationExportTaskService);
|
|
707
|
-
const fileController = new FileController(fileTreeService, fileContentService, fileSearchService, recentFileService, filePreviewService, filePreviewLinkService);
|
|
744
|
+
const fileController = new FileController(fileTreeService, fileContentService, fileSearchService, recentFileService, filePreviewService, filePreviewLinkService, workspaceFileBridgeService);
|
|
708
745
|
const fileContextController = new FileContextController(fileContentService, fileContextService);
|
|
709
746
|
const gitController = new GitController(gitReadService, gitWriteService, commitOrchestrator, gitRemoteCredentialService);
|
|
710
747
|
const terminalController = new TerminalController(terminalService, commandTemplateService);
|
|
@@ -769,6 +806,7 @@ export function createServer(config) {
|
|
|
769
806
|
}
|
|
770
807
|
}
|
|
771
808
|
void registerPublicRoutes(app, bootstrapController, channelGatewayController);
|
|
809
|
+
void registerPluginPublicRoutes(app, pluginController);
|
|
772
810
|
void registerProxyRoutes(app, templateReverseProxyService);
|
|
773
811
|
void registerAuthRoutes(app, authController);
|
|
774
812
|
void registerAssistantCapabilityRoutes(app, assistantCapabilityController);
|
|
@@ -787,6 +825,7 @@ export function createServer(config) {
|
|
|
787
825
|
void registerSessionRoutes(app, sessionController);
|
|
788
826
|
void registerParallelGroupRoutes(app, parallelSessionController);
|
|
789
827
|
void registerPresentationRoutes(app, presentationController);
|
|
828
|
+
void registerPluginRoutes(app, pluginController);
|
|
790
829
|
void registerPreferenceRoutes(app, quickPhraseController, profileController);
|
|
791
830
|
void registerSkillRoutes(app, skillController);
|
|
792
831
|
void registerOpenCliRoutes(app, openCliController);
|
|
@@ -803,6 +842,7 @@ export function createServer(config) {
|
|
|
803
842
|
butlerControlTimerScheduler.start();
|
|
804
843
|
channelPollingScheduler.start();
|
|
805
844
|
debugRuntimeReconciliationScheduler.start();
|
|
845
|
+
pluginSchedulerService.start();
|
|
806
846
|
if (config.webUiDir) {
|
|
807
847
|
registerStaticWebRoutes(app, config.webUiDir);
|
|
808
848
|
}
|
|
@@ -818,6 +858,7 @@ export function createServer(config) {
|
|
|
818
858
|
await butlerControlTimerScheduler.dispose();
|
|
819
859
|
await channelPollingScheduler.dispose();
|
|
820
860
|
await debugRuntimeReconciliationScheduler.dispose();
|
|
861
|
+
await pluginSchedulerService.dispose();
|
|
821
862
|
terminalService.off("exit", handleDebugTargetTerminalExit);
|
|
822
863
|
await terminalService.dispose();
|
|
823
864
|
await butlerFollowUpSessionLiveRuntimeService.dispose();
|
|
@@ -828,6 +869,7 @@ export function createServer(config) {
|
|
|
828
869
|
await wsHandle.close();
|
|
829
870
|
codexArchiveWatcher.dispose();
|
|
830
871
|
fileWatcher.dispose();
|
|
872
|
+
workspaceFileBridgeWatchService.dispose();
|
|
831
873
|
config.opencodeBaseUrlResolver?.dispose?.();
|
|
832
874
|
gitCommandRunner.dispose();
|
|
833
875
|
tailscaleHelperClient.dispose();
|
|
@@ -896,6 +938,10 @@ export function createServer(config) {
|
|
|
896
938
|
modelSwitchService,
|
|
897
939
|
officeService,
|
|
898
940
|
browserProfileService,
|
|
941
|
+
pluginRegistryService,
|
|
942
|
+
pluginRuntimeSessionService,
|
|
943
|
+
pluginRuntimeService,
|
|
944
|
+
pluginSchedulerService,
|
|
899
945
|
documentRuntimeService,
|
|
900
946
|
opsRuntimeService,
|
|
901
947
|
runtimeObservabilityService,
|