@pruddiman/hem 0.0.1-beta-18c9997 → 0.0.1-beta-7ae1e11

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.
@@ -97,6 +97,10 @@ export interface CopilotClientLike {
97
97
  permissionDecision?: string;
98
98
  } | void> | void;
99
99
  };
100
+ /** Disable persistent infinite-session workspace; hem sessions are single-shot. */
101
+ infiniteSessions?: {
102
+ enabled: boolean;
103
+ };
100
104
  }): Promise<CopilotSessionLike>;
101
105
  deleteSession(sessionId: string): Promise<void>;
102
106
  on(eventType: string, handler: (...args: unknown[]) => void): () => void;
@@ -369,6 +369,15 @@ export class CopilotProvider {
369
369
  return {
370
370
  ...(modelId ? { model: modelId } : {}),
371
371
  workingDirectory: this._config.destinationPath,
372
+ // Disable infinite-session persistence: hem sessions are single-shot
373
+ // doc-generation runs, not resumable chats. With the SDK default
374
+ // (enabled: true) every tool-use event gets written to a workspace
375
+ // log on disk; the on-disk schema requires `ephemeral: true` on
376
+ // certain event types (e.g. `session.idle`), and any mismatch leaves
377
+ // a "Session file is corrupted" file in VS Code's Copilot session
378
+ // picker. Disabling also avoids the persist round-trip on every
379
+ // tool call, which is dead weight for our use case.
380
+ infiniteSessions: { enabled: false },
372
381
  mcpServers: {
373
382
  "hem-broadcast": {
374
383
  type: "local",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pruddiman/hem",
3
- "version": "0.0.1-beta-18c9997",
3
+ "version": "0.0.1-beta-7ae1e11",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "hem": "./dist/index.js"