devlyn-cli 2.2.0 → 2.2.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/benchmark/auto-resolve/README.md +7 -4
- package/benchmark/auto-resolve/fixtures/F1-cli-trivial-flag/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F10-persist-write-collision/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F11-batch-import-all-or-nothing/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F12-webhook-raw-body-signature/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F15-frozen-diff-race-review/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F16-cli-quote-tax-rules/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F2-cli-medium-subcommand/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F21-cli-scheduler-priority/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F22-cli-ledger-close/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F23-cli-fulfillment-wave/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F25-cli-cart-promotion-rules/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F26-cli-payout-ledger-rules/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F3-backend-contract-risk/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F4-web-browser-design/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F5-fix-loop-red-green/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F6-dep-audit-native-module/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F7-out-of-scope-trap/spec.md +0 -1
- package/benchmark/auto-resolve/fixtures/F9-e2e-ideate-to-resolve/spec.md +0 -3
- package/benchmark/auto-resolve/scripts/oracle-scope-tier-a.py +0 -11
- package/benchmark/auto-resolve/scripts/oracle-scope-tier-b.py +0 -10
- package/benchmark/auto-resolve/scripts/run-fixture.sh +23 -3
- package/config/skills/_shared/spec-verify-check.py +51 -0
- package/config/skills/devlyn:resolve/SKILL.md +12 -5
- package/config/skills/devlyn:resolve/references/phases/probe-derive.md +24 -5
- package/package.json +1 -1
- package/scripts/lint-skills.sh +39 -22
- package/benchmark/auto-resolve/fixtures/F27-cli-gift-card-redemption/NOTES.md +0 -24
- package/benchmark/auto-resolve/fixtures/F27-cli-gift-card-redemption/expected.json +0 -66
- package/benchmark/auto-resolve/fixtures/F27-cli-gift-card-redemption/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F27-cli-gift-card-redemption/setup.sh +0 -22
- package/benchmark/auto-resolve/fixtures/F27-cli-gift-card-redemption/spec.md +0 -62
- package/benchmark/auto-resolve/fixtures/F27-cli-gift-card-redemption/task.txt +0 -9
- package/benchmark/auto-resolve/fixtures/F27-cli-gift-card-redemption/verifiers/exact-success.js +0 -48
- package/benchmark/auto-resolve/fixtures/F27-cli-gift-card-redemption/verifiers/insufficient-balance.js +0 -36
- package/benchmark/auto-resolve/fixtures/F27-cli-gift-card-redemption/verifiers/rules-source.js +0 -55
- package/benchmark/auto-resolve/fixtures/F28-cli-rental-quote-rules/NOTES.md +0 -20
- package/benchmark/auto-resolve/fixtures/F28-cli-rental-quote-rules/expected.json +0 -66
- package/benchmark/auto-resolve/fixtures/F28-cli-rental-quote-rules/metadata.json +0 -10
- package/benchmark/auto-resolve/fixtures/F28-cli-rental-quote-rules/setup.sh +0 -23
- package/benchmark/auto-resolve/fixtures/F28-cli-rental-quote-rules/spec.md +0 -66
- package/benchmark/auto-resolve/fixtures/F28-cli-rental-quote-rules/task.txt +0 -11
- package/benchmark/auto-resolve/fixtures/F28-cli-rental-quote-rules/verifiers/exact-success.js +0 -44
- package/benchmark/auto-resolve/fixtures/F28-cli-rental-quote-rules/verifiers/rules-source.js +0 -58
- package/benchmark/auto-resolve/fixtures/F28-cli-rental-quote-rules/verifiers/unavailable-inventory.js +0 -35
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
const assert = require('node:assert');
|
|
2
|
-
const fs = require('node:fs');
|
|
3
|
-
const os = require('node:os');
|
|
4
|
-
const path = require('node:path');
|
|
5
|
-
const { spawnSync } = require('node:child_process');
|
|
6
|
-
|
|
7
|
-
const workdir = process.env.BENCH_WORKDIR || process.cwd();
|
|
8
|
-
const input = path.join(os.tmpdir(), `rental-stock-${process.pid}.json`);
|
|
9
|
-
|
|
10
|
-
fs.writeFileSync(input, JSON.stringify({
|
|
11
|
-
start_date: '2026-05-08',
|
|
12
|
-
end_date: '2026-05-10',
|
|
13
|
-
coupon: null,
|
|
14
|
-
protection: false,
|
|
15
|
-
items: [
|
|
16
|
-
{ sku: 'CAM', qty: 1 },
|
|
17
|
-
{ sku: 'CAM', qty: 2 }
|
|
18
|
-
]
|
|
19
|
-
}));
|
|
20
|
-
|
|
21
|
-
const proc = spawnSync('node', ['bin/cli.js', 'rental-quote', '--input', input], {
|
|
22
|
-
cwd: workdir,
|
|
23
|
-
encoding: 'utf8'
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
assert.strictEqual(proc.status, 2);
|
|
27
|
-
assert.strictEqual(proc.stdout, '');
|
|
28
|
-
assert.deepStrictEqual(JSON.parse(proc.stderr), {
|
|
29
|
-
error: 'unavailable_inventory',
|
|
30
|
-
sku: 'CAM',
|
|
31
|
-
available: 2,
|
|
32
|
-
requested: 3
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
process.stdout.write(JSON.stringify({ ok: true }) + '\n');
|