@aspectlylabs/mikka 0.0.653 → 0.0.655
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/cli.js +22 -6
- package/client.js +10 -3
- package/http-link.js +10 -3
- package/login.js +10 -3
- package/main.js +22 -6
- package/mikka-release-manifest.json +19 -19
- package/mikka.js +22 -6
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/paths.js +2 -2
- package/sbom.cdx.json +7 -7
package/cli.js
CHANGED
|
@@ -5643,6 +5643,8 @@ var deviceReposResponse = z24.object({
|
|
|
5643
5643
|
var pendingRunsResponse = z24.object({ runIds: z24.array(id3) });
|
|
5644
5644
|
var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
|
|
5645
5645
|
var runAssignmentSchema = z24.object({
|
|
5646
|
+
/** The server handles native model observations without transitioning run state. */
|
|
5647
|
+
acceptsModelObservations: z24.literal(true).optional(),
|
|
5646
5648
|
runId: id3,
|
|
5647
5649
|
/** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
|
|
5648
5650
|
traceContext: z24.unknown().transform(sanitizeTraceContext).optional(),
|
|
@@ -5848,9 +5850,14 @@ var runPatchSchema = z24.object({
|
|
|
5848
5850
|
sessionId: z24.string().max(500).nullable().optional(),
|
|
5849
5851
|
worktree: z24.string().max(4e3).nullable().optional(),
|
|
5850
5852
|
error: z24.string().max(1e4).nullable().optional(),
|
|
5853
|
+
/** An observation-only patch never transitions the run state. */
|
|
5854
|
+
observedModel: z24.string().trim().min(1).max(500).optional(),
|
|
5851
5855
|
/** Set on every terminal state. */
|
|
5852
5856
|
stopReason: runStopReason.optional()
|
|
5853
|
-
})
|
|
5857
|
+
}).refine(
|
|
5858
|
+
(patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
|
|
5859
|
+
{ message: "A model observation requires the running session", path: ["observedModel"] }
|
|
5860
|
+
);
|
|
5854
5861
|
var runEventBatchSchema = z24.object({
|
|
5855
5862
|
fromSeq: z24.number().int().min(1),
|
|
5856
5863
|
chunks: z24.array(z24.looseObject({ type: z24.string() })).min(1).max(1e3)
|
|
@@ -6571,7 +6578,7 @@ import { join as join4 } from "node:path";
|
|
|
6571
6578
|
// package.json
|
|
6572
6579
|
var package_default = {
|
|
6573
6580
|
name: "@mikka/daemon",
|
|
6574
|
-
version: "0.0.
|
|
6581
|
+
version: "0.0.655",
|
|
6575
6582
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
6576
6583
|
type: "module",
|
|
6577
6584
|
private: true,
|
|
@@ -6639,7 +6646,7 @@ var package_default = {
|
|
|
6639
6646
|
engines: {
|
|
6640
6647
|
node: ">=22"
|
|
6641
6648
|
},
|
|
6642
|
-
gitHead: "
|
|
6649
|
+
gitHead: "cc674840112c6faa627c3c7e6a560c2cfd4b7574"
|
|
6643
6650
|
};
|
|
6644
6651
|
|
|
6645
6652
|
// src/paths.ts
|
|
@@ -17833,7 +17840,7 @@ var MemoryServer = class {
|
|
|
17833
17840
|
this.check();
|
|
17834
17841
|
const run3 = this.runs.get(runId);
|
|
17835
17842
|
if (!run3) return;
|
|
17836
|
-
run3.state = patch.state;
|
|
17843
|
+
if (patch.observedModel === void 0) run3.state = patch.state;
|
|
17837
17844
|
run3.patches.push(patch);
|
|
17838
17845
|
},
|
|
17839
17846
|
checkpointRun: async (runId, checkpoint) => {
|
|
@@ -19074,6 +19081,12 @@ var RunSupervisor = class {
|
|
|
19074
19081
|
);
|
|
19075
19082
|
run3.secretBridge = await startTaskSecretBridge({ current: () => assignment.taskSecrets, signal: run3.abort.signal });
|
|
19076
19083
|
const traceContext = daemonTracer.capture();
|
|
19084
|
+
const recordModel = (sessionId, model) => {
|
|
19085
|
+
const observedModel = model?.trim();
|
|
19086
|
+
if (!assignment.acceptsModelObservations || !observedModel || observedModel.length > 500 || !sessionId || run3.session?.sessionId !== sessionId || run3.sessionEnded || run3.observedModel === observedModel) return;
|
|
19087
|
+
run3.observedModel = observedModel;
|
|
19088
|
+
this.push(runId, { kind: "run", patch: { state: "running", sessionId, observedModel } });
|
|
19089
|
+
};
|
|
19077
19090
|
const baseOptions = {
|
|
19078
19091
|
traceContext,
|
|
19079
19092
|
// The owner's own GitHub credential reaches every run that was sent one (decision 2026-11-02-1600).
|
|
@@ -19101,7 +19114,9 @@ var RunSupervisor = class {
|
|
|
19101
19114
|
skillReceipt: assignment.skillReceipt,
|
|
19102
19115
|
profileSkills: assignment.profileSkills,
|
|
19103
19116
|
repositorySkills: assignment.repositorySkills,
|
|
19104
|
-
onRuntimeModel:
|
|
19117
|
+
onRuntimeModel: (sessionId, observedModel) => {
|
|
19118
|
+
recordModel(sessionId, observedModel);
|
|
19119
|
+
if (!assignment.skillReceipt) return;
|
|
19105
19120
|
const current = this.deps.journal.get(runId);
|
|
19106
19121
|
if (!current?.runtime || isTerminalRunState(current.state) || current.sessionId !== sessionId || current.skillMount?.sessionId !== sessionId || current.skillMount.receiptId !== assignment.skillReceipt?.id) return;
|
|
19107
19122
|
if (current.runtime.observedModel === observedModel && (!current.execution || current.execution.observedModel === observedModel)) return;
|
|
@@ -19109,7 +19124,7 @@ var RunSupervisor = class {
|
|
|
19109
19124
|
runtime: { ...current.runtime, observedModel },
|
|
19110
19125
|
...current.execution ? { execution: { ...current.execution, observedModel } } : {}
|
|
19111
19126
|
});
|
|
19112
|
-
}
|
|
19127
|
+
},
|
|
19113
19128
|
fixture: assignment.fixture,
|
|
19114
19129
|
model: assignment.model,
|
|
19115
19130
|
effort: assignment.effort,
|
|
@@ -19379,6 +19394,7 @@ var RunSupervisor = class {
|
|
|
19379
19394
|
worktree
|
|
19380
19395
|
});
|
|
19381
19396
|
}
|
|
19397
|
+
recordModel(session.sessionId, session.runtimeModel);
|
|
19382
19398
|
if (run3.cancelRequested) await this.requestCancel(runId, run3);
|
|
19383
19399
|
const iterator = session.events()[Symbol.asyncIterator]();
|
|
19384
19400
|
const timedToolChunk = toolDuration();
|
package/client.js
CHANGED
|
@@ -4319,6 +4319,8 @@ var deviceReposResponse = z24.object({
|
|
|
4319
4319
|
var pendingRunsResponse = z24.object({ runIds: z24.array(id3) });
|
|
4320
4320
|
var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
|
|
4321
4321
|
var runAssignmentSchema = z24.object({
|
|
4322
|
+
/** The server handles native model observations without transitioning run state. */
|
|
4323
|
+
acceptsModelObservations: z24.literal(true).optional(),
|
|
4322
4324
|
runId: id3,
|
|
4323
4325
|
/** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
|
|
4324
4326
|
traceContext: z24.unknown().transform(sanitizeTraceContext).optional(),
|
|
@@ -4524,9 +4526,14 @@ var runPatchSchema = z24.object({
|
|
|
4524
4526
|
sessionId: z24.string().max(500).nullable().optional(),
|
|
4525
4527
|
worktree: z24.string().max(4e3).nullable().optional(),
|
|
4526
4528
|
error: z24.string().max(1e4).nullable().optional(),
|
|
4529
|
+
/** An observation-only patch never transitions the run state. */
|
|
4530
|
+
observedModel: z24.string().trim().min(1).max(500).optional(),
|
|
4527
4531
|
/** Set on every terminal state. */
|
|
4528
4532
|
stopReason: runStopReason.optional()
|
|
4529
|
-
})
|
|
4533
|
+
}).refine(
|
|
4534
|
+
(patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
|
|
4535
|
+
{ message: "A model observation requires the running session", path: ["observedModel"] }
|
|
4536
|
+
);
|
|
4530
4537
|
var runEventBatchSchema = z24.object({
|
|
4531
4538
|
fromSeq: z24.number().int().min(1),
|
|
4532
4539
|
chunks: z24.array(z24.looseObject({ type: z24.string() })).min(1).max(1e3)
|
|
@@ -5097,7 +5104,7 @@ import { join } from "node:path";
|
|
|
5097
5104
|
// package.json
|
|
5098
5105
|
var package_default = {
|
|
5099
5106
|
name: "@mikka/daemon",
|
|
5100
|
-
version: "0.0.
|
|
5107
|
+
version: "0.0.655",
|
|
5101
5108
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5102
5109
|
type: "module",
|
|
5103
5110
|
private: true,
|
|
@@ -5165,7 +5172,7 @@ var package_default = {
|
|
|
5165
5172
|
engines: {
|
|
5166
5173
|
node: ">=22"
|
|
5167
5174
|
},
|
|
5168
|
-
gitHead: "
|
|
5175
|
+
gitHead: "cc674840112c6faa627c3c7e6a560c2cfd4b7574"
|
|
5169
5176
|
};
|
|
5170
5177
|
|
|
5171
5178
|
// src/paths.ts
|
package/http-link.js
CHANGED
|
@@ -4751,6 +4751,8 @@ var deviceReposResponse = z26.object({
|
|
|
4751
4751
|
var pendingRunsResponse = z26.object({ runIds: z26.array(id3) });
|
|
4752
4752
|
var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
|
|
4753
4753
|
var runAssignmentSchema = z26.object({
|
|
4754
|
+
/** The server handles native model observations without transitioning run state. */
|
|
4755
|
+
acceptsModelObservations: z26.literal(true).optional(),
|
|
4754
4756
|
runId: id3,
|
|
4755
4757
|
/** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
|
|
4756
4758
|
traceContext: z26.unknown().transform(sanitizeTraceContext).optional(),
|
|
@@ -4956,9 +4958,14 @@ var runPatchSchema = z26.object({
|
|
|
4956
4958
|
sessionId: z26.string().max(500).nullable().optional(),
|
|
4957
4959
|
worktree: z26.string().max(4e3).nullable().optional(),
|
|
4958
4960
|
error: z26.string().max(1e4).nullable().optional(),
|
|
4961
|
+
/** An observation-only patch never transitions the run state. */
|
|
4962
|
+
observedModel: z26.string().trim().min(1).max(500).optional(),
|
|
4959
4963
|
/** Set on every terminal state. */
|
|
4960
4964
|
stopReason: runStopReason.optional()
|
|
4961
|
-
})
|
|
4965
|
+
}).refine(
|
|
4966
|
+
(patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
|
|
4967
|
+
{ message: "A model observation requires the running session", path: ["observedModel"] }
|
|
4968
|
+
);
|
|
4962
4969
|
var runEventBatchSchema = z26.object({
|
|
4963
4970
|
fromSeq: z26.number().int().min(1),
|
|
4964
4971
|
chunks: z26.array(z26.looseObject({ type: z26.string() })).min(1).max(1e3)
|
|
@@ -5624,7 +5631,7 @@ var InvalidIdError = class extends DaemonError {
|
|
|
5624
5631
|
// package.json
|
|
5625
5632
|
var package_default = {
|
|
5626
5633
|
name: "@mikka/daemon",
|
|
5627
|
-
version: "0.0.
|
|
5634
|
+
version: "0.0.655",
|
|
5628
5635
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5629
5636
|
type: "module",
|
|
5630
5637
|
private: true,
|
|
@@ -5692,7 +5699,7 @@ var package_default = {
|
|
|
5692
5699
|
engines: {
|
|
5693
5700
|
node: ">=22"
|
|
5694
5701
|
},
|
|
5695
|
-
gitHead: "
|
|
5702
|
+
gitHead: "cc674840112c6faa627c3c7e6a560c2cfd4b7574"
|
|
5696
5703
|
};
|
|
5697
5704
|
|
|
5698
5705
|
// src/paths.ts
|
package/login.js
CHANGED
|
@@ -4359,6 +4359,8 @@ var deviceReposResponse = z24.object({
|
|
|
4359
4359
|
var pendingRunsResponse = z24.object({ runIds: z24.array(id3) });
|
|
4360
4360
|
var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
|
|
4361
4361
|
var runAssignmentSchema = z24.object({
|
|
4362
|
+
/** The server handles native model observations without transitioning run state. */
|
|
4363
|
+
acceptsModelObservations: z24.literal(true).optional(),
|
|
4362
4364
|
runId: id3,
|
|
4363
4365
|
/** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
|
|
4364
4366
|
traceContext: z24.unknown().transform(sanitizeTraceContext).optional(),
|
|
@@ -4564,9 +4566,14 @@ var runPatchSchema = z24.object({
|
|
|
4564
4566
|
sessionId: z24.string().max(500).nullable().optional(),
|
|
4565
4567
|
worktree: z24.string().max(4e3).nullable().optional(),
|
|
4566
4568
|
error: z24.string().max(1e4).nullable().optional(),
|
|
4569
|
+
/** An observation-only patch never transitions the run state. */
|
|
4570
|
+
observedModel: z24.string().trim().min(1).max(500).optional(),
|
|
4567
4571
|
/** Set on every terminal state. */
|
|
4568
4572
|
stopReason: runStopReason.optional()
|
|
4569
|
-
})
|
|
4573
|
+
}).refine(
|
|
4574
|
+
(patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
|
|
4575
|
+
{ message: "A model observation requires the running session", path: ["observedModel"] }
|
|
4576
|
+
);
|
|
4570
4577
|
var runEventBatchSchema = z24.object({
|
|
4571
4578
|
fromSeq: z24.number().int().min(1),
|
|
4572
4579
|
chunks: z24.array(z24.looseObject({ type: z24.string() })).min(1).max(1e3)
|
|
@@ -5149,7 +5156,7 @@ var ServerUnreachableError = class extends DaemonError {
|
|
|
5149
5156
|
// package.json
|
|
5150
5157
|
var package_default = {
|
|
5151
5158
|
name: "@mikka/daemon",
|
|
5152
|
-
version: "0.0.
|
|
5159
|
+
version: "0.0.655",
|
|
5153
5160
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5154
5161
|
type: "module",
|
|
5155
5162
|
private: true,
|
|
@@ -5217,7 +5224,7 @@ var package_default = {
|
|
|
5217
5224
|
engines: {
|
|
5218
5225
|
node: ">=22"
|
|
5219
5226
|
},
|
|
5220
|
-
gitHead: "
|
|
5227
|
+
gitHead: "cc674840112c6faa627c3c7e6a560c2cfd4b7574"
|
|
5221
5228
|
};
|
|
5222
5229
|
|
|
5223
5230
|
// src/paths.ts
|
package/main.js
CHANGED
|
@@ -5211,6 +5211,8 @@ var deviceReposResponse = z24.object({
|
|
|
5211
5211
|
var pendingRunsResponse = z24.object({ runIds: z24.array(id3) });
|
|
5212
5212
|
var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
|
|
5213
5213
|
var runAssignmentSchema = z24.object({
|
|
5214
|
+
/** The server handles native model observations without transitioning run state. */
|
|
5215
|
+
acceptsModelObservations: z24.literal(true).optional(),
|
|
5214
5216
|
runId: id3,
|
|
5215
5217
|
/** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
|
|
5216
5218
|
traceContext: z24.unknown().transform(sanitizeTraceContext).optional(),
|
|
@@ -5416,9 +5418,14 @@ var runPatchSchema = z24.object({
|
|
|
5416
5418
|
sessionId: z24.string().max(500).nullable().optional(),
|
|
5417
5419
|
worktree: z24.string().max(4e3).nullable().optional(),
|
|
5418
5420
|
error: z24.string().max(1e4).nullable().optional(),
|
|
5421
|
+
/** An observation-only patch never transitions the run state. */
|
|
5422
|
+
observedModel: z24.string().trim().min(1).max(500).optional(),
|
|
5419
5423
|
/** Set on every terminal state. */
|
|
5420
5424
|
stopReason: runStopReason.optional()
|
|
5421
|
-
})
|
|
5425
|
+
}).refine(
|
|
5426
|
+
(patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
|
|
5427
|
+
{ message: "A model observation requires the running session", path: ["observedModel"] }
|
|
5428
|
+
);
|
|
5422
5429
|
var runEventBatchSchema = z24.object({
|
|
5423
5430
|
fromSeq: z24.number().int().min(1),
|
|
5424
5431
|
chunks: z24.array(z24.looseObject({ type: z24.string() })).min(1).max(1e3)
|
|
@@ -6060,7 +6067,7 @@ import { join } from "node:path";
|
|
|
6060
6067
|
// package.json
|
|
6061
6068
|
var package_default = {
|
|
6062
6069
|
name: "@mikka/daemon",
|
|
6063
|
-
version: "0.0.
|
|
6070
|
+
version: "0.0.655",
|
|
6064
6071
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
6065
6072
|
type: "module",
|
|
6066
6073
|
private: true,
|
|
@@ -6128,7 +6135,7 @@ var package_default = {
|
|
|
6128
6135
|
engines: {
|
|
6129
6136
|
node: ">=22"
|
|
6130
6137
|
},
|
|
6131
|
-
gitHead: "
|
|
6138
|
+
gitHead: "cc674840112c6faa627c3c7e6a560c2cfd4b7574"
|
|
6132
6139
|
};
|
|
6133
6140
|
|
|
6134
6141
|
// src/paths.ts
|
|
@@ -16716,7 +16723,7 @@ var MemoryServer = class {
|
|
|
16716
16723
|
this.check();
|
|
16717
16724
|
const run3 = this.runs.get(runId);
|
|
16718
16725
|
if (!run3) return;
|
|
16719
|
-
run3.state = patch.state;
|
|
16726
|
+
if (patch.observedModel === void 0) run3.state = patch.state;
|
|
16720
16727
|
run3.patches.push(patch);
|
|
16721
16728
|
},
|
|
16722
16729
|
checkpointRun: async (runId, checkpoint) => {
|
|
@@ -17957,6 +17964,12 @@ var RunSupervisor = class {
|
|
|
17957
17964
|
);
|
|
17958
17965
|
run3.secretBridge = await startTaskSecretBridge({ current: () => assignment.taskSecrets, signal: run3.abort.signal });
|
|
17959
17966
|
const traceContext = daemonTracer.capture();
|
|
17967
|
+
const recordModel = (sessionId, model) => {
|
|
17968
|
+
const observedModel = model?.trim();
|
|
17969
|
+
if (!assignment.acceptsModelObservations || !observedModel || observedModel.length > 500 || !sessionId || run3.session?.sessionId !== sessionId || run3.sessionEnded || run3.observedModel === observedModel) return;
|
|
17970
|
+
run3.observedModel = observedModel;
|
|
17971
|
+
this.push(runId, { kind: "run", patch: { state: "running", sessionId, observedModel } });
|
|
17972
|
+
};
|
|
17960
17973
|
const baseOptions = {
|
|
17961
17974
|
traceContext,
|
|
17962
17975
|
// The owner's own GitHub credential reaches every run that was sent one (decision 2026-11-02-1600).
|
|
@@ -17984,7 +17997,9 @@ var RunSupervisor = class {
|
|
|
17984
17997
|
skillReceipt: assignment.skillReceipt,
|
|
17985
17998
|
profileSkills: assignment.profileSkills,
|
|
17986
17999
|
repositorySkills: assignment.repositorySkills,
|
|
17987
|
-
onRuntimeModel:
|
|
18000
|
+
onRuntimeModel: (sessionId, observedModel) => {
|
|
18001
|
+
recordModel(sessionId, observedModel);
|
|
18002
|
+
if (!assignment.skillReceipt) return;
|
|
17988
18003
|
const current = this.deps.journal.get(runId);
|
|
17989
18004
|
if (!current?.runtime || isTerminalRunState(current.state) || current.sessionId !== sessionId || current.skillMount?.sessionId !== sessionId || current.skillMount.receiptId !== assignment.skillReceipt?.id) return;
|
|
17990
18005
|
if (current.runtime.observedModel === observedModel && (!current.execution || current.execution.observedModel === observedModel)) return;
|
|
@@ -17992,7 +18007,7 @@ var RunSupervisor = class {
|
|
|
17992
18007
|
runtime: { ...current.runtime, observedModel },
|
|
17993
18008
|
...current.execution ? { execution: { ...current.execution, observedModel } } : {}
|
|
17994
18009
|
});
|
|
17995
|
-
}
|
|
18010
|
+
},
|
|
17996
18011
|
fixture: assignment.fixture,
|
|
17997
18012
|
model: assignment.model,
|
|
17998
18013
|
effort: assignment.effort,
|
|
@@ -18262,6 +18277,7 @@ var RunSupervisor = class {
|
|
|
18262
18277
|
worktree
|
|
18263
18278
|
});
|
|
18264
18279
|
}
|
|
18280
|
+
recordModel(session.sessionId, session.runtimeModel);
|
|
18265
18281
|
if (run3.cancelRequested) await this.requestCancel(runId, run3);
|
|
18266
18282
|
const iterator = session.events()[Symbol.asyncIterator]();
|
|
18267
18283
|
const timedToolChunk = toolDuration();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"sourceSha": "
|
|
3
|
+
"sourceSha": "cc674840112c6faa627c3c7e6a560c2cfd4b7574",
|
|
4
4
|
"repository": "alexj11324/Mikka",
|
|
5
|
-
"buildRunId": "
|
|
5
|
+
"buildRunId": "43692382329",
|
|
6
6
|
"buildKind": "github-actions-main",
|
|
7
7
|
"sourceLockSha256": "ef566c7e7ffb23a605b6f4c0c5b715caba7afed70b6155251db2eead6b9c426b",
|
|
8
|
-
"createdAt": "2026-11-
|
|
8
|
+
"createdAt": "2026-11-15T08:02:39.572Z",
|
|
9
9
|
"sbom": "sbom.cdx.json",
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"path": "cli.js",
|
|
38
|
-
"size":
|
|
39
|
-
"sha256": "
|
|
38
|
+
"size": 1087348,
|
|
39
|
+
"sha256": "536716572a37a5f7fa5df1574c4316d9521ac3627083cb5671d221cd58e7a78a"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"path": "client.js",
|
|
43
|
-
"size":
|
|
44
|
-
"sha256": "
|
|
43
|
+
"size": 211420,
|
|
44
|
+
"sha256": "31eb42ec9d4c97321c292c4bf4444a47a57bde4b1bc66bbed4be4f9f288fe189"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"path": "computer/driver.mjs",
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"path": "http-link.js",
|
|
163
|
-
"size":
|
|
164
|
-
"sha256": "
|
|
163
|
+
"size": 308263,
|
|
164
|
+
"sha256": "55642f513a8f955cf23dc2bb70fc047c7c0062adab1b1ab1f07c04392c293735"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"path": "log.js",
|
|
@@ -170,13 +170,13 @@
|
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
"path": "login.js",
|
|
173
|
-
"size":
|
|
174
|
-
"sha256": "
|
|
173
|
+
"size": 268240,
|
|
174
|
+
"sha256": "4a74a48c5de3e73e678998b2741573db334d95b6a8ce50990622325f9250f5d2"
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"path": "main.js",
|
|
178
|
-
"size":
|
|
179
|
-
"sha256": "
|
|
178
|
+
"size": 1026249,
|
|
179
|
+
"sha256": "32b336775606a3a1544b97529fcff25877e30df55658d807d8a78349f77acbc5"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"path": "mcp-stdio-launcher.mjs",
|
|
@@ -205,23 +205,23 @@
|
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"path": "mikka.js",
|
|
208
|
-
"size":
|
|
209
|
-
"sha256": "
|
|
208
|
+
"size": 1087364,
|
|
209
|
+
"sha256": "94f77dd0d04ab55f3876bd79fe2075a121c998e6bf8b996e944536ee79fabf0c"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
"path": "npm-shrinkwrap.json",
|
|
213
213
|
"size": 85262,
|
|
214
|
-
"sha256": "
|
|
214
|
+
"sha256": "9d2cd5853ac54584bf1a7eaefe25d8214632f9fdcd59c3d03037fca643eee6e2"
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"path": "package.json",
|
|
218
218
|
"size": 1551,
|
|
219
|
-
"sha256": "
|
|
219
|
+
"sha256": "f4286c88805f8dbda801ca58c5c8e80f77688ba77eb9b92615f794970d590fe5"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
"path": "paths.js",
|
|
223
223
|
"size": 4585,
|
|
224
|
-
"sha256": "
|
|
224
|
+
"sha256": "3073d57d458a22fc7c52e113bc1aa4b331ecd42ff076685c9898a292bc8f45ea"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
"path": "sandbox.js",
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
{
|
|
232
232
|
"path": "sbom.cdx.json",
|
|
233
233
|
"size": 155689,
|
|
234
|
-
"sha256": "
|
|
234
|
+
"sha256": "e03f35e6dadcce10228b39a154672e876d41001319ddbec8da219f51d9e8a1a2"
|
|
235
235
|
}
|
|
236
236
|
]
|
|
237
237
|
}
|
package/mikka.js
CHANGED
|
@@ -5644,6 +5644,8 @@ var deviceReposResponse = z24.object({
|
|
|
5644
5644
|
var pendingRunsResponse = z24.object({ runIds: z24.array(id3) });
|
|
5645
5645
|
var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
|
|
5646
5646
|
var runAssignmentSchema = z24.object({
|
|
5647
|
+
/** The server handles native model observations without transitioning run state. */
|
|
5648
|
+
acceptsModelObservations: z24.literal(true).optional(),
|
|
5647
5649
|
runId: id3,
|
|
5648
5650
|
/** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
|
|
5649
5651
|
traceContext: z24.unknown().transform(sanitizeTraceContext).optional(),
|
|
@@ -5849,9 +5851,14 @@ var runPatchSchema = z24.object({
|
|
|
5849
5851
|
sessionId: z24.string().max(500).nullable().optional(),
|
|
5850
5852
|
worktree: z24.string().max(4e3).nullable().optional(),
|
|
5851
5853
|
error: z24.string().max(1e4).nullable().optional(),
|
|
5854
|
+
/** An observation-only patch never transitions the run state. */
|
|
5855
|
+
observedModel: z24.string().trim().min(1).max(500).optional(),
|
|
5852
5856
|
/** Set on every terminal state. */
|
|
5853
5857
|
stopReason: runStopReason.optional()
|
|
5854
|
-
})
|
|
5858
|
+
}).refine(
|
|
5859
|
+
(patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
|
|
5860
|
+
{ message: "A model observation requires the running session", path: ["observedModel"] }
|
|
5861
|
+
);
|
|
5855
5862
|
var runEventBatchSchema = z24.object({
|
|
5856
5863
|
fromSeq: z24.number().int().min(1),
|
|
5857
5864
|
chunks: z24.array(z24.looseObject({ type: z24.string() })).min(1).max(1e3)
|
|
@@ -6572,7 +6579,7 @@ import { join as join4 } from "node:path";
|
|
|
6572
6579
|
// package.json
|
|
6573
6580
|
var package_default = {
|
|
6574
6581
|
name: "@mikka/daemon",
|
|
6575
|
-
version: "0.0.
|
|
6582
|
+
version: "0.0.655",
|
|
6576
6583
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
6577
6584
|
type: "module",
|
|
6578
6585
|
private: true,
|
|
@@ -6640,7 +6647,7 @@ var package_default = {
|
|
|
6640
6647
|
engines: {
|
|
6641
6648
|
node: ">=22"
|
|
6642
6649
|
},
|
|
6643
|
-
gitHead: "
|
|
6650
|
+
gitHead: "cc674840112c6faa627c3c7e6a560c2cfd4b7574"
|
|
6644
6651
|
};
|
|
6645
6652
|
|
|
6646
6653
|
// src/paths.ts
|
|
@@ -17834,7 +17841,7 @@ var MemoryServer = class {
|
|
|
17834
17841
|
this.check();
|
|
17835
17842
|
const run3 = this.runs.get(runId);
|
|
17836
17843
|
if (!run3) return;
|
|
17837
|
-
run3.state = patch.state;
|
|
17844
|
+
if (patch.observedModel === void 0) run3.state = patch.state;
|
|
17838
17845
|
run3.patches.push(patch);
|
|
17839
17846
|
},
|
|
17840
17847
|
checkpointRun: async (runId, checkpoint) => {
|
|
@@ -19075,6 +19082,12 @@ var RunSupervisor = class {
|
|
|
19075
19082
|
);
|
|
19076
19083
|
run3.secretBridge = await startTaskSecretBridge({ current: () => assignment.taskSecrets, signal: run3.abort.signal });
|
|
19077
19084
|
const traceContext = daemonTracer.capture();
|
|
19085
|
+
const recordModel = (sessionId, model) => {
|
|
19086
|
+
const observedModel = model?.trim();
|
|
19087
|
+
if (!assignment.acceptsModelObservations || !observedModel || observedModel.length > 500 || !sessionId || run3.session?.sessionId !== sessionId || run3.sessionEnded || run3.observedModel === observedModel) return;
|
|
19088
|
+
run3.observedModel = observedModel;
|
|
19089
|
+
this.push(runId, { kind: "run", patch: { state: "running", sessionId, observedModel } });
|
|
19090
|
+
};
|
|
19078
19091
|
const baseOptions = {
|
|
19079
19092
|
traceContext,
|
|
19080
19093
|
// The owner's own GitHub credential reaches every run that was sent one (decision 2026-11-02-1600).
|
|
@@ -19102,7 +19115,9 @@ var RunSupervisor = class {
|
|
|
19102
19115
|
skillReceipt: assignment.skillReceipt,
|
|
19103
19116
|
profileSkills: assignment.profileSkills,
|
|
19104
19117
|
repositorySkills: assignment.repositorySkills,
|
|
19105
|
-
onRuntimeModel:
|
|
19118
|
+
onRuntimeModel: (sessionId, observedModel) => {
|
|
19119
|
+
recordModel(sessionId, observedModel);
|
|
19120
|
+
if (!assignment.skillReceipt) return;
|
|
19106
19121
|
const current = this.deps.journal.get(runId);
|
|
19107
19122
|
if (!current?.runtime || isTerminalRunState(current.state) || current.sessionId !== sessionId || current.skillMount?.sessionId !== sessionId || current.skillMount.receiptId !== assignment.skillReceipt?.id) return;
|
|
19108
19123
|
if (current.runtime.observedModel === observedModel && (!current.execution || current.execution.observedModel === observedModel)) return;
|
|
@@ -19110,7 +19125,7 @@ var RunSupervisor = class {
|
|
|
19110
19125
|
runtime: { ...current.runtime, observedModel },
|
|
19111
19126
|
...current.execution ? { execution: { ...current.execution, observedModel } } : {}
|
|
19112
19127
|
});
|
|
19113
|
-
}
|
|
19128
|
+
},
|
|
19114
19129
|
fixture: assignment.fixture,
|
|
19115
19130
|
model: assignment.model,
|
|
19116
19131
|
effort: assignment.effort,
|
|
@@ -19380,6 +19395,7 @@ var RunSupervisor = class {
|
|
|
19380
19395
|
worktree
|
|
19381
19396
|
});
|
|
19382
19397
|
}
|
|
19398
|
+
recordModel(session.sessionId, session.runtimeModel);
|
|
19383
19399
|
if (run3.cancelRequested) await this.requestCancel(runId, run3);
|
|
19384
19400
|
const iterator = session.events()[Symbol.asyncIterator]();
|
|
19385
19401
|
const timedToolChunk = toolDuration();
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aspectlylabs/mikka",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.655",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@aspectlylabs/mikka",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.655",
|
|
10
10
|
"license": "AGPL-3.0-only",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@agentclientprotocol/sdk": "1.9.0",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aspectlylabs/mikka",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.655",
|
|
4
4
|
"description": "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "cc674840112c6faa627c3c7e6a560c2cfd4b7574",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"private": false,
|
|
8
8
|
"license": "AGPL-3.0-only",
|
package/paths.js
CHANGED
|
@@ -6,7 +6,7 @@ import { join } from "node:path";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@mikka/daemon",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.655",
|
|
10
10
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
11
11
|
type: "module",
|
|
12
12
|
private: true,
|
|
@@ -74,7 +74,7 @@ var package_default = {
|
|
|
74
74
|
engines: {
|
|
75
75
|
node: ">=22"
|
|
76
76
|
},
|
|
77
|
-
gitHead: "
|
|
77
|
+
gitHead: "cc674840112c6faa627c3c7e6a560c2cfd4b7574"
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
// src/paths.ts
|
package/sbom.cdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
|
|
3
3
|
"bomFormat": "CycloneDX",
|
|
4
4
|
"specVersion": "1.5",
|
|
5
|
-
"serialNumber": "urn:uuid:
|
|
5
|
+
"serialNumber": "urn:uuid:950bfceb-8ad9-4a9f-a89e-74fe31c4191f",
|
|
6
6
|
"version": 1,
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-11-
|
|
8
|
+
"timestamp": "2026-11-15T08:02:39.136Z",
|
|
9
9
|
"lifecycles": [
|
|
10
10
|
{
|
|
11
11
|
"phase": "pre-build"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"component": {
|
|
22
|
-
"bom-ref": "@aspectlylabs/mikka@0.0.
|
|
22
|
+
"bom-ref": "@aspectlylabs/mikka@0.0.655",
|
|
23
23
|
"type": "library",
|
|
24
|
-
"name": ".retained-build-
|
|
25
|
-
"version": "0.0.
|
|
24
|
+
"name": ".retained-build-xQtrX2",
|
|
25
|
+
"version": "0.0.655",
|
|
26
26
|
"scope": "required",
|
|
27
27
|
"description": "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
28
|
-
"purl": "pkg:npm/%40aspectlylabs/mikka@0.0.
|
|
28
|
+
"purl": "pkg:npm/%40aspectlylabs/mikka@0.0.655",
|
|
29
29
|
"properties": [],
|
|
30
30
|
"externalReferences": [
|
|
31
31
|
{
|
|
@@ -4909,7 +4909,7 @@
|
|
|
4909
4909
|
],
|
|
4910
4910
|
"dependencies": [
|
|
4911
4911
|
{
|
|
4912
|
-
"ref": "@aspectlylabs/mikka@0.0.
|
|
4912
|
+
"ref": "@aspectlylabs/mikka@0.0.655",
|
|
4913
4913
|
"dependsOn": [
|
|
4914
4914
|
"@agentclientprotocol/sdk@1.9.0",
|
|
4915
4915
|
"@anthropic-ai/claude-agent-sdk@0.3.305",
|