@aspectlylabs/mikka 0.0.230 → 0.0.232

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/login.js CHANGED
@@ -3770,7 +3770,7 @@ var ServerUnreachableError = class extends DaemonError {
3770
3770
  // package.json
3771
3771
  var package_default = {
3772
3772
  name: "@mikka/daemon",
3773
- version: "0.0.230",
3773
+ version: "0.0.232",
3774
3774
  description: "Local Mikka daemon: runs agents through the user's own CLIs",
3775
3775
  type: "module",
3776
3776
  private: true,
@@ -3794,7 +3794,7 @@ var package_default = {
3794
3794
  daemon: "tsx bin/mikka.ts daemon",
3795
3795
  dev: "tsx watch bin/mikka.ts daemon --dev --server memory",
3796
3796
  typecheck: "tsgo --noEmit -p tsconfig.json",
3797
- test: "vitest run && pnpm test:mailbox-cli && pnpm test:repository-identity && pnpm test:github-credentials && pnpm test:local-git-origin-sandbox",
3797
+ test: "vitest run && pnpm test:mailbox-cli && pnpm test:repository-identity && pnpm test:github-credentials",
3798
3798
  "test:mailbox-cli": "node --import tsx --test --test-timeout=60000 test/run-mailbox.node-test.ts",
3799
3799
  "codex:types": 'codex app-server generate-ts --out "${TMPDIR:-/tmp}/mikka-codex-types" && echo "Generated; compare v2/ with src/adapters/codex-protocol.ts"',
3800
3800
  "test:real": "MIKKA_REAL_AGENTS=${MIKKA_REAL_AGENTS:-claude_code,codex,cursor} vitest run test/real-agents.test.ts",
@@ -3802,14 +3802,11 @@ var package_default = {
3802
3802
  build: "node scripts/build.mjs",
3803
3803
  "test:package": "node --test test/package.test.mjs",
3804
3804
  "test:repository-identity": "node --experimental-strip-types --test test/repository-identity-pure.node-test.ts",
3805
- "test:github-credentials": "node --test test/github-credentials.node-test.mjs",
3806
- "test:run-container": "node --import tsx --test --test-timeout=900000 test/run-container.docker-test.ts",
3807
- "test:local-git-origin-sandbox": "node --import tsx --test --test-timeout=60000 test/local-git-origin.sandbox-test.ts"
3805
+ "test:github-credentials": "node --test test/github-credentials.node-test.mjs"
3808
3806
  },
3809
3807
  dependencies: {
3810
3808
  "@agentclientprotocol/sdk": "1.9.0",
3811
3809
  "@anthropic-ai/claude-agent-sdk": "^0.3.305",
3812
- "@anthropic-ai/sandbox-runtime": "0.0.80",
3813
3810
  "@mikka/protocol": "workspace:*",
3814
3811
  ai: "7.0.142",
3815
3812
  execa: "10.1.1",
@@ -3831,7 +3828,7 @@ var package_default = {
3831
3828
  engines: {
3832
3829
  node: ">=24"
3833
3830
  },
3834
- gitHead: "65379b6f85c1a910fba0062edb7936f9cd36a106"
3831
+ gitHead: "0d277e06e505130445631d9ecfa06d0a78f8e0d4"
3835
3832
  };
3836
3833
 
3837
3834
  // src/paths.ts
@@ -3840,24 +3837,8 @@ var DAEMON_VERSION = package_default.version;
3840
3837
  // src/server-link-http.ts
3841
3838
  import { z as z26 } from "zod";
3842
3839
 
3843
- // src/agents/run-sandbox-launcher.ts
3844
- import { NetworkConfigSchema } from "@anthropic-ai/sandbox-runtime";
3845
- var NETWORK_DECISION_MS = 5 * 6e4;
3846
-
3847
- // ../protocol/src/mailbox.ts
3848
- import { z as z23 } from "zod";
3849
- var mailboxSend = z23.object({ to: z23.uuid(), key: z23.uuid().describe("Stable idempotency key; reuse only to retry this exact envelope."), text: z23.string().trim().min(1).max(4e3), replyTo: z23.uuid().optional() }).strict();
3850
- var mailboxAck = z23.object({ ids: z23.array(z23.uuid()).max(50) }).strict();
3851
- var mailboxInputs = {
3852
- mailbox_recipients: z23.object({}).strict(),
3853
- mailbox_send: mailboxSend,
3854
- mailbox_inbox: z23.object({}).strict(),
3855
- mailbox_ack: mailboxAck,
3856
- mailbox_sent: z23.object({}).strict()
3857
- };
3858
-
3859
3840
  // ../protocol/src/capture.ts
3860
- import { z as z24 } from "zod";
3841
+ import { z as z23 } from "zod";
3861
3842
  var CAPTURE_CONTENT_TYPES = [
3862
3843
  "image/png",
3863
3844
  "image/jpeg",
@@ -3873,51 +3854,65 @@ var CAPTURE_MAX_BYTES = {
3873
3854
  };
3874
3855
  var RECORDING_MAX_SECONDS = 300;
3875
3856
  var CAPTURE_TITLE_MAX = 200;
3876
- var sha256 = z24.string().regex(/^[a-f0-9]{64}$/);
3877
- var title = z24.string().trim().min(1).max(CAPTURE_TITLE_MAX);
3878
- var captureUploadRequest = z24.object({
3857
+ var sha256 = z23.string().regex(/^[a-f0-9]{64}$/);
3858
+ var title = z23.string().trim().min(1).max(CAPTURE_TITLE_MAX);
3859
+ var captureUploadRequest = z23.object({
3879
3860
  /** Stable client id, persisted before the first network attempt. */
3880
- captureId: z24.uuid().optional(),
3861
+ captureId: z23.uuid().optional(),
3881
3862
  title,
3882
- contentType: z24.enum(CAPTURE_CONTENT_TYPES),
3883
- size: z24.number().int().min(1).max(CAPTURE_MAX_BYTES.video),
3863
+ contentType: z23.enum(CAPTURE_CONTENT_TYPES),
3864
+ size: z23.number().int().min(1).max(CAPTURE_MAX_BYTES.video),
3884
3865
  sha256
3885
3866
  }).strict();
3886
- var captureUploadTarget = z24.discriminatedUnion("target", [
3887
- z24.object({ target: z24.literal("storage"), url: z24.url({ protocol: /^https$/ }), headers: z24.record(z24.string(), z24.string()) }),
3888
- z24.object({ target: z24.literal("server") })
3867
+ var captureUploadTarget = z23.discriminatedUnion("target", [
3868
+ z23.object({ target: z23.literal("storage"), url: z23.url({ protocol: /^https$/ }), headers: z23.record(z23.string(), z23.string()) }),
3869
+ z23.object({ target: z23.literal("server") })
3889
3870
  ]);
3890
- var captureUploadResponse = z24.object({
3891
- captureId: z24.uuid(),
3871
+ var captureUploadResponse = z23.object({
3872
+ captureId: z23.uuid(),
3892
3873
  upload: captureUploadTarget
3893
3874
  });
3894
- var captureView = z24.object({
3895
- id: z24.uuid(),
3896
- kind: z24.enum(CAPTURE_KINDS),
3897
- contentType: z24.enum(CAPTURE_CONTENT_TYPES),
3898
- title: z24.string(),
3899
- size: z24.number().int().nonnegative(),
3900
- durationMs: z24.number().int().nonnegative().nullable(),
3901
- source: z24.enum(CAPTURE_SOURCES),
3902
- createdAt: z24.iso.datetime()
3903
- });
3904
- var captureCompleteResponse = z24.object({ capture: captureView });
3905
- var screenCaptureRequest = z24.discriminatedUnion("action", [
3906
- z24.object({ action: z24.literal("screenshot"), title }).strict(),
3907
- z24.object({ action: z24.literal("start_recording"), title, maxSeconds: z24.number().int().min(5).max(RECORDING_MAX_SECONDS).optional() }).strict(),
3908
- z24.object({ action: z24.literal("stop_recording") }).strict(),
3875
+ var captureView = z23.object({
3876
+ id: z23.uuid(),
3877
+ kind: z23.enum(CAPTURE_KINDS),
3878
+ contentType: z23.enum(CAPTURE_CONTENT_TYPES),
3879
+ title: z23.string(),
3880
+ size: z23.number().int().nonnegative(),
3881
+ durationMs: z23.number().int().nonnegative().nullable(),
3882
+ source: z23.enum(CAPTURE_SOURCES),
3883
+ createdAt: z23.iso.datetime()
3884
+ });
3885
+ var captureCompleteResponse = z23.object({ capture: captureView });
3886
+ var screenCaptureRequest = z23.discriminatedUnion("action", [
3887
+ z23.object({ action: z23.literal("screenshot"), title }).strict(),
3888
+ z23.object({ action: z23.literal("start_recording"), title, maxSeconds: z23.number().int().min(5).max(RECORDING_MAX_SECONDS).optional() }).strict(),
3889
+ z23.object({ action: z23.literal("stop_recording") }).strict(),
3909
3890
  // A step on the recording's timeline: an action's own description, or a moment the agent marks.
3910
- z24.object({ action: z24.literal("step"), label: title, source: z24.enum(["action", "mark"]) }).strict()
3891
+ z23.object({ action: z23.literal("step"), label: title, source: z23.enum(["action", "mark"]) }).strict()
3911
3892
  ]);
3912
- var screenCaptureResponse = z24.discriminatedUnion("action", [
3913
- z24.object({ action: z24.literal("screenshot"), capture: captureView }),
3914
- z24.object({ action: z24.literal("start_recording"), recordingId: z24.uuid(), stopsAt: z24.iso.datetime() }),
3915
- z24.object({ action: z24.literal("stop_recording"), capture: captureView }),
3916
- z24.object({ action: z24.literal("step"), recorded: z24.boolean() })
3893
+ var screenCaptureResponse = z23.discriminatedUnion("action", [
3894
+ z23.object({ action: z23.literal("screenshot"), capture: captureView }),
3895
+ z23.object({ action: z23.literal("start_recording"), recordingId: z23.uuid(), stopsAt: z23.iso.datetime() }),
3896
+ z23.object({ action: z23.literal("stop_recording"), capture: captureView }),
3897
+ z23.object({ action: z23.literal("step"), recorded: z23.boolean() })
3917
3898
  ]);
3918
3899
 
3919
3900
  // src/run-mailbox.ts
3920
3901
  import { z as z25 } from "zod";
3902
+
3903
+ // ../protocol/src/mailbox.ts
3904
+ import { z as z24 } from "zod";
3905
+ var mailboxSend = z24.object({ to: z24.uuid(), key: z24.uuid().describe("Stable idempotency key; reuse only to retry this exact envelope."), text: z24.string().trim().min(1).max(4e3), replyTo: z24.uuid().optional() }).strict();
3906
+ var mailboxAck = z24.object({ ids: z24.array(z24.uuid()).max(50) }).strict();
3907
+ var mailboxInputs = {
3908
+ mailbox_recipients: z24.object({}).strict(),
3909
+ mailbox_send: mailboxSend,
3910
+ mailbox_inbox: z24.object({}).strict(),
3911
+ mailbox_ack: mailboxAck,
3912
+ mailbox_sent: z24.object({}).strict()
3913
+ };
3914
+
3915
+ // src/run-mailbox.ts
3921
3916
  var requestSchema = z25.union([
3922
3917
  z25.object({ operation: z25.literal("list") }).strict(),
3923
3918
  z25.object({ operation: z25.literal("call"), name: z25.enum(Object.keys(mailboxInputs)), arguments: z25.unknown() }).strict()