keystone-cli 1.0.0 → 1.0.1
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/README.md
CHANGED
|
@@ -476,7 +476,7 @@ All steps support common features:
|
|
|
476
476
|
- `transform`: Post-process output using expressions.
|
|
477
477
|
- `learn`: Auto-index for few-shot.
|
|
478
478
|
- `reflexion`: Self-correction loop.
|
|
479
|
-
- `auto_heal`: LLM-powered automatic error recovery
|
|
479
|
+
- `auto_heal`: LLM-powered automatic error recovery.
|
|
480
480
|
- `inputSchema` / `outputSchema`: JSON Schema validation.
|
|
481
481
|
- `outputRetries`: Max retries for output validation failures.
|
|
482
482
|
- `repairStrategy`: Strategy for output repair (`reask`, `repair`, `hybrid`).
|
package/package.json
CHANGED
|
@@ -325,9 +325,7 @@ export async function executeEngineStep(
|
|
|
325
325
|
throw new Error(`Engine command "${command}" is not in the allowlist. Allowed: ${allowedList}`);
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
const versionArgs = allowlistMatch.entry.versionArgs
|
|
329
|
-
? allowlistMatch.entry.versionArgs
|
|
330
|
-
: ['--version'];
|
|
328
|
+
const versionArgs = allowlistMatch.entry.versionArgs ?? ['--version'];
|
|
331
329
|
const versionOutput = await checkEngineVersion(command, versionArgs, env, cwd, abortSignal);
|
|
332
330
|
if (!versionOutput.includes(allowlistMatch.entry.version)) {
|
|
333
331
|
throw new Error(
|
|
@@ -12,7 +12,7 @@ You are the Keystone Architect. Your goal is to design and generate high-quality
|
|
|
12
12
|
## Workflow Schema (.yaml)
|
|
13
13
|
- **name**: Unique identifier for the workflow.
|
|
14
14
|
- **description**: (Optional) Description of the workflow.
|
|
15
|
-
- **inputs**: Map of `{ type: 'string'|'number'|'boolean'|'array'|'object', default: any, description
|
|
15
|
+
- **inputs**: Map of `{ type: 'string'|'number'|'boolean'|'array'|'object', default: any, description?: string }` under the `inputs` key.
|
|
16
16
|
- **outputs**: Map of expressions (e.g., `${{ steps.id.output }}`) under the `outputs` key.
|
|
17
17
|
- **outputSchema**: (Optional) JSON Schema for final workflow outputs.
|
|
18
18
|
- **env**: (Optional) Map of workflow-level environment variables.
|
|
@@ -59,7 +59,7 @@ Markdown files with YAML frontmatter:
|
|
|
59
59
|
## Expression Syntax
|
|
60
60
|
- `${{ inputs.name }}`
|
|
61
61
|
- `${{ steps.id.output }}`
|
|
62
|
-
- `${{ steps.id.status }}` (e.g., `'pending'`, `'running'`, `'success'`, `'failed'`, `'skipped'`)
|
|
62
|
+
- `${{ steps.id.status }}` (e.g., `'pending'`, `'running'`, `'success'`, `'failed'`, `'paused'`, `'suspended'`, `'skipped'`, `'canceled'`, `'waiting'`)
|
|
63
63
|
- `${{ args.paramName }}` (used inside agent tools)
|
|
64
64
|
- `${{ item }}` (current item in a `foreach` loop)
|
|
65
65
|
- `${{ secrets.NAME }}` (access redacted secrets)
|
|
@@ -3,7 +3,7 @@ description: "Test the foreach race condition fix and .every() support"
|
|
|
3
3
|
|
|
4
4
|
outputs:
|
|
5
5
|
all_success: ${{ steps.process_items.items.every(s => s.status == 'success') }}
|
|
6
|
-
item_count: ${{ steps.process_items.
|
|
6
|
+
item_count: ${{ steps.process_items.output.length }}
|
|
7
7
|
first_output: ${{ steps.process_items.items[0].output }}
|
|
8
8
|
|
|
9
9
|
steps:
|
|
@@ -39,16 +39,16 @@ describe('ResourceLoader', () => {
|
|
|
39
39
|
expect(ResourceLoader.isDirectory(testFile)).toBe(false);
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
test('should
|
|
42
|
+
test('should expose embedded assets manifest when available', () => {
|
|
43
43
|
const assets = ResourceLoader.getEmbeddedAssets();
|
|
44
44
|
const keys = Object.keys(assets);
|
|
45
|
-
// We expect at least the default seeded workflows if they exist in .keystone
|
|
46
|
-
expect(keys.length).toBeGreaterThan(0);
|
|
47
45
|
|
|
48
|
-
//
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
// Bundled assets only exist in compiled builds; dev/test may be empty.
|
|
47
|
+
if (keys.length === 0) {
|
|
48
|
+
expect(keys.length).toBe(0);
|
|
49
|
+
return;
|
|
52
50
|
}
|
|
51
|
+
|
|
52
|
+
expect(Object.values(assets).every((value) => typeof value === 'string')).toBe(true);
|
|
53
53
|
});
|
|
54
54
|
});
|