@nextclaw/kernel 0.1.2 → 0.1.4
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/index.d.ts +869 -343
- package/dist/index.js +4281 -229
- package/dist/types/update-contract.types.d.ts +1 -1
- package/dist/update-manifest.types-DLWDvs_v.d.ts +27 -0
- package/package.json +14 -2
- package/dist/update-manifest.types-BAJqcsP5.d.ts +0 -59
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getUnsignedUpdateManifest, c as UpdateBlockReason, d as UpdateSnapshot, f as UpdateStatus, i as UpdateManifestReader, l as UpdatePreferences, n as UpdateHostKind, o as serializeUnsignedUpdateManifest, r as UpdateManifest, s as InstallationKind, t as UnsignedUpdateManifest, u as UpdateProgress } from "../update-manifest.types-
|
|
1
|
+
import { a as getUnsignedUpdateManifest, c as UpdateBlockReason, d as UpdateSnapshot, f as UpdateStatus, i as UpdateManifestReader, l as UpdatePreferences, n as UpdateHostKind, o as serializeUnsignedUpdateManifest, r as UpdateManifest, s as InstallationKind, t as UnsignedUpdateManifest, u as UpdateProgress } from "../update-manifest.types-DLWDvs_v.js";
|
|
2
2
|
export { InstallationKind, UnsignedUpdateManifest, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdatePreferences, UpdateProgress, UpdateSnapshot, UpdateStatus, getUnsignedUpdateManifest, serializeUnsignedUpdateManifest };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { InstallationKind, UpdateBlockReason, UpdatePreferences, UpdateProgress, UpdateSnapshot, UpdateStatus } from "@nextclaw/shared";
|
|
2
|
+
|
|
3
|
+
//#region src/types/update-manifest.types.d.ts
|
|
4
|
+
type UpdateHostKind = "desktop-bundle" | "npm-runtime-bundle";
|
|
5
|
+
type UnsignedUpdateManifest = {
|
|
6
|
+
channel: string;
|
|
7
|
+
platform: string;
|
|
8
|
+
arch: string;
|
|
9
|
+
hostKind?: UpdateHostKind;
|
|
10
|
+
latestVersion: string;
|
|
11
|
+
minimumLauncherVersion: string;
|
|
12
|
+
bundleUrl: string;
|
|
13
|
+
bundleSha256: string;
|
|
14
|
+
bundleSignature: string;
|
|
15
|
+
releaseNotesUrl: string | null;
|
|
16
|
+
};
|
|
17
|
+
type UpdateManifest = UnsignedUpdateManifest & {
|
|
18
|
+
manifestSignature: string;
|
|
19
|
+
};
|
|
20
|
+
declare function getUnsignedUpdateManifest(manifest: UpdateManifest | UnsignedUpdateManifest): UnsignedUpdateManifest;
|
|
21
|
+
declare function serializeUnsignedUpdateManifest(manifest: UpdateManifest | UnsignedUpdateManifest): string;
|
|
22
|
+
declare class UpdateManifestReader {
|
|
23
|
+
parse: (input: unknown, context?: string) => UpdateManifest;
|
|
24
|
+
private readHostKind;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { getUnsignedUpdateManifest as a, UpdateBlockReason as c, UpdateSnapshot as d, UpdateStatus as f, UpdateManifestReader as i, UpdatePreferences as l, UpdateHostKind as n, serializeUnsignedUpdateManifest as o, UpdateManifest as r, InstallationKind as s, UnsignedUpdateManifest as t, UpdateProgress as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/kernel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "NextClaw product kernel skeleton for agents, tasks, sessions, context, tools, skills, providers, automation, and channels.",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,19 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@nextclaw/
|
|
23
|
+
"@nextclaw/mcp": "0.1.80",
|
|
24
|
+
"@nextclaw/core": "0.12.15",
|
|
25
|
+
"@nextclaw/ncp-agent-runtime": "0.3.18",
|
|
26
|
+
"@nextclaw/ncp-http-agent-server": "0.3.20",
|
|
27
|
+
"@nextclaw/ncp-mcp": "0.1.82",
|
|
28
|
+
"@nextclaw/ncp-toolkit": "0.5.13",
|
|
29
|
+
"@nextclaw/nextclaw-hermes-acp-bridge": "0.1.7",
|
|
30
|
+
"@nextclaw/nextclaw-ncp-runtime-http-client": "0.1.7",
|
|
31
|
+
"@nextclaw/nextclaw-ncp-runtime-stdio-client": "0.1.8",
|
|
32
|
+
"@nextclaw/openclaw-compat": "1.0.15",
|
|
33
|
+
"@nextclaw/runtime": "0.2.47",
|
|
34
|
+
"@nextclaw/shared": "0.1.2",
|
|
35
|
+
"@nextclaw/ncp": "0.5.8"
|
|
24
36
|
},
|
|
25
37
|
"devDependencies": {
|
|
26
38
|
"@types/node": "^20.17.6",
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
//#region src/types/update.types.d.ts
|
|
2
|
-
type UpdateStatus = "idle" | "checking" | "update-available" | "downloading" | "downloaded" | "applying" | "restart-required" | "up-to-date" | "blocked" | "failed";
|
|
3
|
-
type InstallationKind = "desktop-bundle" | "npm-runtime-bundle" | "npm-global" | "unknown";
|
|
4
|
-
type UpdateBlockReason = "host-too-old" | "unsupported-installation" | "signature-verification-unavailable";
|
|
5
|
-
type UpdateProgress = {
|
|
6
|
-
downloadedBytes: number;
|
|
7
|
-
totalBytes: number | null;
|
|
8
|
-
percent: number | null;
|
|
9
|
-
};
|
|
10
|
-
type UpdatePreferences = {
|
|
11
|
-
automaticChecks: boolean;
|
|
12
|
-
autoDownload: boolean;
|
|
13
|
-
};
|
|
14
|
-
type UpdateSnapshot = {
|
|
15
|
-
status: UpdateStatus;
|
|
16
|
-
installationKind: InstallationKind;
|
|
17
|
-
channel: "stable" | "beta";
|
|
18
|
-
hostVersion: string | null;
|
|
19
|
-
currentVersion: string | null;
|
|
20
|
-
availableVersion: string | null;
|
|
21
|
-
downloadedVersion: string | null;
|
|
22
|
-
minimumHostVersion: string | null;
|
|
23
|
-
releaseNotesUrl: string | null;
|
|
24
|
-
lastCheckedAt: string | null;
|
|
25
|
-
progress: UpdateProgress | null;
|
|
26
|
-
canAutoDownload: boolean;
|
|
27
|
-
canApplyInApp: boolean;
|
|
28
|
-
requiresRestart: boolean;
|
|
29
|
-
blockReason: UpdateBlockReason | null;
|
|
30
|
-
recoveryCommand: string | null;
|
|
31
|
-
errorMessage: string | null;
|
|
32
|
-
preferences: UpdatePreferences;
|
|
33
|
-
};
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/types/update-manifest.types.d.ts
|
|
36
|
-
type UpdateHostKind = "desktop-bundle" | "npm-runtime-bundle";
|
|
37
|
-
type UnsignedUpdateManifest = {
|
|
38
|
-
channel: string;
|
|
39
|
-
platform: string;
|
|
40
|
-
arch: string;
|
|
41
|
-
hostKind?: UpdateHostKind;
|
|
42
|
-
latestVersion: string;
|
|
43
|
-
minimumLauncherVersion: string;
|
|
44
|
-
bundleUrl: string;
|
|
45
|
-
bundleSha256: string;
|
|
46
|
-
bundleSignature: string;
|
|
47
|
-
releaseNotesUrl: string | null;
|
|
48
|
-
};
|
|
49
|
-
type UpdateManifest = UnsignedUpdateManifest & {
|
|
50
|
-
manifestSignature: string;
|
|
51
|
-
};
|
|
52
|
-
declare function getUnsignedUpdateManifest(manifest: UpdateManifest | UnsignedUpdateManifest): UnsignedUpdateManifest;
|
|
53
|
-
declare function serializeUnsignedUpdateManifest(manifest: UpdateManifest | UnsignedUpdateManifest): string;
|
|
54
|
-
declare class UpdateManifestReader {
|
|
55
|
-
parse: (input: unknown, context?: string) => UpdateManifest;
|
|
56
|
-
private readHostKind;
|
|
57
|
-
}
|
|
58
|
-
//#endregion
|
|
59
|
-
export { getUnsignedUpdateManifest as a, UpdateBlockReason as c, UpdateSnapshot as d, UpdateStatus as f, UpdateManifestReader as i, UpdatePreferences as l, UpdateHostKind as n, serializeUnsignedUpdateManifest as o, UpdateManifest as r, InstallationKind as s, UnsignedUpdateManifest as t, UpdateProgress as u };
|