@continuum-dev/session 0.1.0 → 0.1.2

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 CooperContinuum
3
+ Copyright (c) 2026 Bryton Cooper
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -240,15 +240,54 @@ const log = session.getEventLog();
240
240
 
241
241
  ### 6) Actions Registry
242
242
 
243
- Register local handlers for semantic intent ids and dispatch them with current session snapshot data.
243
+ Register handlers for semantic intent ids and dispatch them with full session context.
244
+
245
+ #### `session.registerAction(intentId, registration, handler)`
244
246
 
245
247
  ```typescript
246
- session.registerAction('fetch_data', { label: 'Fetch Data' }, async ({ snapshot, nodeId }) => {
247
- void snapshot;
248
- void nodeId;
248
+ session.registerAction('submit_form', { label: 'Submit' }, async (context) => {
249
+ const response = await fetch('/api/submit', {
250
+ method: 'POST',
251
+ body: JSON.stringify(context.snapshot.values),
252
+ });
253
+ const data = await response.json();
254
+ context.session.updateState('status', { value: 'submitted' });
255
+ return { success: true, data };
249
256
  });
257
+ ```
258
+
259
+ Handlers receive an `ActionContext` with:
260
+
261
+ - `intentId` -- the dispatched intent identifier
262
+ - `snapshot` -- current `DataSnapshot` at dispatch time
263
+ - `nodeId` -- the node that triggered the action
264
+ - `session` -- an `ActionSessionRef` for post-action mutations (`pushView`, `updateState`, `getSnapshot`, `proposeValue`)
265
+
266
+ #### `session.dispatchAction(intentId, nodeId)`
267
+
268
+ Returns a `Promise<ActionResult>`. Catches handler errors automatically.
269
+
270
+ ```typescript
271
+ const result = await session.dispatchAction('submit_form', 'btn_submit');
272
+ if (result.success) {
273
+ console.log('Submitted:', result.data);
274
+ } else {
275
+ console.error('Failed:', result.error);
276
+ }
277
+ ```
278
+
279
+ If no handler is registered, a warning is logged and `{ success: false }` is returned.
280
+
281
+ #### `session.executeIntent(intent)`
250
282
 
251
- await session.dispatchAction('fetch_data', 'btn_1');
283
+ Bridges the intent lifecycle and action dispatch in a single call: submits a pending intent, dispatches the registered action, and marks the intent as validated on success or cancelled on failure.
284
+
285
+ ```typescript
286
+ const result = await session.executeIntent({
287
+ nodeId: 'btn_submit',
288
+ intentName: 'submit_form',
289
+ payload: { source: 'user' },
290
+ });
252
291
  ```
253
292
 
254
293
  Also available:
@@ -303,4 +342,4 @@ Framework bindings can wrap this package for UI-first usage:
303
342
 
304
343
  ## License
305
344
 
306
- MIT © CooperContinuum
345
+ MIT © Bryton Cooper
@@ -1,4 +1,4 @@
1
- import type { PendingAction } from '@continuum/contract';
1
+ import type { PendingAction } from '@continuum-dev/contract';
2
2
  import type { SessionState } from './session-state.js';
3
3
  export declare function submitAction(internal: SessionState, partial: Omit<PendingAction, 'id' | 'createdAt' | 'status' | 'schemaVersion'>): void;
4
4
  export declare function validateAction(internal: SessionState, actionId: string): boolean;
@@ -1,4 +1,4 @@
1
- import type { Checkpoint } from '@continuum/contract';
1
+ import type { Checkpoint } from '@continuum-dev/contract';
2
2
  import type { SessionState } from './session-state.js';
3
3
  /**
4
4
  * Deep clones checkpoint payloads to prevent accidental shared mutations.
@@ -1,4 +1,4 @@
1
- import type { ReconciliationIssue } from '@continuum/runtime';
1
+ import type { ReconciliationIssue } from '@continuum-dev/runtime';
2
2
  import type { SessionState } from './session-state.js';
3
3
  /**
4
4
  * Destroys a session and clears all mutable state containers.
@@ -1,4 +1,4 @@
1
- import type { Interaction } from '@continuum/contract';
1
+ import type { Interaction } from '@continuum-dev/contract';
2
2
  import type { SessionState } from './session-state.js';
3
3
  /**
4
4
  * Records an interaction event and applies its payload to current data state.
@@ -1,8 +1,8 @@
1
- import { getChildNodes, ISSUE_CODES, ISSUE_SEVERITY, isInteractionType } from '@continuum/contract';
1
+ import { getChildNodes, ISSUE_CODES, ISSUE_SEVERITY, isInteractionType } from '@continuum-dev/contract';
2
2
  import { generateId } from './session-state.js';
3
3
  import { buildSnapshotFromCurrentState, notifySnapshotAndIssueListeners } from './listeners.js';
4
4
  import { cloneCheckpointSnapshot } from './checkpoint-manager.js';
5
- import { validateNodeValue } from '@continuum/runtime';
5
+ import { validateNodeValue } from '@continuum-dev/runtime';
6
6
  function collectNodesByCanonicalId(nodes) {
7
7
  const byId = new Map();
8
8
  const walk = (items, parentPath) => {
@@ -1,4 +1,4 @@
1
- import type { PendingIntent } from '@continuum/contract';
1
+ import type { PendingIntent } from '@continuum-dev/contract';
2
2
  import type { SessionState } from './session-state.js';
3
3
  /**
4
4
  * Queues a pending intent on the current view version.
@@ -1,4 +1,4 @@
1
- import { INTENT_STATUS } from '@continuum/contract';
1
+ import { INTENT_STATUS } from '@continuum-dev/contract';
2
2
  import { generateId } from './session-state.js';
3
3
  /**
4
4
  * Queues a pending intent on the current view version.
@@ -1,5 +1,5 @@
1
- import type { ContinuitySnapshot } from '@continuum/contract';
2
- import type { ReconciliationIssue } from '@continuum/runtime';
1
+ import type { ContinuitySnapshot } from '@continuum-dev/contract';
2
+ import type { ReconciliationIssue } from '@continuum-dev/runtime';
3
3
  import type { SessionState } from './session-state.js';
4
4
  /**
5
5
  * Builds a continuity snapshot from internal view/data state.
@@ -1 +1 @@
1
- {"version":3,"file":"persistence.d.ts","sourceRoot":"","sources":["../../../../../packages/session/src/lib/session/persistence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAkB7D;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,yBAAyB,GACjC,MAAM,IAAI,CAsEZ"}
1
+ {"version":3,"file":"persistence.d.ts","sourceRoot":"","sources":["../../../../../packages/session/src/lib/session/persistence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAkB7D;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,yBAAyB,GACjC,MAAM,IAAI,CAuEZ"}
@@ -78,6 +78,7 @@ export function attachPersistence(internal, options) {
78
78
  notifySnapshotAndIssueListeners(internal);
79
79
  }
80
80
  catch {
81
+ return;
81
82
  }
82
83
  finally {
83
84
  isApplyingRemote = false;
@@ -1,4 +1,4 @@
1
- import type { SchemaSnapshot } from '@continuum/contract';
1
+ import type { SchemaSnapshot } from '@continuum-dev/contract';
2
2
  import type { SessionState } from './session-state.js';
3
3
  export declare function pushSchema(internal: SessionState, schema: SchemaSnapshot): void;
4
4
  //# sourceMappingURL=schema-pusher.d.ts.map
@@ -1,4 +1,4 @@
1
- import { isInteractionType } from '@continuum/contract';
1
+ import { isInteractionType } from '@continuum-dev/contract';
2
2
  const CURRENT_FORMAT_VERSION = 1;
3
3
  function deepClone(value) {
4
4
  return structuredClone(value);
@@ -1,5 +1,5 @@
1
- import type { ContinuitySnapshot, Interaction, PendingIntent, Checkpoint, ViewDefinition, DataSnapshot, DetachedValuePolicy, ProposedValue, ActionRegistration, ActionHandler } from '@continuum/contract';
2
- import type { ReconciliationIssue, ReconciliationOptions, ReconciliationResolution, StateDiff } from '@continuum/runtime';
1
+ import type { ContinuitySnapshot, Interaction, PendingIntent, Checkpoint, ViewDefinition, DataSnapshot, DetachedValuePolicy, ProposedValue, ActionRegistration, ActionHandler } from '@continuum-dev/contract';
2
+ import type { ReconciliationIssue, ReconciliationOptions, ReconciliationResolution, StateDiff } from '@continuum-dev/runtime';
3
3
  /**
4
4
  * Internal mutable session backing state.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { ViewDefinition } from '@continuum/contract';
1
+ import type { ViewDefinition } from '@continuum-dev/contract';
2
2
  import type { SessionState } from './session-state.js';
3
3
  /**
4
4
  * Pushes a new view definition into the session and reconciles existing data.
@@ -1,4 +1,4 @@
1
- import { reconcile } from '@continuum/runtime';
1
+ import { reconcile } from '@continuum-dev/runtime';
2
2
  import { autoCheckpoint } from './checkpoint-manager.js';
3
3
  import { markAllPendingIntentsAsStale } from './intent-manager.js';
4
4
  import { notifySnapshotAndIssueListeners } from './listeners.js';
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../packages/session/src/lib/session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA2M1E;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAqB/D;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAuB5E;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAWjE;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,cAA+C,CAAC"}
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../packages/session/src/lib/session.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA4O1E;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAqB/D;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAuB5E;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAWjE;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,cAA+C,CAAC"}
package/lib/session.js CHANGED
@@ -1,4 +1,4 @@
1
- import { INTERACTION_TYPES } from '@continuum/contract';
1
+ import { INTERACTION_TYPES } from '@continuum-dev/contract';
2
2
  import { createEmptySessionState, generateId, resetSessionState } from './session/session-state.js';
3
3
  import { buildSnapshotFromCurrentState, notifySnapshotListeners, subscribeSnapshot, subscribeIssues } from './session/listeners.js';
4
4
  import { cloneCheckpointSnapshot, createManualCheckpoint, restoreFromCheckpoint, rewind } from './session/checkpoint-manager.js';
@@ -175,15 +175,49 @@ function assembleSessionFromInternalState(internal, cleanupPersistence) {
175
175
  }
176
176
  return result;
177
177
  },
178
- dispatchAction(intentId, nodeId) {
178
+ async dispatchAction(intentId, nodeId) {
179
179
  assertNotDestroyed(internal);
180
180
  const entry = internal.actionRegistry.get(intentId);
181
- if (!entry)
182
- return;
181
+ if (!entry) {
182
+ console.warn(`[Continuum] dispatchAction: no handler registered for intentId "${intentId}"`);
183
+ return { success: false, error: `No handler registered for intentId "${intentId}"` };
184
+ }
183
185
  const snapshot = buildSnapshotFromCurrentState(internal);
184
- if (!snapshot)
185
- return;
186
- return entry.handler({ intentId, snapshot: snapshot.data, nodeId });
186
+ if (!snapshot) {
187
+ return { success: false, error: 'No active snapshot' };
188
+ }
189
+ const sessionRef = {
190
+ pushView: (v) => session.pushView(v),
191
+ updateState: (id, p) => session.updateState(id, p),
192
+ getSnapshot: () => session.getSnapshot(),
193
+ proposeValue: (id, v, s) => session.proposeValue(id, v, s),
194
+ };
195
+ try {
196
+ const raw = await entry.handler({ intentId, snapshot: snapshot.data, nodeId, session: sessionRef });
197
+ return raw ?? { success: true };
198
+ }
199
+ catch (error) {
200
+ return { success: false, error };
201
+ }
202
+ },
203
+ async executeIntent(partial) {
204
+ assertNotDestroyed(internal);
205
+ submitIntent(internal, partial);
206
+ const intent = internal.pendingIntents[internal.pendingIntents.length - 1];
207
+ try {
208
+ const result = await session.dispatchAction(partial.intentName, partial.nodeId);
209
+ if (result.success) {
210
+ validateIntent(internal, intent.intentId);
211
+ }
212
+ else {
213
+ cancelIntent(internal, intent.intentId);
214
+ }
215
+ return result;
216
+ }
217
+ catch (error) {
218
+ cancelIntent(internal, intent.intentId);
219
+ return { success: false, error };
220
+ }
187
221
  },
188
222
  };
189
223
  return session;
package/lib/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { ContinuitySnapshot, Interaction, DetachedValue, DetachedValuePolicy, ProposedValue, ViewportState, PendingIntent, Checkpoint, ViewDefinition, NodeValue, ActionRegistration, ActionHandler } from '@continuum/contract';
2
- import type { ReconciliationIssue, ReconciliationOptions, ReconciliationResolution, StateDiff } from '@continuum/runtime';
1
+ import type { ContinuitySnapshot, Interaction, DetachedValue, DetachedValuePolicy, ProposedValue, ViewportState, PendingIntent, Checkpoint, ViewDefinition, NodeValue, ActionRegistration, ActionHandler, ActionResult } from '@continuum-dev/contract';
2
+ import type { ReconciliationIssue, ReconciliationOptions, ReconciliationResolution, StateDiff } from '@continuum-dev/runtime';
3
3
  /**
4
4
  * Minimal storage adapter used by session persistence.
5
5
  *
@@ -246,8 +246,18 @@ export interface Session {
246
246
  getRegisteredActions(): Record<string, ActionRegistration>;
247
247
  /**
248
248
  * Dispatches a registered action handler with current snapshot context.
249
+ *
250
+ * Returns `{ success: false }` when no handler is registered or when no
251
+ * active snapshot exists.
252
+ */
253
+ dispatchAction(intentId: string, nodeId: string): Promise<ActionResult>;
254
+ /**
255
+ * Submits a pending intent, dispatches the registered action, and updates
256
+ * intent status based on the result (validated on success, cancelled on failure).
257
+ *
258
+ * Returns the same `ActionResult` shape as `dispatchAction`.
249
259
  */
250
- dispatchAction(intentId: string, nodeId: string): void | Promise<void>;
260
+ executeIntent(intent: Omit<PendingIntent, 'intentId' | 'queuedAt' | 'status' | 'viewVersion'>): Promise<ActionResult>;
251
261
  }
252
262
  /**
253
263
  * Helper interface for dependency injection and test doubles.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sour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,SAAS,IAAI,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,IAAI;QAAE,MAAM,EAAE,mBAAmB,EAAE,CAAA;KAAE,CAAC;IAC7C;;OAEG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IACjG;;OAEG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC;;OAEG;IACH,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC3D;;;;;OAKG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACxE;;;;;OAKG;IACH,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACvH;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACjD;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;CAC/D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@continuum-dev/session",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -11,7 +11,7 @@
11
11
  "url": "https://github.com/brytoncooper/cooper-continuum.git",
12
12
  "directory": "packages/session"
13
13
  },
14
- "author": "CooperContinuum",
14
+ "author": "Bryton Cooper",
15
15
  "keywords": [
16
16
  "continuum",
17
17
  "ai",
@@ -40,7 +40,7 @@
40
40
  "LICENSE*"
41
41
  ],
42
42
  "dependencies": {
43
- "@continuum-dev/contract": "^0.1.0",
44
- "@continuum-dev/runtime": "^0.1.0"
43
+ "@continuum-dev/contract": "^0.1.2",
44
+ "@continuum-dev/runtime": "^0.1.2"
45
45
  }
46
46
  }