@jamesaphoenix/tx-types 0.4.2 → 0.4.3
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/README.md +480 -0
- package/dist/anchor.d.ts +93 -96
- package/dist/anchor.d.ts.map +1 -1
- package/dist/anchor.js +74 -1
- package/dist/anchor.js.map +1 -1
- package/dist/attempt.d.ts +36 -28
- package/dist/attempt.d.ts.map +1 -1
- package/dist/attempt.js +59 -1
- package/dist/attempt.js.map +1 -1
- package/dist/candidate.d.ts +117 -145
- package/dist/candidate.d.ts.map +1 -1
- package/dist/candidate.js +109 -0
- package/dist/candidate.js.map +1 -1
- package/dist/cycle.d.ts +130 -0
- package/dist/cycle.d.ts.map +1 -0
- package/dist/cycle.js +89 -0
- package/dist/cycle.js.map +1 -0
- package/dist/deduplication.d.ts +76 -92
- package/dist/deduplication.d.ts.map +1 -1
- package/dist/deduplication.js +63 -2
- package/dist/deduplication.js.map +1 -1
- package/dist/doc.d.ts +269 -0
- package/dist/doc.d.ts.map +1 -0
- package/dist/doc.js +232 -0
- package/dist/doc.js.map +1 -0
- package/dist/edge.d.ts +53 -56
- package/dist/edge.d.ts.map +1 -1
- package/dist/edge.js +51 -1
- package/dist/edge.js.map +1 -1
- package/dist/file-learning.d.ts +23 -28
- package/dist/file-learning.d.ts.map +1 -1
- package/dist/file-learning.js +22 -2
- package/dist/file-learning.js.map +1 -1
- package/dist/index.d.ts +14 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -21
- package/dist/index.js.map +1 -1
- package/dist/learning.d.ts +167 -172
- package/dist/learning.d.ts.map +1 -1
- package/dist/learning.js +109 -1
- package/dist/learning.js.map +1 -1
- package/dist/response.d.ts +636 -0
- package/dist/response.d.ts.map +1 -0
- package/dist/response.js +354 -0
- package/dist/response.js.map +1 -0
- package/dist/run.d.ts +73 -40
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +108 -1
- package/dist/run.js.map +1 -1
- package/dist/symbol.d.ts +42 -43
- package/dist/symbol.d.ts.map +1 -1
- package/dist/symbol.js +55 -1
- package/dist/symbol.js.map +1 -1
- package/dist/task.d.ts +114 -78
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +149 -2
- package/dist/task.js.map +1 -1
- package/dist/tracked-project.d.ts +24 -34
- package/dist/tracked-project.d.ts.map +1 -1
- package/dist/tracked-project.js +34 -0
- package/dist/tracked-project.js.map +1 -1
- package/package.json +7 -3
package/dist/doc.js
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Doc types for tx
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the docs-as-primitives system.
|
|
5
|
+
* See DD-023 for specification.
|
|
6
|
+
* Core type definitions using Effect Schema (Doctrine Rule 10).
|
|
7
|
+
*
|
|
8
|
+
* Docs are structured YAML (source of truth) with rendered MD views.
|
|
9
|
+
* YAML content lives on disk (.tx/docs/); DB stores metadata + links only.
|
|
10
|
+
*/
|
|
11
|
+
import { Schema } from "effect";
|
|
12
|
+
// =============================================================================
|
|
13
|
+
// CONSTANTS
|
|
14
|
+
// =============================================================================
|
|
15
|
+
export const DOC_KINDS = ["overview", "prd", "design"];
|
|
16
|
+
export const DOC_STATUSES = ["changing", "locked"];
|
|
17
|
+
export const DOC_LINK_TYPES = [
|
|
18
|
+
"overview_to_prd",
|
|
19
|
+
"overview_to_design",
|
|
20
|
+
"prd_to_design",
|
|
21
|
+
"design_patch",
|
|
22
|
+
];
|
|
23
|
+
export const TASK_DOC_LINK_TYPES = ["implements", "references"];
|
|
24
|
+
export const INVARIANT_ENFORCEMENT_TYPES = [
|
|
25
|
+
"integration_test",
|
|
26
|
+
"linter",
|
|
27
|
+
"llm_as_judge",
|
|
28
|
+
];
|
|
29
|
+
export const INVARIANT_STATUSES = ["active", "deprecated"];
|
|
30
|
+
// =============================================================================
|
|
31
|
+
// SCHEMAS & TYPES — Docs
|
|
32
|
+
// =============================================================================
|
|
33
|
+
/** Doc kind — overview (one per project), prd, or design. */
|
|
34
|
+
export const DocKindSchema = Schema.Literal(...DOC_KINDS);
|
|
35
|
+
/** Doc status — changing (editable) or locked (immutable). */
|
|
36
|
+
export const DocStatusSchema = Schema.Literal(...DOC_STATUSES);
|
|
37
|
+
/** Doc link type — directed edge between docs in the DAG. */
|
|
38
|
+
export const DocLinkTypeSchema = Schema.Literal(...DOC_LINK_TYPES);
|
|
39
|
+
/** Task-doc link type — how a task relates to a doc. */
|
|
40
|
+
export const TaskDocLinkTypeSchema = Schema.Literal(...TASK_DOC_LINK_TYPES);
|
|
41
|
+
/** Doc ID — branded integer. */
|
|
42
|
+
export const DocIdSchema = Schema.Number.pipe(Schema.int(), Schema.brand("DocId"));
|
|
43
|
+
/** Core doc entity (DB metadata — YAML content lives on disk only). */
|
|
44
|
+
export const DocSchema = Schema.Struct({
|
|
45
|
+
id: DocIdSchema,
|
|
46
|
+
hash: Schema.String,
|
|
47
|
+
kind: DocKindSchema,
|
|
48
|
+
name: Schema.String,
|
|
49
|
+
title: Schema.String,
|
|
50
|
+
version: Schema.Number.pipe(Schema.int()),
|
|
51
|
+
status: DocStatusSchema,
|
|
52
|
+
filePath: Schema.String,
|
|
53
|
+
parentDocId: Schema.NullOr(DocIdSchema),
|
|
54
|
+
createdAt: Schema.DateFromSelf,
|
|
55
|
+
lockedAt: Schema.NullOr(Schema.DateFromSelf),
|
|
56
|
+
metadata: Schema.Record({ key: Schema.String, value: Schema.Unknown }),
|
|
57
|
+
});
|
|
58
|
+
/** Doc with resolved links (for API responses). */
|
|
59
|
+
export const DocWithLinksSchema = Schema.Struct({
|
|
60
|
+
...DocSchema.fields,
|
|
61
|
+
linksTo: Schema.Array(Schema.Struct({
|
|
62
|
+
docId: DocIdSchema,
|
|
63
|
+
docName: Schema.String,
|
|
64
|
+
linkType: DocLinkTypeSchema,
|
|
65
|
+
})),
|
|
66
|
+
linksFrom: Schema.Array(Schema.Struct({
|
|
67
|
+
docId: DocIdSchema,
|
|
68
|
+
docName: Schema.String,
|
|
69
|
+
linkType: DocLinkTypeSchema,
|
|
70
|
+
})),
|
|
71
|
+
taskIds: Schema.Array(Schema.String),
|
|
72
|
+
invariantCount: Schema.Number.pipe(Schema.int()),
|
|
73
|
+
});
|
|
74
|
+
/** Doc link entity. */
|
|
75
|
+
export const DocLinkSchema = Schema.Struct({
|
|
76
|
+
id: Schema.Number.pipe(Schema.int()),
|
|
77
|
+
fromDocId: DocIdSchema,
|
|
78
|
+
toDocId: DocIdSchema,
|
|
79
|
+
linkType: DocLinkTypeSchema,
|
|
80
|
+
createdAt: Schema.DateFromSelf,
|
|
81
|
+
});
|
|
82
|
+
/** Task-doc link entity. */
|
|
83
|
+
export const TaskDocLinkSchema = Schema.Struct({
|
|
84
|
+
id: Schema.Number.pipe(Schema.int()),
|
|
85
|
+
taskId: Schema.String,
|
|
86
|
+
docId: DocIdSchema,
|
|
87
|
+
linkType: TaskDocLinkTypeSchema,
|
|
88
|
+
createdAt: Schema.DateFromSelf,
|
|
89
|
+
});
|
|
90
|
+
/** Input for creating a new doc. */
|
|
91
|
+
export const CreateDocInputSchema = Schema.Struct({
|
|
92
|
+
kind: DocKindSchema,
|
|
93
|
+
name: Schema.String,
|
|
94
|
+
title: Schema.String,
|
|
95
|
+
yamlContent: Schema.String,
|
|
96
|
+
metadata: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Unknown })),
|
|
97
|
+
});
|
|
98
|
+
// =============================================================================
|
|
99
|
+
// SCHEMAS & TYPES — Invariants
|
|
100
|
+
// =============================================================================
|
|
101
|
+
/** Invariant enforcement type — how the invariant is verified. */
|
|
102
|
+
export const InvariantEnforcementSchema = Schema.Literal(...INVARIANT_ENFORCEMENT_TYPES);
|
|
103
|
+
/** Invariant status. */
|
|
104
|
+
export const InvariantStatusSchema = Schema.Literal(...INVARIANT_STATUSES);
|
|
105
|
+
/** Invariant ID — branded string matching INV-[A-Z0-9-]+. */
|
|
106
|
+
export const InvariantIdSchema = Schema.String.pipe(Schema.pattern(/^INV-[A-Z0-9-]+$/), Schema.brand("InvariantId"));
|
|
107
|
+
/** Invariant entity — a machine-checkable system rule. */
|
|
108
|
+
export const InvariantSchema = Schema.Struct({
|
|
109
|
+
id: InvariantIdSchema,
|
|
110
|
+
rule: Schema.String,
|
|
111
|
+
enforcement: InvariantEnforcementSchema,
|
|
112
|
+
docId: DocIdSchema,
|
|
113
|
+
subsystem: Schema.NullOr(Schema.String),
|
|
114
|
+
testRef: Schema.NullOr(Schema.String),
|
|
115
|
+
lintRule: Schema.NullOr(Schema.String),
|
|
116
|
+
promptRef: Schema.NullOr(Schema.String),
|
|
117
|
+
status: InvariantStatusSchema,
|
|
118
|
+
createdAt: Schema.DateFromSelf,
|
|
119
|
+
metadata: Schema.Record({ key: Schema.String, value: Schema.Unknown }),
|
|
120
|
+
});
|
|
121
|
+
/** Invariant check result — audit trail entry. */
|
|
122
|
+
export const InvariantCheckSchema = Schema.Struct({
|
|
123
|
+
id: Schema.Number.pipe(Schema.int()),
|
|
124
|
+
invariantId: InvariantIdSchema,
|
|
125
|
+
passed: Schema.Boolean,
|
|
126
|
+
details: Schema.NullOr(Schema.String),
|
|
127
|
+
checkedAt: Schema.DateFromSelf,
|
|
128
|
+
durationMs: Schema.NullOr(Schema.Number.pipe(Schema.int())),
|
|
129
|
+
});
|
|
130
|
+
/** Input for upserting an invariant (from YAML sync). */
|
|
131
|
+
export const UpsertInvariantInputSchema = Schema.Struct({
|
|
132
|
+
id: Schema.String,
|
|
133
|
+
rule: Schema.String,
|
|
134
|
+
enforcement: InvariantEnforcementSchema,
|
|
135
|
+
docId: DocIdSchema,
|
|
136
|
+
subsystem: Schema.optional(Schema.NullOr(Schema.String)),
|
|
137
|
+
testRef: Schema.optional(Schema.NullOr(Schema.String)),
|
|
138
|
+
lintRule: Schema.optional(Schema.NullOr(Schema.String)),
|
|
139
|
+
promptRef: Schema.optional(Schema.NullOr(Schema.String)),
|
|
140
|
+
});
|
|
141
|
+
/** Input for recording an invariant check. */
|
|
142
|
+
export const RecordInvariantCheckInputSchema = Schema.Struct({
|
|
143
|
+
invariantId: Schema.String,
|
|
144
|
+
passed: Schema.Boolean,
|
|
145
|
+
details: Schema.optional(Schema.NullOr(Schema.String)),
|
|
146
|
+
durationMs: Schema.optional(Schema.NullOr(Schema.Number.pipe(Schema.int()))),
|
|
147
|
+
});
|
|
148
|
+
// =============================================================================
|
|
149
|
+
// RUNTIME VALIDATORS
|
|
150
|
+
// =============================================================================
|
|
151
|
+
/**
|
|
152
|
+
* Check if a string is a valid doc kind.
|
|
153
|
+
*/
|
|
154
|
+
export const isValidDocKind = (kind) => {
|
|
155
|
+
return DOC_KINDS.includes(kind);
|
|
156
|
+
};
|
|
157
|
+
export class InvalidDocKindError extends Error {
|
|
158
|
+
kind;
|
|
159
|
+
constructor(kind) {
|
|
160
|
+
super(`Invalid doc kind: "${kind}". Valid kinds: ${DOC_KINDS.join(", ")}`);
|
|
161
|
+
this.kind = kind;
|
|
162
|
+
this.name = "InvalidDocKindError";
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
export const assertDocKind = (kind) => {
|
|
166
|
+
if (!isValidDocKind(kind)) {
|
|
167
|
+
throw new InvalidDocKindError(kind);
|
|
168
|
+
}
|
|
169
|
+
return kind;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Check if a string is a valid doc status.
|
|
173
|
+
*/
|
|
174
|
+
export const isValidDocStatus = (status) => {
|
|
175
|
+
return DOC_STATUSES.includes(status);
|
|
176
|
+
};
|
|
177
|
+
export class InvalidDocStatusError extends Error {
|
|
178
|
+
status;
|
|
179
|
+
constructor(status) {
|
|
180
|
+
super(`Invalid doc status: "${status}". Valid statuses: ${DOC_STATUSES.join(", ")}`);
|
|
181
|
+
this.status = status;
|
|
182
|
+
this.name = "InvalidDocStatusError";
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
export const assertDocStatus = (status) => {
|
|
186
|
+
if (!isValidDocStatus(status)) {
|
|
187
|
+
throw new InvalidDocStatusError(status);
|
|
188
|
+
}
|
|
189
|
+
return status;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Check if a string is a valid doc link type.
|
|
193
|
+
*/
|
|
194
|
+
export const isValidDocLinkType = (linkType) => {
|
|
195
|
+
return DOC_LINK_TYPES.includes(linkType);
|
|
196
|
+
};
|
|
197
|
+
export class InvalidDocLinkTypeError extends Error {
|
|
198
|
+
linkType;
|
|
199
|
+
constructor(linkType) {
|
|
200
|
+
super(`Invalid doc link type: "${linkType}". Valid types: ${DOC_LINK_TYPES.join(", ")}`);
|
|
201
|
+
this.linkType = linkType;
|
|
202
|
+
this.name = "InvalidDocLinkTypeError";
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
export const assertDocLinkType = (linkType) => {
|
|
206
|
+
if (!isValidDocLinkType(linkType)) {
|
|
207
|
+
throw new InvalidDocLinkTypeError(linkType);
|
|
208
|
+
}
|
|
209
|
+
return linkType;
|
|
210
|
+
};
|
|
211
|
+
// =============================================================================
|
|
212
|
+
// GRAPH TYPES (for dashboard viewer)
|
|
213
|
+
// =============================================================================
|
|
214
|
+
/** Node in the doc graph. */
|
|
215
|
+
export const DocGraphNodeSchema = Schema.Struct({
|
|
216
|
+
id: Schema.String,
|
|
217
|
+
label: Schema.String,
|
|
218
|
+
kind: Schema.Literal("overview", "prd", "design", "task"),
|
|
219
|
+
status: Schema.optional(Schema.String),
|
|
220
|
+
});
|
|
221
|
+
/** Edge in the doc graph. */
|
|
222
|
+
export const DocGraphEdgeSchema = Schema.Struct({
|
|
223
|
+
source: Schema.String,
|
|
224
|
+
target: Schema.String,
|
|
225
|
+
type: Schema.String,
|
|
226
|
+
});
|
|
227
|
+
/** Full doc graph (nodes + edges). */
|
|
228
|
+
export const DocGraphSchema = Schema.Struct({
|
|
229
|
+
nodes: Schema.Array(DocGraphNodeSchema),
|
|
230
|
+
edges: Schema.Array(DocGraphEdgeSchema),
|
|
231
|
+
});
|
|
232
|
+
//# sour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AAC,MAAM,CAAC;IAC9C,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CAAC,CAAA;AAGF,sCAAsC;AACtC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC;CACxC,CAAC,CAAA"}
|
package/dist/edge.d.ts
CHANGED
|
@@ -2,19 +2,14 @@
|
|
|
2
2
|
* Edge types for tx
|
|
3
3
|
*
|
|
4
4
|
* Type definitions for graph edges that connect nodes in the knowledge graph.
|
|
5
|
-
*
|
|
5
|
+
* Core type definitions using Effect Schema (Doctrine Rule 10).
|
|
6
|
+
* Schema definitions provide both compile-time types and runtime validation.
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
-
* Branded type for edge IDs.
|
|
9
|
-
*/
|
|
10
|
-
export type EdgeId = number & {
|
|
11
|
-
readonly _brand: unique symbol;
|
|
12
|
-
};
|
|
8
|
+
import { Schema } from "effect";
|
|
13
9
|
/**
|
|
14
10
|
* Node types in the graph - entities that can be connected by edges.
|
|
15
11
|
*/
|
|
16
12
|
export declare const NODE_TYPES: readonly ["learning", "file", "task", "run"];
|
|
17
|
-
export type NodeType = (typeof NODE_TYPES)[number];
|
|
18
13
|
/**
|
|
19
14
|
* Edge types - strong ENUMs (fixed ontology, not pluggable).
|
|
20
15
|
* - ANCHORED_TO: Learning is anchored to a file/location
|
|
@@ -27,44 +22,56 @@ export type NodeType = (typeof NODE_TYPES)[number];
|
|
|
27
22
|
* - INVALIDATED_BY: Learning was invalidated by another
|
|
28
23
|
*/
|
|
29
24
|
export declare const EDGE_TYPES: readonly ["ANCHORED_TO", "DERIVED_FROM", "IMPORTS", "CO_CHANGES_WITH", "SIMILAR_TO", "LINKS_TO", "USED_IN_RUN", "INVALIDATED_BY"];
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*/
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
25
|
+
/** Node type - one of the valid graph node types. */
|
|
26
|
+
export declare const NodeTypeSchema: Schema.Literal<["learning", "file", "task", "run"]>;
|
|
27
|
+
export type NodeType = typeof NodeTypeSchema.Type;
|
|
28
|
+
/** Edge type - one of the valid graph edge types. */
|
|
29
|
+
export declare const EdgeTypeSchema: Schema.Literal<["ANCHORED_TO", "DERIVED_FROM", "IMPORTS", "CO_CHANGES_WITH", "SIMILAR_TO", "LINKS_TO", "USED_IN_RUN", "INVALIDATED_BY"]>;
|
|
30
|
+
export type EdgeType = typeof EdgeTypeSchema.Type;
|
|
31
|
+
/** Edge ID - branded integer. */
|
|
32
|
+
export declare const EdgeIdSchema: Schema.brand<Schema.filter<typeof Schema.Number>, "EdgeId">;
|
|
33
|
+
export type EdgeId = typeof EdgeIdSchema.Type;
|
|
34
|
+
/** Edge entity - connects two nodes in the graph. */
|
|
35
|
+
export declare const EdgeSchema: Schema.Struct<{
|
|
36
|
+
id: Schema.brand<Schema.filter<typeof Schema.Number>, "EdgeId">;
|
|
37
|
+
edgeType: Schema.Literal<["ANCHORED_TO", "DERIVED_FROM", "IMPORTS", "CO_CHANGES_WITH", "SIMILAR_TO", "LINKS_TO", "USED_IN_RUN", "INVALIDATED_BY"]>;
|
|
38
|
+
sourceType: Schema.Literal<["learning", "file", "task", "run"]>;
|
|
39
|
+
sourceId: typeof Schema.String;
|
|
40
|
+
targetType: Schema.Literal<["learning", "file", "task", "run"]>;
|
|
41
|
+
targetId: typeof Schema.String;
|
|
42
|
+
weight: typeof Schema.Number;
|
|
43
|
+
metadata: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
44
|
+
createdAt: typeof Schema.DateFromSelf;
|
|
45
|
+
invalidatedAt: Schema.NullOr<typeof Schema.DateFromSelf>;
|
|
46
|
+
}>;
|
|
47
|
+
export type Edge = typeof EdgeSchema.Type;
|
|
48
|
+
/** Input for creating a new edge. */
|
|
49
|
+
export declare const CreateEdgeInputSchema: Schema.Struct<{
|
|
50
|
+
edgeType: Schema.Literal<["ANCHORED_TO", "DERIVED_FROM", "IMPORTS", "CO_CHANGES_WITH", "SIMILAR_TO", "LINKS_TO", "USED_IN_RUN", "INVALIDATED_BY"]>;
|
|
51
|
+
sourceType: Schema.Literal<["learning", "file", "task", "run"]>;
|
|
52
|
+
sourceId: typeof Schema.String;
|
|
53
|
+
targetType: Schema.Literal<["learning", "file", "task", "run"]>;
|
|
54
|
+
targetId: typeof Schema.String;
|
|
55
|
+
weight: Schema.optional<typeof Schema.Number>;
|
|
56
|
+
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
57
|
+
}>;
|
|
58
|
+
export type CreateEdgeInput = typeof CreateEdgeInputSchema.Type;
|
|
59
|
+
/** Input for updating an edge. */
|
|
60
|
+
export declare const UpdateEdgeInputSchema: Schema.Struct<{
|
|
61
|
+
weight: Schema.optional<typeof Schema.Number>;
|
|
62
|
+
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
63
|
+
}>;
|
|
64
|
+
export type UpdateEdgeInput = typeof UpdateEdgeInputSchema.Type;
|
|
65
|
+
/** Neighbor node returned from graph traversal. */
|
|
66
|
+
export declare const NeighborNodeSchema: Schema.Struct<{
|
|
67
|
+
nodeType: Schema.Literal<["learning", "file", "task", "run"]>;
|
|
68
|
+
nodeId: typeof Schema.String;
|
|
69
|
+
edgeType: Schema.Literal<["ANCHORED_TO", "DERIVED_FROM", "IMPORTS", "CO_CHANGES_WITH", "SIMILAR_TO", "LINKS_TO", "USED_IN_RUN", "INVALIDATED_BY"]>;
|
|
70
|
+
weight: typeof Schema.Number;
|
|
71
|
+
direction: Schema.Literal<["outgoing", "incoming"]>;
|
|
72
|
+
}>;
|
|
73
|
+
export type NeighborNode = typeof NeighborNodeSchema.Type;
|
|
74
|
+
/** Database row type for edges (snake_case from SQLite). */
|
|
68
75
|
export interface EdgeRow {
|
|
69
76
|
id: number;
|
|
70
77
|
edge_type: string;
|
|
@@ -77,14 +84,4 @@ export interface EdgeRow {
|
|
|
77
84
|
created_at: string;
|
|
78
85
|
invalidated_at: string | null;
|
|
79
86
|
}
|
|
80
|
-
/**
|
|
81
|
-
* Neighbor node returned from graph traversal.
|
|
82
|
-
*/
|
|
83
|
-
export interface NeighborNode {
|
|
84
|
-
readonly nodeType: NodeType;
|
|
85
|
-
readonly nodeId: string;
|
|
86
|
-
readonly edgeType: EdgeType;
|
|
87
|
-
readonly weight: number;
|
|
88
|
-
readonly direction: "outgoing" | "incoming";
|
|
89
|
-
}
|
|
90
87
|
//# sourceMappingURL=edge.d.ts.map
|
package/dist/edge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../src/edge.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../src/edge.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAM/B;;GAEG;AACH,eAAO,MAAM,UAAU,8CAA+C,CAAC;AAEvE;;;;;;;;;;GAUG;AACH,e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dist/edge.js
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
* Edge types for tx
|
|
3
3
|
*
|
|
4
4
|
* Type definitions for graph edges that connect nodes in the knowledge graph.
|
|
5
|
-
*
|
|
5
|
+
* Core type definitions using Effect Schema (Doctrine Rule 10).
|
|
6
|
+
* Schema definitions provide both compile-time types and runtime validation.
|
|
6
7
|
*/
|
|
8
|
+
import { Schema } from "effect";
|
|
9
|
+
// =============================================================================
|
|
10
|
+
// CONSTANTS
|
|
11
|
+
// =============================================================================
|
|
7
12
|
/**
|
|
8
13
|
* Node types in the graph - entities that can be connected by edges.
|
|
9
14
|
*/
|
|
@@ -29,4 +34,49 @@ export const EDGE_TYPES = [
|
|
|
29
34
|
"USED_IN_RUN",
|
|
30
35
|
"INVALIDATED_BY",
|
|
31
36
|
];
|
|
37
|
+
// =============================================================================
|
|
38
|
+
// SCHEMAS & TYPES
|
|
39
|
+
// =============================================================================
|
|
40
|
+
/** Node type - one of the valid graph node types. */
|
|
41
|
+
export const NodeTypeSchema = Schema.Literal(...NODE_TYPES);
|
|
42
|
+
/** Edge type - one of the valid graph edge types. */
|
|
43
|
+
export const EdgeTypeSchema = Schema.Literal(...EDGE_TYPES);
|
|
44
|
+
/** Edge ID - branded integer. */
|
|
45
|
+
export const EdgeIdSchema = Schema.Number.pipe(Schema.int(), Schema.brand("EdgeId"));
|
|
46
|
+
/** Edge entity - connects two nodes in the graph. */
|
|
47
|
+
export const EdgeSchema = Schema.Struct({
|
|
48
|
+
id: EdgeIdSchema,
|
|
49
|
+
edgeType: EdgeTypeSchema,
|
|
50
|
+
sourceType: NodeTypeSchema,
|
|
51
|
+
sourceId: Schema.String,
|
|
52
|
+
targetType: NodeTypeSchema,
|
|
53
|
+
targetId: Schema.String,
|
|
54
|
+
weight: Schema.Number, // 0-1
|
|
55
|
+
metadata: Schema.Record({ key: Schema.String, value: Schema.Unknown }),
|
|
56
|
+
createdAt: Schema.DateFromSelf,
|
|
57
|
+
invalidatedAt: Schema.NullOr(Schema.DateFromSelf),
|
|
58
|
+
});
|
|
59
|
+
/** Input for creating a new edge. */
|
|
60
|
+
export const CreateEdgeInputSchema = Schema.Struct({
|
|
61
|
+
edgeType: EdgeTypeSchema,
|
|
62
|
+
sourceType: NodeTypeSchema,
|
|
63
|
+
sourceId: Schema.String,
|
|
64
|
+
targetType: NodeTypeSchema,
|
|
65
|
+
targetId: Schema.String,
|
|
66
|
+
weight: Schema.optional(Schema.Number),
|
|
67
|
+
metadata: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Unknown })),
|
|
68
|
+
});
|
|
69
|
+
/** Input for updating an edge. */
|
|
70
|
+
export const UpdateEdgeInputSchema = Schema.Struct({
|
|
71
|
+
weight: Schema.optional(Schema.Number),
|
|
72
|
+
metadata: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Unknown })),
|
|
73
|
+
});
|
|
74
|
+
/** Neighbor node returned from graph traversal. */
|
|
75
|
+
export const NeighborNodeSchema = Schema.Struct({
|
|
76
|
+
nodeType: NodeTypeSchema,
|
|
77
|
+
nodeId: Schema.String,
|
|
78
|
+
edgeType: EdgeTypeSchema,
|
|
79
|
+
weight: Schema.Number,
|
|
80
|
+
direction: Schema.Literal("outgoing", "incoming"),
|
|
81
|
+
});
|
|
32
82
|
//# sourceMappingURL=edge.js.map
|
package/dist/edge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge.js","sourceRoot":"","sources":["../src/edge.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"edge.js","sourceRoot":"","sources":["../src/edge.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,gFAAgF;AAChF,YAAY;AACZ,gFAAgF;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC;A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AAU,EAAE,cAAc;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM;IACvB,UAAU,EAAE,cAAc;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM;IACvB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;CACxF,CAAC,CAAA;AAGF,kCAAkC;AAClC,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;CACxF,CAAC,CAAA;AAGF,mDAAmD;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,cAAc;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,QAAQ,EAAE,cAAc;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC;CAClD,CAAC,CAAA"}
|
package/dist/file-learning.d.ts
CHANGED
|
@@ -2,35 +2,30 @@
|
|
|
2
2
|
* File learning types for tx
|
|
3
3
|
*
|
|
4
4
|
* Type definitions for path-based knowledge storage.
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Branded type for file learning IDs.
|
|
9
|
-
*/
|
|
10
|
-
export type FileLearningId = number & {
|
|
11
|
-
readonly _brand: unique symbol;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* File learning entity - a note associated with a file pattern.
|
|
15
|
-
*/
|
|
16
|
-
export interface FileLearning {
|
|
17
|
-
readonly id: FileLearningId;
|
|
18
|
-
readonly filePattern: string;
|
|
19
|
-
readonly note: string;
|
|
20
|
-
readonly taskId: string | null;
|
|
21
|
-
readonly createdAt: Date;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Input for creating a new file learning.
|
|
25
|
-
*/
|
|
26
|
-
export interface CreateFileLearningInput {
|
|
27
|
-
readonly filePattern: string;
|
|
28
|
-
readonly note: string;
|
|
29
|
-
readonly taskId?: string | null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Database row type for file learnings (snake_case from SQLite).
|
|
5
|
+
* Core type definitions using Effect Schema (Doctrine Rule 10).
|
|
6
|
+
* Schema definitions provide both compile-time types and runtime validation.
|
|
33
7
|
*/
|
|
8
|
+
import { Schema } from "effect";
|
|
9
|
+
/** File learning ID - branded integer. */
|
|
10
|
+
export declare const FileLearningIdSchema: Schema.brand<Schema.filter<typeof Schema.Number>, "FileLearningId">;
|
|
11
|
+
export type FileLearningId = typeof FileLearningIdSchema.Type;
|
|
12
|
+
/** File learning entity - a note associated with a file pattern. */
|
|
13
|
+
export declare const FileLearningSchema: Schema.Struct<{
|
|
14
|
+
id: Schema.brand<Schema.filter<typeof Schema.Number>, "FileLearningId">;
|
|
15
|
+
filePattern: typeof Schema.String;
|
|
16
|
+
note: typeof Schema.String;
|
|
17
|
+
taskId: Schema.NullOr<typeof Schema.String>;
|
|
18
|
+
createdAt: typeof Schema.DateFromSelf;
|
|
19
|
+
}>;
|
|
20
|
+
export type FileLearning = typeof FileLearningSchema.Type;
|
|
21
|
+
/** Input for creating a new file learning. */
|
|
22
|
+
export declare const CreateFileLearningInputSchema: Schema.Struct<{
|
|
23
|
+
filePattern: typeof Schema.String;
|
|
24
|
+
note: typeof Schema.String;
|
|
25
|
+
taskId: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
26
|
+
}>;
|
|
27
|
+
export type CreateFileLearningInput = typeof CreateFileLearningInputSchema.Type;
|
|
28
|
+
/** Database row type for file learnings (snake_case from SQLite). */
|
|
34
29
|
export interface FileLearningRow {
|
|
35
30
|
id: number;
|
|
36
31
|
file_pattern: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-learning.d.ts","sourceRoot":"","sources":["../src/file-learning.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"file-learning.d.ts","sourceRoot":"","sources":["../src/file-learning.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAM/B,0CAA0C;AAC1C,eAAO,MAAM,oBAAoB,qEAGhC,CAAA;AACD,MAAM,MAAM,cAAc,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAA;AAE7D,oEAAoE;AACpE,eAAO,MAAM,kBAAkB;;;;;;EAM7B,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAA;AAEzD,8CAA8C;AAC9C,eAAO,MAAM,6BAA6B;;;;EAIxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,OAAO,6BAA6B,CAAC,IAAI,CAAA;AAM/E,qEAAqE;AACrE,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
package/dist/file-learning.js
CHANGED
|
@@ -2,7 +2,27 @@
|
|
|
2
2
|
* File learning types for tx
|
|
3
3
|
*
|
|
4
4
|
* Type definitions for path-based knowledge storage.
|
|
5
|
-
*
|
|
5
|
+
* Core type definitions using Effect Schema (Doctrine Rule 10).
|
|
6
|
+
* Schema definitions provide both compile-time types and runtime validation.
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
import { Schema } from "effect";
|
|
9
|
+
// =============================================================================
|
|
10
|
+
// SCHEMAS & TYPES
|
|
11
|
+
// =============================================================================
|
|
12
|
+
/** File learning ID - branded integer. */
|
|
13
|
+
export const FileLearningIdSchema = Schema.Number.pipe(Schema.int(), Schema.brand("FileLearningId"));
|
|
14
|
+
/** File learning entity - a note associated with a file pattern. */
|
|
15
|
+
export const FileLearningSchema = Schema.Struct({
|
|
16
|
+
id: FileLearningIdSchema,
|
|
17
|
+
filePattern: Schema.String,
|
|
18
|
+
note: Schema.String,
|
|
19
|
+
taskId: Schema.NullOr(Schema.String),
|
|
20
|
+
createdAt: Schema.DateFromSelf,
|
|
21
|
+
});
|
|
22
|
+
/** Input for creating a new file learning. */
|
|
23
|
+
export const CreateFileLearningInputSchema = Schema.Struct({
|
|
24
|
+
filePattern: Schema.String,
|
|
25
|
+
note: Schema.String,
|
|
26
|
+
taskId: Schema.optional(Schema.NullOr(Schema.String)),
|
|
27
|
+
});
|
|
8
28
|
//# sourceMappingURL=file-learning.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-learning.js","sourceRoot":"","sources":["../src/file-learning.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"file-learning.js","sourceRoot":"","sources":["../src/file-learning.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,gFAAgF;AAChF,kBAAkB;AAClB,gFAAgF;AAEhF,0CAA0C;AAC1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CACpD,MAAM,CAAC,GAAG,EAAE,EACZ,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAC/B,CAAA;AAGD,oEAAoE;AACpE,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,oBAAoB;IACxB,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC,YAAY;CAC/B,CAAC,CAAA;AAGF,8CAA8C;AAC9C,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,CAAC;IACzD,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;CACtD,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @tx/types - Shared TypeScript types for tx
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Effect Schema definitions providing both compile-time types and runtime validation.
|
|
5
5
|
* Works with any runtime (Node, Bun, Deno).
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```typescript
|
|
9
9
|
* import { Task, TaskWithDeps, TaskId, TaskStatus } from "@jamesaphoenix/tx-types";
|
|
10
|
+
* import { TaskSchema, TaskWithDepsSchema } from "@jamesaphoenix/tx-types";
|
|
10
11
|
* import { Learning, LearningWithScore } from "@jamesaphoenix/tx-types";
|
|
11
12
|
* import { Attempt, Run } from "@jamesaphoenix/tx-types";
|
|
12
13
|
*
|
|
13
14
|
* // Or import from specific modules:
|
|
14
|
-
* import type
|
|
15
|
-
* import type
|
|
15
|
+
* import { TaskSchema, type Task, type TaskWithDeps } from "@tx/types/task";
|
|
16
|
+
* import { LearningSchema, type Learning } from "@tx/types/learning";
|
|
16
17
|
* ```
|
|
17
18
|
*/
|
|
18
|
-
export { TASK_STATUSES, VALID_TRANSITIONS, type TaskStatus, type TaskId, type Task, type TaskWithDeps, type TaskTree, type TaskDependency, type CreateTaskInput, type UpdateTaskInput, type TaskFilter, type TaskCursor, type TaskRow, type DependencyRow, } from "./task.js";
|
|
19
|
-
export { LEARNING_SOURCE_TYPES, type LearningSourceType, type LearningId, type Learning, type LearningWithScore, type CreateLearningInput, type UpdateLearningInput, type LearningQuery, type ContextOptions, type ContextResult, type
|
|
20
|
-
export { type FileLearningId, type FileLearning, type CreateFileLearningInput, type FileLearningRow, } from "./file-learning.js";
|
|
21
|
-
export { ATTEMPT_OUTCOMES, type AttemptOutcome, type AttemptId, type Attempt, type CreateAttemptInput, type AttemptRow, } from "./attempt.js";
|
|
22
|
-
export { RUN_STATUSES, type RunId, type RunStatus, type Run, type CreateRunInput, type UpdateRunInput, type RunRow, } from "./run.js";
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export { type
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export { SOURCE_TYPES, type SourceType, type TrackedProjectId, type TrackedProject, type CreateTrackedProjectInput, type TrackedProjectRow, } from "./tracked-project.js";
|
|
19
|
+
export { TASK_STATUSES, VALID_TRANSITIONS, TASK_ID_PATTERN, TaskStatusSchema, TaskIdSchema, TaskSchema, TaskWithDepsSchema, TaskTreeSchema, TaskDependencySchema, CreateTaskInputSchema, UpdateTaskInputSchema, TaskCursorSchema, TaskFilterSchema, isValidTaskId, assertTaskId, InvalidTaskIdError, isValidTaskStatus, assertTaskStatus, InvalidTaskStatusError, type TaskStatus, type TaskId, type Task, type TaskWithDeps, type TaskTree, type TaskDependency, type CreateTaskInput, type UpdateTaskInput, type TaskFilter, type TaskCursor, type TaskRow, type DependencyRow, } from "./task.js";
|
|
20
|
+
export { LEARNING_SOURCE_TYPES, LearningSourceTypeSchema, LearningIdSchema, LearningSchema, LearningWithScoreSchema, CreateLearningInputSchema, UpdateLearningInputSchema, LearningQuerySchema, ContextOptionsSchema, ContextResultSchema, LearningSearchResultSchema, DiversificationOptionsSchema, RetrievalOptionsSchema, type LearningSourceType, type LearningId, type Learning, type LearningWithScore, type CreateLearningInput, type UpdateLearningInput, type LearningQuery, type ContextOptions, type ContextResult, type LearningSearchResult, type LearningRow, type LearningRowWithBM25, type RetrievalOptions, type DiversificationOptions, } from "./learning.js";
|
|
21
|
+
export { FileLearningIdSchema, FileLearningSchema, CreateFileLearningInputSchema, type FileLearningId, type FileLearning, type CreateFileLearningInput, type FileLearningRow, } from "./file-learning.js";
|
|
22
|
+
export { ATTEMPT_OUTCOMES, AttemptOutcomeSchema, AttemptIdSchema, AttemptSchema, CreateAttemptInputSchema, isValidAttemptOutcome, assertAttemptOutcome, InvalidAttemptOutcomeError, type AttemptOutcome, type AttemptId, type Attempt, type CreateAttemptInput, type AttemptRow, } from "./attempt.js";
|
|
23
|
+
export { RUN_STATUSES, RunStatusSchema, RunIdSchema, RunSchema, CreateRunInputSchema, UpdateRunInputSchema, isValidRunStatus, assertRunStatus, InvalidRunStatusError, isValidRunId, assertRunId, InvalidRunIdError, type RunId, type RunStatus, type Run, type CreateRunInput, type UpdateRunInput, type RunRow, } from "./run.js";
|
|
24
|
+
export { ProcessedHashSchema, CreateProcessedHashInputSchema, FileProgressSchema, UpsertFileProgressInputSchema, HashCheckResultSchema, LineProcessResultSchema, FileProcessResultSchema, DeduplicationOptionsSchema, type ProcessedHashId, type ProcessedHash, type CreateProcessedHashInput, type ProcessedHashRow, type FileProgressId, type FileProgress, type UpsertFileProgressInput, type FileProgressRow, type HashCheckResult, type LineProcessResult, type FileProcessResult, type DeduplicationOptions, } from "./deduplication.js";
|
|
25
|
+
export { SOURCE_TYPES, SourceTypeSchema, TrackedProjectSchema, CreateTrackedProjectInputSchema, type SourceType, type TrackedProjectId, type TrackedProject, type CreateTrackedProjectInput, type TrackedProjectRow, } from "./tracked-project.js";
|
|
26
|
+
export { DOC_KINDS, DOC_STATUSES, DOC_LINK_TYPES, TASK_DOC_LINK_TYPES, INVARIANT_ENFORCEMENT_TYPES, INVARIANT_STATUSES, DocKindSchema, DocStatusSchema, DocLinkTypeSchema, TaskDocLinkTypeSchema, DocIdSchema, isValidDocKind, assertDocKind, InvalidDocKindError, isValidDocStatus, assertDocStatus, InvalidDocStatusError, isValidDocLinkType, assertDocLinkType, InvalidDocLinkTypeError, DocSchema, DocWithLinksSchema, DocLinkSchema, TaskDocLinkSchema, CreateDocInputSchema, InvariantEnforcementSchema, InvariantStatusSchema, InvariantIdSchema, InvariantSchema, InvariantCheckSchema, UpsertInvariantInputSchema, RecordInvariantCheckInputSchema, DocGraphNodeSchema, DocGraphEdgeSchema, DocGraphSchema, type DocKind, type DocStatus, type DocLinkType, type TaskDocLinkType, type DocId, type Doc, type DocWithLinks, type DocLink, type TaskDocLink, type CreateDocInput, type InvariantEnforcement, type InvariantStatus, type InvariantId, type Invariant, type InvariantCheck, type UpsertInvariantInput, type RecordInvariantCheckInput, type DocGraphNode, type DocGraphEdge, type DocGraph, type DocRow, type DocLinkRow, type TaskDocLinkRow, type InvariantRow, type InvariantCheckRow, } from "./doc.js";
|
|
27
|
+
export { FINDING_SEVERITIES, LOSS_WEIGHTS, FindingSeveritySchema, FindingSchema, DuplicateSchema, DedupResultSchema, CycleConfigSchema, RoundMetricsSchema, CycleResultSchema, type FindingSeverity, type Finding, type Duplicate, type DedupResult, type CycleConfig, type RoundMetrics, type CycleResult, type CycleProgressEvent, } from "./cycle.js";
|
|
28
|
+
export { TaskWithDepsSerializedSchema, LearningSerializedSchema, LearningWithScoreSerializedSchema, FileLearningsSerializedSchema, RunSerializedSchema, AttemptSerializedSchema, type TaskWithDepsSerialized, type LearningSerialized, type LearningWithScoreSerialized, type FileLearningsSerialized, type RunSerialized, type AttemptSerialized, serializeTask, serializeLearning, serializeLearningWithScore, serializeFileLearning, serializeRun, serializeAttempt, ErrorResponseSchema, type ListResponse, type PaginatedResponse, type ActionResponse, type ErrorResponse, TaskReadyResponseSchema, TaskListResponseSchema, TaskDetailResponseSchema, TaskCompletionResponseSchema, TaskTreeResponseSchema, type TaskReadyResponse, type TaskListResponse, type TaskDetailResponse, type TaskCompletionResponse, type TaskTreeResponse, LearningSearchResponseSchema, ContextResponseSchema, FileLearningListResponseSchema, type LearningSearchResponse, type ContextResponse, type FileLearningListResponse, RunListResponseSchema, RunDetailResponseSchema, type RunListResponse, type RunDetailResponse, SyncExportResponseSchema, SyncImportResponseSchema, type SyncExportResponse, type SyncImportResponse, } from "./response.js";
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|