@promptdriven/runtime-client 1.1.3 → 1.1.4
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/package.json
CHANGED
|
@@ -60,7 +60,9 @@ export function bindingCoverage({ root, found, selected, includeRuntime = false,
|
|
|
60
60
|
for (const story of itemStories) { regular(story); if (!stories.has(story)) fail(path, `unknown Story ${story}`); }
|
|
61
61
|
if (bound) { regular(item.prompt); if (!item.prompt.endsWith('.prompt.md')) fail(path, `${item.prompt} must be a *.prompt.md file`); }
|
|
62
62
|
else for (const key of ['reason', 'port_attempt']) if (typeof item[key] !== 'string' || !item[key].trim()) fail(path, `${key} must be nonblank`);
|
|
63
|
-
|
|
63
|
+
const selectedByStories = itemStories.some(story => chosen.has(story));
|
|
64
|
+
const selectedByReach = bound && !hasStories && (reached.has(item.prompt) || context.has(item.prompt));
|
|
65
|
+
if (!selectedByStories && !selectedByReach) continue;
|
|
64
66
|
if (bound) {
|
|
65
67
|
const prompt = getPrompt(item.prompt);
|
|
66
68
|
const nativeProblem = (prompt.frontmatter || prompt?.interface?.kind === 'native-only') ? promptRefusal(prompt, 'interface') : null;
|
|
@@ -70,7 +72,7 @@ export function bindingCoverage({ root, found, selected, includeRuntime = false,
|
|
|
70
72
|
continue;
|
|
71
73
|
}
|
|
72
74
|
const lazyMissing = allowMissingInterfaces && prompt.error === 'interface-missing';
|
|
73
|
-
if (!reached.has(item.prompt) && context.has(item.prompt) && prompt.error === 'interface-missing') {
|
|
75
|
+
if (!reached.has(item.prompt) && context.has(item.prompt) && (prompt.error === 'interface-missing' || (!hasStories && !prompt.error))) {
|
|
74
76
|
modules.push({path:item.module,state:'unbound',prompt:item.prompt,
|
|
75
77
|
reason:'Context-only module contract',
|
|
76
78
|
port_attempt:'no executable Runtime call'});
|