@miadi/episodic-memory-schema 0.6.0 → 0.6.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/dist/observation.d.ts +37 -5
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +96 -1
- package/dist/observation.js.map +1 -1
- package/package.json +1 -1
package/dist/observation.d.ts
CHANGED
|
@@ -15,7 +15,20 @@ export interface EpisodeIdentityCandidate {
|
|
|
15
15
|
kind: "episode-number" | "slug" | "title" | "path";
|
|
16
16
|
value: string;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* The kinds, as a value rather than only as a type.
|
|
20
|
+
*
|
|
21
|
+
* A TypeScript union vanishes at compile time. The device side of this contract
|
|
22
|
+
* — `gmtermux`'s recorder — is plain JavaScript, so a union it cannot import is
|
|
23
|
+
* a contract it cannot check: a misspelled `"capture"` reaches the manifest and
|
|
24
|
+
* is indistinguishable from an absence. Every axis below is therefore published
|
|
25
|
+
* as a frozen array with its type derived FROM the array, so the value and the
|
|
26
|
+
* type cannot drift apart the way two hand-kept copies would.
|
|
27
|
+
*/
|
|
28
|
+
export declare const ARTIFACT_KINDS: readonly ["audio", "transcript", "image", "text", "midi", "video", "other"];
|
|
29
|
+
export type ArtifactKind = (typeof ARTIFACT_KINDS)[number];
|
|
30
|
+
/** Narrows an unvalidated string to {@link ArtifactKind}. */
|
|
31
|
+
export declare function isArtifactKind(value: unknown): value is ArtifactKind;
|
|
19
32
|
/**
|
|
20
33
|
* How an artifact came to exist — the axis that says what you must never lose.
|
|
21
34
|
*
|
|
@@ -28,7 +41,17 @@ export type ArtifactKind = "audio" | "transcript" | "image" | "text" | "midi" |
|
|
|
28
41
|
* Flattening these three loses the only property that distinguishes an
|
|
29
42
|
* irreplaceable recording from a file that can be rebuilt on demand.
|
|
30
43
|
*/
|
|
31
|
-
export
|
|
44
|
+
export declare const ARTIFACT_ORIGINS: readonly ["captured", "derived", "authored"];
|
|
45
|
+
export type ArtifactOrigin = (typeof ARTIFACT_ORIGINS)[number];
|
|
46
|
+
/**
|
|
47
|
+
* Narrows an unvalidated string to {@link ArtifactOrigin}.
|
|
48
|
+
*
|
|
49
|
+
* This is the guard that matters most: `origin` is the only field saying what
|
|
50
|
+
* must never be lost, and a value that fails this check must be treated as
|
|
51
|
+
* unknown — never defaulted to `"derived"`, which would mark an unrepeatable
|
|
52
|
+
* take as regenerable.
|
|
53
|
+
*/
|
|
54
|
+
export declare function isArtifactOrigin(value: unknown): value is ArtifactOrigin;
|
|
32
55
|
/**
|
|
33
56
|
* What a capture records about itself, per `gmtermux/rispecs/recording.spec.md`:
|
|
34
57
|
* "the filename, the instants it started and stopped, its duration in seconds,
|
|
@@ -89,7 +112,10 @@ export interface ArtifactReference {
|
|
|
89
112
|
* classified — an absence, not an error — and `other` is a set whose source
|
|
90
113
|
* named a kind this list does not carry yet.
|
|
91
114
|
*/
|
|
92
|
-
export
|
|
115
|
+
export declare const ARTIFACT_SET_KINDS: readonly ["inquiry", "composition", "episode", "melody", "film", "other"];
|
|
116
|
+
export type ArtifactSetKind = (typeof ARTIFACT_SET_KINDS)[number];
|
|
117
|
+
/** Narrows an unvalidated string to {@link ArtifactSetKind}. */
|
|
118
|
+
export declare function isArtifactSetKind(value: unknown): value is ArtifactSetKind;
|
|
93
119
|
/**
|
|
94
120
|
* A directory that gathers artifacts and carries its own identity.
|
|
95
121
|
*
|
|
@@ -136,14 +162,20 @@ export interface EpisodeRelation {
|
|
|
136
162
|
* Membership direction. Both are carried because a source document states one
|
|
137
163
|
* or the other, and observation does not invent the inverse it did not read.
|
|
138
164
|
*/
|
|
139
|
-
export
|
|
165
|
+
export declare const ARTIFACT_RELATION_KINDS: readonly ["member-of", "gathers"];
|
|
166
|
+
export type ArtifactRelationKind = (typeof ARTIFACT_RELATION_KINDS)[number];
|
|
167
|
+
/** Narrows an unvalidated string to {@link ArtifactRelationKind}. */
|
|
168
|
+
export declare function isArtifactRelationKind(value: unknown): value is ArtifactRelationKind;
|
|
140
169
|
/**
|
|
141
170
|
* What can sit on the container end of a membership edge. Composition, Episode,
|
|
142
171
|
* Melody and Film are named at the same level because they are peers under one
|
|
143
172
|
* root; `artifact-set` covers a gathering whose kind is unclassified, and
|
|
144
173
|
* `artifact` lets a set be a member of another set.
|
|
145
174
|
*/
|
|
146
|
-
export
|
|
175
|
+
export declare const ARTIFACT_RELATION_TARGET_KINDS: readonly ["episode", "composition", "melody", "film", "artifact-set", "artifact"];
|
|
176
|
+
export type ArtifactRelationTargetKind = (typeof ARTIFACT_RELATION_TARGET_KINDS)[number];
|
|
177
|
+
/** Narrows an unvalidated string to {@link ArtifactRelationTargetKind}. */
|
|
178
|
+
export declare function isArtifactRelationTargetKind(value: unknown): value is ArtifactRelationTargetKind;
|
|
147
179
|
/**
|
|
148
180
|
* The other end of a membership edge.
|
|
149
181
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observation.d.ts","sourceRoot":"","sources":["../src/observation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,iBAAiB,GACzB,oBAAoB,GACpB,WAAW,GACX,oBAAoB,CAAA;AAExB,MAAM,MAAM,mBAAmB,GAC3B,kBAAkB,GAClB,cAAc,GACd,oBAAoB,GACpB,iBAAiB,CAAA;AAErB,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,mBAAmB,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,gBAAgB,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;IAClD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,
|
|
1
|
+
{"version":3,"file":"observation.d.ts","sourceRoot":"","sources":["../src/observation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,iBAAiB,GACzB,oBAAoB,GACpB,WAAW,GACX,oBAAoB,CAAA;AAExB,MA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,eAAe,EAAE,CAAA;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,WAAW,EAAE,uBAAuB,EAAE,CAAA;IACtC,0DAA0D;IAC1D,OAAO,CAAC,EAAE,0BAA0B,CAAA;IACpC,wEAAwE;IACxE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,iCAAiC;IAChD,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,oBAAoB,CAAA;CAC5B;AAED,MAAM,WAAW,iCAAiC;IAChD,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,WAAW,CAAA;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,SAAS,CAAC,MAAM,GAAG,qBAAqB,CAAC,EAAE,CAAA;CACrD;AAED,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,WAAW,CAAA;CACnB"}
|
package/dist/observation.js
CHANGED
|
@@ -5,5 +5,100 @@
|
|
|
5
5
|
* authored EpisodicMemory schema. Consumers can inspect the diagnostics and
|
|
6
6
|
* decide whether a later, explicit projection is appropriate.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The kinds, as a value rather than only as a type.
|
|
10
|
+
*
|
|
11
|
+
* A TypeScript union vanishes at compile time. The device side of this contract
|
|
12
|
+
* — `gmtermux`'s recorder — is plain JavaScript, so a union it cannot import is
|
|
13
|
+
* a contract it cannot check: a misspelled `"capture"` reaches the manifest and
|
|
14
|
+
* is indistinguishable from an absence. Every axis below is therefore published
|
|
15
|
+
* as a frozen array with its type derived FROM the array, so the value and the
|
|
16
|
+
* type cannot drift apart the way two hand-kept copies would.
|
|
17
|
+
*/
|
|
18
|
+
export const ARTIFACT_KINDS = Object.freeze([
|
|
19
|
+
"audio",
|
|
20
|
+
"transcript",
|
|
21
|
+
"image",
|
|
22
|
+
"text",
|
|
23
|
+
"midi",
|
|
24
|
+
"video",
|
|
25
|
+
"other",
|
|
26
|
+
]);
|
|
27
|
+
/** Narrows an unvalidated string to {@link ArtifactKind}. */
|
|
28
|
+
export function isArtifactKind(value) {
|
|
29
|
+
return typeof value === "string" && ARTIFACT_KINDS.includes(value);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* How an artifact came to exist — the axis that says what you must never lose.
|
|
33
|
+
*
|
|
34
|
+
* `captured` is unrepeatable: a device, an instant, one chance. A take that is
|
|
35
|
+
* deleted is gone, because the moment it recorded will not happen twice.
|
|
36
|
+
* `derived` is regenerable from something else that is still held — a
|
|
37
|
+
* transcript, a rendered mix, a thumbnail. `authored` was written elsewhere by
|
|
38
|
+
* someone, then brought in: a downloaded deep-search markdown, an imported doc.
|
|
39
|
+
*
|
|
40
|
+
* Flattening these three loses the only property that distinguishes an
|
|
41
|
+
* irreplaceable recording from a file that can be rebuilt on demand.
|
|
42
|
+
*/
|
|
43
|
+
export const ARTIFACT_ORIGINS = Object.freeze(["captured", "derived", "authored"]);
|
|
44
|
+
/**
|
|
45
|
+
* Narrows an unvalidated string to {@link ArtifactOrigin}.
|
|
46
|
+
*
|
|
47
|
+
* This is the guard that matters most: `origin` is the only field saying what
|
|
48
|
+
* must never be lost, and a value that fails this check must be treated as
|
|
49
|
+
* unknown — never defaulted to `"derived"`, which would mark an unrepeatable
|
|
50
|
+
* take as regenerable.
|
|
51
|
+
*/
|
|
52
|
+
export function isArtifactOrigin(value) {
|
|
53
|
+
return typeof value === "string" && ARTIFACT_ORIGINS.includes(value);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* What a set gathers.
|
|
57
|
+
*
|
|
58
|
+
* Composition, Episode, Melody and Film are siblings at the same level — none is
|
|
59
|
+
* an extension of another, and none is a special case of a recording. `inquiry`
|
|
60
|
+
* is the IAIP folder. Absent means the gathering was observed without being
|
|
61
|
+
* classified — an absence, not an error — and `other` is a set whose source
|
|
62
|
+
* named a kind this list does not carry yet.
|
|
63
|
+
*/
|
|
64
|
+
export const ARTIFACT_SET_KINDS = Object.freeze([
|
|
65
|
+
"inquiry",
|
|
66
|
+
"composition",
|
|
67
|
+
"episode",
|
|
68
|
+
"melody",
|
|
69
|
+
"film",
|
|
70
|
+
"other",
|
|
71
|
+
]);
|
|
72
|
+
/** Narrows an unvalidated string to {@link ArtifactSetKind}. */
|
|
73
|
+
export function isArtifactSetKind(value) {
|
|
74
|
+
return typeof value === "string" && ARTIFACT_SET_KINDS.includes(value);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Membership direction. Both are carried because a source document states one
|
|
78
|
+
* or the other, and observation does not invent the inverse it did not read.
|
|
79
|
+
*/
|
|
80
|
+
export const ARTIFACT_RELATION_KINDS = Object.freeze(["member-of", "gathers"]);
|
|
81
|
+
/** Narrows an unvalidated string to {@link ArtifactRelationKind}. */
|
|
82
|
+
export function isArtifactRelationKind(value) {
|
|
83
|
+
return typeof value === "string" && ARTIFACT_RELATION_KINDS.includes(value);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* What can sit on the container end of a membership edge. Composition, Episode,
|
|
87
|
+
* Melody and Film are named at the same level because they are peers under one
|
|
88
|
+
* root; `artifact-set` covers a gathering whose kind is unclassified, and
|
|
89
|
+
* `artifact` lets a set be a member of another set.
|
|
90
|
+
*/
|
|
91
|
+
export const ARTIFACT_RELATION_TARGET_KINDS = Object.freeze([
|
|
92
|
+
"episode",
|
|
93
|
+
"composition",
|
|
94
|
+
"melody",
|
|
95
|
+
"film",
|
|
96
|
+
"artifact-set",
|
|
97
|
+
"artifact",
|
|
98
|
+
]);
|
|
99
|
+
/** Narrows an unvalidated string to {@link ArtifactRelationTargetKind}. */
|
|
100
|
+
export function isArtifactRelationTargetKind(value) {
|
|
101
|
+
return (typeof value === "string" &&
|
|
102
|
+
ARTIFACT_RELATION_TARGET_KINDS.includes(value));
|
|
103
|
+
}
|
|
9
104
|
//# sourceMappingURL=observation.js.map
|
package/dist/observation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observation.js","sourceRoot":"","sources":["../src/observation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
1
|
+
{"version":3,"file":"observation.js","sourceRoot":"","sources":["../src/observation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAuBH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,OAAO;IACP,YAAY;IACZ,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;CACC,CAAC,CAAA;AAIX,6DAA6D;AAC7D,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAK,cAAoC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAC3F,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC,CAAA;AAI3F;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAK,gBAAsC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAC7F,CAAC;AAuDD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,SAAS;IACT,aAAa;IACb,SAAS;IACT,QAAQ;IACR,MAAM;IACN,OAAO;CACC,CAAC,CAAA;AAIX,gEAAgE;AAChE,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAK,kBAAwC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAC/F,CAAC;AA+CD;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,SAAS,CAAU,CAAC,CAAA;AAIvF,qEAAqE;AACrE,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAK,uBAA6C,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AACpG,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1D,SAAS;IACT,aAAa;IACb,QAAQ;IACR,MAAM;IACN,cAAc;IACd,UAAU;CACF,CAAC,CAAA;AAIX,2EAA2E;AAC3E,MAAM,UAAU,4BAA4B,CAC1C,KAAc;IAEd,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACxB,8BAAoD,CAAC,QAAQ,CAAC,KAAK,CAAC,CACtE,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miadi/episodic-memory-schema",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "TypeScript types and JSON Schema for episodic memory — the durable session-to-session memory layer in the Miadi orchestration kit. Narrative layer is NCP-aligned; provenance layer is W3C PROV-DM and OAIS-informed.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"miadi",
|