impulso 0.24.0 → 0.25.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.
@@ -29,10 +29,15 @@ function defaultCreateTelematics(ctx) {
29
29
  // Record the raw sessionId before sanitization for sessionIdSource
30
30
  const rawSessionId = ctx.sessionID || null;
31
31
 
32
+ // Use process.pid as stable fallback when ctx.sessionID is absent.
33
+ // Prevents per-init UUID generation that creates a new log directory
34
+ // every time the plugin initializes without a native session ID.
35
+ const stableSessionId = ctx.sessionID || String(process.pid);
36
+
32
37
  return {
33
38
  telematics: createTelematics({
34
39
  harness: 'opencode',
35
- sessionId: ctx.sessionID || null,
40
+ sessionId: stableSessionId,
36
41
  processId: process.pid,
37
42
  cwd: ctx.directory || process.cwd(),
38
43
  home,
@@ -130,10 +135,18 @@ export async function ImpulsoTelematicsPlugin(ctx, _createTelematics) {
130
135
  status = output.metadata.exitCode === 0 ? 'success' : 'error';
131
136
  }
132
137
 
138
+ const outputSummary = output
139
+ ? {
140
+ title: output.title,
141
+ responseSize: typeof output.output === 'string' ? output.output.length : undefined,
142
+ preview: typeof output.output === 'string' ? output.output.slice(0, 200) : undefined,
143
+ }
144
+ : null;
145
+
133
146
  t.emit('tool.completed', {
134
147
  toolName: input.tool,
135
148
  toolUseId: input.callID,
136
- output,
149
+ output: outputSummary,
137
150
  durationMs,
138
151
  status,
139
152
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impulso",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "Impulso — plugin bundle for opencode and Claude Code: Plannotator skills + Impulso-DirectSpeech (rethemed ex-Caveman). Harness-neutral repo; per-harness glue under harnesses/.",
5
5
  "type": "module",
6
6
  "main": "harnesses/opencode/plugin.js",