@evomap/evolver-cli 2.0.0-beta.2 → 2.0.0-beta.22
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/antiGeneBenchmark.js +2 -0
- package/dist/antiGeneRollout.js +9 -3
- package/dist/assetHealth.d.ts +6 -0
- package/dist/assetHealth.js +107 -0
- package/dist/assetRepair.d.ts +24 -0
- package/dist/assetRepair.js +172 -0
- package/dist/assetSidecarRecovery.d.ts +14 -0
- package/dist/assetSidecarRecovery.js +171 -0
- package/dist/assetTrust.d.ts +24 -0
- package/dist/assetTrust.js +231 -0
- package/dist/atp.d.ts +10 -5
- package/dist/atp.js +119 -26
- package/dist/atpAutoBuyer.d.ts +120 -0
- package/dist/atpAutoBuyer.js +814 -0
- package/dist/atpAutoDeliver.js +2 -2
- package/dist/autoDistillAntiGene.js +7 -5
- package/dist/autoDistillLlm.d.ts +26 -0
- package/dist/autoDistillLlm.js +119 -22
- package/dist/autoDistillTranscript.js +3 -2
- package/dist/autoexec.d.ts +111 -24
- package/dist/autoexec.js +887 -120
- package/dist/autoexecConfig.d.ts +10 -0
- package/dist/autoexecConfig.js +69 -0
- package/dist/cli.js +13 -0
- package/dist/cliContracts.d.ts +33 -2
- package/dist/cliContracts.js +818 -78
- package/dist/commandCatalog.d.ts +72 -0
- package/dist/commandCatalog.js +120 -0
- package/dist/commands.d.ts +1 -0
- package/dist/commands.js +1 -0
- package/dist/curriculumCapabilityGaps.d.ts +6 -0
- package/dist/curriculumCapabilityGaps.js +24 -0
- package/dist/cycleConsumer.d.ts +17 -2
- package/dist/cycleConsumer.js +374 -50
- package/dist/dashboard.d.ts +13 -1
- package/dist/dashboard.js +235 -18
- package/dist/dispatch.d.ts +9 -2
- package/dist/dispatch.js +29 -6
- package/dist/distillAdmission.d.ts +13 -0
- package/dist/distillAdmission.js +35 -0
- package/dist/distillObserver.js +27 -12
- package/dist/distillPrimitives.d.ts +11 -8
- package/dist/distillPrimitives.js +116 -22
- package/dist/doctor.d.ts +13 -0
- package/dist/doctor.js +177 -10
- package/dist/identityHome.d.ts +9 -0
- package/dist/identityHome.js +47 -0
- package/dist/index.d.ts +73 -40
- package/dist/index.js +745 -207
- package/dist/issueReport.d.ts +7 -0
- package/dist/issueReport.js +291 -0
- package/dist/learningTrace.d.ts +15 -0
- package/dist/learningTrace.js +73 -0
- package/dist/lifecycle.d.ts +199 -2
- package/dist/lifecycle.js +4999 -152
- package/dist/lifecycleBootstrapTransaction.d.ts +235 -0
- package/dist/lifecycleBootstrapTransaction.js +2182 -0
- package/dist/localMemoryGraph.d.ts +184 -0
- package/dist/localMemoryGraph.js +2689 -0
- package/dist/login.d.ts +1 -1
- package/dist/login.js +3 -3
- package/dist/materialPackage.js +3 -6
- package/dist/materialSnapshot.d.ts +35 -1
- package/dist/materialSnapshot.js +265 -18
- package/dist/memoryGraphOps.d.ts +8 -0
- package/dist/memoryGraphOps.js +140 -0
- package/dist/migrate/assetFormatMap.d.ts +61 -0
- package/dist/migrate/assetFormatMap.js +53 -0
- package/dist/migrate/envTranslate.d.ts +26 -0
- package/dist/migrate/envTranslate.js +147 -0
- package/dist/migrate/fieldMap.d.ts +7 -5
- package/dist/migrate/fieldMap.js +20 -14
- package/dist/migrate/oauthImport.d.ts +66 -0
- package/dist/migrate/oauthImport.js +667 -0
- package/dist/migrate/v1Import.d.ts +98 -1
- package/dist/migrate/v1Import.js +1532 -71
- package/dist/modelCompatibility.d.ts +10 -0
- package/dist/modelCompatibility.js +296 -0
- package/dist/promptRecallHook.d.ts +24 -0
- package/dist/promptRecallHook.js +425 -0
- package/dist/recallVerifyReport.d.ts +37 -0
- package/dist/recallVerifyReport.js +244 -0
- package/dist/recipe.d.ts +14 -2
- package/dist/recipe.js +543 -65
- package/dist/repairedAssetStore.d.ts +2 -0
- package/dist/repairedAssetStore.js +12 -0
- package/dist/requiredSandboxValidation.d.ts +5 -0
- package/dist/requiredSandboxValidation.js +4 -0
- package/dist/reuse.d.ts +18 -4
- package/dist/reuse.js +375 -107
- package/dist/reviewFilter.d.ts +3 -1
- package/dist/reviewFilter.js +3 -1
- package/dist/runtimeCapabilities.d.ts +18 -0
- package/dist/runtimeCapabilities.js +81 -0
- package/dist/runtimeSessionSource.d.ts +8 -2
- package/dist/runtimeSessionSource.js +63 -11
- package/dist/selectionPolicyConfig.d.ts +8 -0
- package/dist/selectionPolicyConfig.js +18 -0
- package/dist/semanticIdfConfig.d.ts +2 -0
- package/dist/semanticIdfConfig.js +4 -0
- package/dist/sessionIngest.d.ts +43 -0
- package/dist/sessionIngest.js +180 -0
- package/dist/setupHooks.d.ts +5 -0
- package/dist/setupHooks.js +330 -14
- package/dist/skill2gep.d.ts +13 -9
- package/dist/skill2gep.js +99 -36
- package/dist/skillDistill.d.ts +8 -4
- package/dist/skillDistill.js +39 -9
- package/dist/solo/mode.js +1 -0
- package/dist/sync.d.ts +13 -1
- package/dist/sync.js +1947 -265
- package/dist/thesis.d.ts +1 -1
- package/dist/thesis.js +20 -3
- package/dist/trajectoryExport.js +21 -3
- package/dist/v1Compat.d.ts +1 -0
- package/dist/v1Compat.js +9 -0
- package/dist/valueDigest.js +8 -1
- package/dist/windowsLegacyTaskCleanup.d.ts +228 -0
- package/dist/windowsLegacyTaskCleanup.js +1475 -0
- package/dist/workflow.d.ts +39 -0
- package/dist/workflow.js +386 -0
- package/dist/workflowRuntime.d.ts +66 -0
- package/dist/workflowRuntime.js +638 -0
- package/package.json +14 -7
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
import { events, issueReporter } from '@evomap/evolver-core';
|
|
3
|
+
import { loadEnvFileFromEnv } from '@evomap/evolver-mcp';
|
|
4
|
+
import { runDoctorChecks } from './doctor.js';
|
|
5
|
+
import { getCliVersion } from './version.js';
|
|
6
|
+
const GITHUB_FETCH_TIMEOUT_MS = 15_000;
|
|
7
|
+
function parseFlags(argv) {
|
|
8
|
+
const flags = {
|
|
9
|
+
json: false,
|
|
10
|
+
cycleIds: [],
|
|
11
|
+
eventIds: [],
|
|
12
|
+
traceIds: [],
|
|
13
|
+
steps: [],
|
|
14
|
+
diagnosticCodes: [],
|
|
15
|
+
approved: false,
|
|
16
|
+
notCreated: false,
|
|
17
|
+
abandon: false,
|
|
18
|
+
};
|
|
19
|
+
for (let index = 0; index < argv.length; index++) {
|
|
20
|
+
const arg = argv[index];
|
|
21
|
+
const next = () => argv[++index];
|
|
22
|
+
if (arg === '--root')
|
|
23
|
+
flags.root = next() ?? flags.root;
|
|
24
|
+
else if (arg === '--json')
|
|
25
|
+
flags.json = true;
|
|
26
|
+
else if (arg === '--source')
|
|
27
|
+
flags.source = next();
|
|
28
|
+
else if (arg === '--error-class')
|
|
29
|
+
flags.errorClass = next();
|
|
30
|
+
else if (arg === '--failure-class')
|
|
31
|
+
flags.failureClass = next();
|
|
32
|
+
else if (arg === '--cycle') {
|
|
33
|
+
const value = next();
|
|
34
|
+
if (value)
|
|
35
|
+
flags.cycleIds.push(value);
|
|
36
|
+
}
|
|
37
|
+
else if (arg === '--event') {
|
|
38
|
+
const value = next();
|
|
39
|
+
if (value)
|
|
40
|
+
flags.eventIds.push(value);
|
|
41
|
+
}
|
|
42
|
+
else if (arg === '--trace') {
|
|
43
|
+
const value = next();
|
|
44
|
+
if (value)
|
|
45
|
+
flags.traceIds.push(value);
|
|
46
|
+
}
|
|
47
|
+
else if (arg === '--step') {
|
|
48
|
+
const value = next();
|
|
49
|
+
if (value)
|
|
50
|
+
flags.steps.push(value);
|
|
51
|
+
}
|
|
52
|
+
else if (arg === '--diagnostic') {
|
|
53
|
+
const value = next();
|
|
54
|
+
if (value)
|
|
55
|
+
flags.diagnosticCodes.push(value);
|
|
56
|
+
}
|
|
57
|
+
else if (arg === '--repo')
|
|
58
|
+
flags.repo = next();
|
|
59
|
+
else if (arg === '--approve')
|
|
60
|
+
flags.approved = true;
|
|
61
|
+
else if (arg === '--not-created')
|
|
62
|
+
flags.notCreated = true;
|
|
63
|
+
else if (arg === '--abandon')
|
|
64
|
+
flags.abandon = true;
|
|
65
|
+
else if (arg === '--issue-number') {
|
|
66
|
+
const value = Number(next());
|
|
67
|
+
if (Number.isInteger(value) && value > 0)
|
|
68
|
+
flags.issueNumber = value;
|
|
69
|
+
}
|
|
70
|
+
else if (arg === '--issue-url')
|
|
71
|
+
flags.issueUrl = next();
|
|
72
|
+
}
|
|
73
|
+
return flags;
|
|
74
|
+
}
|
|
75
|
+
function reporterOptions(flags, env, deps) {
|
|
76
|
+
const envRoot = env['EVOLVER_ISSUE_REPORT_ROOT']?.trim();
|
|
77
|
+
return {
|
|
78
|
+
rootDir: flags.root ?? (envRoot || join(events.evomapHome(env), 'evolution', 'issue-reporter')),
|
|
79
|
+
workspaceScope: process.cwd(),
|
|
80
|
+
env,
|
|
81
|
+
now: deps.now,
|
|
82
|
+
logger: (entry) => process.stderr.write(`[issue-report] fingerprint=${entry.fingerprint} status=${entry.status}${entry.errorClass ? ` error_class=${entry.errorClass}` : ''}\n`),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function writeResult(value, json) {
|
|
86
|
+
process.stdout.write(json ? `${JSON.stringify(value)}\n` : `${String(value)}\n`);
|
|
87
|
+
}
|
|
88
|
+
function publicDraftState(draft) {
|
|
89
|
+
return { fingerprint: draft.fingerprint, status: draft.status };
|
|
90
|
+
}
|
|
91
|
+
function publicSubmitResult(result) {
|
|
92
|
+
return {
|
|
93
|
+
status: result.status,
|
|
94
|
+
...('errorClass' in result ? { errorClass: result.errorClass } : {}),
|
|
95
|
+
draft: publicDraftState(result.draft),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function githubTransport(token, fetchFn) {
|
|
99
|
+
return {
|
|
100
|
+
async listOpenIssues(input) {
|
|
101
|
+
const controller = new AbortController();
|
|
102
|
+
const timer = setTimeout(() => controller.abort(), GITHUB_FETCH_TIMEOUT_MS);
|
|
103
|
+
timer.unref?.();
|
|
104
|
+
try {
|
|
105
|
+
const response = await fetchFn(`https://api.github.com/repos/${input.repo}/issues?state=open&per_page=${input.perPage}&page=${input.page}`, {
|
|
106
|
+
method: 'GET',
|
|
107
|
+
signal: controller.signal,
|
|
108
|
+
headers: {
|
|
109
|
+
accept: 'application/vnd.github+json',
|
|
110
|
+
authorization: `Bearer ${token}`,
|
|
111
|
+
'user-agent': 'evolver-v2-safe-issue-reporter',
|
|
112
|
+
'x-github-api-version': '2022-11-28',
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
if (!response.ok)
|
|
116
|
+
throw new issueReporter.GithubIssueTransportError('not_created');
|
|
117
|
+
const payload = await response.json();
|
|
118
|
+
if (!Array.isArray(payload))
|
|
119
|
+
throw new issueReporter.GithubIssueTransportError('not_created');
|
|
120
|
+
return {
|
|
121
|
+
issues: payload.map((item) => {
|
|
122
|
+
const record = item;
|
|
123
|
+
return {
|
|
124
|
+
number: Number(record['number']),
|
|
125
|
+
url: String(record['html_url'] ?? ''),
|
|
126
|
+
body: typeof record['body'] === 'string' ? record['body'] : '',
|
|
127
|
+
isPullRequest: record['pull_request'] !== undefined,
|
|
128
|
+
};
|
|
129
|
+
}),
|
|
130
|
+
hasNextPage: /<[^>]+>;\s*rel="next"/.test(response.headers.get('link') ?? ''),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
finally {
|
|
134
|
+
clearTimeout(timer);
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
async createIssue(input) {
|
|
138
|
+
const controller = new AbortController();
|
|
139
|
+
const timer = setTimeout(() => controller.abort(), GITHUB_FETCH_TIMEOUT_MS);
|
|
140
|
+
timer.unref?.();
|
|
141
|
+
try {
|
|
142
|
+
const response = await fetchFn(`https://api.github.com/repos/${input.repo}/issues`, {
|
|
143
|
+
method: 'POST',
|
|
144
|
+
signal: controller.signal,
|
|
145
|
+
headers: {
|
|
146
|
+
accept: 'application/vnd.github+json',
|
|
147
|
+
authorization: `Bearer ${token}`,
|
|
148
|
+
'content-type': 'application/json',
|
|
149
|
+
'user-agent': 'evolver-v2-safe-issue-reporter',
|
|
150
|
+
'x-github-api-version': '2022-11-28',
|
|
151
|
+
},
|
|
152
|
+
body: JSON.stringify({ title: input.title, body: input.body }),
|
|
153
|
+
});
|
|
154
|
+
if (!response.ok) {
|
|
155
|
+
throw new issueReporter.GithubIssueTransportError(response.status >= 400 && response.status < 500 ? 'not_created' : 'ambiguous');
|
|
156
|
+
}
|
|
157
|
+
const payload = await response.json();
|
|
158
|
+
return { number: Number(payload.number), url: String(payload.html_url ?? '') };
|
|
159
|
+
}
|
|
160
|
+
finally {
|
|
161
|
+
clearTimeout(timer);
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
export async function runIssueReportCommand(argv, deps = {}) {
|
|
167
|
+
const action = argv[0];
|
|
168
|
+
const fingerprint = argv[1];
|
|
169
|
+
const flags = parseFlags(argv.slice(action === 'submit' || action === 'reject' || action === 'resolve' ? 2 : 1));
|
|
170
|
+
const env = { ...(deps.env ?? process.env) };
|
|
171
|
+
if (action === 'submit' || action === 'resolve') {
|
|
172
|
+
const envLoad = loadEnvFileFromEnv(env);
|
|
173
|
+
if (envLoad.error) {
|
|
174
|
+
process.stderr.write('issue_report_env_file_error\n');
|
|
175
|
+
return 1;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
const options = reporterOptions(flags, env, { ...deps, env });
|
|
179
|
+
if (action === 'draft') {
|
|
180
|
+
let input = null;
|
|
181
|
+
if (flags.cycleIds[0]) {
|
|
182
|
+
input = issueReporter.issueReportInputFromCycle(events.readEvents(), flags.cycleIds[0]);
|
|
183
|
+
}
|
|
184
|
+
else if (flags.source === 'doctor') {
|
|
185
|
+
input = issueReporter.issueReportInputFromDoctor(runDoctorChecks().map(({ name, status }) => ({ name, status })));
|
|
186
|
+
}
|
|
187
|
+
else if (issueReporter.isIssueReportSource(flags.source) && flags.errorClass) {
|
|
188
|
+
input = {
|
|
189
|
+
source: flags.source,
|
|
190
|
+
errorClass: flags.errorClass,
|
|
191
|
+
failureClass: flags.failureClass,
|
|
192
|
+
cycleIds: flags.cycleIds,
|
|
193
|
+
eventIds: flags.eventIds,
|
|
194
|
+
traceIds: flags.traceIds,
|
|
195
|
+
reproductionSteps: flags.steps,
|
|
196
|
+
diagnosticCodes: flags.diagnosticCodes,
|
|
197
|
+
version: getCliVersion(),
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
if (!input) {
|
|
201
|
+
process.stderr.write('用法: evolver issue-report draft (--cycle <id> | --source <doctor|review|event|cycle_failure> --error-class <class>) [--json]\n');
|
|
202
|
+
return 1;
|
|
203
|
+
}
|
|
204
|
+
if (flags.traceIds.length > 0) {
|
|
205
|
+
input.traceIds = [...(input.traceIds ?? []), ...flags.traceIds];
|
|
206
|
+
}
|
|
207
|
+
input.version ??= getCliVersion();
|
|
208
|
+
const result = issueReporter.createIssueDraft(input, options);
|
|
209
|
+
writeResult(flags.json ? result : `${result.status}: ${result.draft.fingerprint}`, flags.json);
|
|
210
|
+
return 0;
|
|
211
|
+
}
|
|
212
|
+
if ((action === 'submit' || action === 'reject' || action === 'resolve') && fingerprint) {
|
|
213
|
+
const lookup = issueReporter.lookupIssueDraft(options.rootDir, fingerprint);
|
|
214
|
+
if (lookup.status !== 'found') {
|
|
215
|
+
if (flags.json && /^[a-f0-9]{20}$/.test(fingerprint)) {
|
|
216
|
+
writeResult({
|
|
217
|
+
status: 'failed',
|
|
218
|
+
errorClass: lookup.status === 'missing' ? 'draft_not_found' : 'unsafe_draft',
|
|
219
|
+
draft: { fingerprint, status: 'draft' },
|
|
220
|
+
}, true);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
process.stderr.write('issue draft not found\n');
|
|
224
|
+
}
|
|
225
|
+
return 1;
|
|
226
|
+
}
|
|
227
|
+
const { draft } = lookup;
|
|
228
|
+
if (action === 'resolve') {
|
|
229
|
+
const repo = flags.repo ?? env['EVOLVER_ISSUE_REPO'];
|
|
230
|
+
const resolution = flags.notCreated
|
|
231
|
+
? { outcome: 'not_created' }
|
|
232
|
+
: flags.abandon
|
|
233
|
+
? { outcome: 'abandoned' }
|
|
234
|
+
: flags.issueNumber && flags.issueUrl && repo
|
|
235
|
+
? { outcome: 'submitted', issueNumber: flags.issueNumber, url: flags.issueUrl, repo }
|
|
236
|
+
: null;
|
|
237
|
+
if (!resolution) {
|
|
238
|
+
process.stderr.write('resolve requires --not-created, --abandon, or --issue-number/--issue-url/--repo\n');
|
|
239
|
+
return 1;
|
|
240
|
+
}
|
|
241
|
+
try {
|
|
242
|
+
const resolved = issueReporter.resolveIssueSubmission(fingerprint, resolution, options);
|
|
243
|
+
writeResult(flags.json ? publicDraftState(resolved) : `${resolved.status}: ${resolved.fingerprint}`, flags.json);
|
|
244
|
+
return 0;
|
|
245
|
+
}
|
|
246
|
+
catch (error) {
|
|
247
|
+
const errorClass = error instanceof issueReporter.IssueDraftConflictError
|
|
248
|
+
? error.errorClass
|
|
249
|
+
: 'invalid_resolution';
|
|
250
|
+
writeResult(flags.json ? { status: 'failed', errorClass, draft: publicDraftState(draft) } : `failed: ${draft.fingerprint}`, flags.json);
|
|
251
|
+
return 1;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (action === 'reject') {
|
|
255
|
+
let rejected;
|
|
256
|
+
try {
|
|
257
|
+
rejected = issueReporter.rejectIssueDraft(draft, options);
|
|
258
|
+
}
|
|
259
|
+
catch (error) {
|
|
260
|
+
if (!(error instanceof issueReporter.IssueDraftConflictError))
|
|
261
|
+
throw error;
|
|
262
|
+
const result = {
|
|
263
|
+
status: 'rate_limited',
|
|
264
|
+
errorClass: error.errorClass,
|
|
265
|
+
draft: publicDraftState(draft),
|
|
266
|
+
};
|
|
267
|
+
writeResult(flags.json ? result : `${result.status}: ${draft.fingerprint}`, flags.json);
|
|
268
|
+
return 1;
|
|
269
|
+
}
|
|
270
|
+
writeResult(flags.json ? publicDraftState(rejected) : `${rejected.status}: ${rejected.fingerprint}`, flags.json);
|
|
271
|
+
return rejected.status === 'submitted' ? 1 : 0;
|
|
272
|
+
}
|
|
273
|
+
const repo = flags.repo ?? env['EVOLVER_ISSUE_REPO'];
|
|
274
|
+
const token = env['GITHUB_TOKEN'] ?? env['GH_TOKEN'];
|
|
275
|
+
const operatorPolicy = env['EVOLVER_ISSUE_SUBMIT_POLICY']?.trim().toLowerCase() === 'allow';
|
|
276
|
+
if (!repo || !token) {
|
|
277
|
+
process.stderr.write('submit requires --repo and GITHUB_TOKEN/GH_TOKEN\n');
|
|
278
|
+
return 1;
|
|
279
|
+
}
|
|
280
|
+
const result = await issueReporter.submitIssueDraft(draft, {
|
|
281
|
+
repo,
|
|
282
|
+
approved: flags.approved || operatorPolicy,
|
|
283
|
+
approvalSource: operatorPolicy ? 'operator_policy' : flags.approved ? 'human' : undefined,
|
|
284
|
+
transport: githubTransport(token, deps.fetch ?? fetch),
|
|
285
|
+
}, options);
|
|
286
|
+
writeResult(flags.json ? publicSubmitResult(result) : `${result.status}: ${result.draft.fingerprint}`, flags.json);
|
|
287
|
+
return result.status === 'submitted' || result.status === 'already_submitted' ? 0 : 1;
|
|
288
|
+
}
|
|
289
|
+
process.stderr.write('用法: evolver issue-report <draft|submit|reject|resolve> ...\n');
|
|
290
|
+
return 1;
|
|
291
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { trace } from '@evomap/evolver-core';
|
|
2
|
+
export interface LearningTraceWiring {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
upload: 'on' | 'off' | 'no_credentials';
|
|
5
|
+
config: {
|
|
6
|
+
packetSink: trace.LearningPacketSink;
|
|
7
|
+
traceSink?: trace.TraceSink;
|
|
8
|
+
sourceRepo?: string;
|
|
9
|
+
proxyTraces?: {
|
|
10
|
+
dir: string;
|
|
11
|
+
readOptions?: trace.TraceReadOptions;
|
|
12
|
+
};
|
|
13
|
+
} | null;
|
|
14
|
+
}
|
|
15
|
+
export declare function resolveLearningTrace(env?: NodeJS.ProcessEnv): LearningTraceWiring;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Learning-trace wiring for the autoexec daemon (Learning Ops slices 2+3). Local file sinks are the
|
|
2
|
+
// always-on durability layer — per-run LearningPacket drafts land under ~/.evomap/evolution/learning-trace/
|
|
3
|
+
// (kill switch: EVOLVER_LEARNING_TRACE=0). Hub upload (slice 3) is opt-in via EVOLVER_LEARNING_TRACE_UPLOAD=1
|
|
4
|
+
// and rides the same OAuth credential as the other hub links; when enabled + credentialed, packets are teed
|
|
5
|
+
// file-first then uploaded best-effort, so a hub outage never loses the local record or affects a verdict.
|
|
6
|
+
import { events, trace } from '@evomap/evolver-core';
|
|
7
|
+
import { join } from 'node:path';
|
|
8
|
+
import { homedir } from 'node:os';
|
|
9
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
10
|
+
import { HubLearningPacketSink, TeeLearningPacketSink, connectPublicHub, resolveHubUrl, globalFetchLike, } from '@evomap/evolver-adapter-public';
|
|
11
|
+
import { resolveAtpSenderId } from './atp.js';
|
|
12
|
+
import { resolveIdentityHome } from './identityHome.js';
|
|
13
|
+
/** Same default node-secret resolution as trajectory export: env first, then ~/.evomap/node_secret. Best-effort —
|
|
14
|
+
* without a secret the fold still reads plaintext/metadata-only rows; encrypted envelopes are just skipped. */
|
|
15
|
+
function defaultNodeSecret(env) {
|
|
16
|
+
const envSecret = env['EVOMAP_NODE_SECRET'] ?? env['A2A_NODE_SECRET'];
|
|
17
|
+
if (typeof envSecret === 'string' && envSecret.length > 0)
|
|
18
|
+
return envSecret;
|
|
19
|
+
try {
|
|
20
|
+
const file = join(events.evomapHome(env), 'node_secret');
|
|
21
|
+
if (existsSync(file))
|
|
22
|
+
return readFileSync(file, 'utf8').trim() || undefined;
|
|
23
|
+
}
|
|
24
|
+
catch { /* secretless fold still covers unencrypted rows */ }
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
function resolveHubUpload(env) {
|
|
28
|
+
if (env['EVOLVER_LEARNING_TRACE_UPLOAD'] !== '1')
|
|
29
|
+
return { sink: null, state: 'off' };
|
|
30
|
+
const configuredHubMode = env['EVOMAP_HUB_MODE'];
|
|
31
|
+
const publicUploadAllowed = configuredHubMode === undefined
|
|
32
|
+
|| configuredHubMode.trim().toLowerCase() === 'public';
|
|
33
|
+
if (!publicUploadAllowed)
|
|
34
|
+
return { sink: null, state: 'off' };
|
|
35
|
+
const dir = resolveIdentityHome(env) ?? join(homedir(), '.evomap');
|
|
36
|
+
if (!existsSync(join(dir, 'token.json')))
|
|
37
|
+
return { sink: null, state: 'no_credentials' };
|
|
38
|
+
try {
|
|
39
|
+
const hubUrl = resolveHubUrl(env);
|
|
40
|
+
const senderId = resolveAtpSenderId(env);
|
|
41
|
+
const { auth } = connectPublicHub({ hubUrl, authMode: 'oauth', evomapDir: dir, senderId: () => senderId });
|
|
42
|
+
return {
|
|
43
|
+
sink: new HubLearningPacketSink({ baseUrl: hubUrl, auth, fetchFn: globalFetchLike, nodeId: () => senderId }),
|
|
44
|
+
state: 'on',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
return { sink: null, state: 'no_credentials' };
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export function resolveLearningTrace(env = process.env) {
|
|
52
|
+
if (env['EVOLVER_LEARNING_TRACE'] === '0')
|
|
53
|
+
return { enabled: false, upload: 'off', config: null };
|
|
54
|
+
const dir = events.learningTraceDir(env);
|
|
55
|
+
const fileSink = new trace.FileLearningPacketSink(dir);
|
|
56
|
+
const upload = resolveHubUpload(env);
|
|
57
|
+
// Proxy llm_turn fold (slice 5): point the per-run fold at the proxy's trace day-files. Rides the same
|
|
58
|
+
// master switch — if the proxy isn't running the dir is simply empty and the fold is a no-op.
|
|
59
|
+
const nodeSecret = defaultNodeSecret(env);
|
|
60
|
+
return {
|
|
61
|
+
enabled: true,
|
|
62
|
+
upload: upload.state,
|
|
63
|
+
config: {
|
|
64
|
+
packetSink: upload.sink ? new TeeLearningPacketSink(fileSink, upload.sink) : fileSink,
|
|
65
|
+
traceSink: new trace.FileTraceSink(join(dir, 'trace-events.jsonl')),
|
|
66
|
+
sourceRepo: 'evolver-v2',
|
|
67
|
+
proxyTraces: {
|
|
68
|
+
dir: events.tracesDir(env),
|
|
69
|
+
...(nodeSecret ? { readOptions: { nodeSecret } } : {}),
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
package/dist/lifecycle.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
|
+
import { bootstrap as coreBootstrap, util as coreUtil } from '@evomap/evolver-core';
|
|
3
|
+
import { type BootstrapTransactionJournal, type BootstrapArtifactIdentity, type LegacyBootstrapMarkerRead } from './lifecycleBootstrapTransaction.js';
|
|
4
|
+
import { type LegacyTaskCleanupResult, type LegacyTaskRun } from './windowsLegacyTaskCleanup.js';
|
|
5
|
+
export declare function selectExistingPosixCommand(candidates: readonly string[], exists?: (path: string) => boolean): string;
|
|
6
|
+
export type ServiceTarget = 'launchd' | 'systemd' | 'windows';
|
|
7
|
+
export interface DaemonCommand {
|
|
8
|
+
command: string;
|
|
9
|
+
args: string[];
|
|
10
|
+
display: string;
|
|
11
|
+
}
|
|
2
12
|
interface ProcessIdentity {
|
|
3
13
|
executable?: string;
|
|
4
14
|
parentPid?: number;
|
|
5
15
|
startedAt?: number;
|
|
6
16
|
}
|
|
7
|
-
interface LifecyclePaths {
|
|
17
|
+
export interface LifecyclePaths {
|
|
8
18
|
home: string;
|
|
9
19
|
stateDir: string;
|
|
10
20
|
logDir: string;
|
|
@@ -18,23 +28,98 @@ export interface LifecycleStatus {
|
|
|
18
28
|
healthy?: boolean;
|
|
19
29
|
reason?: string;
|
|
20
30
|
logFile?: string;
|
|
31
|
+
startedAt?: string;
|
|
32
|
+
url?: string;
|
|
21
33
|
}
|
|
22
34
|
export interface LifecycleResult {
|
|
23
35
|
status: string;
|
|
36
|
+
/** Durable transaction identity for bootstrap success results. */
|
|
37
|
+
transactionId?: string;
|
|
24
38
|
pid?: number;
|
|
25
39
|
pids?: number[];
|
|
26
40
|
healthy?: boolean;
|
|
27
41
|
reason?: string;
|
|
28
42
|
logFile?: string;
|
|
29
43
|
files?: string[];
|
|
44
|
+
/** Verified legacy companion files intentionally preserved and never removed. */
|
|
45
|
+
preservedFiles?: string[];
|
|
30
46
|
service?: string;
|
|
47
|
+
autoexecHome?: string;
|
|
48
|
+
actions?: string[];
|
|
49
|
+
/** Files whose absent pre-state is owned by a first-run bootstrap transaction. */
|
|
50
|
+
bootstrapArtifacts?: string[];
|
|
51
|
+
/** Expected bytes recorded before a first-run bootstrap mutates the filesystem. */
|
|
52
|
+
bootstrapArtifactIdentities?: Record<string, BootstrapArtifactIdentity>;
|
|
31
53
|
}
|
|
54
|
+
type UnixRecoveryControllerModule = Pick<typeof import('@evomap/evolver-proxy'), 'provisionStableUnixRecoveryController' | 'stableUnixRecoveryControllerPathForTarget' | 'UNIX_RECOVERY_CONTROLLER_ARG'> & Partial<Pick<typeof import('@evomap/evolver-proxy'), 'provisionStableWindowsRecoveryController'>>;
|
|
55
|
+
type LoadUnixRecoveryController = () => Promise<UnixRecoveryControllerModule>;
|
|
56
|
+
type InspectDurableSelfUpdate = typeof import('@evomap/evolver-proxy')['inspectDurableSelfUpdate'];
|
|
32
57
|
interface RunLifecycleDeps {
|
|
33
58
|
argv1?: string;
|
|
34
59
|
env?: NodeJS.ProcessEnv;
|
|
60
|
+
loadUnixRecoveryController?: LoadUnixRecoveryController;
|
|
61
|
+
removeAutoexecService?: (target: ServiceTarget, dryRun: boolean) => LifecycleResult;
|
|
62
|
+
bootstrap?: BootstrapServiceDeps;
|
|
63
|
+
/** Test seam for the legacy v1 Windows scheduled-task cleanup subcommand (#956). */
|
|
64
|
+
cleanupLegacyTasks?: (options: {
|
|
65
|
+
env: NodeJS.ProcessEnv;
|
|
66
|
+
stateDir?: string;
|
|
67
|
+
dryRun?: boolean;
|
|
68
|
+
platform?: NodeJS.Platform;
|
|
69
|
+
run?: LegacyTaskRun;
|
|
70
|
+
}) => LegacyTaskCleanupResult;
|
|
71
|
+
/** Test seam for the legacy v1 task preimage restore subcommand (#956). */
|
|
72
|
+
restoreLegacyTaskPreimage?: (preimagePath: string, options: {
|
|
73
|
+
env: NodeJS.ProcessEnv;
|
|
74
|
+
platform?: NodeJS.Platform;
|
|
75
|
+
run?: LegacyTaskRun;
|
|
76
|
+
stateDir?: string;
|
|
77
|
+
}) => {
|
|
78
|
+
status: 'restored' | 'failed';
|
|
79
|
+
task?: string;
|
|
80
|
+
detail: string;
|
|
81
|
+
};
|
|
35
82
|
stdout?: (text: string) => void;
|
|
36
83
|
stderr?: (text: string) => void;
|
|
37
84
|
}
|
|
85
|
+
export interface BootstrapServiceDeps {
|
|
86
|
+
platform?: NodeJS.Platform;
|
|
87
|
+
run?: (command: string, args: readonly string[], timeoutMs?: number) => ServiceControlResult;
|
|
88
|
+
uid?: number;
|
|
89
|
+
now?: () => number;
|
|
90
|
+
lock?: {
|
|
91
|
+
maxTries?: number;
|
|
92
|
+
waitMs?: number;
|
|
93
|
+
};
|
|
94
|
+
health?: (paths: LifecyclePaths, env: NodeJS.ProcessEnv) => Promise<LifecycleStatus>;
|
|
95
|
+
readiness?: (stateDir: string) => coreBootstrap.LifecycleBootstrapReadiness | undefined;
|
|
96
|
+
readinessOwnerProcessStatus?: (owner: Pick<coreUtil.FileLockOwnerRecord, 'pid' | 'processStartIdentity'>) => coreUtil.FileLockOwnerProcessStatus;
|
|
97
|
+
healthTimeoutMs?: number;
|
|
98
|
+
install?: (target: ServiceTarget, flags: Record<string, string | true>, env: NodeJS.ProcessEnv, argv1: string | undefined, loadUnixRecoveryController?: LoadUnixRecoveryController, options?: InstallServiceOptions) => Promise<LifecycleResult>;
|
|
99
|
+
writeMarker?: (path: string, marker: coreBootstrap.LifecycleBootstrapMarker) => void;
|
|
100
|
+
inspectSelfUpdate?: InspectDurableSelfUpdate;
|
|
101
|
+
/** Test seam for the post-activation legacy v1 Windows task sweep (#956). */
|
|
102
|
+
legacyTaskCleanupRun?: LegacyTaskRun;
|
|
103
|
+
}
|
|
104
|
+
interface ServiceControlResult {
|
|
105
|
+
status: number | null;
|
|
106
|
+
error?: unknown;
|
|
107
|
+
stdout?: string;
|
|
108
|
+
}
|
|
109
|
+
interface InstallServiceOptions {
|
|
110
|
+
exclusive?: boolean;
|
|
111
|
+
transactionId?: string;
|
|
112
|
+
onArtifactPublished?: (path: string, claimPath: string) => void;
|
|
113
|
+
assertOwner?: () => void;
|
|
114
|
+
}
|
|
115
|
+
export interface RemoveAutoexecServiceDeps {
|
|
116
|
+
paths?: Partial<Record<ServiceTarget, string>>;
|
|
117
|
+
run?: (command: string, args: readonly string[]) => ServiceControlResult;
|
|
118
|
+
exists?: (path: string) => boolean;
|
|
119
|
+
remove?: (path: string) => void;
|
|
120
|
+
write?: (path: string, content: string, mode: number) => void;
|
|
121
|
+
uid?: number;
|
|
122
|
+
}
|
|
38
123
|
export type SessionStartSpawn = (command: string, args: readonly string[], options: Parameters<typeof spawn>[2]) => ReturnType<typeof spawn>;
|
|
39
124
|
interface SessionStartAutostartDeps {
|
|
40
125
|
stderr?: (text: string) => void;
|
|
@@ -44,6 +129,7 @@ interface SessionStartAutostartDeps {
|
|
|
44
129
|
export interface StopLifecycleDeps {
|
|
45
130
|
processCommandLine?: (pid: number) => string | undefined;
|
|
46
131
|
processIdentity?: (pid: number) => ProcessIdentity | undefined;
|
|
132
|
+
platform?: NodeJS.Platform;
|
|
47
133
|
}
|
|
48
134
|
export declare function runLifecycleCommand(argv: readonly string[], deps?: RunLifecycleDeps): Promise<number>;
|
|
49
135
|
export declare function maybeAutoRestartProxyForSessionStart(env?: NodeJS.ProcessEnv, argv1?: string | undefined, deps?: SessionStartAutostartDeps): Promise<void>;
|
|
@@ -54,22 +140,133 @@ export declare function lifecycleStatus(paths: LifecyclePaths, env?: NodeJS.Proc
|
|
|
54
140
|
quietSettingsReadError?: boolean;
|
|
55
141
|
stderr?: (text: string) => void;
|
|
56
142
|
}): Promise<LifecycleStatus>;
|
|
143
|
+
/** Extended connection status for `evolver daily`: includes hub_auth_status and last_sync_at from proxy. */
|
|
144
|
+
export interface DailyConnectionStatus extends LifecycleStatus {
|
|
145
|
+
hubAuthStatus?: string;
|
|
146
|
+
lastSyncAt?: string;
|
|
147
|
+
}
|
|
148
|
+
/** Fetch enriched connection status for the daily summary. Builds on lifecycleStatus, adding hub details. */
|
|
149
|
+
export declare function dailyConnectionStatus(paths: LifecyclePaths, env?: NodeJS.ProcessEnv, options?: {
|
|
150
|
+
timeoutMs?: number;
|
|
151
|
+
stderr?: (text: string) => void;
|
|
152
|
+
}): Promise<DailyConnectionStatus>;
|
|
57
153
|
export declare function lifecyclePaths(env?: NodeJS.ProcessEnv): LifecyclePaths;
|
|
58
154
|
export declare function renderSystemdUnit(opts?: {
|
|
59
155
|
envFile?: string;
|
|
60
156
|
workingDirectory?: string;
|
|
61
157
|
execStart?: string;
|
|
158
|
+
lifecycleStateDir?: string;
|
|
159
|
+
selfUpdateStateDir?: string;
|
|
160
|
+
selfUpdateTarget?: string;
|
|
161
|
+
bootstrapTransactionId?: string;
|
|
162
|
+
}): string;
|
|
163
|
+
export declare function renderAutoexecSystemdUnit(opts: {
|
|
164
|
+
envFile?: string;
|
|
165
|
+
workingDirectory?: string;
|
|
166
|
+
execStart: string;
|
|
62
167
|
}): string;
|
|
63
168
|
export declare function renderLaunchdPlist(opts?: {
|
|
64
169
|
envFile?: string;
|
|
65
170
|
workingDirectory?: string;
|
|
66
171
|
nodePath?: string;
|
|
67
172
|
proxyBin?: string;
|
|
173
|
+
programArguments?: readonly string[];
|
|
174
|
+
logDir?: string;
|
|
175
|
+
lifecycleStateDir?: string;
|
|
176
|
+
selfUpdateStateDir?: string;
|
|
177
|
+
selfUpdateTarget?: string;
|
|
178
|
+
label?: string;
|
|
179
|
+
logName?: string;
|
|
180
|
+
selfUpdateSupervisor?: boolean;
|
|
181
|
+
bootstrapTransactionId?: string;
|
|
182
|
+
}): string;
|
|
183
|
+
export declare function renderAutoexecLaunchdPlist(opts: {
|
|
184
|
+
envFile?: string;
|
|
185
|
+
workingDirectory?: string;
|
|
186
|
+
programArguments: readonly string[];
|
|
68
187
|
logDir?: string;
|
|
69
188
|
}): string;
|
|
70
|
-
|
|
189
|
+
interface WindowsInstallerDefaults {
|
|
190
|
+
evolverBin?: string;
|
|
191
|
+
nodePath?: string;
|
|
192
|
+
proxyBin?: string;
|
|
193
|
+
envFile?: string;
|
|
194
|
+
lifecycleStateDir?: string;
|
|
195
|
+
selfUpdateStateDir?: string;
|
|
196
|
+
bootstrapTransactionId?: string;
|
|
197
|
+
wscriptPath?: string;
|
|
198
|
+
}
|
|
199
|
+
interface LegacyWindowsInstallerProof {
|
|
200
|
+
family: 'v907' | 'v918';
|
|
201
|
+
defaults: WindowsInstallerDefaults;
|
|
202
|
+
}
|
|
203
|
+
declare function parseLegacyWindowsInstallerDefaults(source: string): LegacyWindowsInstallerProof;
|
|
204
|
+
export declare const _parseLegacyWindowsInstallerDefaultsForTest: typeof parseLegacyWindowsInstallerDefaults;
|
|
205
|
+
export declare function trustedWindowsPowerShell(): string;
|
|
206
|
+
declare function renderWindowsProxyLauncherBytes(defaults: WindowsInstallerDefaults): Buffer;
|
|
207
|
+
declare function renderLegacyWindowsProxyLauncherBytes(proof: LegacyWindowsInstallerProof): Buffer;
|
|
208
|
+
export declare const _renderWindowsProxyLauncherBytesForTest: typeof renderWindowsProxyLauncherBytes;
|
|
209
|
+
export declare function renderWindowsInstaller(defaults?: WindowsInstallerDefaults): string;
|
|
210
|
+
export declare function renderWindowsAutoexecInstaller(defaults?: {
|
|
211
|
+
evolverBin?: string;
|
|
212
|
+
nodePath?: string;
|
|
213
|
+
cliBin?: string;
|
|
214
|
+
envFile?: string;
|
|
215
|
+
autoexecHome?: string;
|
|
216
|
+
workingDirectory?: string;
|
|
217
|
+
wscriptPath?: string;
|
|
218
|
+
}): string;
|
|
219
|
+
export declare const _renderLegacyWindowsProxyLauncherBytesForTest: typeof renderLegacyWindowsProxyLauncherBytes;
|
|
220
|
+
declare function renderFrozenLegacySystemdUnit(opts: {
|
|
221
|
+
envFile?: string;
|
|
222
|
+
workingDirectory?: string;
|
|
223
|
+
execStart: string;
|
|
224
|
+
lifecycleStateDir?: string;
|
|
225
|
+
selfUpdateStateDir?: string;
|
|
226
|
+
selfUpdateTarget?: string;
|
|
227
|
+
}): string;
|
|
228
|
+
declare function renderFrozenLegacyLaunchdPlist(opts: {
|
|
229
|
+
envFile?: string;
|
|
230
|
+
workingDirectory: string;
|
|
231
|
+
programArguments: readonly string[];
|
|
232
|
+
logDir: string;
|
|
233
|
+
lifecycleStateDir?: string;
|
|
234
|
+
selfUpdateStateDir?: string;
|
|
235
|
+
selfUpdateTarget?: string;
|
|
236
|
+
}): string;
|
|
237
|
+
export declare const _renderFrozenLegacySystemdUnitForTest: typeof renderFrozenLegacySystemdUnit;
|
|
238
|
+
export declare const _renderFrozenLegacyLaunchdPlistForTest: typeof renderFrozenLegacyLaunchdPlist;
|
|
239
|
+
declare function legacyBootstrapArtifactPlan(legacy: LegacyBootstrapMarkerRead, planned: LifecycleResult, target: ServiceTarget, env: NodeJS.ProcessEnv, stateDir: string, legacyWindowsLauncherPath?: string, allowAbsentWindowsManager?: boolean, requireStateRootProof?: boolean, uid?: number): {
|
|
240
|
+
paths: string[];
|
|
241
|
+
expected: Record<string, BootstrapArtifactIdentity>;
|
|
242
|
+
preserved: coreBootstrap.LifecycleBootstrapMarker['artifacts'];
|
|
243
|
+
legacyStateRootProof?: coreBootstrap.LifecycleBootstrapLegacyStateRootProof;
|
|
244
|
+
};
|
|
245
|
+
export declare const _planLegacyBootstrapArtifactsForTest: typeof legacyBootstrapArtifactPlan;
|
|
246
|
+
declare function windowsTaskProbeCommand(): string;
|
|
247
|
+
export declare const _windowsTaskProbeCommandForTest: typeof windowsTaskProbeCommand;
|
|
248
|
+
declare function probeLegacyWindowsLauncherPath(run: (command: string, args: readonly string[], timeoutMs?: number) => ServiceControlResult, timeoutMs: number, expectedEnabled?: boolean): string;
|
|
249
|
+
export declare const _probeLegacyWindowsLauncherPathForTest: typeof probeLegacyWindowsLauncherPath;
|
|
250
|
+
export declare function validateSystemdBootstrapManagerBinding(journal: Pick<BootstrapTransactionJournal, 'transactionId' | 'managerBinding'>, unit: string, stdout: string, requireRunning?: boolean): number | undefined;
|
|
251
|
+
export declare function validateLaunchdBootstrapManagerBinding(journal: Pick<BootstrapTransactionJournal, 'transactionId' | 'managerBinding'>, plist: string, stdout: string, requireRunning?: boolean): number | undefined;
|
|
252
|
+
interface WindowsBootstrapLauncherBinding {
|
|
253
|
+
mode: 'controller' | 'direct';
|
|
254
|
+
proxyExecutable: string;
|
|
255
|
+
proxyScript?: string;
|
|
256
|
+
controllerExecutable?: string;
|
|
257
|
+
lifecycleStateDir?: string;
|
|
258
|
+
selfUpdateStateDir?: string;
|
|
259
|
+
}
|
|
260
|
+
export declare function parseWindowsBootstrapLauncherBinding(journal: Pick<BootstrapTransactionJournal, 'transactionId' | 'managerBinding' | 'artifacts'>, bytes: Buffer): WindowsBootstrapLauncherBinding;
|
|
261
|
+
export declare function bootstrapReadinessMatchesManager(journal: Pick<BootstrapTransactionJournal, 'target' | 'managerBinding' | 'artifacts'>, readiness: coreBootstrap.LifecycleBootstrapReadiness, managerPid: number | undefined): boolean;
|
|
262
|
+
export declare function removeAutoexecService(target: ServiceTarget, dryRun: boolean, deps?: RemoveAutoexecServiceDeps): LifecycleResult;
|
|
263
|
+
export declare function resolveDaemonCommand(env: NodeJS.ProcessEnv, execPath?: string, argv1?: string | undefined): DaemonCommand;
|
|
264
|
+
export declare function resolveSelfUpdatingExecutable(execPath: string, argv1: string | undefined): DaemonCommand | undefined;
|
|
265
|
+
export declare function resolveAutoexecDaemonCommand(env: NodeJS.ProcessEnv, execPath?: string, argv1?: string | undefined, autoexecHome?: string): DaemonCommand | undefined;
|
|
71
266
|
export declare function resolveProxyBinPath(): string | undefined;
|
|
72
267
|
export declare function resolveStableNodePath(): string;
|
|
73
268
|
export declare function sessionStartHookVerboseEnabled(env?: NodeJS.ProcessEnv): boolean;
|
|
74
269
|
export declare function proxyExpected(env?: NodeJS.ProcessEnv): boolean;
|
|
270
|
+
declare function writeWindowsHelper(preferredPath: string, content: string): string;
|
|
271
|
+
export declare const _writeWindowsHelperForTest: typeof writeWindowsHelper;
|
|
75
272
|
export {};
|