@troykelly/openclaw-projects 0.0.33 → 0.0.34

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.
@@ -1 +1 @@
1
- {"version":3,"file":"register-openclaw.d.ts","sourceRoot":"","sources":["../src/register-openclaw.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,KAAK,YAAY,EAA2G,MAAM,aAAa,CAAC;AAKzJ,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AA+CxD,OAAO,KAAK,EAEV,UAAU,EAQV,iBAAiB,EAGlB,MAAM,yBAAyB,CAAC;AAajC,8CAA8C;AAC9C,UAAU,WAAW;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;IACrB,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,uGAAuG;IACvG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4GAA4G;IAC5G,iBAAiB,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACzD,oEAAoE;IACpE,eAAe,EAAE,OAAO,CAAC;IACzB,mEAAmE;IACnE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,2DAA2D;IAC3D,eAAe,EAAE,OAAO,CAAC;IACzB,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAwjDD;;;;GAIG;AACH,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA6C9E;AAywED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,iBAsgC9B,CAAC;AAEF,yDAAyD;AACzD,eAAe,gBAAgB,CAAC;AAEhC,2CAA2C;AAC3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;;;;;;;;;;;;;;;;;;CAwCnB,CAAC"}
@@ -18,7 +18,9 @@ import { createLogger } from './logger.js';
18
18
  import { createNotificationService } from './services/notification-service.js';
19
19
  import { createContextSearchTool, createLinksQueryTool, createLinksRemoveTool, createLinksSetTool, createProjectSearchTool, createSkillStoreAggregateTool, createSkillStoreCollectionsTool, createSkillStoreDeleteTool, createSkillStoreGetTool, createSkillStoreListTool, createSkillStorePutTool, createSkillStoreSearchTool, createApiOnboardTool, createApiRecallTool, createApiGetTool, createApiListTool, createApiUpdateTool, createApiCredentialManageTool, createApiRefreshTool, createApiRemoveTool, createApiRestoreTool,
20
20
  // Terminal tools (Issue #1858)
21
- createTerminalConnectionListTool, createTerminalConnectionCreateTool, createTerminalConnectionUpdateTool, createTerminalConnectionDeleteTool, createTerminalConnectionTestTool, createTerminalCredentialCreateTool, createTerminalCredentialListTool, createTerminalCredentialDeleteTool, createTerminalSessionStartTool, createTerminalSessionListTool, createTerminalSessionTerminateTool, createTerminalSessionInfoTool, createTerminalSendCommandTool, createTerminalSendKeysTool, createTerminalCapturePaneTool, createTerminalSearchTool, createTerminalAnnotateTool, createTerminalTunnelCreateTool, createTerminalTunnelListTool, createTerminalTunnelCloseTool, } from './tools/index.js';
21
+ createTerminalConnectionListTool, createTerminalConnectionCreateTool, createTerminalConnectionUpdateTool, createTerminalConnectionDeleteTool, createTerminalConnectionTestTool, createTerminalCredentialCreateTool, createTerminalCredentialListTool, createTerminalCredentialDeleteTool, createTerminalSessionStartTool, createTerminalSessionListTool, createTerminalSessionTerminateTool, createTerminalSessionInfoTool, createTerminalSendCommandTool, createTerminalSendKeysTool, createTerminalCapturePaneTool, createTerminalSearchTool, createTerminalAnnotateTool, createTerminalTunnelCreateTool, createTerminalTunnelListTool, createTerminalTunnelCloseTool,
22
+ // Dev session tools (Issue #1896)
23
+ createDevSessionCreateTool, createDevSessionListTool, createDevSessionGetTool, createDevSessionUpdateTool, createDevSessionCompleteTool, } from './tools/index.js';
22
24
  import { zodToJsonSchema } from './utils/zod-to-json-schema.js';
23
25
  import { autoLinkInboundMessage } from './utils/auto-linker.js';
24
26
  import { blendScores, computeGeoScore, haversineDistanceKm } from './utils/geo.js';
@@ -4055,6 +4057,28 @@ export const registerOpenClaw = (api) => {
4055
4057
  },
4056
4058
  });
4057
4059
  }
4060
+ // ── Dev session tools (Issue #1896) ────────────────────────────
4061
+ // Reuses termToolOpts (same shape: client, logger, config, user_id getter).
4062
+ const devSessionToolFactories = [
4063
+ createDevSessionCreateTool,
4064
+ createDevSessionListTool,
4065
+ createDevSessionGetTool,
4066
+ createDevSessionUpdateTool,
4067
+ createDevSessionCompleteTool,
4068
+ ];
4069
+ for (const factory of devSessionToolFactories) {
4070
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- factory functions have heterogeneous option types that share the same shape
4071
+ const tool = factory(termToolOpts);
4072
+ tools.push({
4073
+ name: tool.name,
4074
+ description: tool.description,
4075
+ parameters: zodToJsonSchema(tool.parameters),
4076
+ execute: async (_toolCallId, params, _signal, _onUpdate) => {
4077
+ const result = await tool.execute(params);
4078
+ return toAgentToolResult(result);
4079
+ },
4080
+ });
4081
+ }
4058
4082
  for (const tool of tools) {
4059
4083
  api.registerTool(tool);
4060
4084
  }