@nextclaw/service 0.1.11 → 0.1.13

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 (72) 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 -2
  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/cron/services/cron-local.service.d.ts +1 -2
  7. package/dist/cli/commands/skills/index.js +1 -1
  8. package/dist/cli/commands/skills/marketplace-client.d.ts +11 -1
  9. package/dist/cli/commands/skills/marketplace-client.js +39 -1
  10. package/dist/cli/commands/skills/marketplace-command-options.utils.d.ts +1 -1
  11. package/dist/cli/commands/skills/marketplace.metadata.d.ts +3 -12
  12. package/dist/cli/commands/skills/marketplace.metadata.js +1 -87
  13. package/dist/cli/commands/skills/{marketplace.service.d.ts → marketplace.utils.d.ts} +1 -1
  14. package/dist/cli/commands/skills/{marketplace.service.js → marketplace.utils.js} +11 -47
  15. package/dist/cli/commands/skills/skills-query.service.d.ts +4 -37
  16. package/dist/cli/commands/skills/skills-query.service.js +16 -98
  17. package/dist/cli/commands/usage/services/llm-usage-command.service.d.ts +3 -5
  18. package/dist/cli/commands/usage/services/llm-usage-command.service.js +16 -26
  19. package/dist/commands/channel/channel-list-view.service.d.ts +0 -1
  20. package/dist/commands/channel/channel-list-view.service.js +6 -23
  21. package/dist/commands/channel/index.js +0 -1
  22. package/dist/commands/plugin/index.d.ts +2 -4
  23. package/dist/commands/plugin/index.js +8 -20
  24. package/dist/commands/plugin/{plugin-command-utils.d.ts → plugin-command.utils.d.ts} +1 -2
  25. package/dist/commands/plugin/{plugin-command-utils.js → plugin-command.utils.js} +2 -4
  26. package/dist/commands/plugin/{plugin-mutation-actions.d.ts → plugin-mutation-actions.utils.d.ts} +1 -1
  27. package/dist/commands/plugin/{plugin-mutation-actions.js → plugin-mutation-actions.utils.js} +2 -2
  28. package/dist/commands/service/services/autostart/linux-systemd-autostart.service.js +1 -1
  29. package/dist/commands/service/services/autostart/macos-launch-agent-autostart.service.js +1 -1
  30. package/dist/commands/service/services/autostart/windows-task-autostart.service.js +1 -1
  31. package/dist/launcher/npm-runtime-launcher.service.js +1 -1
  32. package/dist/service-runtime.service.d.ts +1 -1
  33. package/dist/service-runtime.service.js +7 -15
  34. package/dist/shared/controllers/gateway.controller.d.ts +3 -11
  35. package/dist/shared/controllers/gateway.controller.js +24 -180
  36. package/dist/shared/services/gateway/managers/gateway-plugin.manager.d.ts +2 -9
  37. package/dist/shared/services/gateway/managers/gateway-plugin.manager.js +30 -88
  38. package/dist/shared/services/gateway/nextclaw-app.service.d.ts +2 -7
  39. package/dist/shared/services/gateway/nextclaw-app.service.js +6 -16
  40. package/dist/shared/services/gateway/nextclaw-gateway-runtime.service.d.ts +4 -9
  41. package/dist/shared/services/gateway/nextclaw-gateway-runtime.service.js +12 -46
  42. package/dist/shared/services/gateway/{cron-job-handler.service.d.ts → utils/cron-job-handler.utils.d.ts} +3 -6
  43. package/dist/shared/services/gateway/utils/cron-job-handler.utils.js +57 -0
  44. package/dist/shared/services/marketplace/service-marketplace-installer.service.js +3 -3
  45. package/dist/shared/services/plugin/utils/plugin-runtime-bridge.utils.js +1 -1
  46. package/dist/shared/services/runtime/runtime-command.service.js +2 -2
  47. package/dist/shared/services/runtime/service-managed-startup.service.js +1 -1
  48. package/dist/shared/services/ui/companion-runtime.service.js +1 -1
  49. package/dist/shared/services/workspace/workspace-manager.service.js +8 -10
  50. package/dist/shared/utils/cli.utils.js +1 -1
  51. package/package.json +20 -20
  52. package/dist/cli/commands/usage/services/llm-usage-query.service.d.ts +0 -43
  53. package/dist/cli/commands/usage/services/llm-usage-query.service.js +0 -85
  54. package/dist/commands/plugin/development-source/dev-plugin-overrides.utils.d.ts +0 -18
  55. package/dist/commands/plugin/development-source/dev-plugin-overrides.utils.js +0 -111
  56. package/dist/commands/plugin/development-source/first-party-plugin-load-paths.utils.d.ts +0 -9
  57. package/dist/commands/plugin/development-source/first-party-plugin-load-paths.utils.js +0 -183
  58. package/dist/commands/plugin/plugin-extension-registry.d.ts +0 -10
  59. package/dist/commands/plugin/plugin-extension-registry.js +0 -35
  60. package/dist/commands/plugin/plugin-registry-loader.utils.d.ts +0 -14
  61. package/dist/commands/plugin/plugin-registry-loader.utils.js +0 -43
  62. package/dist/commands/plugin/plugin-reload.d.ts +0 -13
  63. package/dist/commands/plugin/plugin-reload.js +0 -42
  64. package/dist/shared/services/extensions/extension-lifecycle.service.d.ts +0 -63
  65. package/dist/shared/services/extensions/extension-lifecycle.service.js +0 -174
  66. package/dist/shared/services/extensions/service-extension-runtime.service.d.ts +0 -52
  67. package/dist/shared/services/extensions/service-extension-runtime.service.js +0 -325
  68. package/dist/shared/services/gateway/cron-job-handler.service.js +0 -100
  69. package/dist/shared/services/runtime/utils/skills-loader.utils.d.ts +0 -12
  70. package/dist/shared/services/runtime/utils/skills-loader.utils.js +0 -9
  71. package/dist/shared/services/session/service-deferred-ncp-agent.service.d.ts +0 -14
  72. 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 };