@junejs/cli 0.0.52-dev.2 → 0.0.52-dev.3
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/cli.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/cli.d.ts
|
|
2
|
-
type Parsed = {
|
|
2
|
+
export type Parsed = {
|
|
3
3
|
verb: string;
|
|
4
4
|
positional: string[];
|
|
5
5
|
flags: Record<string, string | boolean>;
|
|
6
6
|
};
|
|
7
|
-
declare function parse(argv: string[]): Parsed;
|
|
8
|
-
declare function run(argv: string[]): Promise<number | undefined>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Parsed, parse, run };
|
|
7
|
+
export declare function parse(argv: string[]): Parsed;
|
|
8
|
+
export declare function run(argv: string[]): Promise<number | undefined>;
|
|
9
|
+
//#endregion
|
package/dist/cli.js
CHANGED
|
@@ -59,8 +59,12 @@ async function info(root) {
|
|
|
59
59
|
for (const r of routes) console.log(` ${r}`);
|
|
60
60
|
if (agent.enabled) {
|
|
61
61
|
console.log(`\nAgent surface:`);
|
|
62
|
-
if (agent.discovery)
|
|
62
|
+
if (agent.discovery) {
|
|
63
|
+
console.log(` discovery /llms.txt · /sitemap.xml · /.well-known/api-catalog`);
|
|
64
|
+
console.log(` /.well-known/ai-catalog.json · /.well-known/agent-skills/index.json`);
|
|
65
|
+
}
|
|
63
66
|
if (agent.mcp) console.log(` mcp /mcp (tools: ${tools.length ? tools.join(", ") : "none"})`);
|
|
67
|
+
if (agent.api) console.log(` api POST /api/<tool> · /openapi.json`);
|
|
64
68
|
} else console.log(`\nAgent surface: disabled`);
|
|
65
69
|
return 0;
|
|
66
70
|
}
|
|
@@ -75,7 +79,7 @@ async function run(argv) {
|
|
|
75
79
|
return 1;
|
|
76
80
|
}
|
|
77
81
|
if (!process.env.JUNE_DEV_CHILD && !flags["no-watch"]) {
|
|
78
|
-
const { superviseDev } = await import("./watch-
|
|
82
|
+
const { superviseDev } = await import("./watch-BcQz4ONx.js");
|
|
79
83
|
return superviseDev(root);
|
|
80
84
|
}
|
|
81
85
|
const { startDevServer } = await import("@junejs/server");
|
|
@@ -107,7 +111,7 @@ async function run(argv) {
|
|
|
107
111
|
if (!flags.check && existsSync(join(root, "app"))) {
|
|
108
112
|
const cols = await generateContent(root);
|
|
109
113
|
console.log(cols.length ? `generated content: ${cols.join(", ")}` : "no content/ collections");
|
|
110
|
-
const { generateMessages } = await import("./messages-
|
|
114
|
+
const { generateMessages } = await import("./messages-CofbPnix.js");
|
|
111
115
|
const locales = await generateMessages(root);
|
|
112
116
|
if (locales) console.log(`generated messages: ${locales.join(", ")}`);
|
|
113
117
|
}
|
|
@@ -159,7 +163,8 @@ async function run(argv) {
|
|
|
159
163
|
console.log("nothing to generate");
|
|
160
164
|
return 0;
|
|
161
165
|
}
|
|
162
|
-
|
|
166
|
+
const out = join(dbRoot, "db", "schema.d.ts");
|
|
167
|
+
await writeFile(out, text);
|
|
163
168
|
console.log("wrote db/schema.d.ts");
|
|
164
169
|
return 0;
|
|
165
170
|
}
|
|
@@ -11,7 +11,8 @@ async function generateMessages(root) {
|
|
|
11
11
|
if (!existsSync(messagesDir)) return null;
|
|
12
12
|
let codegen;
|
|
13
13
|
try {
|
|
14
|
-
|
|
14
|
+
const resolved = createRequire(resolve(root, "package.json")).resolve("@junejs/i18n/codegen");
|
|
15
|
+
codegen = await import(pathToFileURL(resolved).href);
|
|
15
16
|
} catch {
|
|
16
17
|
console.warn("[june] messages/ found but @junejs/i18n is not installed — skipping (run: bun add @junejs/i18n)");
|
|
17
18
|
return null;
|
|
@@ -41,7 +41,7 @@ function superviseDev(root) {
|
|
|
41
41
|
console.error("[june] content regen failed:", err);
|
|
42
42
|
}
|
|
43
43
|
if (file.startsWith(`messages${sep}`)) try {
|
|
44
|
-
const { generateMessages } = await import("./messages-
|
|
44
|
+
const { generateMessages } = await import("./messages-CofbPnix.js");
|
|
45
45
|
await generateMessages(root);
|
|
46
46
|
} catch (err) {
|
|
47
47
|
console.error("[june] messages regen failed:", err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junejs/cli",
|
|
3
|
-
"version": "0.0.52-dev.
|
|
3
|
+
"version": "0.0.52-dev.3",
|
|
4
4
|
"description": "The `june` CLI — dev / build / deploy / gen / info. A thin bin over @junejs/server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"build": "tsdown"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@junejs/core": ">=0.2.0-dev.
|
|
31
|
-
"@junejs/server": ">=1.0.0-dev.
|
|
30
|
+
"@junejs/core": ">=0.2.0-dev.51",
|
|
31
|
+
"@junejs/server": ">=1.0.0-dev.31"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
package/src/cli.ts
CHANGED
|
@@ -72,8 +72,12 @@ async function info(root: string): Promise<number> {
|
|
|
72
72
|
for (const r of routes) console.log(` ${r}`);
|
|
73
73
|
if (agent.enabled) {
|
|
74
74
|
console.log(`\nAgent surface:`);
|
|
75
|
-
if (agent.discovery)
|
|
75
|
+
if (agent.discovery) {
|
|
76
|
+
console.log(` discovery /llms.txt · /sitemap.xml · /.well-known/api-catalog`);
|
|
77
|
+
console.log(` /.well-known/ai-catalog.json · /.well-known/agent-skills/index.json`);
|
|
78
|
+
}
|
|
76
79
|
if (agent.mcp) console.log(` mcp /mcp (tools: ${tools.length ? tools.join(", ") : "none"})`);
|
|
80
|
+
if (agent.api) console.log(` api POST /api/<tool> · /openapi.json`);
|
|
77
81
|
} else {
|
|
78
82
|
console.log(`\nAgent surface: disabled`);
|
|
79
83
|
}
|