@agentknight/client 0.9.53 → 0.9.55

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.
@@ -5,7 +5,7 @@ import {
5
5
  PcEnrollmentIdSchema,
6
6
  PcEnrollmentStartRequestSchema,
7
7
  PcEnrollmentVerifierRequestSchema
8
- } from "./chunk-Q3KK54IU.js";
8
+ } from "./chunk-KW4VLCH7.js";
9
9
 
10
10
  // src/aad-relay-login.ts
11
11
  import { createHash as createHash2 } from "node:crypto";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  SESSION_TIMELINE_PAGE_SIZE
4
- } from "./chunk-Q3KK54IU.js";
4
+ } from "./chunk-KW4VLCH7.js";
5
5
 
6
6
  // src/local-sessions.ts
7
7
  import { supportsAgentSelection, codingAgentPresentation } from "@agentknight/sdk";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readAppVersion,
4
4
  toErrorDetails
5
- } from "./chunk-HQX6KKVV.js";
5
+ } from "./chunk-BSOD4PLU.js";
6
6
  import {
7
7
  claimUpgradeStartup,
8
8
  fileHash,
@@ -29,7 +29,7 @@ import {
29
29
  readAadAccount,
30
30
  sameRelayCredential,
31
31
  validateRelayCredentialSlots
32
- } from "./chunk-EQHABZEC.js";
32
+ } from "./chunk-TB7CMFWU.js";
33
33
  import {
34
34
  MicrosoftEnrollmentFailureSchema,
35
35
  MicrosoftMutationResultSchema,
@@ -50,7 +50,7 @@ import {
50
50
  SECURE_MESSAGE_MAX_CIPHERTEXT_LENGTH,
51
51
  SessionTimelinePageRequestSchema,
52
52
  SessionTimelinePageSchema
53
- } from "./chunk-Q3KK54IU.js";
53
+ } from "./chunk-KW4VLCH7.js";
54
54
 
55
55
  // src/start-client.ts
56
56
  import { readFileSync } from "node:fs";
@@ -3149,7 +3149,7 @@ async function completeRelayLogin(options) {
3149
3149
  let page;
3150
3150
  let pageTransferred = false;
3151
3151
  let authorized = false;
3152
- const createLogin = async (authentication) => authentication.mode === "aad" ? await (await import("./aad-relay-login-GDMN45AM.js")).createAadRelayLogin({
3152
+ const createLogin = async (authentication) => authentication.mode === "aad" ? await (await import("./aad-relay-login-WQG3PP44.js")).createAadRelayLogin({
3153
3153
  ...authentication,
3154
3154
  relayUrl: settings2.relayUrl,
3155
3155
  machineId: identity.machineId
@@ -3890,7 +3890,7 @@ async function startClient(appVersion, cliOptions, resolved, cliPath) {
3890
3890
  });
3891
3891
  let pairingPage;
3892
3892
  if (config.pairingPageEnabled) {
3893
- const { createLocalSessions } = await import("./local-sessions-BNYVWPDJ.js");
3893
+ const { createLocalSessions } = await import("./local-sessions-FSIFD3QQ.js");
3894
3894
  const pageOptions = {
3895
3895
  machineName: identity.machineName,
3896
3896
  port: config.pairingPagePort,
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readAppVersion,
4
4
  toErrorDetails
5
- } from "./chunks/chunk-HQX6KKVV.js";
5
+ } from "./chunks/chunk-BSOD4PLU.js";
6
6
 
7
7
  // src/index.ts
8
8
  import { fileURLToPath } from "node:url";
@@ -255,7 +255,7 @@ async function main() {
255
255
  });
256
256
  return;
257
257
  }
258
- const { startClient } = await import("./chunks/start-client-YUTN4EXF.js");
258
+ const { startClient } = await import("./chunks/start-client-G55A6VKD.js");
259
259
  await startClient(appVersion, cliOptions, resolved, fileURLToPath(import.meta.url));
260
260
  }
261
261
  await main().catch((error) => {
@@ -20192,7 +20192,7 @@ async function installPreparedPackage(options) {
20192
20192
  import { createConnection, createServer } from "node:net";
20193
20193
  import { join as join5, resolve as resolve3 } from "node:path";
20194
20194
 
20195
- // ../../shared/sdk/dist/chunks/chunk-UZFIXIAS.js
20195
+ // ../../shared/sdk/dist/chunks/chunk-K5CMKBW6.js
20196
20196
  var IdSchema = external_exports.string().trim().min(1).max(256);
20197
20197
  var IsoDateSchema = external_exports.iso.datetime({ offset: true });
20198
20198
  var Base64UrlKeyIdSchema = external_exports.string().regex(/^[A-Za-z0-9_-]{22}$/u, "Expected a 16-byte base64url key ID");
@@ -21953,6 +21953,16 @@ var BrowserOpenUrlParamsSchema = external_exports.strictObject({
21953
21953
  }, "Expected an absolute HTTP(S) URL without credentials or whitespace")
21954
21954
  });
21955
21955
  var BrowserOpenUrlResultSchema = external_exports.strictObject({ opened: external_exports.literal(true) });
21956
+ var DEVICE_TEXT_INPUT_MAX_LENGTH = 1e5;
21957
+ var DeviceTextInputDataSchema = external_exports.object({
21958
+ text: external_exports.string().min(1).max(DEVICE_TEXT_INPUT_MAX_LENGTH).refine((value) => value.trim().length > 0 && !value.includes("\0")),
21959
+ expiresAt: external_exports.number().int().nonnegative()
21960
+ }).strict();
21961
+ var DeviceTextInputResultSchema = external_exports.object({
21962
+ clipboardUpdated: external_exports.boolean(),
21963
+ pasteAttempted: external_exports.boolean(),
21964
+ pasteShortcutSent: external_exports.boolean()
21965
+ }).strict().refine((result) => (!result.pasteAttempted || result.clipboardUpdated) && (!result.pasteShortcutSent || result.pasteAttempted));
21956
21966
  var SessionCommunicationIdSchema = external_exports.string().min(1).max(256).refine((value) => value === value.trim(), "Expected an unpadded identity");
21957
21967
  var SessionCommunicationIdentityShape = {
21958
21968
  requestId: SessionCommunicationIdSchema,
@@ -22854,6 +22864,8 @@ var AndroidProtocolSchemas = {
22854
22864
  MobileAuthorizationResult: MobileAuthorizationResultSchema,
22855
22865
  BrowserOpenUrlParams: BrowserOpenUrlParamsSchema,
22856
22866
  BrowserOpenUrlResult: BrowserOpenUrlResultSchema,
22867
+ DeviceTextInputData: DeviceTextInputDataSchema,
22868
+ DeviceTextInputResult: DeviceTextInputResultSchema,
22857
22869
  TimelineImageBlobRequest: TimelineImageBlobRequestSchema,
22858
22870
  TimelineImageBlobResult: TimelineImageBlobResultSchema,
22859
22871
  SessionImageUploadRequest: SessionImageUploadRequestSchema,
@@ -22971,7 +22983,7 @@ var AndroidProtocolSchemas = {
22971
22983
  ProtocolError: ProtocolErrorSchema
22972
22984
  };
22973
22985
 
22974
- // ../../shared/sdk/dist/chunks/chunk-6DYWE5PL.js
22986
+ // ../../shared/sdk/dist/chunks/chunk-Z5STULMQ.js
22975
22987
  var OwnerSchema = external_exports.object({ pid: external_exports.number().int().positive(), instanceId: external_exports.uuid().optional() });
22976
22988
  var PeerChatRequestSchema = external_exports.object({
22977
22989
  sessionId: IdSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentknight/client",
3
- "version": "0.9.53",
3
+ "version": "0.9.55",
4
4
  "description": "AgentKnight PC Agent CLI for remote coding sessions",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "qrcode": "1.5.4",
46
46
  "qrcode-terminal": "0.12.0",
47
47
  "zod": "4.6.5",
48
- "@agentknight/sdk": "0.9.53"
48
+ "@agentknight/sdk": "0.9.55"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@tailwindcss/node": "4.3.3",
@@ -57,8 +57,8 @@
57
57
  "sharp": "0.35.5",
58
58
  "socket.io-client": "4.8.4",
59
59
  "tailwindcss": "4.3.3",
60
- "@agentknight/protocol": "0.1.0",
61
- "@agentknight/shared": "0.1.0"
60
+ "@agentknight/shared": "0.1.0",
61
+ "@agentknight/protocol": "0.1.0"
62
62
  },
63
63
  "scripts": {
64
64
  "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",