trellis 2.0.7 → 2.0.10
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/cli/index.js +1031 -30
- package/dist/core/index.js +474 -2
- package/dist/decisions/index.js +5 -2
- package/dist/embeddings/index.js +5 -1
- package/dist/{index-3s0eak0p.js → index-3ejh8k6v.js} +26 -3
- package/dist/{index-1j1anhmr.js → index-5b01h414.js} +489 -335
- package/dist/index-5m0g9r0y.js +1100 -0
- package/dist/{index-8pce39mh.js → index-65z0xfjw.js} +17 -3
- package/dist/{index-zf6htvnm.js → index-7gvjxt27.js} +166 -2
- package/dist/index-hybgxe40.js +1174 -0
- package/dist/{index-gnw8d7d6.js → index-k5kf7sd0.js} +32 -3
- package/dist/{index-fd4e26s4.js → index-v9b4hqa7.js} +23 -15
- package/dist/index.js +20 -7
- package/dist/transformers.node-bx3q9d7k.js +33130 -0
- package/dist/ui/client.html +695 -0
- package/dist/vcs/index.js +3 -3
- package/package.json +5 -4
- package/src/cli/index.ts +1017 -1
- package/src/core/agents/harness.ts +336 -0
- package/src/core/agents/index.ts +18 -0
- package/src/core/agents/types.ts +90 -0
- package/src/core/index.ts +85 -2
- package/src/core/kernel/trellis-kernel.ts +593 -0
- package/src/core/ontology/builtins.ts +248 -0
- package/src/core/ontology/index.ts +34 -0
- package/src/core/ontology/registry.ts +209 -0
- package/src/core/ontology/types.ts +124 -0
- package/src/core/ontology/validator.ts +382 -0
- package/src/core/persist/backend.ts +10 -0
- package/src/core/persist/sqlite-backend.ts +298 -0
- package/src/core/plugins/index.ts +17 -0
- package/src/core/plugins/registry.ts +322 -0
- package/src/core/plugins/types.ts +126 -0
- package/src/core/query/datalog.ts +188 -0
- package/src/core/query/engine.ts +370 -0
- package/src/core/query/index.ts +34 -0
- package/src/core/query/parser.ts +481 -0
- package/src/core/query/types.ts +200 -0
- package/src/embeddings/auto-embed.ts +248 -0
- package/src/embeddings/index.ts +7 -0
- package/src/embeddings/model.ts +21 -4
- package/src/embeddings/types.ts +8 -1
- package/src/engine.ts +45 -3
- package/src/index.ts +9 -0
- package/src/sync/http-transport.ts +144 -0
- package/src/sync/index.ts +11 -0
- package/src/sync/multi-repo.ts +200 -0
- package/src/sync/ws-transport.ts +145 -0
- package/src/ui/client.html +695 -0
- package/src/ui/server.ts +419 -0
- package/src/watcher/fs-watcher.ts +41 -3
- package/dist/index-gkvhzm9f.js +0 -321
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
decompose
|
|
4
|
-
|
|
3
|
+
decompose,
|
|
4
|
+
init_blob_store,
|
|
5
|
+
init_branch,
|
|
6
|
+
init_checkpoint,
|
|
7
|
+
init_decompose,
|
|
8
|
+
init_diff,
|
|
9
|
+
init_issue,
|
|
10
|
+
init_merge,
|
|
11
|
+
init_milestone
|
|
12
|
+
} from "./index-3ejh8k6v.js";
|
|
5
13
|
import {
|
|
14
|
+
init_ops,
|
|
15
|
+
init_types,
|
|
6
16
|
isVcsOp
|
|
7
|
-
} from "./index-
|
|
17
|
+
} from "./index-v9b4hqa7.js";
|
|
18
|
+
|
|
19
|
+
// src/vcs/index.ts
|
|
20
|
+
init_types();
|
|
21
|
+
init_ops();
|
|
22
|
+
init_decompose();
|
|
23
|
+
|
|
8
24
|
// src/vcs/vcs-middleware.ts
|
|
25
|
+
init_decompose();
|
|
26
|
+
init_ops();
|
|
27
|
+
|
|
9
28
|
class VcsMiddleware {
|
|
10
29
|
name = "vcs";
|
|
11
30
|
async handleOp(op, ctx, next) {
|
|
@@ -48,4 +67,14 @@ class VcsMiddleware {
|
|
|
48
67
|
}
|
|
49
68
|
}
|
|
50
69
|
}
|
|
70
|
+
|
|
71
|
+
// src/vcs/index.ts
|
|
72
|
+
init_blob_store();
|
|
73
|
+
init_branch();
|
|
74
|
+
init_milestone();
|
|
75
|
+
init_checkpoint();
|
|
76
|
+
init_diff();
|
|
77
|
+
init_merge();
|
|
78
|
+
init_issue();
|
|
79
|
+
|
|
51
80
|
export { VcsMiddleware };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
__esm
|
|
4
|
+
} from "./index-a76rekgs.js";
|
|
5
|
+
|
|
2
6
|
// src/vcs/ops.ts
|
|
3
7
|
async function createVcsOp(kind, params) {
|
|
4
8
|
const opBase = {
|
|
@@ -24,6 +28,7 @@ function isVcsOp(op) {
|
|
|
24
28
|
function isVcsOpKind(kind) {
|
|
25
29
|
return kind.startsWith("vcs:");
|
|
26
30
|
}
|
|
31
|
+
var init_ops = () => {};
|
|
27
32
|
|
|
28
33
|
// src/vcs/types.ts
|
|
29
34
|
function fileEntityId(path) {
|
|
@@ -51,19 +56,22 @@ function criterionEntityId(issueId, index) {
|
|
|
51
56
|
function decisionEntityId(id) {
|
|
52
57
|
return id.startsWith("decision:") ? id : `decision:${id}`;
|
|
53
58
|
}
|
|
54
|
-
var DEFAULT_CONFIG
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
var DEFAULT_CONFIG;
|
|
60
|
+
var init_types = __esm(() => {
|
|
61
|
+
DEFAULT_CONFIG = {
|
|
62
|
+
ignorePatterns: [
|
|
63
|
+
"node_modules",
|
|
64
|
+
".git",
|
|
65
|
+
".trellis",
|
|
66
|
+
"dist",
|
|
67
|
+
"build",
|
|
68
|
+
".DS_Store",
|
|
69
|
+
"*.log"
|
|
70
|
+
],
|
|
71
|
+
debounceMs: 300,
|
|
72
|
+
defaultBranch: "main",
|
|
73
|
+
dbPath: ".trellis/trellis.db"
|
|
74
|
+
};
|
|
75
|
+
});
|
|
68
76
|
|
|
69
|
-
export { createVcsOp, isVcsOp, isVcsOpKind, fileEntityId, dirEntityId, branchEntityId, milestoneEntityId, checkpointEntityId, issueEntityId, criterionEntityId, decisionEntityId, DEFAULT_CONFIG };
|
|
77
|
+
export { createVcsOp, isVcsOp, isVcsOpKind, init_ops, fileEntityId, dirEntityId, branchEntityId, milestoneEntityId, checkpointEntityId, issueEntityId, criterionEntityId, decisionEntityId, DEFAULT_CONFIG, init_types };
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
VcsMiddleware
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-k5kf7sd0.js";
|
|
5
5
|
import {
|
|
6
6
|
FileWatcher,
|
|
7
7
|
Ingestion,
|
|
8
|
-
TrellisVcsEngine
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
TrellisVcsEngine,
|
|
9
|
+
init_engine,
|
|
10
|
+
init_fs_watcher,
|
|
11
|
+
init_ingestion
|
|
12
|
+
} from "./index-5b01h414.js";
|
|
13
|
+
import {
|
|
14
|
+
SqliteKernelBackend,
|
|
15
|
+
TrellisKernel
|
|
16
|
+
} from "./index-hybgxe40.js";
|
|
11
17
|
import {
|
|
12
18
|
BlobStore,
|
|
13
19
|
addCriterion,
|
|
@@ -46,8 +52,8 @@ import {
|
|
|
46
52
|
triageIssue,
|
|
47
53
|
unblockIssue,
|
|
48
54
|
updateIssue
|
|
49
|
-
} from "./index-
|
|
50
|
-
import"./index-
|
|
55
|
+
} from "./index-3ejh8k6v.js";
|
|
56
|
+
import"./index-65z0xfjw.js";
|
|
51
57
|
import {
|
|
52
58
|
DEFAULT_CONFIG,
|
|
53
59
|
branchEntityId,
|
|
@@ -61,8 +67,13 @@ import {
|
|
|
61
67
|
isVcsOpKind,
|
|
62
68
|
issueEntityId,
|
|
63
69
|
milestoneEntityId
|
|
64
|
-
} from "./index-
|
|
70
|
+
} from "./index-v9b4hqa7.js";
|
|
65
71
|
import"./index-a76rekgs.js";
|
|
72
|
+
|
|
73
|
+
// src/index.ts
|
|
74
|
+
init_engine();
|
|
75
|
+
init_fs_watcher();
|
|
76
|
+
init_ingestion();
|
|
66
77
|
export {
|
|
67
78
|
updateIssue,
|
|
68
79
|
unblockIssue,
|
|
@@ -113,6 +124,8 @@ export {
|
|
|
113
124
|
addCriterion,
|
|
114
125
|
VcsMiddleware,
|
|
115
126
|
TrellisVcsEngine,
|
|
127
|
+
TrellisKernel,
|
|
128
|
+
SqliteKernelBackend,
|
|
116
129
|
Ingestion,
|
|
117
130
|
FileWatcher,
|
|
118
131
|
DEFAULT_CONFIG,
|