@optique/discover 1.2.0-dev.2179 → 1.2.0-dev.2187
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.cjs +3 -3
- package/dist/cli.js +3 -3
- package/dist/{generator-C12pIuFe.js → generator-B81thoIS.js} +1 -1
- package/dist/{generator-e4RwnDKG.cjs → generator-BV1QDOot.cjs} +1 -1
- package/dist/generator.cjs +2 -2
- package/dist/generator.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/{src-BYGxdHGJ.cjs → src-BDObn4mj.cjs} +2 -1
- package/dist/{src-Ci75oZo-.js → src-kBDpUW2H.js} +2 -1
- package/package.json +3 -3
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
3
3
|
require('./command-CUn2_NIA.cjs');
|
|
4
|
-
require('./src-
|
|
5
|
-
const require_generator = require('./generator-
|
|
4
|
+
require('./src-BDObn4mj.cjs');
|
|
5
|
+
const require_generator = require('./generator-BV1QDOot.cjs');
|
|
6
6
|
const require_main_check = require('./main-check-CwunSNpK.cjs');
|
|
7
7
|
const __optique_core_constructs = require_chunk.__toESM(require("@optique/core/constructs"));
|
|
8
8
|
const __optique_core_message = require_chunk.__toESM(require("@optique/core/message"));
|
|
@@ -15,7 +15,7 @@ const node_process = require_chunk.__toESM(require("node:process"));
|
|
|
15
15
|
|
|
16
16
|
//#region deno.json
|
|
17
17
|
var name = "@optique/discover";
|
|
18
|
-
var version = "1.2.0-dev.
|
|
18
|
+
var version = "1.2.0-dev.2187+6112b083";
|
|
19
19
|
var license = "MIT";
|
|
20
20
|
var exports$1 = {
|
|
21
21
|
".": "./src/index.ts",
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./command-DO5zgkvS.js";
|
|
3
|
-
import "./src-
|
|
4
|
-
import { watchCommandsModule, writeCommandsModule } from "./generator-
|
|
3
|
+
import "./src-kBDpUW2H.js";
|
|
4
|
+
import { watchCommandsModule, writeCommandsModule } from "./generator-B81thoIS.js";
|
|
5
5
|
import { isMainModuleUrl } from "./main-check-mMnKfUZs.js";
|
|
6
6
|
import { object } from "@optique/core/constructs";
|
|
7
7
|
import { message } from "@optique/core/message";
|
|
@@ -14,7 +14,7 @@ import process from "node:process";
|
|
|
14
14
|
|
|
15
15
|
//#region deno.json
|
|
16
16
|
var name = "@optique/discover";
|
|
17
|
-
var version = "1.2.0-dev.
|
|
17
|
+
var version = "1.2.0-dev.2187+6112b083";
|
|
18
18
|
var license = "MIT";
|
|
19
19
|
var exports = {
|
|
20
20
|
".": "./src/index.ts",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDefaultExtensions } from "./src-
|
|
1
|
+
import { getDefaultExtensions } from "./src-kBDpUW2H.js";
|
|
2
2
|
import { mkdir, readdir, realpath, stat, writeFile } from "node:fs/promises";
|
|
3
3
|
import { dirname, posix, relative, resolve } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-BDObn4mj.cjs');
|
|
3
3
|
const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
package/dist/generator.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require('./command-CUn2_NIA.cjs');
|
|
2
|
-
require('./src-
|
|
3
|
-
const require_generator = require('./generator-
|
|
2
|
+
require('./src-BDObn4mj.cjs');
|
|
3
|
+
const require_generator = require('./generator-BV1QDOot.cjs');
|
|
4
4
|
|
|
5
5
|
exports.generateCommandsModule = require_generator.generateCommandsModule;
|
|
6
6
|
exports.watchCommandsModule = require_generator.watchCommandsModule;
|
package/dist/generator.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./command-DO5zgkvS.js";
|
|
2
|
-
import "./src-
|
|
3
|
-
import { generateCommandsModule, watchCommandsModule, writeCommandsModule } from "./generator-
|
|
2
|
+
import "./src-kBDpUW2H.js";
|
|
3
|
+
import { generateCommandsModule, watchCommandsModule, writeCommandsModule } from "./generator-B81thoIS.js";
|
|
4
4
|
|
|
5
5
|
export { generateCommandsModule, watchCommandsModule, writeCommandsModule };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_command = require('./command-CUn2_NIA.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-BDObn4mj.cjs');
|
|
3
3
|
|
|
4
4
|
exports.commandsFromModules = require_src.commandsFromModules;
|
|
5
5
|
exports.createProgramParser = require_src.createProgramParser;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnyCommand, AnyStaticCommand, Command, CommandDefinition, CommandMetadata, CommandPath, StaticCommand, defineCommand, isCommand } from "./command-DSHBTa5c.cjs";
|
|
2
|
-
import { Mode
|
|
2
|
+
import { Mode } from "@optique/core/parser";
|
|
3
|
+
import { FluentParser } from "@optique/core/fluent";
|
|
3
4
|
import { Message } from "@optique/core/message";
|
|
4
5
|
import { ProgramMetadata } from "@optique/core/program";
|
|
5
6
|
import { RunOptions } from "@optique/run";
|
|
@@ -303,7 +304,7 @@ declare function commandsFromModules(modules: ModuleMap, options?: CommandsFromM
|
|
|
303
304
|
* duplicated.
|
|
304
305
|
* @since 1.1.0
|
|
305
306
|
*/
|
|
306
|
-
declare function createProgramParser(commands: readonly CommandEntry[], metadata?: ProgramHelpMetadata):
|
|
307
|
+
declare function createProgramParser(commands: readonly CommandEntry[], metadata?: ProgramHelpMetadata): FluentParser<Mode, ProgramInvocation, unknown>;
|
|
307
308
|
/**
|
|
308
309
|
* Discovers and runs a command program.
|
|
309
310
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { AnyCommand, AnyStaticCommand, Command, CommandDefinition, CommandMetada
|
|
|
2
2
|
import { Message } from "@optique/core/message";
|
|
3
3
|
import { ProgramMetadata } from "@optique/core/program";
|
|
4
4
|
import { RunOptions } from "@optique/run";
|
|
5
|
-
import {
|
|
5
|
+
import { FluentParser } from "@optique/core/fluent";
|
|
6
|
+
import { Mode } from "@optique/core/parser";
|
|
6
7
|
|
|
7
8
|
//#region src/index.d.ts
|
|
8
9
|
|
|
@@ -303,7 +304,7 @@ declare function commandsFromModules(modules: ModuleMap, options?: CommandsFromM
|
|
|
303
304
|
* duplicated.
|
|
304
305
|
* @since 1.1.0
|
|
305
306
|
*/
|
|
306
|
-
declare function createProgramParser(commands: readonly CommandEntry[], metadata?: ProgramHelpMetadata):
|
|
307
|
+
declare function createProgramParser(commands: readonly CommandEntry[], metadata?: ProgramHelpMetadata): FluentParser<Mode, ProgramInvocation, unknown>;
|
|
307
308
|
/**
|
|
308
309
|
* Discovers and runs a command program.
|
|
309
310
|
*
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { defineCommand, isCommand } from "./command-DO5zgkvS.js";
|
|
2
|
-
import { commandsFromModules, createProgramParser, discoverCommands, getDefaultExtensions, runProgram } from "./src-
|
|
2
|
+
import { commandsFromModules, createProgramParser, discoverCommands, getDefaultExtensions, runProgram } from "./src-kBDpUW2H.js";
|
|
3
3
|
|
|
4
4
|
export { commandsFromModules, createProgramParser, defineCommand, discoverCommands, getDefaultExtensions, isCommand, runProgram };
|
|
@@ -9,6 +9,7 @@ const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
|
9
9
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
10
10
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
11
11
|
const __optique_core_extension = require_chunk.__toESM(require("@optique/core/extension"));
|
|
12
|
+
const __optique_core_fluent = require_chunk.__toESM(require("@optique/core/fluent"));
|
|
12
13
|
const __optique_core_usage = require_chunk.__toESM(require("@optique/core/usage"));
|
|
13
14
|
|
|
14
15
|
//#region src/index.ts
|
|
@@ -137,7 +138,7 @@ function createProgramParser(commands, metadata = {}) {
|
|
|
137
138
|
})));
|
|
138
139
|
const rootNode = buildCommandTree(sortedCommands);
|
|
139
140
|
const parser = buildNodeParser(rootNode);
|
|
140
|
-
return withRootDocs(parser, sortedCommands, metadata);
|
|
141
|
+
return (0, __optique_core_fluent.fluent)(withRootDocs(parser, sortedCommands, metadata));
|
|
141
142
|
}
|
|
142
143
|
/**
|
|
143
144
|
* Discovers and runs a command program.
|
|
@@ -8,6 +8,7 @@ import { readdir, realpath, stat } from "node:fs/promises";
|
|
|
8
8
|
import { posix, relative, resolve, sep } from "node:path";
|
|
9
9
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
10
10
|
import { dispatchByMode, inheritAnnotations, mapModeValue, wrapForMode } from "@optique/core/extension";
|
|
11
|
+
import { fluent } from "@optique/core/fluent";
|
|
11
12
|
import { mergeHidden } from "@optique/core/usage";
|
|
12
13
|
|
|
13
14
|
//#region src/index.ts
|
|
@@ -136,7 +137,7 @@ function createProgramParser(commands, metadata = {}) {
|
|
|
136
137
|
})));
|
|
137
138
|
const rootNode = buildCommandTree(sortedCommands);
|
|
138
139
|
const parser = buildNodeParser(rootNode);
|
|
139
|
-
return withRootDocs(parser, sortedCommands, metadata);
|
|
140
|
+
return fluent(withRootDocs(parser, sortedCommands, metadata));
|
|
140
141
|
}
|
|
141
142
|
/**
|
|
142
143
|
* Discovers and runs a command program.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/discover",
|
|
3
|
-
"version": "1.2.0-dev.
|
|
3
|
+
"version": "1.2.0-dev.2187",
|
|
4
4
|
"description": "Runtime-aware command discovery for Optique CLI programs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"optique-discover": "./dist/cli.js"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@optique/
|
|
87
|
-
"@optique/
|
|
86
|
+
"@optique/run": "1.2.0-dev.2187+6112b083",
|
|
87
|
+
"@optique/core": "1.2.0-dev.2187+6112b083"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@types/node": "^24.0.0",
|