@doubledigit/cli 0.1.0 → 0.2.0
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/LICENSE +1 -1
- package/dist/codegen.d.ts +6 -2
- package/dist/codegen.d.ts.map +1 -1
- package/dist/codegen.js +81 -13
- package/dist/commands/add.d.ts.map +1 -1
- package/dist/commands/add.js +36 -3
- package/dist/commands/create.js +2 -2
- package/dist/commands/db.d.ts.map +1 -1
- package/dist/commands/db.js +24 -11
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +46 -12
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +163 -0
- package/dist/commands/onboard.d.ts.map +1 -1
- package/dist/commands/onboard.js +6 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +1 -0
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +5 -1
- package/dist/commands/uninstall.d.ts.map +1 -1
- package/dist/commands/uninstall.js +25 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -5
- package/dist/lib/marketplace-schema.d.ts +24 -24
- package/dist/lib/onboarding.d.ts +3 -3
- package/dist/lib/onboarding.d.ts.map +1 -1
- package/dist/lib/onboarding.js +282 -237
- package/dist/lib/package-entry.d.ts +6 -0
- package/dist/lib/package-entry.d.ts.map +1 -0
- package/dist/lib/package-entry.js +63 -0
- package/dist/lib/scoped-migrations.d.ts +11 -0
- package/dist/lib/scoped-migrations.d.ts.map +1 -0
- package/dist/lib/scoped-migrations.js +156 -0
- package/dist/lib/validators.d.ts.map +1 -1
- package/dist/lib/validators.js +12 -49
- package/dist/paths.d.ts +4 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +2 -0
- package/dist/scanner.d.ts +4 -0
- package/dist/scanner.d.ts.map +1 -1
- package/dist/scanner.js +21 -0
- package/package.json +10 -4
package/dist/commands/sync.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { resolveWorkspacePaths } from '../paths.js';
|
|
5
5
|
import { readConfig, isEntryEnabled } from '../config.js';
|
|
6
6
|
import { scanWorkspace } from '../scanner.js';
|
|
7
|
-
import { writeMicroAppsModule, writePayloadPluginsModule } from '../codegen.js';
|
|
7
|
+
import { writeMicroAppsModule, writeMicroAppTranspilePackagesModule, writePayloadPluginsModule, writeScopedPayloadConfigs, } from '../codegen.js';
|
|
8
8
|
export async function sync() {
|
|
9
9
|
const paths = resolveWorkspacePaths();
|
|
10
10
|
const config = readConfig(paths.configPath);
|
|
@@ -21,7 +21,9 @@ export async function sync() {
|
|
|
21
21
|
enabledApps = allApps.filter((app) => isEntryEnabled(config.apps[app.key]));
|
|
22
22
|
}
|
|
23
23
|
writeMicroAppsModule(paths.microAppsOutputPath, allApps);
|
|
24
|
+
writeMicroAppTranspilePackagesModule(paths.microAppTranspilePackagesOutputPath, allApps);
|
|
24
25
|
writePayloadPluginsModule(paths.payloadPluginsOutputPath, payloadPlugins);
|
|
26
|
+
writeScopedPayloadConfigs(paths.payloadConfigsDir, allApps);
|
|
25
27
|
console.log(`✅ Synced ${enabledApps.length}/${allApps.length} micro-apps → micro-apps.ts`);
|
|
26
28
|
for (const app of allApps) {
|
|
27
29
|
const isEnabled = enabledApps.some((e) => e.key === app.key);
|
|
@@ -31,4 +33,6 @@ export async function sync() {
|
|
|
31
33
|
for (const plugin of payloadPlugins) {
|
|
32
34
|
console.log(` 🔌 ${plugin.key} (${plugin.npmName})`);
|
|
33
35
|
}
|
|
36
|
+
console.log(`✅ Synced ${allApps.length} micro-app package(s) → micro-app-transpile-packages.ts`);
|
|
37
|
+
console.log(`✅ Synced ${allApps.length} scoped Payload config(s)`);
|
|
34
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../src/commands/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA6CH,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../src/commands/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA6CH,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA2L3D"}
|
|
@@ -48,6 +48,9 @@ function resolveNpmName(name, targetDir, lockFilePath) {
|
|
|
48
48
|
}
|
|
49
49
|
export async function uninstall(name) {
|
|
50
50
|
const paths = resolveWorkspacePaths();
|
|
51
|
+
const mainPkg = fs.existsSync(paths.mainAppPackageJsonPath)
|
|
52
|
+
? JSON.parse(fs.readFileSync(paths.mainAppPackageJsonPath, 'utf-8'))
|
|
53
|
+
: null;
|
|
51
54
|
let lockEntry;
|
|
52
55
|
try {
|
|
53
56
|
lockEntry = readLockFile(paths.lockFilePath).apps[name];
|
|
@@ -73,6 +76,28 @@ export async function uninstall(name) {
|
|
|
73
76
|
}))
|
|
74
77
|
.filter((install) => install.isManagedExtension);
|
|
75
78
|
const targetDir = managedInstalls[0]?.dir ?? candidateDirs[0];
|
|
79
|
+
const dependencyNames = new Set(Object.keys(mainPkg?.dependencies ?? {}).filter((dep) => dep.endsWith(`/${name}`)));
|
|
80
|
+
const hasDependencyMatch = dependencyNames.size > 0;
|
|
81
|
+
const hasKnownConfigEntry = (() => {
|
|
82
|
+
try {
|
|
83
|
+
const config = readConfig(paths.configPath);
|
|
84
|
+
return config.apps ? Object.prototype.hasOwnProperty.call(config.apps, name) : false;
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
})();
|
|
90
|
+
const hasCandidateDir = candidateDirs.some((dir) => fs.existsSync(dir));
|
|
91
|
+
if (managedInstalls.length === 0 &&
|
|
92
|
+
!lockEntry &&
|
|
93
|
+
!hasDependencyMatch &&
|
|
94
|
+
!hasKnownConfigEntry &&
|
|
95
|
+
!hasCandidateDir) {
|
|
96
|
+
const npmName = `@doubledigit/${name}`;
|
|
97
|
+
throw new Error(`❌ No managed micro-app/payload plugin named "${name}" found. ` +
|
|
98
|
+
`Tried resolving "${npmName}" but nothing was installed. ` +
|
|
99
|
+
'Run "pnpm dd list" to see valid app names.');
|
|
100
|
+
}
|
|
76
101
|
const npmNames = new Set();
|
|
77
102
|
if (lockEntry?.npmName) {
|
|
78
103
|
npmNames.add(lockEntry.npmName);
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* without importing the full extension-management dependency graph first.
|
|
7
7
|
*/
|
|
8
8
|
declare const command: string, args: string[];
|
|
9
|
-
declare const HELP = "\n@doubledigit/cli \u2014 Manage extensions and local setup\n\nCommands:\n doctor Check local prerequisites and project health\n onboard Prepare a local development environment\n run Start the local app with automatic DB bootstrap\n db <subcommand> Database helpers (status, migrate)\n create <name> Scaffold a new micro-app from the template\n add <source>
|
|
9
|
+
declare const HELP = "\n@doubledigit/cli \u2014 Manage extensions and local setup\n\nCommands:\n doctor Check local prerequisites and project health\n onboard Prepare a local development environment (setup only)\n run Start the local app with automatic DB bootstrap\n db <subcommand> Database helpers (status, migrate, create)\n create <name> Scaffold a new micro-app from the template\n init <project-name> Scaffold a new Double Digit project\n add|install <source> Install an extension from GitHub or a marketplace\n sync Regenerate micro-apps.ts from dd-apps.config.json\n enable <name> Enable a micro-app (updates config + runs sync)\n disable <name> Disable a micro-app (updates config + runs sync)\n uninstall|remove <name> Completely remove a micro-app\n list List all discovered micro-apps with enabled/disabled status\n info <name> Show detailed info about an installed extension\n outdated Check for outdated marketplace extensions\n reconcile Detect drift between lock file, marketplace, and local files\n marketplace <sub> Manage marketplace registrations (add/list/update/remove)\n browse [marketplace] Browse available extensions in registered marketplaces\n\nOptions:\n --help, -h Show this help message\n\nExamples:\n dd doctor\n dd onboard --yes\n dd onboard --start # setup + start the dev server\n dd init my-project # scaffold and bootstrap a fresh project\n dd init my-project --run # scaffold + bootstrap + start\n dd init my-project --skip-install --no-git\n dd run\n dd db status\n dd create invoice-tracker\n dd add gh:owner/repo/extensions/micro-apps/habit-tracker\n dd add habit-tracker@community\n dd info habit-tracker\n dd reconcile\n dd marketplace add digitaldouble/dd-marketplace\n dd browse community\n DD_APPS=tasks,agent-v2 dd sync\n";
|
|
10
10
|
declare function requireArg(value: string | undefined, usage: string): string;
|
|
11
11
|
declare function runAddCommand(rawArgs: string[]): Promise<void>;
|
|
12
12
|
declare function main(): Promise<void>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AAEH,QAAA,MAAW,OAAO,UAAK,IAAI,UAAgB,CAAC;AAE5C,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AAEH,QAAA,MAAW,OAAO,UAAK,IAAI,UAAgB,CAAC;AAE5C,QAAA,MAAM,IAAI,y8DA0CT,CAAC;AAEF,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAOpE;AAED,iBAAe,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB7D;AAED,iBAAe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAyHnC"}
|
package/dist/index.js
CHANGED
|
@@ -12,15 +12,16 @@ const HELP = `
|
|
|
12
12
|
|
|
13
13
|
Commands:
|
|
14
14
|
doctor Check local prerequisites and project health
|
|
15
|
-
onboard Prepare a local development environment
|
|
15
|
+
onboard Prepare a local development environment (setup only)
|
|
16
16
|
run Start the local app with automatic DB bootstrap
|
|
17
|
-
db <subcommand> Database helpers (status, migrate)
|
|
17
|
+
db <subcommand> Database helpers (status, migrate, create)
|
|
18
18
|
create <name> Scaffold a new micro-app from the template
|
|
19
|
-
|
|
19
|
+
init <project-name> Scaffold a new Double Digit project
|
|
20
|
+
add|install <source> Install an extension from GitHub or a marketplace
|
|
20
21
|
sync Regenerate micro-apps.ts from dd-apps.config.json
|
|
21
22
|
enable <name> Enable a micro-app (updates config + runs sync)
|
|
22
23
|
disable <name> Disable a micro-app (updates config + runs sync)
|
|
23
|
-
uninstall <name>
|
|
24
|
+
uninstall|remove <name> Completely remove a micro-app
|
|
24
25
|
list List all discovered micro-apps with enabled/disabled status
|
|
25
26
|
info <name> Show detailed info about an installed extension
|
|
26
27
|
outdated Check for outdated marketplace extensions
|
|
@@ -33,7 +34,11 @@ Options:
|
|
|
33
34
|
|
|
34
35
|
Examples:
|
|
35
36
|
dd doctor
|
|
36
|
-
dd onboard --yes
|
|
37
|
+
dd onboard --yes
|
|
38
|
+
dd onboard --start # setup + start the dev server
|
|
39
|
+
dd init my-project # scaffold and bootstrap a fresh project
|
|
40
|
+
dd init my-project --run # scaffold + bootstrap + start
|
|
41
|
+
dd init my-project --skip-install --no-git
|
|
37
42
|
dd run
|
|
38
43
|
dd db status
|
|
39
44
|
dd create invoice-tracker
|
|
@@ -104,6 +109,11 @@ async function main() {
|
|
|
104
109
|
await create(name);
|
|
105
110
|
break;
|
|
106
111
|
}
|
|
112
|
+
case 'init': {
|
|
113
|
+
const { init } = await import('./commands/init.js');
|
|
114
|
+
await init(args);
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
107
117
|
case 'add':
|
|
108
118
|
case 'install':
|
|
109
119
|
await runAddCommand(args);
|
|
@@ -79,8 +79,6 @@ export declare const MarketplaceExtensionSchema: z.ZodObject<{
|
|
|
79
79
|
/** Minimum platform version required */
|
|
80
80
|
minPlatformVersion: z.ZodOptional<z.ZodString>;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
name: string;
|
|
83
|
-
kind: "micro-app" | "payload-plugin";
|
|
84
82
|
source: {
|
|
85
83
|
type: "git-subdir" | "git-repo";
|
|
86
84
|
url: string;
|
|
@@ -88,6 +86,8 @@ export declare const MarketplaceExtensionSchema: z.ZodObject<{
|
|
|
88
86
|
ref?: string | undefined;
|
|
89
87
|
sha?: string | undefined;
|
|
90
88
|
};
|
|
89
|
+
name: string;
|
|
90
|
+
kind: "micro-app" | "payload-plugin";
|
|
91
91
|
sourceAuthority: "source" | "marketplace";
|
|
92
92
|
verified: boolean;
|
|
93
93
|
tags: string[];
|
|
@@ -96,8 +96,6 @@ export declare const MarketplaceExtensionSchema: z.ZodObject<{
|
|
|
96
96
|
author?: string | undefined;
|
|
97
97
|
minPlatformVersion?: string | undefined;
|
|
98
98
|
}, {
|
|
99
|
-
name: string;
|
|
100
|
-
kind: "micro-app" | "payload-plugin";
|
|
101
99
|
source: {
|
|
102
100
|
url: string;
|
|
103
101
|
type?: "git-subdir" | "git-repo" | undefined;
|
|
@@ -105,6 +103,8 @@ export declare const MarketplaceExtensionSchema: z.ZodObject<{
|
|
|
105
103
|
ref?: string | undefined;
|
|
106
104
|
sha?: string | undefined;
|
|
107
105
|
};
|
|
106
|
+
name: string;
|
|
107
|
+
kind: "micro-app" | "payload-plugin";
|
|
108
108
|
description?: string | undefined;
|
|
109
109
|
version?: string | undefined;
|
|
110
110
|
sourceAuthority?: "source" | "marketplace" | undefined;
|
|
@@ -192,8 +192,6 @@ export declare const MarketplaceManifestSchema: z.ZodObject<{
|
|
|
192
192
|
/** Minimum platform version required */
|
|
193
193
|
minPlatformVersion: z.ZodOptional<z.ZodString>;
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
name: string;
|
|
196
|
-
kind: "micro-app" | "payload-plugin";
|
|
197
195
|
source: {
|
|
198
196
|
type: "git-subdir" | "git-repo";
|
|
199
197
|
url: string;
|
|
@@ -201,6 +199,8 @@ export declare const MarketplaceManifestSchema: z.ZodObject<{
|
|
|
201
199
|
ref?: string | undefined;
|
|
202
200
|
sha?: string | undefined;
|
|
203
201
|
};
|
|
202
|
+
name: string;
|
|
203
|
+
kind: "micro-app" | "payload-plugin";
|
|
204
204
|
sourceAuthority: "source" | "marketplace";
|
|
205
205
|
verified: boolean;
|
|
206
206
|
tags: string[];
|
|
@@ -209,8 +209,6 @@ export declare const MarketplaceManifestSchema: z.ZodObject<{
|
|
|
209
209
|
author?: string | undefined;
|
|
210
210
|
minPlatformVersion?: string | undefined;
|
|
211
211
|
}, {
|
|
212
|
-
name: string;
|
|
213
|
-
kind: "micro-app" | "payload-plugin";
|
|
214
212
|
source: {
|
|
215
213
|
url: string;
|
|
216
214
|
type?: "git-subdir" | "git-repo" | undefined;
|
|
@@ -218,6 +216,8 @@ export declare const MarketplaceManifestSchema: z.ZodObject<{
|
|
|
218
216
|
ref?: string | undefined;
|
|
219
217
|
sha?: string | undefined;
|
|
220
218
|
};
|
|
219
|
+
name: string;
|
|
220
|
+
kind: "micro-app" | "payload-plugin";
|
|
221
221
|
description?: string | undefined;
|
|
222
222
|
version?: string | undefined;
|
|
223
223
|
sourceAuthority?: "source" | "marketplace" | undefined;
|
|
@@ -228,8 +228,6 @@ export declare const MarketplaceManifestSchema: z.ZodObject<{
|
|
|
228
228
|
}>, "many">;
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
230
|
extensions: {
|
|
231
|
-
name: string;
|
|
232
|
-
kind: "micro-app" | "payload-plugin";
|
|
233
231
|
source: {
|
|
234
232
|
type: "git-subdir" | "git-repo";
|
|
235
233
|
url: string;
|
|
@@ -237,6 +235,8 @@ export declare const MarketplaceManifestSchema: z.ZodObject<{
|
|
|
237
235
|
ref?: string | undefined;
|
|
238
236
|
sha?: string | undefined;
|
|
239
237
|
};
|
|
238
|
+
name: string;
|
|
239
|
+
kind: "micro-app" | "payload-plugin";
|
|
240
240
|
sourceAuthority: "source" | "marketplace";
|
|
241
241
|
verified: boolean;
|
|
242
242
|
tags: string[];
|
|
@@ -258,8 +258,6 @@ export declare const MarketplaceManifestSchema: z.ZodObject<{
|
|
|
258
258
|
} | undefined;
|
|
259
259
|
}, {
|
|
260
260
|
extensions: {
|
|
261
|
-
name: string;
|
|
262
|
-
kind: "micro-app" | "payload-plugin";
|
|
263
261
|
source: {
|
|
264
262
|
url: string;
|
|
265
263
|
type?: "git-subdir" | "git-repo" | undefined;
|
|
@@ -267,6 +265,8 @@ export declare const MarketplaceManifestSchema: z.ZodObject<{
|
|
|
267
265
|
ref?: string | undefined;
|
|
268
266
|
sha?: string | undefined;
|
|
269
267
|
};
|
|
268
|
+
name: string;
|
|
269
|
+
kind: "micro-app" | "payload-plugin";
|
|
270
270
|
description?: string | undefined;
|
|
271
271
|
version?: string | undefined;
|
|
272
272
|
sourceAuthority?: "source" | "marketplace" | undefined;
|
|
@@ -441,8 +441,6 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
441
441
|
/** Minimum platform version required */
|
|
442
442
|
minPlatformVersion: z.ZodOptional<z.ZodString>;
|
|
443
443
|
}, "strip", z.ZodTypeAny, {
|
|
444
|
-
name: string;
|
|
445
|
-
kind: "micro-app" | "payload-plugin";
|
|
446
444
|
source: {
|
|
447
445
|
type: "git-subdir" | "git-repo";
|
|
448
446
|
url: string;
|
|
@@ -450,6 +448,8 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
450
448
|
ref?: string | undefined;
|
|
451
449
|
sha?: string | undefined;
|
|
452
450
|
};
|
|
451
|
+
name: string;
|
|
452
|
+
kind: "micro-app" | "payload-plugin";
|
|
453
453
|
sourceAuthority: "source" | "marketplace";
|
|
454
454
|
verified: boolean;
|
|
455
455
|
tags: string[];
|
|
@@ -458,8 +458,6 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
458
458
|
author?: string | undefined;
|
|
459
459
|
minPlatformVersion?: string | undefined;
|
|
460
460
|
}, {
|
|
461
|
-
name: string;
|
|
462
|
-
kind: "micro-app" | "payload-plugin";
|
|
463
461
|
source: {
|
|
464
462
|
url: string;
|
|
465
463
|
type?: "git-subdir" | "git-repo" | undefined;
|
|
@@ -467,6 +465,8 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
467
465
|
ref?: string | undefined;
|
|
468
466
|
sha?: string | undefined;
|
|
469
467
|
};
|
|
468
|
+
name: string;
|
|
469
|
+
kind: "micro-app" | "payload-plugin";
|
|
470
470
|
description?: string | undefined;
|
|
471
471
|
version?: string | undefined;
|
|
472
472
|
sourceAuthority?: "source" | "marketplace" | undefined;
|
|
@@ -477,8 +477,6 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
477
477
|
}>, "many">;
|
|
478
478
|
}, "strip", z.ZodTypeAny, {
|
|
479
479
|
extensions: {
|
|
480
|
-
name: string;
|
|
481
|
-
kind: "micro-app" | "payload-plugin";
|
|
482
480
|
source: {
|
|
483
481
|
type: "git-subdir" | "git-repo";
|
|
484
482
|
url: string;
|
|
@@ -486,6 +484,8 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
486
484
|
ref?: string | undefined;
|
|
487
485
|
sha?: string | undefined;
|
|
488
486
|
};
|
|
487
|
+
name: string;
|
|
488
|
+
kind: "micro-app" | "payload-plugin";
|
|
489
489
|
sourceAuthority: "source" | "marketplace";
|
|
490
490
|
verified: boolean;
|
|
491
491
|
tags: string[];
|
|
@@ -507,8 +507,6 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
507
507
|
} | undefined;
|
|
508
508
|
}, {
|
|
509
509
|
extensions: {
|
|
510
|
-
name: string;
|
|
511
|
-
kind: "micro-app" | "payload-plugin";
|
|
512
510
|
source: {
|
|
513
511
|
url: string;
|
|
514
512
|
type?: "git-subdir" | "git-repo" | undefined;
|
|
@@ -516,6 +514,8 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
516
514
|
ref?: string | undefined;
|
|
517
515
|
sha?: string | undefined;
|
|
518
516
|
};
|
|
517
|
+
name: string;
|
|
518
|
+
kind: "micro-app" | "payload-plugin";
|
|
519
519
|
description?: string | undefined;
|
|
520
520
|
version?: string | undefined;
|
|
521
521
|
sourceAuthority?: "source" | "marketplace" | undefined;
|
|
@@ -540,8 +540,6 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
540
540
|
fetchedAt: string;
|
|
541
541
|
manifest: {
|
|
542
542
|
extensions: {
|
|
543
|
-
name: string;
|
|
544
|
-
kind: "micro-app" | "payload-plugin";
|
|
545
543
|
source: {
|
|
546
544
|
type: "git-subdir" | "git-repo";
|
|
547
545
|
url: string;
|
|
@@ -549,6 +547,8 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
549
547
|
ref?: string | undefined;
|
|
550
548
|
sha?: string | undefined;
|
|
551
549
|
};
|
|
550
|
+
name: string;
|
|
551
|
+
kind: "micro-app" | "payload-plugin";
|
|
552
552
|
sourceAuthority: "source" | "marketplace";
|
|
553
553
|
verified: boolean;
|
|
554
554
|
tags: string[];
|
|
@@ -573,8 +573,6 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
573
573
|
fetchedAt: string;
|
|
574
574
|
manifest: {
|
|
575
575
|
extensions: {
|
|
576
|
-
name: string;
|
|
577
|
-
kind: "micro-app" | "payload-plugin";
|
|
578
576
|
source: {
|
|
579
577
|
url: string;
|
|
580
578
|
type?: "git-subdir" | "git-repo" | undefined;
|
|
@@ -582,6 +580,8 @@ export declare const CachedMarketplaceSchema: z.ZodObject<{
|
|
|
582
580
|
ref?: string | undefined;
|
|
583
581
|
sha?: string | undefined;
|
|
584
582
|
};
|
|
583
|
+
name: string;
|
|
584
|
+
kind: "micro-app" | "payload-plugin";
|
|
585
585
|
description?: string | undefined;
|
|
586
586
|
version?: string | undefined;
|
|
587
587
|
sourceAuthority?: "source" | "marketplace" | undefined;
|
package/dist/lib/onboarding.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { WorkspacePaths } from
|
|
1
|
+
import type { WorkspacePaths } from "../paths.js";
|
|
2
2
|
export declare const DEFAULT_DATABASE_URL = "postgresql://doubledigit:doubledigit@localhost:5432/doubledigit";
|
|
3
|
-
export declare const DEFAULT_APP_URL = "http://localhost:3000";
|
|
4
3
|
export declare const DEFAULT_EMBEDDED_POSTGRES_PORT = 54329;
|
|
5
4
|
export declare const DEFAULT_EMBEDDED_POSTGRES_INSTANCE_ID = "default";
|
|
6
5
|
export declare const DEFAULT_EMBEDDED_POSTGRES_HOME: string;
|
|
7
6
|
export declare const DEFAULT_EMBEDDED_POSTGRES_DATA_DIR: string;
|
|
7
|
+
export declare const DEFAULT_APP_URL: string;
|
|
8
8
|
export interface CommandCaptureResult {
|
|
9
9
|
ok: boolean;
|
|
10
10
|
output: string;
|
|
@@ -26,7 +26,7 @@ export interface EnvInspectionResult {
|
|
|
26
26
|
exists: boolean;
|
|
27
27
|
env: Record<string, string>;
|
|
28
28
|
}
|
|
29
|
-
export type DatabaseMode =
|
|
29
|
+
export type DatabaseMode = "external" | "embedded" | "docker";
|
|
30
30
|
export interface DatabaseRuntime {
|
|
31
31
|
mode: DatabaseMode;
|
|
32
32
|
databaseUrl: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding.d.ts","sourceRoot":"","sources":["../../src/lib/onboarding.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"onboarding.d.ts","sourceRoot":"","sources":["../../src/lib/onboarding.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,oBAAoB,oEACkC,CAAC;AACpE,eAAO,MAAM,8BAA8B,QAAQ,CAAC;AACpD,eAAO,MAAM,qCAAqC,YAAY,CAAC;AAC/D,eAAO,MAAM,8BAA8B,QAG1C,CAAC;AACF,eAAO,MAAM,kCAA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