@powerhousedao/ph-clint-cli 0.1.0-dev.29 → 0.1.0-dev.30
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.
|
@@ -17,12 +17,12 @@ export function buildCliTs(spec) {
|
|
|
17
17
|
lines.push(' */');
|
|
18
18
|
const needsRoot = phAtLeast(ph, 'Reactor') || mastra.enabled;
|
|
19
19
|
lines.push('// @clint:begin imports');
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
20
|
+
const phClintImports = ['defineCli'];
|
|
21
|
+
if (phAtLeast(ph, 'Reactor'))
|
|
22
|
+
phClintImports.push('buildDefaultReactor');
|
|
23
|
+
if (spec.deployment.serviceAnnouncement)
|
|
24
|
+
phClintImports.push('vetraGraphqlAnnounce');
|
|
25
|
+
lines.push(`import { ${phClintImports.join(', ')} } from '@powerhousedao/ph-clint';`);
|
|
26
26
|
if (needsRoot) {
|
|
27
27
|
lines.push("import path from 'node:path';");
|
|
28
28
|
}
|
|
@@ -100,10 +100,15 @@ export function buildCliTs(spec) {
|
|
|
100
100
|
lines.push(' // @clint:begin events');
|
|
101
101
|
lines.push(' events: {},');
|
|
102
102
|
lines.push(' // @clint:end events');
|
|
103
|
+
lines.push('');
|
|
104
|
+
lines.push(' // @clint:begin serviceAnnouncement');
|
|
103
105
|
if (spec.deployment.serviceAnnouncement) {
|
|
104
|
-
lines.push('');
|
|
105
|
-
lines.push('
|
|
106
|
+
lines.push(' serviceAnnouncement: {');
|
|
107
|
+
lines.push(' enabled: true,');
|
|
108
|
+
lines.push(' announce: (payload, ctx) => vetraGraphqlAnnounce(payload, ctx),');
|
|
109
|
+
lines.push(' },');
|
|
106
110
|
}
|
|
111
|
+
lines.push(' // @clint:end serviceAnnouncement');
|
|
107
112
|
lines.push('');
|
|
108
113
|
lines.push(' // @clint:begin interactive');
|
|
109
114
|
lines.push(' interactive: {');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/ph-clint-cli",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.30",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"@mastra/core": "^1.22.0",
|
|
30
30
|
"@mastra/libsql": "^1.7.4",
|
|
31
31
|
"@mastra/memory": "^1.13.1",
|
|
32
|
-
"@powerhousedao/ph-clint": "^0.1.0-dev.
|
|
33
|
-
"@powerhousedao/ph-clint-app": "^0.1.0-dev.
|
|
34
|
-
"@powerhousedao/ph-clint-dev": "^0.1.0-dev.
|
|
32
|
+
"@powerhousedao/ph-clint": "^0.1.0-dev.30",
|
|
33
|
+
"@powerhousedao/ph-clint-app": "^0.1.0-dev.30",
|
|
34
|
+
"@powerhousedao/ph-clint-dev": "^0.1.0-dev.30",
|
|
35
35
|
"@powerhousedao/reactor": "6.0.0-dev.170",
|
|
36
36
|
"@powerhousedao/reactor-api": "6.0.0-dev.170",
|
|
37
37
|
"@powerhousedao/shared": "6.0.0-dev.170",
|