@optique/prompt 1.4.0-dev.2622 → 1.4.0-dev.2623
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 +1 -0
- package/dist/index.js +2 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -514,6 +514,7 @@ function createPromptAdapter(adapter) {
|
|
|
514
514
|
return parser.getDocFragments(state, defaultValue);
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
|
+
(0, __optique_core_extension.inheritOptionScope)(promptedParser, parser);
|
|
517
518
|
(0, __optique_core_extension.defineTraits)(promptedParser, {
|
|
518
519
|
inheritsAnnotations: true,
|
|
519
520
|
...(0, __optique_core_extension.getTraits)(parser).completesFromSource === true ? { completesFromSource: true } : {}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAnnotations } from "@optique/core/annotations";
|
|
2
2
|
import { getDependencySourceInfo } from "@optique/core/dependency";
|
|
3
3
|
import { message, values } from "@optique/core/message";
|
|
4
|
-
import { defineTraits, delegateSuggestNodes, getTraits, inheritAnnotations, injectAnnotations, mapSourceMetadata, unwrapInjectedAnnotationState, withAnnotationView } from "@optique/core/extension";
|
|
4
|
+
import { defineTraits, 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
|
|
@@ -491,6 +491,7 @@ function createPromptAdapter(adapter) {
|
|
|
491
491
|
return parser.getDocFragments(state, defaultValue);
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
|
+
inheritOptionScope(promptedParser, parser);
|
|
494
495
|
defineTraits(promptedParser, {
|
|
495
496
|
inheritsAnnotations: true,
|
|
496
497
|
...getTraits(parser).completesFromSource === true ? { completesFromSource: true } : {}
|
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.2623",
|
|
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.2623+c24ee8fb"
|
|
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.2623+c24ee8fb",
|
|
67
|
+
"@optique/env": "1.4.0-dev.2623+c24ee8fb",
|
|
68
|
+
"@optique/run": "1.4.0-dev.2623+c24ee8fb",
|
|
69
69
|
"@types/node": "^24.0.0",
|
|
70
70
|
"fast-check": "^4.7.0",
|
|
71
71
|
"tsdown": "^0.13.0",
|