@powerhousedao/ph-clint-cli 0.1.0-dev.18 → 0.1.0-dev.19

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.
@@ -16,8 +16,6 @@ export function buildCliTs(spec) {
16
16
  lines.push(' * Everything outside the markers is user-editable and preserved.');
17
17
  lines.push(' */');
18
18
  if (phAtLeast(ph, 'Reactor')) {
19
- lines.push(`import path from 'node:path';`);
20
- lines.push(`import { existsSync } from 'node:fs';`);
21
19
  lines.push(`import { defineCli, buildDefaultReactor } from '@powerhousedao/ph-clint';`);
22
20
  }
23
21
  else {
@@ -35,20 +33,12 @@ export function buildCliTs(spec) {
35
33
  }
36
34
  lines.push('// @clint:end imports');
37
35
  lines.push('');
38
- if (phAtLeast(ph, 'Reactor')) {
39
- lines.push(`const appDir = path.resolve(CLI_ROOT, '../${spec.name}-app');`);
40
- lines.push('');
41
- if (phAtLeast(ph, 'Connect')) {
42
- lines.push('function resolveConnectAssets(dir: string): string | undefined {');
43
- lines.push(" const assetsDir = path.join(dir, 'dist', 'connect');");
44
- lines.push(" return existsSync(path.join(assetsDir, 'index.html')) ? assetsDir : undefined;");
45
- lines.push('}');
46
- lines.push('');
47
- }
48
- }
49
36
  lines.push('export const cli = defineCli({');
50
37
  lines.push(' name: CLI_NAME,');
51
38
  lines.push(' version: CLI_VERSION,');
39
+ if (phAtLeast(ph, 'Reactor')) {
40
+ lines.push(' root: CLI_ROOT,');
41
+ }
52
42
  lines.push(' description: `${CLI_NAME} v${CLI_VERSION}`,');
53
43
  lines.push(' configSchema,');
54
44
  lines.push(' secretsSchema,');
@@ -120,12 +110,7 @@ export function buildCliTs(spec) {
120
110
  lines.push(` drive: { name: '${spec.name}' },`);
121
111
  lines.push(' }),');
122
112
  lines.push(` switchboard: { enabled: ${String(phAtLeast(ph, 'Switchboard'))} },`);
123
- if (phAtLeast(ph, 'Connect')) {
124
- lines.push(` connect: { enabled: true, workdir: appDir, assetsDir: resolveConnectAssets(appDir) },`);
125
- }
126
- else {
127
- lines.push(` connect: { enabled: false },`);
128
- }
113
+ lines.push(` connect: { enabled: ${String(phAtLeast(ph, 'Connect'))} },`);
129
114
  lines.push('});');
130
115
  }
131
116
  lines.push('// @clint:end reactor');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/ph-clint-cli",
3
- "version": "0.1.0-dev.18",
3
+ "version": "0.1.0-dev.19",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,19 +25,19 @@
25
25
  "mastra:start": "mastra start"
26
26
  },
27
27
  "dependencies": {
28
- "@powerhousedao/ph-clint": "^0.1.0-dev.15",
29
- "@powerhousedao/ph-clint-app": "^0.1.0-dev.18",
28
+ "@electric-sql/pglite": "0.3.15",
30
29
  "@mastra/core": "^1.22.0",
31
30
  "@mastra/libsql": "^1.7.4",
32
31
  "@mastra/memory": "^1.13.1",
32
+ "@powerhousedao/ph-clint": "0.1.0-dev.18",
33
+ "@powerhousedao/ph-clint-app": "^0.1.0-dev.19",
34
+ "@powerhousedao/ph-clint-dev": "0.1.0-dev.18",
33
35
  "@powerhousedao/reactor": "6.0.0-dev.170",
34
36
  "@powerhousedao/reactor-api": "6.0.0-dev.170",
35
37
  "@powerhousedao/shared": "6.0.0-dev.170",
36
- "@electric-sql/pglite": "0.3.15",
37
38
  "document-model": "6.0.0-dev.170",
38
39
  "kysely": "^0.27.0",
39
40
  "kysely-pglite-dialect": "^1.3.0",
40
- "@powerhousedao/ph-clint-dev": "^0.1.0-dev.15",
41
41
  "zod": "^4.3.6"
42
42
  },
43
43
  "pnpm": {