@open-mercato/cli 0.6.8-develop.7042.1.413df59570 → 0.6.8-develop.7046.1.153faed87a
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/agentic/guides/module-facts.json +126 -126
- package/dist/agentic/guides/module-facts.v2.json +126 -126
- package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
- package/dist/agentic/guides/modules/api_docs/index.md +1 -1
- package/dist/agentic/guides/modules/api_keys/index.md +1 -1
- package/dist/agentic/guides/modules/attachments/index.md +1 -1
- package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
- package/dist/agentic/guides/modules/auth/index.md +1 -1
- package/dist/agentic/guides/modules/business_rules/index.md +1 -1
- package/dist/agentic/guides/modules/catalog/index.md +1 -1
- package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
- package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
- package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
- package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
- package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
- package/dist/agentic/guides/modules/checkout/index.md +1 -1
- package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
- package/dist/agentic/guides/modules/configs/index.md +1 -1
- package/dist/agentic/guides/modules/content/index.md +1 -1
- package/dist/agentic/guides/modules/currencies/index.md +1 -1
- package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
- package/dist/agentic/guides/modules/customers/index.md +1 -1
- package/dist/agentic/guides/modules/dashboards/index.md +1 -1
- package/dist/agentic/guides/modules/data_sync/index.md +1 -1
- package/dist/agentic/guides/modules/design_system/index.md +1 -1
- package/dist/agentic/guides/modules/devices/index.md +1 -1
- package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
- package/dist/agentic/guides/modules/directory/index.md +1 -1
- package/dist/agentic/guides/modules/documents/index.md +1 -1
- package/dist/agentic/guides/modules/entities/index.md +1 -1
- package/dist/agentic/guides/modules/eudr/index.md +1 -1
- package/dist/agentic/guides/modules/events/index.md +1 -1
- package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
- package/dist/agentic/guides/modules/generators/index.md +1 -1
- package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
- package/dist/agentic/guides/modules/integrations/index.md +1 -1
- package/dist/agentic/guides/modules/messages/index.md +1 -1
- package/dist/agentic/guides/modules/notifications/index.md +1 -1
- package/dist/agentic/guides/modules/onboarding/index.md +1 -1
- package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
- package/dist/agentic/guides/modules/perspectives/index.md +1 -1
- package/dist/agentic/guides/modules/planner/index.md +1 -1
- package/dist/agentic/guides/modules/portal/index.md +1 -1
- package/dist/agentic/guides/modules/progress/index.md +1 -1
- package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
- package/dist/agentic/guides/modules/query_index/index.md +1 -1
- package/dist/agentic/guides/modules/record_locks/index.md +1 -1
- package/dist/agentic/guides/modules/resources/index.md +1 -1
- package/dist/agentic/guides/modules/sales/index.md +1 -1
- package/dist/agentic/guides/modules/scheduler/index.md +1 -1
- package/dist/agentic/guides/modules/search/index.md +1 -1
- package/dist/agentic/guides/modules/security/index.md +1 -1
- package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
- package/dist/agentic/guides/modules/sso/index.md +1 -1
- package/dist/agentic/guides/modules/staff/index.md +1 -1
- package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
- package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
- package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
- package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
- package/dist/agentic/guides/modules/translations/index.md +1 -1
- package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
- package/dist/agentic/guides/modules/webhooks/index.md +1 -1
- package/dist/agentic/guides/modules/wms/index.md +1 -1
- package/dist/agentic/guides/modules/workflows/index.md +1 -1
- package/dist/agentic/guides/reference-module-facts.json +1 -1
- package/dist/agentic/guides/upstream/manifest.json +1 -1
- package/dist/agentic/shared/ai/harness/RELEASE.md +2 -2
- package/dist/agentic/shared/scripts/run-agent-harness-release.mjs +21 -9
- package/package.json +6 -6
|
@@ -25,6 +25,11 @@ const GENERATED_TEST_RUNNERS = new Set(['jest', 'playwright-api', 'playwright-br
|
|
|
25
25
|
const RESULT_LIMIT = 262_144
|
|
26
26
|
const ERROR_LIMIT = 2_000
|
|
27
27
|
const VIOLATION_LIMIT = 300
|
|
28
|
+
// The routing step hands this to the evaluator as --timeout and derives its own process budget from
|
|
29
|
+
// the same value, so the two cannot be stated separately; the help text reads it rather than
|
|
30
|
+
// repeating it (#5078).
|
|
31
|
+
export const DEFAULT_CASE_TIMEOUT_MS = 600_000
|
|
32
|
+
export const ROUTING_STEP_SLACK_MS = 60_000
|
|
28
33
|
const COPY_EXCLUDED_PREFIXES = [
|
|
29
34
|
'.git', '.next', '.turbo', '.cache', 'build', 'coverage', 'dist', 'node_modules', 'out',
|
|
30
35
|
'.ai/framework-context', '.ai/harness/results', '.ai/reports',
|
|
@@ -50,7 +55,7 @@ Options:
|
|
|
50
55
|
--portability-runner <runner> Optional different runner for the 49-case read-only portability lane
|
|
51
56
|
--prepare-targets <absolute> Clone this fresh scaffold once per writable case under an empty/new directory
|
|
52
57
|
--writable-targets <absolute> JSON map of every writable case to a fresh disposable app
|
|
53
|
-
--case-timeout <ms> Per-model invocation timeout floor
|
|
58
|
+
--case-timeout <ms> Per-model invocation timeout floor for the routing, writable, and review lanes (default: ${DEFAULT_CASE_TIMEOUT_MS})
|
|
54
59
|
--validation-timeout <ms> Timeout for each yarn validation (default: 1800000)
|
|
55
60
|
--acknowledge-writes Required: fixture preparation and validation commands write files
|
|
56
61
|
--help Show this help
|
|
@@ -76,7 +81,7 @@ function parseArgs(argv) {
|
|
|
76
81
|
portabilityRunner: undefined,
|
|
77
82
|
prepareTargets: undefined,
|
|
78
83
|
writableTargets: undefined,
|
|
79
|
-
caseTimeout:
|
|
84
|
+
caseTimeout: DEFAULT_CASE_TIMEOUT_MS,
|
|
80
85
|
validationTimeout: 1_800_000,
|
|
81
86
|
acknowledgeWrites: false,
|
|
82
87
|
help: false,
|
|
@@ -118,6 +123,17 @@ export function effectiveCaseTimeout(cases, caseId, fallback) {
|
|
|
118
123
|
return Math.max(fallback, Number.isInteger(declared) ? declared : 0)
|
|
119
124
|
}
|
|
120
125
|
|
|
126
|
+
export function routingInvocation({ evaluator, root, step, cases, caseTimeout }) {
|
|
127
|
+
const args = [evaluator, '--root', root, '--runner', step.runner]
|
|
128
|
+
if (step.lane === 'primary') args.push('--all')
|
|
129
|
+
args.push('--model', step.modelSelector, '--timeout', String(caseTimeout))
|
|
130
|
+
const timeout = step.expectedCaseIds.reduce(
|
|
131
|
+
(total, caseId) => total + effectiveCaseTimeout(cases, caseId, caseTimeout),
|
|
132
|
+
ROUTING_STEP_SLACK_MS,
|
|
133
|
+
)
|
|
134
|
+
return { args, timeout }
|
|
135
|
+
}
|
|
136
|
+
|
|
121
137
|
function readJson(file) {
|
|
122
138
|
return JSON.parse(fs.readFileSync(file, 'utf8'))
|
|
123
139
|
}
|
|
@@ -1614,13 +1630,9 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
1614
1630
|
} else {
|
|
1615
1631
|
for (const step of plan.steps.filter((entry) => entry.kind === 'routing')) {
|
|
1616
1632
|
const before = resultFiles(root)
|
|
1617
|
-
const
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
const routingTimeout = step.expectedCaseIds.reduce(
|
|
1621
|
-
(total, caseId) => total + effectiveCaseTimeout(cases, caseId, options.caseTimeout),
|
|
1622
|
-
60_000,
|
|
1623
|
-
)
|
|
1633
|
+
const { args: routingArgs, timeout: routingTimeout } = routingInvocation({
|
|
1634
|
+
evaluator, root, step, cases, caseTimeout: options.caseTimeout,
|
|
1635
|
+
})
|
|
1624
1636
|
const execution = execute(process.execPath, routingArgs, root, routingTimeout)
|
|
1625
1637
|
const artifacts = readNewResults(root, before)
|
|
1626
1638
|
resultArtifacts.push(...artifacts)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/cli",
|
|
3
|
-
"version": "0.6.8-develop.
|
|
3
|
+
"version": "0.6.8-develop.7046.1.153faed87a",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@mikro-orm/decorators": "^7.1.8",
|
|
61
61
|
"@mikro-orm/migrations": "^7.1.8",
|
|
62
62
|
"@mikro-orm/postgresql": "^7.1.8",
|
|
63
|
-
"@open-mercato/queue": "0.6.8-develop.
|
|
64
|
-
"@open-mercato/shared": "0.6.8-develop.
|
|
65
|
-
"@open-mercato/telemetry": "0.6.8-develop.
|
|
63
|
+
"@open-mercato/queue": "0.6.8-develop.7046.1.153faed87a",
|
|
64
|
+
"@open-mercato/shared": "0.6.8-develop.7046.1.153faed87a",
|
|
65
|
+
"@open-mercato/telemetry": "0.6.8-develop.7046.1.153faed87a",
|
|
66
66
|
"cross-spawn": "^7.0.6",
|
|
67
67
|
"pg": "8.22.0",
|
|
68
68
|
"semver": "^7.8.5",
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"typescript-js": "npm:typescript@6.0.3"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@open-mercato/shared": "0.6.8-develop.
|
|
76
|
+
"@open-mercato/shared": "0.6.8-develop.7046.1.153faed87a"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@open-mercato/shared": "0.6.8-develop.
|
|
79
|
+
"@open-mercato/shared": "0.6.8-develop.7046.1.153faed87a",
|
|
80
80
|
"@types/jest": "^30.0.0",
|
|
81
81
|
"jest": "^30.4.2",
|
|
82
82
|
"ts-jest": "^29.4.12"
|