@optique/prompt 1.4.0-dev.2715 → 1.4.0-dev.2718
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/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -21,10 +21,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
}) : target, mod));
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
|
+
const __optique_core_extension = __toESM(require("@optique/core/extension"));
|
|
24
25
|
const __optique_core_annotations = __toESM(require("@optique/core/annotations"));
|
|
25
26
|
const __optique_core_dependency = __toESM(require("@optique/core/dependency"));
|
|
26
27
|
const __optique_core_message = __toESM(require("@optique/core/message"));
|
|
27
|
-
const __optique_core_extension = __toESM(require("@optique/core/extension"));
|
|
28
28
|
const __optique_core_fluent = __toESM(require("@optique/core/fluent"));
|
|
29
29
|
|
|
30
30
|
//#region src/index.ts
|
|
@@ -555,6 +555,8 @@ function createPromptAdapter(adapter) {
|
|
|
555
555
|
enumerable: false
|
|
556
556
|
});
|
|
557
557
|
(0, __optique_core_extension.delegateOptionParsing)(promptedParser, parser, getCliState);
|
|
558
|
+
const emptyStep = (0, __optique_core_extension.getEmptyInputBehavior)(parser).step;
|
|
559
|
+
(0, __optique_core_extension.defineEmptyInputBehavior)(promptedParser, { ...emptyStep === void 0 ? {} : { step: emptyStep === "failure" ? "success" : emptyStep } });
|
|
558
560
|
return (0, __optique_core_fluent.fluent)(promptedParser);
|
|
559
561
|
};
|
|
560
562
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { defineEmptyInputBehavior, defineTraits, delegateOptionParsing, delegateSuggestNodes, getEmptyInputBehavior, getTraits, inheritAnnotations, inheritOptionScope, injectAnnotations, mapSourceMetadata, unwrapInjectedAnnotationState, withAnnotationView } from "@optique/core/extension";
|
|
1
2
|
import { getAnnotations } from "@optique/core/annotations";
|
|
2
3
|
import { getDependencySourceInfo } from "@optique/core/dependency";
|
|
3
4
|
import { message, values } from "@optique/core/message";
|
|
4
|
-
import { defineTraits, delegateOptionParsing, delegateSuggestNodes, getTraits, inheritAnnotations, inheritOptionScope, injectAnnotations, mapSourceMetadata, unwrapInjectedAnnotationState, withAnnotationView } from "@optique/core/extension";
|
|
5
5
|
import { fluent } from "@optique/core/fluent";
|
|
6
6
|
|
|
7
7
|
//#region src/index.ts
|
|
@@ -532,6 +532,8 @@ function createPromptAdapter(adapter) {
|
|
|
532
532
|
enumerable: false
|
|
533
533
|
});
|
|
534
534
|
delegateOptionParsing(promptedParser, parser, getCliState);
|
|
535
|
+
const emptyStep = getEmptyInputBehavior(parser).step;
|
|
536
|
+
defineEmptyInputBehavior(promptedParser, { ...emptyStep === void 0 ? {} : { step: emptyStep === "failure" ? "success" : emptyStep } });
|
|
535
537
|
return fluent(promptedParser);
|
|
536
538
|
};
|
|
537
539
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/prompt",
|
|
3
|
-
"version": "1.4.0-dev.
|
|
3
|
+
"version": "1.4.0-dev.2718",
|
|
4
4
|
"description": "Generic prompt adapter support for Optique",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
},
|
|
61
61
|
"sideEffects": false,
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@optique/core": "1.4.0-dev.
|
|
63
|
+
"@optique/core": "1.4.0-dev.2718+779844d0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@optique/config": "1.4.0-dev.
|
|
67
|
-
"@optique/env": "1.4.0-dev.
|
|
68
|
-
"@optique/run": "1.4.0-dev.
|
|
66
|
+
"@optique/config": "1.4.0-dev.2718+779844d0",
|
|
67
|
+
"@optique/env": "1.4.0-dev.2718+779844d0",
|
|
68
|
+
"@optique/run": "1.4.0-dev.2718+779844d0",
|
|
69
69
|
"@types/node": "^24.0.0",
|
|
70
70
|
"fast-check": "^4.7.0",
|
|
71
71
|
"tsdown": "^0.13.0",
|