@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 +1 -1
- package/README.md +1 -1
- package/lib/session/action-manager.d.ts +1 -1
- package/lib/session/checkpoint-manager.d.ts +1 -1
- package/lib/session/destroyer.d.ts +1 -1
- package/lib/session/event-log.d.ts +1 -1
- package/lib/session/event-log.js +2 -2
- package/lib/session/intent-manager.d.ts +1 -1
- package/lib/session/intent-manager.js +1 -1
- package/lib/session/listeners.d.ts +2 -2
- package/lib/session/persistence.d.ts.map +1 -1
- package/lib/session/persistence.js +1 -0
- package/lib/session/schema-pusher.d.ts +1 -1
- package/lib/session/serializer.js +1 -1
- package/lib/session/session-state.d.ts +2 -2
- package/lib/session/view-pusher.d.ts +1 -1
- package/lib/session/view-pusher.js +1 -1
- package/lib/session.js +1 -1
- package/lib/types.d.ts +2 -2
- package/package.json +4 -4
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -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;
|
package/lib/session/event-log.js
CHANGED
|
@@ -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,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,
|
|
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"}
|
|
@@ -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,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 { 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.
|
|
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": "
|
|
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.
|
|
44
|
-
"@continuum-dev/runtime": "^0.1.
|
|
43
|
+
"@continuum-dev/contract": "^0.1.1",
|
|
44
|
+
"@continuum-dev/runtime": "^0.1.1"
|
|
45
45
|
}
|
|
46
46
|
}
|