@continuum-dev/session 0.1.0 → 0.1.1

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
@@ -303,4 +303,4 @@ Framework bindings can wrap this package for UI-first usage:
303
303
 
304
304
  ## License
305
305
 
306
- MIT © CooperContinuum
306
+ 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';
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';
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 } 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
  *
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.1",
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.1",
44
+ "@continuum-dev/runtime": "^0.1.1"
45
45
  }
46
46
  }