@aspectlylabs/mikka 0.0.689 → 0.0.691
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 +15 -7
- package/client.js +5 -3
- package/http-link.js +5 -3
- package/login.js +5 -3
- package/main.js +15 -7
- package/mikka-release-manifest.json +19 -19
- package/mikka.js +15 -7
- 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
|
@@ -3403,7 +3403,7 @@ var USER_ERROR_CODES = {
|
|
|
3403
3403
|
run_network_error: [],
|
|
3404
3404
|
run_provider_error: [],
|
|
3405
3405
|
run_failed: [],
|
|
3406
|
-
run_credentials_unavailable: ["device_unavailable", "native_credentials", "github_credentials"],
|
|
3406
|
+
run_credentials_unavailable: ["device_unavailable", "native_credentials", "credential_missing", "credential_expired", "quota_exhausted", "github_credentials"],
|
|
3407
3407
|
task_secret_unavailable: ["invalid_capability", "expired_capability", "binding_mismatch", "invalid_request", "destination_denied", "upstream_unavailable", "response_blocked", "limit_exceeded", "configuration"],
|
|
3408
3408
|
governance_denied: ["access_denied", "seat_limit", "feature_unavailable", "last_owner", "workspace_attached", "billing_account_attached", "personal_workspace", "invalid_request", "template_limit", "not_found", "plan_changed", "service_identity_changed", "service_identity_request_reused", "service_projects_changed", "service_identity_disabled", "service_projects_confirmation", "project_visibility_changed", "project_selection_changed"],
|
|
3409
3409
|
installer_failed: ["node_required", "unsupported_os", "npm_permission", "npm_cache_permission", "cancelled", "timeout", "service_failed", "connection_failed", "command_failed"],
|
|
@@ -5557,6 +5557,8 @@ var heartbeatResultSchema = z24.object({
|
|
|
5557
5557
|
* stops them now instead of when their lease runs out.
|
|
5558
5558
|
*/
|
|
5559
5559
|
revoked: z24.array(id3).max(500).optional(),
|
|
5560
|
+
/** Subset of revoked caused by an explicit cancel on an otherwise current claim. */
|
|
5561
|
+
cancelled: z24.array(id3).max(500).optional(),
|
|
5560
5562
|
/** Short-lived cloud device token, returned only over its authenticated link. */
|
|
5561
5563
|
cloudCredential: z24.string().regex(/^orv_[A-Za-z0-9_-]{43}$/).optional(),
|
|
5562
5564
|
/** A malformed value is dropped, never a failed heartbeat. */
|
|
@@ -6584,7 +6586,7 @@ import { join as join4 } from "node:path";
|
|
|
6584
6586
|
// package.json
|
|
6585
6587
|
var package_default = {
|
|
6586
6588
|
name: "@mikka/daemon",
|
|
6587
|
-
version: "0.0.
|
|
6589
|
+
version: "0.0.691",
|
|
6588
6590
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
6589
6591
|
type: "module",
|
|
6590
6592
|
private: true,
|
|
@@ -6652,7 +6654,7 @@ var package_default = {
|
|
|
6652
6654
|
engines: {
|
|
6653
6655
|
node: ">=22"
|
|
6654
6656
|
},
|
|
6655
|
-
gitHead: "
|
|
6657
|
+
gitHead: "25302463243fe27d86a74d4610ac2e6ad3750b3f"
|
|
6656
6658
|
};
|
|
6657
6659
|
|
|
6658
6660
|
// src/paths.ts
|
|
@@ -17981,11 +17983,17 @@ var RunSupervisor = class {
|
|
|
17981
17983
|
* Stops the runs the server says this device no longer holds. Runs without
|
|
17982
17984
|
* a server lease (local dev runs) were never the server's to take back.
|
|
17983
17985
|
*/
|
|
17984
|
-
revokeLeases(runIds) {
|
|
17986
|
+
revokeLeases(runIds, cancelled = []) {
|
|
17987
|
+
const explicitStops = new Set(cancelled);
|
|
17985
17988
|
for (const runId of runIds) {
|
|
17986
17989
|
const run3 = this.active.get(runId);
|
|
17987
|
-
|
|
17990
|
+
const lease = this.leases.get(runId);
|
|
17991
|
+
if (!run3 || run3.forcedStop || lease === void 0) continue;
|
|
17992
|
+
if (explicitStops.has(runId) && lease > Date.now()) {
|
|
17993
|
+
if (!run3.cancelRequested) void this.requestCancel(runId, run3);
|
|
17994
|
+
} else {
|
|
17988
17995
|
this.forceStop(runId, run3, "device_lost");
|
|
17996
|
+
}
|
|
17989
17997
|
}
|
|
17990
17998
|
}
|
|
17991
17999
|
/**
|
|
@@ -24609,11 +24617,11 @@ var Daemon = class {
|
|
|
24609
24617
|
...quotas ? { quotas } : {},
|
|
24610
24618
|
...this.options.autoUpdate ? { updateFailure: reportedUpdateFailure(this.updateStateFile, DAEMON_VERSION) } : {}
|
|
24611
24619
|
};
|
|
24612
|
-
const { leases, revoked, cloudCredential, deviceCommands, daemonVersions, taskSecrets } = await link.heartbeat(deviceId, heartbeat);
|
|
24620
|
+
const { leases, revoked, cancelled, cloudCredential, deviceCommands, daemonVersions, taskSecrets } = await link.heartbeat(deviceId, heartbeat);
|
|
24613
24621
|
this.deviceReceiptsAcknowledged = receiptsVersion;
|
|
24614
24622
|
this.learnRelease(daemonVersions?.latest);
|
|
24615
24623
|
this.supervisor.renewLeases(leases);
|
|
24616
|
-
if (revoked) this.supervisor.revokeLeases(revoked);
|
|
24624
|
+
if (revoked) this.supervisor.revokeLeases(revoked, cancelled);
|
|
24617
24625
|
this.supervisor.renewTaskSecrets(taskSecrets);
|
|
24618
24626
|
if (this.options.cloudComputer && cloudCredential && this.device.credential === credential) {
|
|
24619
24627
|
this.saveDevice({ credential: cloudCredential });
|
package/client.js
CHANGED
|
@@ -2659,7 +2659,7 @@ var USER_ERROR_CODES = {
|
|
|
2659
2659
|
run_network_error: [],
|
|
2660
2660
|
run_provider_error: [],
|
|
2661
2661
|
run_failed: [],
|
|
2662
|
-
run_credentials_unavailable: ["device_unavailable", "native_credentials", "github_credentials"],
|
|
2662
|
+
run_credentials_unavailable: ["device_unavailable", "native_credentials", "credential_missing", "credential_expired", "quota_exhausted", "github_credentials"],
|
|
2663
2663
|
task_secret_unavailable: ["invalid_capability", "expired_capability", "binding_mismatch", "invalid_request", "destination_denied", "upstream_unavailable", "response_blocked", "limit_exceeded", "configuration"],
|
|
2664
2664
|
governance_denied: ["access_denied", "seat_limit", "feature_unavailable", "last_owner", "workspace_attached", "billing_account_attached", "personal_workspace", "invalid_request", "template_limit", "not_found", "plan_changed", "service_identity_changed", "service_identity_request_reused", "service_projects_changed", "service_identity_disabled", "service_projects_confirmation", "project_visibility_changed", "project_selection_changed"],
|
|
2665
2665
|
installer_failed: ["node_required", "unsupported_os", "npm_permission", "npm_cache_permission", "cancelled", "timeout", "service_failed", "connection_failed", "command_failed"],
|
|
@@ -4239,6 +4239,8 @@ var heartbeatResultSchema = z24.object({
|
|
|
4239
4239
|
* stops them now instead of when their lease runs out.
|
|
4240
4240
|
*/
|
|
4241
4241
|
revoked: z24.array(id3).max(500).optional(),
|
|
4242
|
+
/** Subset of revoked caused by an explicit cancel on an otherwise current claim. */
|
|
4243
|
+
cancelled: z24.array(id3).max(500).optional(),
|
|
4242
4244
|
/** Short-lived cloud device token, returned only over its authenticated link. */
|
|
4243
4245
|
cloudCredential: z24.string().regex(/^orv_[A-Za-z0-9_-]{43}$/).optional(),
|
|
4244
4246
|
/** A malformed value is dropped, never a failed heartbeat. */
|
|
@@ -5110,7 +5112,7 @@ import { join } from "node:path";
|
|
|
5110
5112
|
// package.json
|
|
5111
5113
|
var package_default = {
|
|
5112
5114
|
name: "@mikka/daemon",
|
|
5113
|
-
version: "0.0.
|
|
5115
|
+
version: "0.0.691",
|
|
5114
5116
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5115
5117
|
type: "module",
|
|
5116
5118
|
private: true,
|
|
@@ -5178,7 +5180,7 @@ var package_default = {
|
|
|
5178
5180
|
engines: {
|
|
5179
5181
|
node: ">=22"
|
|
5180
5182
|
},
|
|
5181
|
-
gitHead: "
|
|
5183
|
+
gitHead: "25302463243fe27d86a74d4610ac2e6ad3750b3f"
|
|
5182
5184
|
};
|
|
5183
5185
|
|
|
5184
5186
|
// src/paths.ts
|
package/http-link.js
CHANGED
|
@@ -2102,7 +2102,7 @@ var USER_ERROR_CODES = {
|
|
|
2102
2102
|
run_network_error: [],
|
|
2103
2103
|
run_provider_error: [],
|
|
2104
2104
|
run_failed: [],
|
|
2105
|
-
run_credentials_unavailable: ["device_unavailable", "native_credentials", "github_credentials"],
|
|
2105
|
+
run_credentials_unavailable: ["device_unavailable", "native_credentials", "credential_missing", "credential_expired", "quota_exhausted", "github_credentials"],
|
|
2106
2106
|
task_secret_unavailable: ["invalid_capability", "expired_capability", "binding_mismatch", "invalid_request", "destination_denied", "upstream_unavailable", "response_blocked", "limit_exceeded", "configuration"],
|
|
2107
2107
|
governance_denied: ["access_denied", "seat_limit", "feature_unavailable", "last_owner", "workspace_attached", "billing_account_attached", "personal_workspace", "invalid_request", "template_limit", "not_found", "plan_changed", "service_identity_changed", "service_identity_request_reused", "service_projects_changed", "service_identity_disabled", "service_projects_confirmation", "project_visibility_changed", "project_selection_changed"],
|
|
2108
2108
|
installer_failed: ["node_required", "unsupported_os", "npm_permission", "npm_cache_permission", "cancelled", "timeout", "service_failed", "connection_failed", "command_failed"],
|
|
@@ -4665,6 +4665,8 @@ var heartbeatResultSchema = z26.object({
|
|
|
4665
4665
|
* stops them now instead of when their lease runs out.
|
|
4666
4666
|
*/
|
|
4667
4667
|
revoked: z26.array(id3).max(500).optional(),
|
|
4668
|
+
/** Subset of revoked caused by an explicit cancel on an otherwise current claim. */
|
|
4669
|
+
cancelled: z26.array(id3).max(500).optional(),
|
|
4668
4670
|
/** Short-lived cloud device token, returned only over its authenticated link. */
|
|
4669
4671
|
cloudCredential: z26.string().regex(/^orv_[A-Za-z0-9_-]{43}$/).optional(),
|
|
4670
4672
|
/** A malformed value is dropped, never a failed heartbeat. */
|
|
@@ -5637,7 +5639,7 @@ var InvalidIdError = class extends DaemonError {
|
|
|
5637
5639
|
// package.json
|
|
5638
5640
|
var package_default = {
|
|
5639
5641
|
name: "@mikka/daemon",
|
|
5640
|
-
version: "0.0.
|
|
5642
|
+
version: "0.0.691",
|
|
5641
5643
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5642
5644
|
type: "module",
|
|
5643
5645
|
private: true,
|
|
@@ -5705,7 +5707,7 @@ var package_default = {
|
|
|
5705
5707
|
engines: {
|
|
5706
5708
|
node: ">=22"
|
|
5707
5709
|
},
|
|
5708
|
-
gitHead: "
|
|
5710
|
+
gitHead: "25302463243fe27d86a74d4610ac2e6ad3750b3f"
|
|
5709
5711
|
};
|
|
5710
5712
|
|
|
5711
5713
|
// src/paths.ts
|
package/login.js
CHANGED
|
@@ -2700,7 +2700,7 @@ var USER_ERROR_CODES = {
|
|
|
2700
2700
|
run_network_error: [],
|
|
2701
2701
|
run_provider_error: [],
|
|
2702
2702
|
run_failed: [],
|
|
2703
|
-
run_credentials_unavailable: ["device_unavailable", "native_credentials", "github_credentials"],
|
|
2703
|
+
run_credentials_unavailable: ["device_unavailable", "native_credentials", "credential_missing", "credential_expired", "quota_exhausted", "github_credentials"],
|
|
2704
2704
|
task_secret_unavailable: ["invalid_capability", "expired_capability", "binding_mismatch", "invalid_request", "destination_denied", "upstream_unavailable", "response_blocked", "limit_exceeded", "configuration"],
|
|
2705
2705
|
governance_denied: ["access_denied", "seat_limit", "feature_unavailable", "last_owner", "workspace_attached", "billing_account_attached", "personal_workspace", "invalid_request", "template_limit", "not_found", "plan_changed", "service_identity_changed", "service_identity_request_reused", "service_projects_changed", "service_identity_disabled", "service_projects_confirmation", "project_visibility_changed", "project_selection_changed"],
|
|
2706
2706
|
installer_failed: ["node_required", "unsupported_os", "npm_permission", "npm_cache_permission", "cancelled", "timeout", "service_failed", "connection_failed", "command_failed"],
|
|
@@ -4279,6 +4279,8 @@ var heartbeatResultSchema = z24.object({
|
|
|
4279
4279
|
* stops them now instead of when their lease runs out.
|
|
4280
4280
|
*/
|
|
4281
4281
|
revoked: z24.array(id3).max(500).optional(),
|
|
4282
|
+
/** Subset of revoked caused by an explicit cancel on an otherwise current claim. */
|
|
4283
|
+
cancelled: z24.array(id3).max(500).optional(),
|
|
4282
4284
|
/** Short-lived cloud device token, returned only over its authenticated link. */
|
|
4283
4285
|
cloudCredential: z24.string().regex(/^orv_[A-Za-z0-9_-]{43}$/).optional(),
|
|
4284
4286
|
/** A malformed value is dropped, never a failed heartbeat. */
|
|
@@ -5162,7 +5164,7 @@ var ServerUnreachableError = class extends DaemonError {
|
|
|
5162
5164
|
// package.json
|
|
5163
5165
|
var package_default = {
|
|
5164
5166
|
name: "@mikka/daemon",
|
|
5165
|
-
version: "0.0.
|
|
5167
|
+
version: "0.0.691",
|
|
5166
5168
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5167
5169
|
type: "module",
|
|
5168
5170
|
private: true,
|
|
@@ -5230,7 +5232,7 @@ var package_default = {
|
|
|
5230
5232
|
engines: {
|
|
5231
5233
|
node: ">=22"
|
|
5232
5234
|
},
|
|
5233
|
-
gitHead: "
|
|
5235
|
+
gitHead: "25302463243fe27d86a74d4610ac2e6ad3750b3f"
|
|
5234
5236
|
};
|
|
5235
5237
|
|
|
5236
5238
|
// src/paths.ts
|
package/main.js
CHANGED
|
@@ -2125,7 +2125,7 @@ var USER_ERROR_CODES = {
|
|
|
2125
2125
|
run_network_error: [],
|
|
2126
2126
|
run_provider_error: [],
|
|
2127
2127
|
run_failed: [],
|
|
2128
|
-
run_credentials_unavailable: ["device_unavailable", "native_credentials", "github_credentials"],
|
|
2128
|
+
run_credentials_unavailable: ["device_unavailable", "native_credentials", "credential_missing", "credential_expired", "quota_exhausted", "github_credentials"],
|
|
2129
2129
|
task_secret_unavailable: ["invalid_capability", "expired_capability", "binding_mismatch", "invalid_request", "destination_denied", "upstream_unavailable", "response_blocked", "limit_exceeded", "configuration"],
|
|
2130
2130
|
governance_denied: ["access_denied", "seat_limit", "feature_unavailable", "last_owner", "workspace_attached", "billing_account_attached", "personal_workspace", "invalid_request", "template_limit", "not_found", "plan_changed", "service_identity_changed", "service_identity_request_reused", "service_projects_changed", "service_identity_disabled", "service_projects_confirmation", "project_visibility_changed", "project_selection_changed"],
|
|
2131
2131
|
installer_failed: ["node_required", "unsupported_os", "npm_permission", "npm_cache_permission", "cancelled", "timeout", "service_failed", "connection_failed", "command_failed"],
|
|
@@ -5131,6 +5131,8 @@ var heartbeatResultSchema = z24.object({
|
|
|
5131
5131
|
* stops them now instead of when their lease runs out.
|
|
5132
5132
|
*/
|
|
5133
5133
|
revoked: z24.array(id3).max(500).optional(),
|
|
5134
|
+
/** Subset of revoked caused by an explicit cancel on an otherwise current claim. */
|
|
5135
|
+
cancelled: z24.array(id3).max(500).optional(),
|
|
5134
5136
|
/** Short-lived cloud device token, returned only over its authenticated link. */
|
|
5135
5137
|
cloudCredential: z24.string().regex(/^orv_[A-Za-z0-9_-]{43}$/).optional(),
|
|
5136
5138
|
/** A malformed value is dropped, never a failed heartbeat. */
|
|
@@ -6073,7 +6075,7 @@ import { join } from "node:path";
|
|
|
6073
6075
|
// package.json
|
|
6074
6076
|
var package_default = {
|
|
6075
6077
|
name: "@mikka/daemon",
|
|
6076
|
-
version: "0.0.
|
|
6078
|
+
version: "0.0.691",
|
|
6077
6079
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
6078
6080
|
type: "module",
|
|
6079
6081
|
private: true,
|
|
@@ -6141,7 +6143,7 @@ var package_default = {
|
|
|
6141
6143
|
engines: {
|
|
6142
6144
|
node: ">=22"
|
|
6143
6145
|
},
|
|
6144
|
-
gitHead: "
|
|
6146
|
+
gitHead: "25302463243fe27d86a74d4610ac2e6ad3750b3f"
|
|
6145
6147
|
};
|
|
6146
6148
|
|
|
6147
6149
|
// src/paths.ts
|
|
@@ -16863,11 +16865,17 @@ var RunSupervisor = class {
|
|
|
16863
16865
|
* Stops the runs the server says this device no longer holds. Runs without
|
|
16864
16866
|
* a server lease (local dev runs) were never the server's to take back.
|
|
16865
16867
|
*/
|
|
16866
|
-
revokeLeases(runIds) {
|
|
16868
|
+
revokeLeases(runIds, cancelled = []) {
|
|
16869
|
+
const explicitStops = new Set(cancelled);
|
|
16867
16870
|
for (const runId of runIds) {
|
|
16868
16871
|
const run3 = this.active.get(runId);
|
|
16869
|
-
|
|
16872
|
+
const lease = this.leases.get(runId);
|
|
16873
|
+
if (!run3 || run3.forcedStop || lease === void 0) continue;
|
|
16874
|
+
if (explicitStops.has(runId) && lease > Date.now()) {
|
|
16875
|
+
if (!run3.cancelRequested) void this.requestCancel(runId, run3);
|
|
16876
|
+
} else {
|
|
16870
16877
|
this.forceStop(runId, run3, "device_lost");
|
|
16878
|
+
}
|
|
16871
16879
|
}
|
|
16872
16880
|
}
|
|
16873
16881
|
/**
|
|
@@ -23503,11 +23511,11 @@ var Daemon = class {
|
|
|
23503
23511
|
...quotas ? { quotas } : {},
|
|
23504
23512
|
...this.options.autoUpdate ? { updateFailure: reportedUpdateFailure(this.updateStateFile, DAEMON_VERSION) } : {}
|
|
23505
23513
|
};
|
|
23506
|
-
const { leases, revoked, cloudCredential, deviceCommands, daemonVersions, taskSecrets } = await link.heartbeat(deviceId, heartbeat);
|
|
23514
|
+
const { leases, revoked, cancelled, cloudCredential, deviceCommands, daemonVersions, taskSecrets } = await link.heartbeat(deviceId, heartbeat);
|
|
23507
23515
|
this.deviceReceiptsAcknowledged = receiptsVersion;
|
|
23508
23516
|
this.learnRelease(daemonVersions?.latest);
|
|
23509
23517
|
this.supervisor.renewLeases(leases);
|
|
23510
|
-
if (revoked) this.supervisor.revokeLeases(revoked);
|
|
23518
|
+
if (revoked) this.supervisor.revokeLeases(revoked, cancelled);
|
|
23511
23519
|
this.supervisor.renewTaskSecrets(taskSecrets);
|
|
23512
23520
|
if (this.options.cloudComputer && cloudCredential && this.device.credential === credential) {
|
|
23513
23521
|
this.saveDevice({ credential: cloudCredential });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"sourceSha": "
|
|
3
|
+
"sourceSha": "25302463243fe27d86a74d4610ac2e6ad3750b3f",
|
|
4
4
|
"repository": "alexj11324/Mikka",
|
|
5
|
-
"buildRunId": "
|
|
5
|
+
"buildRunId": "44129388590",
|
|
6
6
|
"buildKind": "github-actions-main",
|
|
7
7
|
"sourceLockSha256": "ef566c7e7ffb23a605b6f4c0c5b715caba7afed70b6155251db2eead6b9c426b",
|
|
8
|
-
"createdAt": "2026-11-
|
|
8
|
+
"createdAt": "2026-11-17T16:49:03.636Z",
|
|
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": 1088434,
|
|
39
|
+
"sha256": "66f45870d4601af8fab3c9e80f1a50728778f60a1ce7f86037e9ce292d532a8d"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"path": "client.js",
|
|
43
|
-
"size":
|
|
44
|
-
"sha256": "
|
|
43
|
+
"size": 212102,
|
|
44
|
+
"sha256": "66e6127c39604e86adcae91b8eda0eb402f3be739738db0edf67ef714c4dc024"
|
|
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": 309026,
|
|
164
|
+
"sha256": "059f840947de7c1757338a97f19575a4cba6781776f66cc908b132593e221e75"
|
|
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": 269030,
|
|
174
|
+
"sha256": "f55bdf93cc9d01b428aec78e8242413c5c4ac72e047954ec23a14aab327e499f"
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"path": "main.js",
|
|
178
|
-
"size":
|
|
179
|
-
"sha256": "
|
|
178
|
+
"size": 1027294,
|
|
179
|
+
"sha256": "85838674a7d19c77ef5d0f4c7f3d79ad84a0357932ce123086d3ab5e28097450"
|
|
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": 1088450,
|
|
209
|
+
"sha256": "aa667f2c684eea4d8622767791c42b4033aa56ff447db4b55079b0db145b87de"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
"path": "npm-shrinkwrap.json",
|
|
213
213
|
"size": 85376,
|
|
214
|
-
"sha256": "
|
|
214
|
+
"sha256": "9271a18803d44fc6c407b957a681cb47e879635aaf52d789ad7457c2d3bf99fb"
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"path": "package.json",
|
|
218
218
|
"size": 1551,
|
|
219
|
-
"sha256": "
|
|
219
|
+
"sha256": "d08493bbf734989bd65f79e1a8d044433e742582fcf173fbe8764963066f6628"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
"path": "paths.js",
|
|
223
223
|
"size": 4585,
|
|
224
|
-
"sha256": "
|
|
224
|
+
"sha256": "73f40b1046a790f69734ec77b3489919b9ec413a48ad2bf1ac8213b9010bce2f"
|
|
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": "c7b8f569cdfdced56aee5318a3463440470b9e13ff3a42c11fe6ffff492b49f7"
|
|
235
235
|
}
|
|
236
236
|
]
|
|
237
237
|
}
|
package/mikka.js
CHANGED
|
@@ -3404,7 +3404,7 @@ var USER_ERROR_CODES = {
|
|
|
3404
3404
|
run_network_error: [],
|
|
3405
3405
|
run_provider_error: [],
|
|
3406
3406
|
run_failed: [],
|
|
3407
|
-
run_credentials_unavailable: ["device_unavailable", "native_credentials", "github_credentials"],
|
|
3407
|
+
run_credentials_unavailable: ["device_unavailable", "native_credentials", "credential_missing", "credential_expired", "quota_exhausted", "github_credentials"],
|
|
3408
3408
|
task_secret_unavailable: ["invalid_capability", "expired_capability", "binding_mismatch", "invalid_request", "destination_denied", "upstream_unavailable", "response_blocked", "limit_exceeded", "configuration"],
|
|
3409
3409
|
governance_denied: ["access_denied", "seat_limit", "feature_unavailable", "last_owner", "workspace_attached", "billing_account_attached", "personal_workspace", "invalid_request", "template_limit", "not_found", "plan_changed", "service_identity_changed", "service_identity_request_reused", "service_projects_changed", "service_identity_disabled", "service_projects_confirmation", "project_visibility_changed", "project_selection_changed"],
|
|
3410
3410
|
installer_failed: ["node_required", "unsupported_os", "npm_permission", "npm_cache_permission", "cancelled", "timeout", "service_failed", "connection_failed", "command_failed"],
|
|
@@ -5558,6 +5558,8 @@ var heartbeatResultSchema = z24.object({
|
|
|
5558
5558
|
* stops them now instead of when their lease runs out.
|
|
5559
5559
|
*/
|
|
5560
5560
|
revoked: z24.array(id3).max(500).optional(),
|
|
5561
|
+
/** Subset of revoked caused by an explicit cancel on an otherwise current claim. */
|
|
5562
|
+
cancelled: z24.array(id3).max(500).optional(),
|
|
5561
5563
|
/** Short-lived cloud device token, returned only over its authenticated link. */
|
|
5562
5564
|
cloudCredential: z24.string().regex(/^orv_[A-Za-z0-9_-]{43}$/).optional(),
|
|
5563
5565
|
/** A malformed value is dropped, never a failed heartbeat. */
|
|
@@ -6585,7 +6587,7 @@ import { join as join4 } from "node:path";
|
|
|
6585
6587
|
// package.json
|
|
6586
6588
|
var package_default = {
|
|
6587
6589
|
name: "@mikka/daemon",
|
|
6588
|
-
version: "0.0.
|
|
6590
|
+
version: "0.0.691",
|
|
6589
6591
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
6590
6592
|
type: "module",
|
|
6591
6593
|
private: true,
|
|
@@ -6653,7 +6655,7 @@ var package_default = {
|
|
|
6653
6655
|
engines: {
|
|
6654
6656
|
node: ">=22"
|
|
6655
6657
|
},
|
|
6656
|
-
gitHead: "
|
|
6658
|
+
gitHead: "25302463243fe27d86a74d4610ac2e6ad3750b3f"
|
|
6657
6659
|
};
|
|
6658
6660
|
|
|
6659
6661
|
// src/paths.ts
|
|
@@ -17982,11 +17984,17 @@ var RunSupervisor = class {
|
|
|
17982
17984
|
* Stops the runs the server says this device no longer holds. Runs without
|
|
17983
17985
|
* a server lease (local dev runs) were never the server's to take back.
|
|
17984
17986
|
*/
|
|
17985
|
-
revokeLeases(runIds) {
|
|
17987
|
+
revokeLeases(runIds, cancelled = []) {
|
|
17988
|
+
const explicitStops = new Set(cancelled);
|
|
17986
17989
|
for (const runId of runIds) {
|
|
17987
17990
|
const run3 = this.active.get(runId);
|
|
17988
|
-
|
|
17991
|
+
const lease = this.leases.get(runId);
|
|
17992
|
+
if (!run3 || run3.forcedStop || lease === void 0) continue;
|
|
17993
|
+
if (explicitStops.has(runId) && lease > Date.now()) {
|
|
17994
|
+
if (!run3.cancelRequested) void this.requestCancel(runId, run3);
|
|
17995
|
+
} else {
|
|
17989
17996
|
this.forceStop(runId, run3, "device_lost");
|
|
17997
|
+
}
|
|
17990
17998
|
}
|
|
17991
17999
|
}
|
|
17992
18000
|
/**
|
|
@@ -24610,11 +24618,11 @@ var Daemon = class {
|
|
|
24610
24618
|
...quotas ? { quotas } : {},
|
|
24611
24619
|
...this.options.autoUpdate ? { updateFailure: reportedUpdateFailure(this.updateStateFile, DAEMON_VERSION) } : {}
|
|
24612
24620
|
};
|
|
24613
|
-
const { leases, revoked, cloudCredential, deviceCommands, daemonVersions, taskSecrets } = await link.heartbeat(deviceId, heartbeat);
|
|
24621
|
+
const { leases, revoked, cancelled, cloudCredential, deviceCommands, daemonVersions, taskSecrets } = await link.heartbeat(deviceId, heartbeat);
|
|
24614
24622
|
this.deviceReceiptsAcknowledged = receiptsVersion;
|
|
24615
24623
|
this.learnRelease(daemonVersions?.latest);
|
|
24616
24624
|
this.supervisor.renewLeases(leases);
|
|
24617
|
-
if (revoked) this.supervisor.revokeLeases(revoked);
|
|
24625
|
+
if (revoked) this.supervisor.revokeLeases(revoked, cancelled);
|
|
24618
24626
|
this.supervisor.renewTaskSecrets(taskSecrets);
|
|
24619
24627
|
if (this.options.cloudComputer && cloudCredential && this.device.credential === credential) {
|
|
24620
24628
|
this.saveDevice({ credential: cloudCredential });
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aspectlylabs/mikka",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.691",
|
|
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.691",
|
|
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.691",
|
|
4
4
|
"description": "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "25302463243fe27d86a74d4610ac2e6ad3750b3f",
|
|
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.691",
|
|
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: "25302463243fe27d86a74d4610ac2e6ad3750b3f"
|
|
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:fe0dd7e8-0c60-4087-8549-8da3c71ef723",
|
|
6
6
|
"version": 1,
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-11-
|
|
8
|
+
"timestamp": "2026-11-17T16:49:03.103Z",
|
|
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.691",
|
|
23
23
|
"type": "library",
|
|
24
|
-
"name": ".retained-build-
|
|
25
|
-
"version": "0.0.
|
|
24
|
+
"name": ".retained-build-nb6qxq",
|
|
25
|
+
"version": "0.0.691",
|
|
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.691",
|
|
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.691",
|
|
4913
4913
|
"dependsOn": [
|
|
4914
4914
|
"@agentclientprotocol/sdk@1.9.0",
|
|
4915
4915
|
"@anthropic-ai/claude-agent-sdk@0.3.305",
|