@evomap/evolver-cli 2.0.2 → 2.0.12
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/assetRepair.d.ts +24 -0
- package/dist/assetRepair.js +164 -0
- package/dist/autoDistillLlm.d.ts +20 -0
- package/dist/autoDistillLlm.js +56 -2
- package/dist/cliContracts.d.ts +5 -0
- package/dist/cliContracts.js +263 -52
- package/dist/dispatch.js +2 -0
- package/dist/lifecycle.d.ts +95 -5
- package/dist/lifecycle.js +4099 -241
- package/dist/lifecycleBootstrapTransaction.d.ts +235 -0
- package/dist/lifecycleBootstrapTransaction.js +2182 -0
- package/dist/repairedAssetStore.d.ts +2 -0
- package/dist/repairedAssetStore.js +12 -0
- package/dist/reuse.d.ts +4 -1
- package/dist/reuse.js +212 -107
- package/dist/sync.d.ts +1 -1
- package/dist/sync.js +761 -174
- package/dist/workflowRuntime.js +5 -4
- package/package.json +7 -7
package/dist/workflowRuntime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { realpathSync, statSync } from 'node:fs';
|
|
3
3
|
import { basename, dirname, isAbsolute, join, resolve, sep } from 'node:path';
|
|
4
|
-
import { algo, assetstore, events, exec, verify, wire, workflow } from '@evomap/evolver-core';
|
|
4
|
+
import { algo, assetstore, events, exec, schema, verify, wire, workflow } from '@evomap/evolver-core';
|
|
5
5
|
import { readAutoExecConfig } from './autoexecConfig.js';
|
|
6
6
|
import { runRequiredSandboxedValidation } from './requiredSandboxValidation.js';
|
|
7
7
|
const DEFAULT_MAX_CONCURRENT_RUNS = 4;
|
|
@@ -256,10 +256,11 @@ function safeScore(value) {
|
|
|
256
256
|
return Number.isFinite(value) ? Math.max(0, Math.min(1, value)) : 0;
|
|
257
257
|
}
|
|
258
258
|
function diffSummary(result) {
|
|
259
|
-
|
|
259
|
+
// #961: snake_case 优先, 兼容读旧 camelCase 存量资产(gitDiffOf).
|
|
260
|
+
const diff = result.proofOfWork?.kind === 'git_diff' ? schema.gitDiffOf(result.proofOfWork) : undefined;
|
|
260
261
|
return {
|
|
261
|
-
changedFiles: Number.isSafeInteger(diff?.files) && (diff?.files ?? -1) >= 0 ? diff
|
|
262
|
-
changedLines: Number.isSafeInteger(diff?.lines) && (diff?.lines ?? -1) >= 0 ? diff
|
|
262
|
+
changedFiles: Number.isSafeInteger(diff?.files) && (diff?.files ?? -1) >= 0 ? (diff?.files ?? 0) : 0,
|
|
263
|
+
changedLines: Number.isSafeInteger(diff?.lines) && (diff?.lines ?? -1) >= 0 ? (diff?.lines ?? 0) : 0,
|
|
263
264
|
};
|
|
264
265
|
}
|
|
265
266
|
async function requireReviewedGene(context, store, provenance, review) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evomap/evolver-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@evomap/evolver-core": "2.0.
|
|
27
|
-
"@evomap/evolver-adapter-public": "2.0.
|
|
28
|
-
"@evomap/evolver-mcp": "2.0.
|
|
29
|
-
"@evomap/evolver-proxy": "2.0.
|
|
30
|
-
"@evomap/evolver-runtime-adapters": "2.0.
|
|
31
|
-
"@evomap/evolver-webui": "2.0.
|
|
26
|
+
"@evomap/evolver-core": "2.0.12",
|
|
27
|
+
"@evomap/evolver-adapter-public": "2.0.12",
|
|
28
|
+
"@evomap/evolver-mcp": "2.0.12",
|
|
29
|
+
"@evomap/evolver-proxy": "2.0.12",
|
|
30
|
+
"@evomap/evolver-runtime-adapters": "2.0.12",
|
|
31
|
+
"@evomap/evolver-webui": "2.0.12"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|