@contentful/experience-design-system-generation 2.34.2-dev-build-cfb3467.0 → 2.34.2-dev-build-a06e747.0
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/package.json +1 -1
- package/dist/src/agent-runner.d.ts +0 -2
- package/dist/src/agent-runner.js +0 -7
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/package.json +2 -2
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-generation",
|
|
3
|
-
"version": "2.34.2-dev-build-
|
|
3
|
+
"version": "2.34.2-dev-build-a06e747.0",
|
|
4
4
|
"description": "Agent-invocation and skill-prompt engine for the Contentful Experience Design System SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -125,8 +125,6 @@ export declare function agentSupportsStdinPrompt(agent: AgentName): boolean;
|
|
|
125
125
|
* agent that can only accept argv.
|
|
126
126
|
*/
|
|
127
127
|
export declare function shouldUseStdinPrompt(agent: AgentName, prompt: string): boolean;
|
|
128
|
-
/** True when the prompt cannot be delivered to this agent on this platform. */
|
|
129
|
-
export declare function promptExceedsArgvLimit(agent: AgentName, prompt: string, platform?: NodeJS.Platform): boolean;
|
|
130
128
|
export declare function buildArgs(agent: AgentName, prompt: string, model?: string, promptViaStdin?: boolean, bedrock?: boolean): string[];
|
|
131
129
|
export declare function runAgent(options: {
|
|
132
130
|
agent: AgentName;
|
package/dist/src/agent-runner.js
CHANGED
|
@@ -388,13 +388,6 @@ const ARGV_PROMPT_LIMIT = 4096;
|
|
|
388
388
|
export function shouldUseStdinPrompt(agent, prompt) {
|
|
389
389
|
return agentSupportsStdinPrompt(agent) && prompt.length > ARGV_PROMPT_LIMIT;
|
|
390
390
|
}
|
|
391
|
-
/** True when the prompt cannot be delivered to this agent on this platform. */
|
|
392
|
-
export function promptExceedsArgvLimit(agent, prompt, platform = process.platform) {
|
|
393
|
-
if (agentSupportsStdinPrompt(agent))
|
|
394
|
-
return false;
|
|
395
|
-
// 8191 is the cmd.exe ceiling; every Windows launch of a .cmd shim goes through it.
|
|
396
|
-
return platform === 'win32' && prompt.length > 8191;
|
|
397
|
-
}
|
|
398
391
|
export function buildArgs(agent, prompt, model, promptViaStdin = false, bedrock = false) {
|
|
399
392
|
// codex with no configured model resolves to undefined — omit --model
|
|
400
393
|
// entirely so the CLI picks its own account-compatible default.
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AGENT_NAMES, DEFAULT_AGENT_NAME, isAgentName } from './agent-names.js';
|
|
2
2
|
export type { AgentName } from './agent-names.js';
|
|
3
|
-
export { agentSupportsBedrock, agentSupportsStdinPrompt, buildArgs, checkAgentAuth, describeAgentFailure, extractSentinelOutput, parseMapTokenPropToolCallLines, parseSelectToolCallLines, parseTokenToolCallLines, parseToolCallLines,
|
|
3
|
+
export { agentSupportsBedrock, agentSupportsStdinPrompt, buildArgs, checkAgentAuth, describeAgentFailure, extractSentinelOutput, parseMapTokenPropToolCallLines, parseSelectToolCallLines, parseTokenToolCallLines, parseToolCallLines, resolveAgentModel, resolveBinary, runAgent, shouldUseStdinPrompt, } from './agent-runner.js';
|
|
4
4
|
export type { AgentAuthStatus, AgentDebugEvent, AgentRunResult, ClassifyComponentCall, ClassifyPropCall, ClassifySlotCall, ExcludePropCall, MapTokenPropCall, ParsedMapTokenPropToolCalls, ParsedSelectToolCalls, ParsedTokenToolCalls, ParsedToolCalls, RejectComponentCall, SelectComponentCall, SelectToolCall, SetGroupCall, SetTokenCall, ToolCall, TokenToolCall, } from './agent-runner.js';
|
|
5
5
|
export { createLocalCliAgentInvoker } from './agent-invoker.js';
|
|
6
6
|
export type { AgentInvoker, CreateLocalCliAgentInvokerOptions, InvokeAgentOptions } from './agent-invoker.js';
|
package/dist/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Agent identity
|
|
2
2
|
export { AGENT_NAMES, DEFAULT_AGENT_NAME, isAgentName } from './agent-names.js';
|
|
3
3
|
// Agent invocation (low-level)
|
|
4
|
-
export { agentSupportsBedrock, agentSupportsStdinPrompt, buildArgs, checkAgentAuth, describeAgentFailure, extractSentinelOutput, parseMapTokenPropToolCallLines, parseSelectToolCallLines, parseTokenToolCallLines, parseToolCallLines,
|
|
4
|
+
export { agentSupportsBedrock, agentSupportsStdinPrompt, buildArgs, checkAgentAuth, describeAgentFailure, extractSentinelOutput, parseMapTokenPropToolCallLines, parseSelectToolCallLines, parseTokenToolCallLines, parseToolCallLines, resolveAgentModel, resolveBinary, runAgent, shouldUseStdinPrompt, } from './agent-runner.js';
|
|
5
5
|
// Agent invocation (interface)
|
|
6
6
|
export { createLocalCliAgentInvoker } from './agent-invoker.js';
|
|
7
7
|
// Prompt building
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-generation",
|
|
3
|
-
"version": "2.34.2-dev-build-
|
|
3
|
+
"version": "2.34.2-dev-build-a06e747.0",
|
|
4
4
|
"description": "Agent-invocation and skill-prompt engine for the Contentful Experience Design System SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"skills/"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentful/experience-design-system-types": "2.34.2-dev-build-
|
|
25
|
+
"@contentful/experience-design-system-types": "2.34.2-dev-build-a06e747.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@tsconfig/node24": "^24.0.4",
|