@continuum-dev/runtime 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/context.d.ts +1 -1
- package/lib/context.js +1 -1
- package/lib/reconcile.d.ts +1 -1
- package/lib/reconcile.js +1 -1
- package/lib/reconciliation/collection-resolver.d.ts +1 -1
- package/lib/reconciliation/collection-resolver.js +2 -2
- package/lib/reconciliation/component-resolver.d.ts +1 -1
- package/lib/reconciliation/differ.js +1 -1
- package/lib/reconciliation/migrator.d.ts +1 -1
- package/lib/reconciliation/node-resolver.d.ts +1 -1
- package/lib/reconciliation/node-resolver.js +1 -1
- package/lib/reconciliation/state-builder.d.ts +1 -1
- package/lib/reconciliation/state-builder.js +1 -1
- package/lib/reconciliation/validator.d.ts +1 -1
- package/lib/reconciliation/validator.js +1 -1
- package/lib/reconciliation/view-traversal.d.ts +1 -1
- package/lib/reconciliation/view-traversal.js +1 -1
- package/lib/types.d.ts +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
package/README.md
CHANGED
package/lib/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DataSnapshot, type ViewDefinition, type ViewNode } from '@continuum/contract';
|
|
1
|
+
import { type DataSnapshot, type ViewDefinition, type ViewNode } from '@continuum-dev/contract';
|
|
2
2
|
import type { ReconciliationIssue } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Scans a view tree for duplicate ids/keys and traversal-level issues.
|
package/lib/context.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISSUE_SEVERITY, ISSUE_CODES } from '@continuum/contract';
|
|
1
|
+
import { ISSUE_SEVERITY, ISSUE_CODES } from '@continuum-dev/contract';
|
|
2
2
|
import { traverseViewNodes } from './reconciliation/view-traversal.js';
|
|
3
3
|
/**
|
|
4
4
|
* Scans a view tree for duplicate ids/keys and traversal-level issues.
|
package/lib/reconcile.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DataSnapshot, ViewDefinition } from '@continuum/contract';
|
|
1
|
+
import type { DataSnapshot, ViewDefinition } from '@continuum-dev/contract';
|
|
2
2
|
import type { ReconciliationOptions, ReconciliationResult } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Reconciles user state across view mutations produced by AI or server-side layout changes.
|
package/lib/reconcile.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DATA_RESOLUTIONS } from '@continuum/contract';
|
|
1
|
+
import { DATA_RESOLUTIONS } from '@continuum-dev/contract';
|
|
2
2
|
import { buildReconciliationContext, buildPriorValueLookupByIdAndKey } from './context.js';
|
|
3
3
|
import { buildFreshSessionResult, buildBlindCarryResult, assembleReconciliationResult } from './reconciliation/state-builder.js';
|
|
4
4
|
import { resolveAllNodes, detectRemovedNodes } from './reconciliation/node-resolver.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CollectionNode, CollectionNodeState, NodeValue } from '@continuum/contract';
|
|
1
|
+
import type { CollectionNode, CollectionNodeState, NodeValue } from '@continuum-dev/contract';
|
|
2
2
|
import type { ReconciliationIssue, ReconciliationOptions } from '../types.js';
|
|
3
3
|
interface CollectionResolutionResult {
|
|
4
4
|
value: NodeValue<CollectionNodeState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getChildNodes } from '@continuum/contract';
|
|
2
|
-
import { ISSUE_CODES, ISSUE_SEVERITY } from '@continuum/contract';
|
|
1
|
+
import { getChildNodes } from '@continuum-dev/contract';
|
|
2
|
+
import { ISSUE_CODES, ISSUE_SEVERITY } from '@continuum-dev/contract';
|
|
3
3
|
import { attemptMigration } from './migrator.js';
|
|
4
4
|
const CONTAINER_TYPES = new Set(['row', 'grid', 'group']);
|
|
5
5
|
function areCompatibleContainerTypes(a, b) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OrphanedValue, StateSnapshot } from '@continuum/contract';
|
|
1
|
+
import type { OrphanedValue, StateSnapshot } from '@continuum-dev/contract';
|
|
2
2
|
import type { ComponentResolutionAccumulator, ReconciliationIssue, ReconciliationOptions, StateDiff } from '../types.js';
|
|
3
3
|
import type { ReconciliationContext } from '../context.js';
|
|
4
4
|
export declare function resolveAllComponents(ctx: ReconciliationContext, priorValues: Map<string, unknown>, priorState: StateSnapshot, now: number, options: ReconciliationOptions): ComponentResolutionAccumulator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DataSnapshot, DetachedValue } from '@continuum/contract';
|
|
1
|
+
import type { DataSnapshot, DetachedValue } from '@continuum-dev/contract';
|
|
2
2
|
import type { NodeResolutionAccumulator, ReconciliationIssue, ReconciliationOptions, StateDiff } from '../types.js';
|
|
3
3
|
import type { ReconciliationContext } from '../context.js';
|
|
4
4
|
export declare function resolveAllNodes(ctx: ReconciliationContext, priorValues: Map<string, unknown>, priorData: DataSnapshot, now: number, options: ReconciliationOptions): NodeResolutionAccumulator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISSUE_CODES, ISSUE_SEVERITY } from '@continuum/contract';
|
|
1
|
+
import { ISSUE_CODES, ISSUE_SEVERITY } from '@continuum-dev/contract';
|
|
2
2
|
import { findPriorNode, determineNodeMatchStrategy, findNewNodeByPriorNode, resolvePriorSnapshotId, } from '../context.js';
|
|
3
3
|
import { addedDiff, addedResolution, typeChangedDiff, detachedResolution, migratedDiff, migratedResolution, carriedResolution, removedDiff, restoredDiff, restoredResolution, } from './differ.js';
|
|
4
4
|
import { attemptMigration } from './migrator.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DataSnapshot, DetachedValue, ValueLineage, ViewDefinition } from '@continuum/contract';
|
|
1
|
+
import type { DataSnapshot, DetachedValue, ValueLineage, ViewDefinition } from '@continuum-dev/contract';
|
|
2
2
|
import type { NodeResolutionAccumulator, ReconciliationIssue, ReconciliationOptions, ReconciliationResult, StateDiff } from '../types.js';
|
|
3
3
|
export declare function buildFreshSessionResult(newView: ViewDefinition, now: number): ReconciliationResult;
|
|
4
4
|
export declare function buildBlindCarryResult(newView: ViewDefinition, priorData: DataSnapshot, now: number, options: ReconciliationOptions): ReconciliationResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISSUE_CODES, ISSUE_SEVERITY, } from '@continuum/contract';
|
|
1
|
+
import { ISSUE_CODES, ISSUE_SEVERITY, } from '@continuum-dev/contract';
|
|
2
2
|
import { collectDuplicateIssues } from '../context.js';
|
|
3
3
|
import { traverseViewNodes } from './view-traversal.js';
|
|
4
4
|
import { addedDiff, addedResolution } from './differ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NodeValue, ViewNode } from '@continuum/contract';
|
|
1
|
+
import type { NodeValue, ViewNode } from '@continuum-dev/contract';
|
|
2
2
|
import type { ReconciliationIssue } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Validates a node value against contract constraints and emits runtime issues.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getChildNodes, ISSUE_CODES, ISSUE_SEVERITY } from '@continuum/contract';
|
|
1
|
+
import { getChildNodes, ISSUE_CODES, ISSUE_SEVERITY } from '@continuum-dev/contract';
|
|
2
2
|
const DEFAULT_MAX_VIEW_DEPTH = 128;
|
|
3
3
|
export function traverseViewNodes(nodes, maxDepth = DEFAULT_MAX_VIEW_DEPTH) {
|
|
4
4
|
const visited = [];
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ViewNode, NodeValue, ViewDiff, IssueCode, IssueSeverity, DataSnapshot, DataResolution, ValueLineage, DetachedValue } from '@continuum/contract';
|
|
1
|
+
import type { ViewNode, NodeValue, ViewDiff, IssueCode, IssueSeverity, DataSnapshot, DataResolution, ValueLineage, DetachedValue } from '@continuum-dev/contract';
|
|
2
2
|
export interface ReconciliationResult {
|
|
3
3
|
/**
|
|
4
4
|
* The merged snapshot to persist and render after reconciliation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@continuum-dev/runtime",
|
|
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/runtime"
|
|
13
13
|
},
|
|
14
|
-
"author": "
|
|
14
|
+
"author": "Bryton Cooper",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"continuum",
|
|
17
17
|
"ai",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"LICENSE*"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@continuum-dev/contract": "^0.1.
|
|
42
|
+
"@continuum-dev/contract": "^0.1.1"
|
|
43
43
|
}
|
|
44
44
|
}
|