@tangleai/core 0.20.0 → 0.21.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/CHANGELOG.md +34 -0
- package/package.json +2 -2
- package/src/errors.d.ts +1 -1
- package/src/errors.js +1 -1
- package/src/schemas/memory.d.ts +9 -10
- package/src/schemas/memory.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @tangleai/core
|
|
2
2
|
|
|
3
|
+
## 0.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update the exact Jaren foundation dependencies and source pin to the published
|
|
8
|
+
0.84.3 release after verifying its AI-free archives against source-built bytes.
|
|
9
|
+
Retain Tangle's model, context and agent ownership and align the development
|
|
10
|
+
Node pin with 24.20.0. Tangle publication remains a manual author action.
|
|
11
|
+
Allow release preparation after an already committed local release while
|
|
12
|
+
preserving its record and rejecting unprepared version edits.
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @tangleai/context@0.21.1
|
|
15
|
+
|
|
16
|
+
## 0.21.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- Use the models, context and agents owners of the inherited AI mechanisms. MAS
|
|
21
|
+
executable identity version 3 names all executed mechanism versions; an old
|
|
22
|
+
executable checkpoint is refused intact through the existing mismatch path.
|
|
23
|
+
Memory and ledger records retain their schemas and projection contracts.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
- @tangleai/context@0.21.0
|
|
30
|
+
|
|
31
|
+
## 0.20.1
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Wait for npm publish-time scanning before verifying fresh installations. Upload the complete suite, then poll full and install package indexes for up to 20 minutes, requiring matching versions, integrity and latest tags. Keep mismatched artifacts fatal and report packages that remain unavailable, so direct main releases can finish without manually retrying normal scan delays. Complete each release from the successful publication attempt's exact artifact ID, preserving earlier failed receipts without selecting them.
|
|
36
|
+
|
|
3
37
|
## 0.20.0
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangleai/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "Tangle AI core — memory record model, k-means clustering, token heuristics (vector arithmetic is @jarenjs/core/vector's)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@
|
|
41
|
+
"@tangleai/context": "^0.21.1"
|
|
42
42
|
},
|
|
43
43
|
"private": false,
|
|
44
44
|
"types": "./src/index.d.ts",
|
package/src/errors.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* TA0003 — malformed payload (a provider answered, but not with what
|
|
10
10
|
* the contract promises)
|
|
11
11
|
*
|
|
12
|
-
* The split matters the same way it does in @
|
|
12
|
+
* The split matters the same way it does in @tangleai/models: TA0001 is a bug
|
|
13
13
|
* in the host, TA0002 is the network's fault, TA0003 is the provider's.
|
|
14
14
|
* A retry policy may retry the second, must not retry the first, and
|
|
15
15
|
* should log the third.
|
package/src/errors.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* TA0003 — malformed payload (a provider answered, but not with what
|
|
10
10
|
* the contract promises)
|
|
11
11
|
*
|
|
12
|
-
* The split matters the same way it does in @
|
|
12
|
+
* The split matters the same way it does in @tangleai/models: TA0001 is a bug
|
|
13
13
|
* in the host, TA0002 is the network's fault, TA0003 is the provider's.
|
|
14
14
|
* A retry policy may retry the second, must not retry the first, and
|
|
15
15
|
* should log the third.
|
package/src/schemas/memory.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The Tangle memory record, as plain JSON Schema — memflow's `MemoryUnit`
|
|
3
|
-
* aligned with the text-evidence specialization of the @
|
|
3
|
+
* aligned with the text-evidence specialization of the @tangleai/context ledger memory.
|
|
4
4
|
*
|
|
5
5
|
* The alignment is the design decision that matters. A jarenjs ledger
|
|
6
6
|
* memory is `{ id, text, evidence, tags, at }` with evidence REQUIRED —
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* `toLedgerMemory()` projects a Tangle record down to the jarenjs fields
|
|
28
28
|
* — the five the ledger always held plus the optional embedding pair —
|
|
29
29
|
* so any Tangle memory can be mirrored into a real ledger and recalled
|
|
30
|
-
* by an unmodified @
|
|
30
|
+
* by an unmodified @tangleai/context agent, by tag AND by meaning
|
|
31
31
|
* (`recall({ near })` through the same embedder that wrote the vector).
|
|
32
32
|
* The projection is lossy by design — the ledger's strictness
|
|
33
33
|
* (`additionalProperties: false`) is a feature we align with, not a
|
|
@@ -51,8 +51,8 @@ export interface MemoryRelation {
|
|
|
51
51
|
weight?: number;
|
|
52
52
|
}
|
|
53
53
|
/** Which model produced a vector, at what width — the same shape as
|
|
54
|
-
* `LedgerEmbeddedBy` in `@
|
|
55
|
-
*
|
|
54
|
+
* `LedgerEmbeddedBy` in `@tangleai/context/schemas/ledger`, restated here
|
|
55
|
+
* as the memory-unit projection contract (the mirror test pins the
|
|
56
56
|
* two against each other). */
|
|
57
57
|
export interface EmbeddedBy {
|
|
58
58
|
model: string;
|
|
@@ -96,7 +96,7 @@ export type EmbeddingPair = {
|
|
|
96
96
|
embedding: number[];
|
|
97
97
|
embeddedBy: EmbeddedBy;
|
|
98
98
|
};
|
|
99
|
-
/** A @
|
|
99
|
+
/** A @tangleai/context ledger memory's own five fields. */
|
|
100
100
|
export interface LedgerMemoryFields {
|
|
101
101
|
id: string;
|
|
102
102
|
text: string;
|
|
@@ -104,12 +104,11 @@ export interface LedgerMemoryFields {
|
|
|
104
104
|
tags: string[];
|
|
105
105
|
at: string;
|
|
106
106
|
}
|
|
107
|
-
/** What a @
|
|
107
|
+
/** What a @tangleai/context ledger memory holds: the five fields, plus the
|
|
108
108
|
* vector pair. Structurally identical to `LedgerMemory` in
|
|
109
|
-
* `@
|
|
110
|
-
* dependency-free; `test/memory/ledger-mirror.test.ts` pins the two
|
|
109
|
+
* `@tangleai/context/schemas/ledger` — referenced directly as the declared type dependency; `test/memory/ledger-mirror.test.ts` pins the two
|
|
111
110
|
* against each other at compile time, in both directions. */
|
|
112
|
-
export type LedgerMemory = import('@
|
|
111
|
+
export type LedgerMemory = import('@tangleai/context/schemas/ledger').LedgerMemory;
|
|
113
112
|
export declare const MEMORY_RELATION_SCHEMA: JsonSchema;
|
|
114
113
|
export declare const MEMORY_UNIT_SCHEMA: JsonSchema;
|
|
115
114
|
/** The outcome report a host files after acting on recalled memories. */
|
|
@@ -120,7 +119,7 @@ export declare const MEMORY_SCHEMAS: {
|
|
|
120
119
|
readonly outcome: JsonSchema;
|
|
121
120
|
};
|
|
122
121
|
/**
|
|
123
|
-
* Project a Tangle memory down to what a @
|
|
122
|
+
* Project a Tangle memory down to what a @tangleai/context ledger accepts:
|
|
124
123
|
* the five fields, and the embedding pair when the unit carries one —
|
|
125
124
|
* so a mirrored memory is recallable by meaning, not only by tag.
|
|
126
125
|
* Lossy on purpose; see the header.
|
package/src/schemas/memory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The Tangle memory record, as plain JSON Schema — memflow's `MemoryUnit`
|
|
3
|
-
* aligned with the text-evidence specialization of the @
|
|
3
|
+
* aligned with the text-evidence specialization of the @tangleai/context ledger memory.
|
|
4
4
|
*
|
|
5
5
|
* The alignment is the design decision that matters. A jarenjs ledger
|
|
6
6
|
* memory is `{ id, text, evidence, tags, at }` with evidence REQUIRED —
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* `toLedgerMemory()` projects a Tangle record down to the jarenjs fields
|
|
28
28
|
* — the five the ledger always held plus the optional embedding pair —
|
|
29
29
|
* so any Tangle memory can be mirrored into a real ledger and recalled
|
|
30
|
-
* by an unmodified @
|
|
30
|
+
* by an unmodified @tangleai/context agent, by tag AND by meaning
|
|
31
31
|
* (`recall({ near })` through the same embedder that wrote the vector).
|
|
32
32
|
* The projection is lossy by design — the ledger's strictness
|
|
33
33
|
* (`additionalProperties: false`) is a feature we align with, not a
|
|
@@ -122,7 +122,7 @@ export const MEMORY_SCHEMAS = {
|
|
|
122
122
|
outcome: OUTCOME_REPORT_SCHEMA,
|
|
123
123
|
};
|
|
124
124
|
/**
|
|
125
|
-
* Project a Tangle memory down to what a @
|
|
125
|
+
* Project a Tangle memory down to what a @tangleai/context ledger accepts:
|
|
126
126
|
* the five fields, and the embedding pair when the unit carries one —
|
|
127
127
|
* so a mirrored memory is recallable by meaning, not only by tag.
|
|
128
128
|
* Lossy on purpose; see the header.
|