bonzai-tree 1.0.123 → 1.0.125
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/bconfig.js +10 -0
- package/dist/graph-templates/receiver.js +5 -0
- package/dist/index.js +11 -3
- package/package.json +1 -1
package/dist/bconfig.js
CHANGED
|
@@ -71,6 +71,16 @@ async function main() {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
// Copy readwrite loop handlers
|
|
75
|
+
if (ENABLED_LOOPS.includes('readwrite')) {
|
|
76
|
+
const readwriteSrc = path.join(TEMPLATE_DIR, 'loops', 'readwrite');
|
|
77
|
+
if (fs.existsSync(readwriteSrc)) {
|
|
78
|
+
for (const file of fs.readdirSync(readwriteSrc)) {
|
|
79
|
+
fs.copyFileSync(path.join(readwriteSrc, file), path.join(handlersDest, file));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
74
84
|
// Copy backend loop handlers
|
|
75
85
|
if (ENABLED_LOOPS.includes('backend')) {
|
|
76
86
|
const backendSrc = path.join(TEMPLATE_DIR, 'loops', 'backend');
|
|
@@ -38,6 +38,11 @@ const readHandler = tryLoad('read');
|
|
|
38
38
|
if (listHandler) app.get('/list', listHandler);
|
|
39
39
|
if (readHandler) app.get('/read', readHandler);
|
|
40
40
|
|
|
41
|
+
// Readwrite loop handlers
|
|
42
|
+
const detectClaudeHandler = tryLoad('detect-claude');
|
|
43
|
+
|
|
44
|
+
if (detectClaudeHandler) app.get('/detect-claude', detectClaudeHandler);
|
|
45
|
+
|
|
41
46
|
// Backend loop handlers
|
|
42
47
|
const deleteHandler = tryLoad('delete');
|
|
43
48
|
const writeHandler = tryLoad('write');
|
package/dist/index.js
CHANGED
|
@@ -19,9 +19,9 @@ var CHANNELS, channel, ENABLED_LOOPS;
|
|
|
19
19
|
var init_loops_config = __esm({
|
|
20
20
|
"src/loops.config.js"() {
|
|
21
21
|
CHANNELS = {
|
|
22
|
-
dev: ["visualization", "backend"],
|
|
23
|
-
staging: ["visualization", "backend"],
|
|
24
|
-
prod: ["visualization", "backend"]
|
|
22
|
+
dev: ["visualization", "readwrite", "backend"],
|
|
23
|
+
staging: ["visualization", "readwrite", "backend"],
|
|
24
|
+
prod: ["visualization", "readwrite", "backend"]
|
|
25
25
|
};
|
|
26
26
|
channel = "prod";
|
|
27
27
|
ENABLED_LOOPS = CHANNELS[channel] || CHANNELS.prod;
|
|
@@ -77,6 +77,14 @@ async function main() {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
+
if (ENABLED_LOOPS.includes("readwrite")) {
|
|
81
|
+
const readwriteSrc = path.join(TEMPLATE_DIR, "loops", "readwrite");
|
|
82
|
+
if (fs.existsSync(readwriteSrc)) {
|
|
83
|
+
for (const file of fs.readdirSync(readwriteSrc)) {
|
|
84
|
+
fs.copyFileSync(path.join(readwriteSrc, file), path.join(handlersDest, file));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
80
88
|
if (ENABLED_LOOPS.includes("backend")) {
|
|
81
89
|
const backendSrc = path.join(TEMPLATE_DIR, "loops", "backend");
|
|
82
90
|
if (fs.existsSync(backendSrc)) {
|