@evomap/evolver-proxy 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/bin/evolver-llm-proxy.js +0 -0
- package/dist/bin/evolver-proxy.d.ts +105 -7
- package/dist/bin/evolver-proxy.js +877 -121
- package/dist/daemon/atpConsent.js +5 -2
- package/dist/daemon/collaborationFacade.js +26 -16
- package/dist/daemon/proxyDaemon.d.ts +65 -0
- package/dist/daemon/proxyDaemon.js +1384 -29
- package/dist/daemon/publishRecallVerifier.d.ts +114 -0
- package/dist/daemon/publishRecallVerifier.js +495 -0
- package/dist/daemon/selectHub.js +5 -3
- package/dist/daemon/systemdNotifier.d.ts +48 -0
- package/dist/daemon/systemdNotifier.js +163 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/lifecycle/claimNudge.d.ts +20 -0
- package/dist/lifecycle/claimNudge.js +124 -0
- package/dist/lifecycle/legacyNodeId.d.ts +11 -13
- package/dist/lifecycle/legacyNodeId.js +35 -20
- package/dist/lifecycle/manager.d.ts +4 -0
- package/dist/lifecycle/manager.js +15 -2
- package/dist/llm/server.js +24 -4
- package/dist/llm/traceControl.js +1 -1
- package/dist/llm/upstream.d.ts +5 -1
- package/dist/llm/upstream.js +72 -2
- package/dist/private/accountAssetCompatibility.d.ts +29 -0
- package/dist/private/accountAssetCompatibility.js +196 -0
- package/dist/private/adapterLoader.d.ts +21 -1
- package/dist/private/adapterLoader.js +242 -7
- package/dist/private/nodeCredentialStore.d.ts +23 -0
- package/dist/private/nodeCredentialStore.js +210 -0
- package/dist/router/messagesRoute.js +9 -3
- package/dist/router/providerRoutes.js +7 -3
- package/dist/selfUpdate/bootstrap.d.ts +162 -0
- package/dist/selfUpdate/bootstrap.js +3524 -0
- package/dist/selfUpdate/bootstrapReadiness.d.ts +9 -0
- package/dist/selfUpdate/bootstrapReadiness.js +153 -0
- package/dist/selfUpdate/builtinKey.d.ts +4 -0
- package/dist/selfUpdate/builtinKey.js +16 -0
- package/dist/selfUpdate/controllerLifecycleAuthority.d.ts +45 -0
- package/dist/selfUpdate/controllerLifecycleAuthority.js +61 -0
- package/dist/selfUpdate/executor.d.ts +27 -11
- package/dist/selfUpdate/executor.js +233 -58
- package/dist/selfUpdate/failureCodes.d.ts +10 -0
- package/dist/selfUpdate/failureCodes.js +13 -0
- package/dist/selfUpdate/index.d.ts +5 -1
- package/dist/selfUpdate/index.js +5 -1
- package/dist/selfUpdate/lastUpdate.d.ts +3 -1
- package/dist/selfUpdate/lastUpdate.js +37 -6
- package/dist/selfUpdate/migration.d.ts +158 -0
- package/dist/selfUpdate/migration.js +2672 -0
- package/dist/selfUpdate/policy.d.ts +19 -2
- package/dist/selfUpdate/policy.js +76 -2
- package/dist/selfUpdate/recoveryChildStartGate.d.ts +29 -0
- package/dist/selfUpdate/recoveryChildStartGate.js +319 -0
- package/dist/selfUpdate/releaseBinary.d.ts +13 -0
- package/dist/selfUpdate/releaseBinary.js +93 -10
- package/dist/selfUpdate/transaction.d.ts +117 -0
- package/dist/selfUpdate/transaction.js +1322 -0
- package/dist/selfUpdate/unixController.d.ts +23 -0
- package/dist/selfUpdate/unixController.js +514 -0
- package/dist/selfUpdate/version.d.ts +6 -2
- package/dist/selfUpdate/version.js +5 -3
- package/dist/selfUpdate/windowsController.d.ts +35 -0
- package/dist/selfUpdate/windowsController.js +655 -0
- package/dist/selfUpdate/windowsUpdater.d.ts +104 -0
- package/dist/selfUpdate/windowsUpdater.js +882 -0
- package/dist/sync/engine.d.ts +12 -0
- package/dist/sync/engine.js +255 -64
- package/package.json +10 -3
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { rename } from 'node:fs/promises';
|
|
2
|
+
export declare const WINDOWS_UPDATER_WORKER_ARG = "--evolver-windows-updater-worker";
|
|
3
|
+
export type WindowsUpdaterOperation = 'install' | 'rollback';
|
|
4
|
+
export interface WindowsUpdaterPaths {
|
|
5
|
+
directory: string;
|
|
6
|
+
helperPath: string;
|
|
7
|
+
pendingPath: string;
|
|
8
|
+
resultPath: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PrepareWindowsUpdaterOptions {
|
|
11
|
+
operation: WindowsUpdaterOperation;
|
|
12
|
+
targetPath: string;
|
|
13
|
+
backupPath: string;
|
|
14
|
+
stateDir: string;
|
|
15
|
+
/** Required for install and bound to the signed-manifest digest. */
|
|
16
|
+
stagedPath?: string;
|
|
17
|
+
expectedStagedSha256?: string;
|
|
18
|
+
/** Rollback copies the currently running helper-capable binary by default. */
|
|
19
|
+
helperSourcePath?: string;
|
|
20
|
+
processExecPath?: string;
|
|
21
|
+
platform?: NodeJS.Platform;
|
|
22
|
+
}
|
|
23
|
+
export interface WindowsUpdaterDescriptor {
|
|
24
|
+
operation: WindowsUpdaterOperation;
|
|
25
|
+
operationId: string;
|
|
26
|
+
helperPath: string;
|
|
27
|
+
pendingPath: string;
|
|
28
|
+
resultPath: string;
|
|
29
|
+
}
|
|
30
|
+
export interface WindowsUpdaterResult {
|
|
31
|
+
schema_version: 1;
|
|
32
|
+
operation: WindowsUpdaterOperation;
|
|
33
|
+
status: 'completed' | 'failed';
|
|
34
|
+
failure_code?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ApplyWindowsUpdaterOptions {
|
|
37
|
+
stateDir?: string;
|
|
38
|
+
workerExecPath?: string;
|
|
39
|
+
platform?: NodeJS.Platform;
|
|
40
|
+
renameFn?: typeof rename;
|
|
41
|
+
/** Test seam; production always evaluates the native Windows owner/writer policy. */
|
|
42
|
+
assertHelperTrust?: WindowsUpdaterHelperTrust;
|
|
43
|
+
}
|
|
44
|
+
export interface WindowsUpdaterHelperTrustPaths {
|
|
45
|
+
stateDir: string;
|
|
46
|
+
directory: string;
|
|
47
|
+
helperPath: string;
|
|
48
|
+
pendingPath: string;
|
|
49
|
+
}
|
|
50
|
+
export type WindowsUpdaterHelperTrust = (paths: WindowsUpdaterHelperTrustPaths) => void | Promise<void>;
|
|
51
|
+
export interface RevalidateWindowsUpdaterHelperOptions {
|
|
52
|
+
stateDir: string;
|
|
53
|
+
helperPath?: string;
|
|
54
|
+
platform?: NodeJS.Platform;
|
|
55
|
+
/** Test seam; production always evaluates the native Windows owner/writer policy. */
|
|
56
|
+
assertHelperTrust?: WindowsUpdaterHelperTrust;
|
|
57
|
+
}
|
|
58
|
+
export interface BindWindowsManagedExecutableOptions {
|
|
59
|
+
stateDir: string;
|
|
60
|
+
executablePath: string;
|
|
61
|
+
relativePath: readonly string[];
|
|
62
|
+
label: string;
|
|
63
|
+
mismatchLabel?: string;
|
|
64
|
+
platform?: NodeJS.Platform;
|
|
65
|
+
}
|
|
66
|
+
export interface BoundWindowsManagedExecutable {
|
|
67
|
+
stateDir: string;
|
|
68
|
+
executablePath: string;
|
|
69
|
+
}
|
|
70
|
+
/** Paths are fixed so the stable controller never consumes descriptor-supplied executable paths. */
|
|
71
|
+
export declare function resolveWindowsUpdaterPaths(stateDirInput: string): WindowsUpdaterPaths;
|
|
72
|
+
/** Bind a fixed executable below the private state root without following directory links. */
|
|
73
|
+
export declare function bindWindowsManagedExecutable(options: BindWindowsManagedExecutableOptions): Promise<BoundWindowsManagedExecutable>;
|
|
74
|
+
/**
|
|
75
|
+
* Bind the fixed helper and verify the persisted executable generation before
|
|
76
|
+
* the lifecycle owner creates a worker process. The worker repeats this check
|
|
77
|
+
* after consuming fd4 and before any target mutation.
|
|
78
|
+
*/
|
|
79
|
+
export declare function revalidatePendingWindowsUpdaterHelper(options: RevalidateWindowsUpdaterHelperOptions): Promise<BoundWindowsManagedExecutable>;
|
|
80
|
+
/**
|
|
81
|
+
* Prepare a launcher-consumed update descriptor. This function never mutates
|
|
82
|
+
* the live executable and never spawns a competing relaunch process.
|
|
83
|
+
*
|
|
84
|
+
* The stable lifecycle controller runs updater.exe before it starts target.
|
|
85
|
+
* The worker applies pending.json while no target process exists, then removes
|
|
86
|
+
* pending.json only after an idempotently durable success result is written.
|
|
87
|
+
*/
|
|
88
|
+
export declare function prepareWindowsExecutableSwap(options: PrepareWindowsUpdaterOptions): Promise<WindowsUpdaterDescriptor>;
|
|
89
|
+
/**
|
|
90
|
+
* Apply the pending operation before the stable controller starts target.
|
|
91
|
+
* A successful swap is idempotent across crashes after rename: if target
|
|
92
|
+
* already has source's content, the helper only finalizes result/pending state.
|
|
93
|
+
*/
|
|
94
|
+
export declare function applyPendingWindowsExecutableSwap(options?: ApplyWindowsUpdaterOptions): Promise<WindowsUpdaterResult>;
|
|
95
|
+
/** Return undefined for normal execution, otherwise the launcher helper exit code. */
|
|
96
|
+
export declare function maybeRunWindowsUpdaterWorkerFromArgv(options?: {
|
|
97
|
+
argv?: readonly string[];
|
|
98
|
+
env?: NodeJS.ProcessEnv;
|
|
99
|
+
platform?: NodeJS.Platform;
|
|
100
|
+
processExecPath?: string;
|
|
101
|
+
startupGateConsumed?: boolean;
|
|
102
|
+
/** Test seam; production always evaluates the native Windows owner/writer policy. */
|
|
103
|
+
assertHelperTrust?: WindowsUpdaterHelperTrust;
|
|
104
|
+
}): Promise<number | undefined>;
|