dsh-mnemon 0.4.7 → 0.5.0
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/README.md +10 -20
- package/README.zh-CN.md +10 -20
- package/SECURITY.md +8 -8
- package/cordis.patch.yml +42 -0
- package/lib/client.js +2360 -6843
- package/lib/contracts.js +16 -17
- package/lib/core.js +11 -0
- package/lib/definitions-j0FLgE0-.js +251 -0
- package/lib/extension-sdk.js +93 -229
- package/lib/index.js +3730 -6330
- package/lib/runtime-AtIOTeP1.js +1316 -0
- package/lib/storage-lock-Bqrhkyag.js +20 -0
- package/lib/testing.js +231 -0
- package/lib/types/src/client/extension-sdk.d.ts +10 -0
- package/lib/types/src/client/index.d.ts +1 -0
- package/lib/types/src/client/locales.d.ts +84 -0
- package/lib/types/src/client/page-client.d.ts +15 -0
- package/lib/types/src/client/page-kit.d.ts +40 -0
- package/lib/types/src/client/source-contracts.d.ts +46 -0
- package/lib/types/src/client/source-pages.d.ts +83 -0
- package/lib/types/src/core/contracts/index.d.ts +40 -0
- package/lib/types/src/core/contracts/plugin.d.ts +32 -0
- package/lib/types/src/core/contracts/view.d.ts +416 -0
- package/lib/types/src/core/definitions.d.ts +16 -0
- package/lib/types/src/core/plugin.d.ts +6 -0
- package/lib/types/src/{config-values.d.ts → host/config-values.d.ts} +7 -7
- package/lib/types/src/{config.d.ts → host/config.d.ts} +4 -1
- package/lib/types/src/{shared → host}/display-mode.d.ts +1 -1
- package/lib/types/src/host/plugin.d.ts +8 -0
- package/lib/types/src/host/protocol.d.ts +549 -0
- package/lib/types/src/host/view-protocol.d.ts +123 -0
- package/lib/types/src/index.d.ts +2 -21
- package/lib/types/src/sdk/index.d.ts +9 -0
- package/lib/types/src/sdk/input.d.ts +11 -0
- package/lib/types/src/sdk/install.d.ts +7 -0
- package/lib/types/src/sdk/service.d.ts +31 -0
- package/lib/types/src/sdk/storage-lock.d.ts +6 -0
- package/lib/types/src/sdk/strategy-configuration.d.ts +31 -0
- package/lib/types/src/sdk/testing.d.ts +70 -0
- package/package.json +46 -35
- package/lib/kernel.js +0 -1173
- package/lib/layers/documents.js +0 -31
- package/lib/layers/memory-spaces.js +0 -34
- package/lib/layers/runtime.js +0 -27
- package/lib/provider-sdk.js +0 -2
- package/lib/registry-B9SdBRLo.js +0 -2423
- package/lib/strategy-default-three-tier.js +0 -99
- package/lib/strategy-sdk.js +0 -56
- package/lib/types/packages/contracts/src/index.d.ts +0 -221
- package/lib/types/packages/extension-sdk/src/index.d.ts +0 -54
- package/lib/types/packages/kernel/src/access.d.ts +0 -14
- package/lib/types/packages/kernel/src/catalog.d.ts +0 -42
- package/lib/types/packages/kernel/src/index.d.ts +0 -5
- package/lib/types/packages/kernel/src/kernel.d.ts +0 -46
- package/lib/types/packages/kernel/src/topology.d.ts +0 -25
- package/lib/types/packages/kernel/src/view.d.ts +0 -89
- package/lib/types/packages/layer-documents/src/index.d.ts +0 -4
- package/lib/types/packages/layer-memory-spaces/src/index.d.ts +0 -4
- package/lib/types/packages/layer-runtime/src/index.d.ts +0 -4
- package/lib/types/packages/provider-sdk/src/index.d.ts +0 -19
- package/lib/types/packages/strategy-default-three-tier/src/index.d.ts +0 -7
- package/lib/types/packages/strategy-sdk/src/index.d.ts +0 -35
- package/lib/types/src/activity.d.ts +0 -16
- package/lib/types/src/agent-memory-turn.d.ts +0 -42
- package/lib/types/src/channels.d.ts +0 -1
- package/lib/types/src/client/GlobalLocationSetting.d.ts +0 -19
- package/lib/types/src/client/MnemonPackSection.d.ts +0 -13
- package/lib/types/src/client/MnemonSaveAction.d.ts +0 -13
- package/lib/types/src/client/MnemonSettingsCard.d.ts +0 -16
- package/lib/types/src/client/MnemonTurnTail.d.ts +0 -21
- package/lib/types/src/client/MnemonView.d.ts +0 -26
- package/lib/types/src/client/ProviderIcon.d.ts +0 -8
- package/lib/types/src/client/ProviderSettingsSection.d.ts +0 -16
- package/lib/types/src/client/anchor.d.ts +0 -27
- package/lib/types/src/client/api.d.ts +0 -83
- package/lib/types/src/client/better-sidebar.d.ts +0 -13
- package/lib/types/src/client/dsh-compat.d.ts +0 -51
- package/lib/types/src/client/settings.d.ts +0 -23
- package/lib/types/src/client/sidebar-entry.d.ts +0 -5
- package/lib/types/src/client/subagent-token-usage.d.ts +0 -23
- package/lib/types/src/client/workspace-controller.d.ts +0 -14
- package/lib/types/src/client/workspace-mount.d.ts +0 -20
- package/lib/types/src/commands.d.ts +0 -13
- package/lib/types/src/contracts.d.ts +0 -316
- package/lib/types/src/documents.d.ts +0 -77
- package/lib/types/src/git-branch.d.ts +0 -6
- package/lib/types/src/guidance.d.ts +0 -29
- package/lib/types/src/lifecycle.d.ts +0 -80
- package/lib/types/src/live-runtime.d.ts +0 -92
- package/lib/types/src/memory-bodies.d.ts +0 -57
- package/lib/types/src/memory-receipts.d.ts +0 -21
- package/lib/types/src/memory-system/access.d.ts +0 -2
- package/lib/types/src/memory-system/catalog.d.ts +0 -2
- package/lib/types/src/memory-system/contracts.d.ts +0 -2
- package/lib/types/src/memory-system/defaults.d.ts +0 -6
- package/lib/types/src/memory-system/index.d.ts +0 -7
- package/lib/types/src/memory-system/kernel.d.ts +0 -2
- package/lib/types/src/memory-system/topology.d.ts +0 -2
- package/lib/types/src/memory-system/view.d.ts +0 -2
- package/lib/types/src/memory-view.d.ts +0 -21
- package/lib/types/src/pack.d.ts +0 -29
- package/lib/types/src/process.d.ts +0 -16
- package/lib/types/src/provider-placement.d.ts +0 -26
- package/lib/types/src/provider-sdk.d.ts +0 -4
- package/lib/types/src/providers/byterover.d.ts +0 -32
- package/lib/types/src/providers/catalog.d.ts +0 -23
- package/lib/types/src/providers/hindsight.d.ts +0 -20
- package/lib/types/src/providers/holographic.d.ts +0 -23
- package/lib/types/src/providers/honcho.d.ts +0 -18
- package/lib/types/src/providers/http.d.ts +0 -32
- package/lib/types/src/providers/mem0.d.ts +0 -18
- package/lib/types/src/providers/memory-system.d.ts +0 -6
- package/lib/types/src/providers/openviking.d.ts +0 -32
- package/lib/types/src/providers/provider.d.ts +0 -46
- package/lib/types/src/providers/registry.d.ts +0 -23
- package/lib/types/src/providers/retaindb.d.ts +0 -17
- package/lib/types/src/providers/supermemory.d.ts +0 -17
- package/lib/types/src/recall-quality/contracts.d.ts +0 -32
- package/lib/types/src/recall-quality/engine.d.ts +0 -13
- package/lib/types/src/recall-quality/index.d.ts +0 -4
- package/lib/types/src/recall-quality/policies.d.ts +0 -5
- package/lib/types/src/recall-quality/registry.d.ts +0 -10
- package/lib/types/src/review-activity.d.ts +0 -19
- package/lib/types/src/rpc.d.ts +0 -22
- package/lib/types/src/runner.d.ts +0 -41
- package/lib/types/src/runtime-memory.d.ts +0 -90
- package/lib/types/src/search-tokens.d.ts +0 -5
- package/lib/types/src/service.d.ts +0 -113
- package/lib/types/src/session-events.d.ts +0 -8
- package/lib/types/src/settings.d.ts +0 -6
- package/lib/types/src/shared/contracts.d.ts +0 -1008
- package/lib/types/src/storage-scope.d.ts +0 -12
- package/lib/types/src/subagent-token-usage.d.ts +0 -53
- package/lib/types/src/subagent.d.ts +0 -124
- package/lib/types/src/tools.d.ts +0 -10
- package/lib/types/src/version-updates.d.ts +0 -37
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ResolvedConfig } from './config.ts';
|
|
2
|
-
import type { MnemonRunner } from './runner.ts';
|
|
3
|
-
import type { StorageScopeCatalog } from './shared/contracts.ts';
|
|
4
|
-
export type { StorageAreaInventory, StorageAreaKind, StorageAreaStatus, StorageScopeCatalog, StorageScopeInventory, StorageScopeKind } from './shared/contracts.ts';
|
|
5
|
-
/** Read-only catalog of the three storage domains. It never creates, moves, or repairs files. */
|
|
6
|
-
export declare class StorageScopeInspector {
|
|
7
|
-
private readonly runner;
|
|
8
|
-
private readonly config;
|
|
9
|
-
constructor(runner: Pick<MnemonRunner, 'effectiveDataDir'>, config: Pick<ResolvedConfig, 'dataDir' | 'storageScope'>);
|
|
10
|
-
catalog(workspaceRoot?: string): StorageScopeCatalog;
|
|
11
|
-
}
|
|
12
|
-
export declare function validateCustomStorageRoot(value: string): string;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mnemon-owned projection for provider usage after a subagent descriptor.
|
|
3
|
-
*
|
|
4
|
-
* Fork-backed subagents inherit the parent's durable event prefix. DSH's
|
|
5
|
-
* generic `tokenUsage` projection intentionally totals that complete log, so
|
|
6
|
-
* it cannot also represent the cost of the child shown in the subagent
|
|
7
|
-
* catalog. This independent projection keeps the generic metric untouched
|
|
8
|
-
* and resets at every durable descriptor.
|
|
9
|
-
*/
|
|
10
|
-
import { z } from 'zod';
|
|
11
|
-
import type { HostContextShape } from './contracts.ts';
|
|
12
|
-
export interface MnemonTokenUsageProjection {
|
|
13
|
-
uncachedInputTokens: number;
|
|
14
|
-
outputTokens: number;
|
|
15
|
-
cacheReadTokens: number;
|
|
16
|
-
cacheWriteTokens: number;
|
|
17
|
-
}
|
|
18
|
-
export interface MnemonSubagentTokenUsageState {
|
|
19
|
-
descriptorSeen: boolean;
|
|
20
|
-
totals: MnemonTokenUsageProjection;
|
|
21
|
-
last: {
|
|
22
|
-
turn: number;
|
|
23
|
-
step: number;
|
|
24
|
-
buckets: MnemonTokenUsageProjection;
|
|
25
|
-
} | null;
|
|
26
|
-
}
|
|
27
|
-
interface ProjectionEvent {
|
|
28
|
-
type: string;
|
|
29
|
-
data: unknown;
|
|
30
|
-
}
|
|
31
|
-
/** Wire key consumed only by Mnemon's subagent-catalog compatibility shim. */
|
|
32
|
-
export declare const MNEMON_SUBAGENT_TOKEN_USAGE_KEY = "mnemonSubagentTokenUsage";
|
|
33
|
-
/**
|
|
34
|
-
* Fold provider usage after the latest subagent descriptor. A fork may carry
|
|
35
|
-
* an ancestor descriptor as part of its seed, so every descriptor resets the
|
|
36
|
-
* fold and the child's own descriptor becomes the final authoritative origin.
|
|
37
|
-
*/
|
|
38
|
-
export declare const mnemonSubagentTokenUsageProjectionDefinition: {
|
|
39
|
-
readonly key: "mnemonSubagentTokenUsage";
|
|
40
|
-
readonly stateVersion: 1;
|
|
41
|
-
readonly stateSchema: z.ZodType<MnemonSubagentTokenUsageState, unknown, z.core.$ZodTypeInternals<MnemonSubagentTokenUsageState, unknown>>;
|
|
42
|
-
readonly schema: z.ZodNullable<z.ZodType<MnemonTokenUsageProjection, unknown, z.core.$ZodTypeInternals<MnemonTokenUsageProjection, unknown>>>;
|
|
43
|
-
readonly init: () => MnemonSubagentTokenUsageState;
|
|
44
|
-
readonly apply: (state: MnemonSubagentTokenUsageState, event: ProjectionEvent) => MnemonSubagentTokenUsageState;
|
|
45
|
-
readonly view: (state: MnemonSubagentTokenUsageState) => MnemonTokenUsageProjection | null;
|
|
46
|
-
readonly wire: {
|
|
47
|
-
viewSchema: z.ZodNullable<z.ZodType<MnemonTokenUsageProjection, unknown, z.core.$ZodTypeInternals<MnemonTokenUsageProjection, unknown>>>;
|
|
48
|
-
view: (state: MnemonSubagentTokenUsageState) => MnemonTokenUsageProjection | null;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
/** Register lazily when the optional DSH projection service is present. */
|
|
52
|
-
export declare function registerMnemonSubagentTokenUsageProjection(ctx: HostContextShape): void;
|
|
53
|
-
export {};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import type { HostAgent, HostSubagentsService, ToolDefinition } from './contracts.ts';
|
|
2
|
-
import { type DocumentManager, type DocumentMutation, type DocumentMutationResult, type DocumentView } from './documents.ts';
|
|
3
|
-
import { type RuntimeMemoryController, type RuntimeMemoryMutation, type RuntimeMemoryMutationResult } from './runtime-memory.ts';
|
|
4
|
-
import { type EdgeType, type Insight, type RememberRequest, type SearchRequest } from './service.ts';
|
|
5
|
-
import { type PreparedMemoryPlacement } from './provider-placement.ts';
|
|
6
|
-
import type { MemoryBodyMetadataMaintenanceResult, MemoryPlacementDecision, SubagentCounters } from './shared/contracts.ts';
|
|
7
|
-
import type { MnemonAgentRuntimeSource } from './live-runtime.ts';
|
|
8
|
-
export type { SubagentCounters } from './shared/contracts.ts';
|
|
9
|
-
type AgentRuntimeSource = Pick<MnemonAgentRuntimeSource, 'forAgent'>;
|
|
10
|
-
interface HostToolRegistry {
|
|
11
|
-
register(definition: ToolDefinition): unknown;
|
|
12
|
-
}
|
|
13
|
-
interface HostResultToolRuntime {
|
|
14
|
-
tools: HostToolRegistry;
|
|
15
|
-
on(name: string, listener: (...args: never[]) => unknown): unknown;
|
|
16
|
-
}
|
|
17
|
-
/** Rejects schema keywords that DSH structured-output tools cannot compile. */
|
|
18
|
-
export declare function assertDshOutputSchema(schema: unknown, path?: string): void;
|
|
19
|
-
export interface RecallResult {
|
|
20
|
-
query: string;
|
|
21
|
-
mode: string;
|
|
22
|
-
results: Insight[];
|
|
23
|
-
hint?: string;
|
|
24
|
-
}
|
|
25
|
-
/** Compatibility name for the v0.3 pre-release API. Recall no longer delegates. */
|
|
26
|
-
export type DelegatedRecallResult = RecallResult;
|
|
27
|
-
export interface DelegatedWriteResult {
|
|
28
|
-
delegated: true;
|
|
29
|
-
runId: string;
|
|
30
|
-
provider: string;
|
|
31
|
-
summary: string;
|
|
32
|
-
action: string;
|
|
33
|
-
memoryBodyIds: string[];
|
|
34
|
-
documentIds?: string[];
|
|
35
|
-
}
|
|
36
|
-
export type CoordinatedDocumentResult = DocumentMutationResult & {
|
|
37
|
-
maintenance?: {
|
|
38
|
-
runId: string;
|
|
39
|
-
provider: string;
|
|
40
|
-
summary: string;
|
|
41
|
-
memoryBodyIds: string[];
|
|
42
|
-
archivedDocumentIds: string[];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export interface DelegatedAnswerResult {
|
|
46
|
-
answer: string;
|
|
47
|
-
citations: string[];
|
|
48
|
-
delegation: {
|
|
49
|
-
runId: string;
|
|
50
|
-
provider: string;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
export type CoordinatedRuntimeMemoryResult = RuntimeMemoryMutationResult & {
|
|
54
|
-
maintenance?: {
|
|
55
|
-
runId: string;
|
|
56
|
-
provider: string;
|
|
57
|
-
summary: string;
|
|
58
|
-
memoryBodyIds: string[];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
export declare function isSubagent(agent: HostAgent | undefined): boolean;
|
|
62
|
-
/** Delegates memory judgment and execution to a fresh, tool-scoped DSH child. */
|
|
63
|
-
export declare class MnemonSubagentCoordinator {
|
|
64
|
-
private readonly subagents;
|
|
65
|
-
private readonly runtimeMemoryOrSource?;
|
|
66
|
-
private readonly documents?;
|
|
67
|
-
private readonly resultRuntime?;
|
|
68
|
-
private readonly taskAgentModelResolver?;
|
|
69
|
-
private readonly runtimeMaintenanceMaxTokensResolver?;
|
|
70
|
-
private readonly counters;
|
|
71
|
-
private runtimeQueue;
|
|
72
|
-
private documentQueue;
|
|
73
|
-
private readonly retrievalTurns;
|
|
74
|
-
constructor(subagents: HostSubagentsService, runtimeMemoryOrSource?: (RuntimeMemoryController | AgentRuntimeSource) | undefined, documents?: DocumentManager | undefined, resultRuntime?: HostResultToolRuntime | undefined, taskAgentModelResolver?: (() => {
|
|
75
|
-
provider: string;
|
|
76
|
-
model: string;
|
|
77
|
-
} | undefined) | undefined, runtimeMaintenanceMaxTokensResolver?: (() => number) | undefined);
|
|
78
|
-
snapshot(): SubagentCounters;
|
|
79
|
-
documentsSnapshot(parent: HostAgent): import("./documents.ts").DocumentSnapshot;
|
|
80
|
-
documentGet(parent: HostAgent, id: string): DocumentView;
|
|
81
|
-
documentSearch(parent: HostAgent, query: string, includeArchived?: boolean, limit?: number): Promise<import("./documents.ts").DocumentSearchResult>;
|
|
82
|
-
/** Admit at most one model-facing Documents query for one executing turn. */
|
|
83
|
-
claimDocumentSearch(parent: HostAgent): boolean;
|
|
84
|
-
recall(parent: HostAgent, request: SearchRequest, signal: AbortSignal, options?: {
|
|
85
|
-
requirePinnedView?: boolean;
|
|
86
|
-
}): Promise<RecallResult>;
|
|
87
|
-
/** Bind a model read to the Source state pinned by its own executing turn. */
|
|
88
|
-
scopeRecallRequest(agent: HostAgent, request: SearchRequest, requirePinnedView?: boolean): SearchRequest;
|
|
89
|
-
private scopeRecallWithAuthority;
|
|
90
|
-
scopeRelatedMemoryBody(agent: HostAgent, memoryBodyId?: string, requirePinnedView?: boolean): string | undefined;
|
|
91
|
-
private scopeRelatedWithAuthority;
|
|
92
|
-
related(parent: HostAgent, id: string, memoryBodyId: string | undefined, signal: AbortSignal, options?: {
|
|
93
|
-
depth?: number;
|
|
94
|
-
edge?: EdgeType;
|
|
95
|
-
requirePinnedView?: boolean;
|
|
96
|
-
}): Promise<RecallResult>;
|
|
97
|
-
placeProvider(parent: HostAgent, body: {
|
|
98
|
-
name: string;
|
|
99
|
-
description: string;
|
|
100
|
-
}, prepared: PreparedMemoryPlacement, signal: AbortSignal): Promise<MemoryPlacementDecision>;
|
|
101
|
-
maintainMetadata(parent: HostAgent, memoryBodyIds: readonly string[], signal: AbortSignal): Promise<MemoryBodyMetadataMaintenanceResult>;
|
|
102
|
-
remember(parent: HostAgent, request: RememberRequest, signal: AbortSignal): Promise<DelegatedWriteResult>;
|
|
103
|
-
runtime(parent: HostAgent, request: RuntimeMemoryMutation, signal: AbortSignal): Promise<CoordinatedRuntimeMemoryResult>;
|
|
104
|
-
document(parent: HostAgent, request: DocumentMutation, signal: AbortSignal): Promise<CoordinatedDocumentResult>;
|
|
105
|
-
archiveDocument(parent: HostAgent, id: string, signal: AbortSignal): Promise<CoordinatedDocumentResult>;
|
|
106
|
-
answer(parent: HostAgent, query: string, evidence: Insight[], signal: AbortSignal): Promise<DelegatedAnswerResult>;
|
|
107
|
-
write(parent: HostAgent, operation: string, request: unknown, signal: AbortSignal): Promise<DelegatedWriteResult>;
|
|
108
|
-
review(parent: HostAgent, signal: AbortSignal): Promise<DelegatedWriteResult>;
|
|
109
|
-
private documentLocked;
|
|
110
|
-
private archiveDocumentLocked;
|
|
111
|
-
private runtimeLocked;
|
|
112
|
-
private compactUserAndCommit;
|
|
113
|
-
private archiveRuntimeEntry;
|
|
114
|
-
private delegate;
|
|
115
|
-
private provider;
|
|
116
|
-
private recallAuthority;
|
|
117
|
-
private turnAuthority;
|
|
118
|
-
private turnRetrievalState;
|
|
119
|
-
private recordRecall;
|
|
120
|
-
private runtimeMemoryFor;
|
|
121
|
-
private serviceFor;
|
|
122
|
-
private assertAutomaticMemoryWrite;
|
|
123
|
-
private documentsFor;
|
|
124
|
-
}
|
package/lib/types/src/tools.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { HostContextShape } from './contracts.ts';
|
|
2
|
-
import type { DocumentManager } from './documents.ts';
|
|
3
|
-
import type { RuntimeMemoryController } from './runtime-memory.ts';
|
|
4
|
-
import type { MnemonAgentRuntimeSource } from './live-runtime.ts';
|
|
5
|
-
import { MnemonSubagentCoordinator } from './subagent.ts';
|
|
6
|
-
import { type MnemonService } from './service.ts';
|
|
7
|
-
type AgentRuntimeSource = MnemonAgentRuntimeSource;
|
|
8
|
-
/** Model tools use the executing Agent's pinned runtime and deterministic service. */
|
|
9
|
-
export declare function registerTools(ctx: HostContextShape, serviceOrSource: MnemonService | AgentRuntimeSource, coordinator: MnemonSubagentCoordinator, runtimeMemory?: RuntimeMemoryController, documents?: DocumentManager): void;
|
|
10
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { type ProcessRunner } from './process.ts';
|
|
2
|
-
import type { VersionComponentId, VersionStatus, VersionUpdateResult } from './shared/contracts.ts';
|
|
3
|
-
export type { VersionComponentId, VersionComponentStatus, VersionInstallMode, VersionStatus, VersionUpdateResult } from './shared/contracts.ts';
|
|
4
|
-
export interface VersionUpdateDependencies {
|
|
5
|
-
packageManifestPath?: string;
|
|
6
|
-
dshHome?: string;
|
|
7
|
-
mnemonCliPath?: () => string | undefined;
|
|
8
|
-
processRunner?: ProcessRunner;
|
|
9
|
-
resolveExecutable?: (command: string) => string | undefined;
|
|
10
|
-
fetchNpmLatest?: (name: string) => Promise<string | undefined>;
|
|
11
|
-
fetchMnemonLatest?: () => Promise<string | undefined>;
|
|
12
|
-
}
|
|
13
|
-
/** Resolve one executable without invoking a shell. */
|
|
14
|
-
export declare function resolveExecutable(command: string): string | undefined;
|
|
15
|
-
export interface SemverParts {
|
|
16
|
-
major: number;
|
|
17
|
-
minor: number;
|
|
18
|
-
patch: number;
|
|
19
|
-
prerelease: string[];
|
|
20
|
-
}
|
|
21
|
-
export declare function parseSemver(value: string): SemverParts | undefined;
|
|
22
|
-
export declare function compareVersions(a: string, b: string): number;
|
|
23
|
-
export declare class VersionUpdateManager {
|
|
24
|
-
private dshMnemonVersion;
|
|
25
|
-
private readonly packageManifestPath;
|
|
26
|
-
private readonly dshHome;
|
|
27
|
-
private readonly mnemonCliPath;
|
|
28
|
-
private readonly processRunner;
|
|
29
|
-
private readonly executable;
|
|
30
|
-
private readonly fetchNpmLatest;
|
|
31
|
-
private readonly fetchMnemonLatest;
|
|
32
|
-
constructor(dependencies?: VersionUpdateDependencies);
|
|
33
|
-
get currentDshMnemonVersion(): string;
|
|
34
|
-
private inspectMnemon;
|
|
35
|
-
check(): Promise<VersionStatus>;
|
|
36
|
-
update(component: VersionComponentId): Promise<VersionUpdateResult>;
|
|
37
|
-
}
|