@agentknight/client 0.9.43 → 0.9.45
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/cli.js +849 -811
- package/dist/upgrade-worker.js +39 -4
- package/package.json +2 -2
package/dist/upgrade-worker.js
CHANGED
|
@@ -20193,7 +20193,7 @@ async function installPreparedPackage(options) {
|
|
|
20193
20193
|
import { createConnection, createServer } from "node:net";
|
|
20194
20194
|
import { join as join5, resolve as resolve3 } from "node:path";
|
|
20195
20195
|
|
|
20196
|
-
// ../../shared/sdk/dist/chunks/chunk-
|
|
20196
|
+
// ../../shared/sdk/dist/chunks/chunk-DUMC5F2D.js
|
|
20197
20197
|
var IdSchema = external_exports.string().trim().min(1).max(256);
|
|
20198
20198
|
var IsoDateSchema = external_exports.iso.datetime({ offset: true });
|
|
20199
20199
|
var Base64UrlKeyIdSchema = external_exports.string().regex(/^[A-Za-z0-9_-]{22}$/u, "Expected a 16-byte base64url key ID");
|
|
@@ -21832,6 +21832,22 @@ var A2aRelayResponseSchema = external_exports.object({
|
|
|
21832
21832
|
status: external_exports.number().int().min(200).max(599),
|
|
21833
21833
|
body: external_exports.string().max(A2A_BODY_MAX_LENGTH)
|
|
21834
21834
|
}).strict();
|
|
21835
|
+
var BROWSER_OPEN_URL_MAX_LENGTH = 8192;
|
|
21836
|
+
var BrowserOpenUrlParamsSchema = external_exports.strictObject({
|
|
21837
|
+
url: external_exports.string().min(1).max(BROWSER_OPEN_URL_MAX_LENGTH).refine((value) => {
|
|
21838
|
+
if (!/^https?:\/\//i.test(value) || /[\s\p{Cc}\\]/u.test(value) || /%(?![0-9a-f]{2})/i.test(value))
|
|
21839
|
+
return false;
|
|
21840
|
+
const authority = value.split(/[/?#]/)[2];
|
|
21841
|
+
if (!authority || /[@%]|[^\x21-\x7e]/.test(authority))
|
|
21842
|
+
return false;
|
|
21843
|
+
try {
|
|
21844
|
+
return new URL(value).hostname.length > 0;
|
|
21845
|
+
} catch {
|
|
21846
|
+
return false;
|
|
21847
|
+
}
|
|
21848
|
+
}, "Expected an absolute HTTP(S) URL without credentials or whitespace")
|
|
21849
|
+
});
|
|
21850
|
+
var BrowserOpenUrlResultSchema = external_exports.strictObject({ opened: external_exports.literal(true) });
|
|
21835
21851
|
var SessionCommunicationIdSchema = external_exports.string().min(1).max(256).refine((value) => value === value.trim(), "Expected an unpadded identity");
|
|
21836
21852
|
var SessionCommunicationIdentityShape = {
|
|
21837
21853
|
requestId: SessionCommunicationIdSchema,
|
|
@@ -22012,6 +22028,22 @@ var SessionGitDiffResultDataSchema = external_exports.object({
|
|
|
22012
22028
|
context.addIssue({ code: "custom", message: "Expected a text patch or an explicit binary change" });
|
|
22013
22029
|
}
|
|
22014
22030
|
});
|
|
22031
|
+
var SessionGitDiffFileErrorSchema = external_exports.object({
|
|
22032
|
+
code: external_exports.enum(["DIFF_BLOCKED", "DIFF_FILE_UNAVAILABLE"]),
|
|
22033
|
+
message: external_exports.string().min(1).max(512)
|
|
22034
|
+
}).strict();
|
|
22035
|
+
var SessionGitDiffPartialEntrySchema = SessionGitDiffEntrySchema.extend({
|
|
22036
|
+
// Error paths are display-only: they must never be used for file requests.
|
|
22037
|
+
path: external_exports.string().min(1).max(32768).refine((value) => !value.includes("\0")),
|
|
22038
|
+
error: SessionGitDiffFileErrorSchema.optional()
|
|
22039
|
+
}).superRefine((value, context) => {
|
|
22040
|
+
if (value.error === void 0 && !SessionGitDiffEntrySchema.shape.path.safeParse(value.path).success) {
|
|
22041
|
+
context.addIssue({ code: "custom", message: "A readable diff entry must have a safe path" });
|
|
22042
|
+
}
|
|
22043
|
+
});
|
|
22044
|
+
var SessionGitDiffPartialResultDataSchema = SessionGitDiffResultDataSchema.safeExtend({
|
|
22045
|
+
files: external_exports.array(SessionGitDiffPartialEntrySchema).max(SESSION_GIT_DIFF_MAX_FILES).optional()
|
|
22046
|
+
});
|
|
22015
22047
|
var SessionGitDiffGzipResultDataSchema = external_exports.object({
|
|
22016
22048
|
encoding: external_exports.literal("gzip"),
|
|
22017
22049
|
byteLength: external_exports.number().int().min(1).max(SESSION_GIT_DIFF_MAX_RESPONSE_BYTES),
|
|
@@ -22619,6 +22651,8 @@ var WorkbenchAndroidSchemas = {
|
|
|
22619
22651
|
WorkbenchCompactResult: WorkbenchCompactResultSchema
|
|
22620
22652
|
};
|
|
22621
22653
|
var AndroidProtocolSchemas = {
|
|
22654
|
+
BrowserOpenUrlParams: BrowserOpenUrlParamsSchema,
|
|
22655
|
+
BrowserOpenUrlResult: BrowserOpenUrlResultSchema,
|
|
22622
22656
|
TimelineImageBlobRequest: TimelineImageBlobRequestSchema,
|
|
22623
22657
|
TimelineImageBlobResult: TimelineImageBlobResultSchema,
|
|
22624
22658
|
SessionImageUploadRequest: SessionImageUploadRequestSchema,
|
|
@@ -22630,8 +22664,9 @@ var AndroidProtocolSchemas = {
|
|
|
22630
22664
|
...ScheduleAndroidSchemas,
|
|
22631
22665
|
SessionCommunication: SessionCommunicationSchema,
|
|
22632
22666
|
SessionGitDiffData: SessionGitDiffDataSchema,
|
|
22633
|
-
SessionGitDiffEntry:
|
|
22634
|
-
SessionGitDiffResultData:
|
|
22667
|
+
SessionGitDiffEntry: SessionGitDiffPartialEntrySchema,
|
|
22668
|
+
SessionGitDiffResultData: SessionGitDiffPartialResultDataSchema,
|
|
22669
|
+
SessionGitDiffFileError: SessionGitDiffFileErrorSchema,
|
|
22635
22670
|
SessionGitDiffGzipResultData: SessionGitDiffGzipResultDataSchema,
|
|
22636
22671
|
SessionRenameData: SessionRenameDataSchema,
|
|
22637
22672
|
SessionRenameResultData: SessionRenameResultDataSchema,
|
|
@@ -22730,7 +22765,7 @@ var AndroidProtocolSchemas = {
|
|
|
22730
22765
|
ProtocolError: ProtocolErrorSchema
|
|
22731
22766
|
};
|
|
22732
22767
|
|
|
22733
|
-
// ../../shared/sdk/dist/chunks/chunk-
|
|
22768
|
+
// ../../shared/sdk/dist/chunks/chunk-GRXWNM6S.js
|
|
22734
22769
|
var OwnerSchema = external_exports.object({ pid: external_exports.number().int().positive(), instanceId: external_exports.uuid().optional() });
|
|
22735
22770
|
var PeerChatRequestSchema = external_exports.object({
|
|
22736
22771
|
sessionId: IdSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentknight/client",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.45",
|
|
4
4
|
"description": "AgentKnight PC Agent CLI for remote coding sessions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"qrcode": "1.5.4",
|
|
42
42
|
"qrcode-terminal": "0.12.0",
|
|
43
43
|
"zod": "4.6.5",
|
|
44
|
-
"@agentknight/sdk": "0.9.
|
|
44
|
+
"@agentknight/sdk": "0.9.45"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/qrcode": "1.5.6",
|