@nextclaw/service 0.1.10 → 0.1.12

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.
Files changed (71) hide show
  1. package/dist/cli/commands/agent/agent-runtime.utils.d.ts +1 -2
  2. package/dist/cli/commands/agent/agent-runtime.utils.js +6 -50
  3. package/dist/cli/commands/agent/cli-agent-runner.utils.d.ts +0 -7
  4. package/dist/cli/commands/agent/cli-agent-runner.utils.js +7 -9
  5. package/dist/cli/commands/agent/services/agent-commands.service.js +0 -1
  6. package/dist/cli/commands/skills/index.js +1 -1
  7. package/dist/cli/commands/skills/marketplace-client.d.ts +11 -1
  8. package/dist/cli/commands/skills/marketplace-client.js +39 -1
  9. package/dist/cli/commands/skills/marketplace-command-options.utils.d.ts +1 -1
  10. package/dist/cli/commands/skills/marketplace.metadata.d.ts +3 -12
  11. package/dist/cli/commands/skills/marketplace.metadata.js +1 -87
  12. package/dist/cli/commands/skills/{marketplace.service.d.ts → marketplace.utils.d.ts} +1 -1
  13. package/dist/cli/commands/skills/{marketplace.service.js → marketplace.utils.js} +11 -47
  14. package/dist/cli/commands/skills/skills-query.service.d.ts +5 -37
  15. package/dist/cli/commands/skills/skills-query.service.js +16 -98
  16. package/dist/cli/commands/usage/services/llm-usage-command.service.d.ts +3 -5
  17. package/dist/cli/commands/usage/services/llm-usage-command.service.js +16 -26
  18. package/dist/commands/channel/channel-list-view.service.d.ts +7 -14
  19. package/dist/commands/channel/channel-list-view.service.js +20 -41
  20. package/dist/commands/channel/index.js +3 -9
  21. package/dist/commands/plugin/index.d.ts +2 -4
  22. package/dist/commands/plugin/index.js +8 -20
  23. package/dist/commands/plugin/{plugin-command-utils.d.ts → plugin-command.utils.d.ts} +1 -2
  24. package/dist/commands/plugin/{plugin-command-utils.js → plugin-command.utils.js} +2 -4
  25. package/dist/commands/plugin/{plugin-mutation-actions.d.ts → plugin-mutation-actions.utils.d.ts} +1 -1
  26. package/dist/commands/plugin/{plugin-mutation-actions.js → plugin-mutation-actions.utils.js} +2 -2
  27. package/dist/commands/service/services/autostart/linux-systemd-autostart.service.js +1 -1
  28. package/dist/commands/service/services/autostart/macos-launch-agent-autostart.service.js +1 -1
  29. package/dist/commands/service/services/autostart/windows-task-autostart.service.js +1 -1
  30. package/dist/launcher/npm-runtime-launcher.service.js +1 -1
  31. package/dist/service-runtime.service.d.ts +1 -1
  32. package/dist/service-runtime.service.js +7 -22
  33. package/dist/shared/controllers/gateway.controller.d.ts +3 -11
  34. package/dist/shared/controllers/gateway.controller.js +24 -180
  35. package/dist/shared/services/gateway/managers/gateway-plugin.manager.d.ts +3 -9
  36. package/dist/shared/services/gateway/managers/gateway-plugin.manager.js +30 -88
  37. package/dist/shared/services/gateway/nextclaw-app.service.d.ts +2 -7
  38. package/dist/shared/services/gateway/nextclaw-app.service.js +6 -16
  39. package/dist/shared/services/gateway/nextclaw-gateway-runtime.service.d.ts +4 -9
  40. package/dist/shared/services/gateway/nextclaw-gateway-runtime.service.js +12 -46
  41. package/dist/shared/services/gateway/{cron-job-handler.service.d.ts → utils/cron-job-handler.utils.d.ts} +3 -6
  42. package/dist/shared/services/gateway/utils/cron-job-handler.utils.js +57 -0
  43. package/dist/shared/services/marketplace/service-marketplace-installer.service.js +3 -3
  44. package/dist/shared/services/plugin/utils/plugin-runtime-bridge.utils.js +1 -1
  45. package/dist/shared/services/runtime/runtime-command.service.js +2 -2
  46. package/dist/shared/services/runtime/service-managed-startup.service.js +1 -1
  47. package/dist/shared/services/ui/companion-runtime.service.js +1 -1
  48. package/dist/shared/services/workspace/workspace-manager.service.js +8 -10
  49. package/dist/shared/utils/cli.utils.js +1 -1
  50. package/package.json +20 -20
  51. package/dist/cli/commands/usage/services/llm-usage-query.service.d.ts +0 -43
  52. package/dist/cli/commands/usage/services/llm-usage-query.service.js +0 -85
  53. package/dist/commands/plugin/development-source/dev-plugin-overrides.utils.d.ts +0 -18
  54. package/dist/commands/plugin/development-source/dev-plugin-overrides.utils.js +0 -111
  55. package/dist/commands/plugin/development-source/first-party-plugin-load-paths.utils.d.ts +0 -9
  56. package/dist/commands/plugin/development-source/first-party-plugin-load-paths.utils.js +0 -183
  57. package/dist/commands/plugin/plugin-extension-registry.d.ts +0 -10
  58. package/dist/commands/plugin/plugin-extension-registry.js +0 -35
  59. package/dist/commands/plugin/plugin-registry-loader.utils.d.ts +0 -15
  60. package/dist/commands/plugin/plugin-registry-loader.utils.js +0 -43
  61. package/dist/commands/plugin/plugin-reload.d.ts +0 -13
  62. package/dist/commands/plugin/plugin-reload.js +0 -42
  63. package/dist/shared/services/extensions/extension-lifecycle.service.d.ts +0 -63
  64. package/dist/shared/services/extensions/extension-lifecycle.service.js +0 -174
  65. package/dist/shared/services/extensions/service-extension-runtime.service.d.ts +0 -52
  66. package/dist/shared/services/extensions/service-extension-runtime.service.js +0 -325
  67. package/dist/shared/services/gateway/cron-job-handler.service.js +0 -100
  68. package/dist/shared/services/runtime/utils/skills-loader.utils.d.ts +0 -12
  69. package/dist/shared/services/runtime/utils/skills-loader.utils.js +0 -9
  70. package/dist/shared/services/session/service-deferred-ncp-agent.service.d.ts +0 -14
  71. package/dist/shared/services/session/service-deferred-ncp-agent.service.js +0 -85
@@ -1,85 +0,0 @@
1
- //#region src/shared/services/session/service-deferred-ncp-agent.service.ts
2
- const DEFAULT_BASE_PATH = "/api/ncp/agent";
3
- const DEFERRED_NCP_AGENT_UNAVAILABLE = "ncp agent unavailable during startup";
4
- function createUnavailableError() {
5
- return new Error(DEFERRED_NCP_AGENT_UNAVAILABLE);
6
- }
7
- var DeferredUiNcpAgentControllerOwner = class {
8
- agent;
9
- activeAgent = null;
10
- endpoint = {
11
- manifest: {
12
- endpointKind: "agent",
13
- endpointId: "nextclaw-ui-agent-deferred",
14
- version: "0.0.0",
15
- supportsStreaming: true,
16
- supportsAbort: true,
17
- supportsProactiveMessages: false,
18
- supportsLiveSessionStream: true,
19
- supportedPartTypes: ["text"],
20
- expectedLatency: "seconds",
21
- metadata: { deferred: true }
22
- },
23
- start: async () => {
24
- await this.activeAgent?.agentClientEndpoint.start();
25
- },
26
- stop: async () => {
27
- await this.activeAgent?.agentClientEndpoint.stop();
28
- },
29
- emit: async (event) => {
30
- if (!this.activeAgent) throw createUnavailableError();
31
- await this.activeAgent.agentClientEndpoint.emit(event);
32
- },
33
- subscribe: (listener) => {
34
- if (!this.activeAgent) return () => void 0;
35
- return this.activeAgent.agentClientEndpoint.subscribe(listener);
36
- },
37
- send: async (envelope) => {
38
- if (!this.activeAgent) throw createUnavailableError();
39
- return await this.activeAgent.agentClientEndpoint.send(envelope);
40
- },
41
- stream: async (payload) => {
42
- if (!this.activeAgent) throw createUnavailableError();
43
- await this.activeAgent.agentClientEndpoint.stream(payload);
44
- },
45
- abort: async (payload) => {
46
- if (!this.activeAgent) throw createUnavailableError();
47
- await this.activeAgent.agentClientEndpoint.abort(payload);
48
- }
49
- };
50
- constructor(basePath) {
51
- this.basePath = basePath;
52
- this.agent = {
53
- basePath,
54
- agentClientEndpoint: this.endpoint
55
- };
56
- }
57
- activate = (nextAgent) => {
58
- this.activeAgent = nextAgent;
59
- this.agent.basePath = nextAgent.basePath ?? this.basePath;
60
- this.agent.streamProvider = nextAgent.streamProvider;
61
- this.agent.listSessionTypes = nextAgent.listSessionTypes;
62
- this.agent.assetApi = nextAgent.assetApi;
63
- };
64
- clear = () => {
65
- this.activeAgent = null;
66
- this.agent.basePath = this.basePath;
67
- this.agent.streamProvider = void 0;
68
- this.agent.listSessionTypes = void 0;
69
- this.agent.assetApi = void 0;
70
- };
71
- close = async () => {
72
- const current = this.activeAgent;
73
- this.clear();
74
- await current?.agentClientEndpoint.stop();
75
- await current?.dispose?.();
76
- };
77
- isReady = () => {
78
- return this.activeAgent !== null;
79
- };
80
- };
81
- function createDeferredUiNcpAgent(basePath = DEFAULT_BASE_PATH) {
82
- return new DeferredUiNcpAgentControllerOwner(basePath);
83
- }
84
- //#endregion
85
- export { createDeferredUiNcpAgent };