trellis 2.0.7 → 2.0.8

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.
@@ -1,8 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  createVcsOp,
4
- decisionEntityId
5
- } from "./index-fd4e26s4.js";
4
+ decisionEntityId,
5
+ init_ops,
6
+ init_types
7
+ } from "./index-v9b4hqa7.js";
8
+ import {
9
+ __esm
10
+ } from "./index-a76rekgs.js";
6
11
 
7
12
  // src/decisions/hooks.ts
8
13
  class HookRegistry {
@@ -81,6 +86,8 @@ function matchesPattern(pattern, toolName) {
81
86
  const escaped = pattern.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
82
87
  return new RegExp(`^${escaped}$`).test(toolName);
83
88
  }
89
+ var init_hooks = () => {};
90
+
84
91
  // src/decisions/auto-capture.ts
85
92
  function wrapToolHandler(toolName, handler, opts) {
86
93
  return async (params) => {
@@ -134,6 +141,7 @@ function summarize(result) {
134
141
  const str = typeof result === "string" ? result : JSON.stringify(result, null, 0);
135
142
  return str.length > 500 ? str.slice(0, 500) + "\u2026" : str;
136
143
  }
144
+ var init_auto_capture = () => {};
137
145
 
138
146
  // src/decisions/index.ts
139
147
  import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs";
@@ -268,5 +276,11 @@ function getDecision(ctx, id) {
268
276
  return null;
269
277
  return buildDecision(ctx, eid);
270
278
  }
279
+ var init_decisions = __esm(() => {
280
+ init_hooks();
281
+ init_auto_capture();
282
+ init_ops();
283
+ init_types();
284
+ });
271
285
 
272
- export { HookRegistry, wrapToolHandler, recordDecision, queryDecisions, getDecisionChain, getDecision };
286
+ export { HookRegistry, wrapToolHandler, recordDecision, queryDecisions, getDecisionChain, getDecision, init_decisions };
@@ -1,11 +1,30 @@
1
1
  // @bun
2
2
  import {
3
- decompose
4
- } from "./index-3s0eak0p.js";
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-fd4e26s4.js";
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 };