@aspectlylabs/mikka 0.0.744 → 0.0.747
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 +52 -12
- package/client.js +20 -3
- package/http-link.js +20 -3
- package/login.js +20 -3
- package/main.js +52 -12
- package/mikka-release-manifest.json +19 -19
- package/mikka.js +52 -12
- 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
|
@@ -5676,6 +5676,21 @@ var runModelCredentialSchema = z24.discriminatedUnion("kind", [
|
|
|
5676
5676
|
return /^mkg_[A-Za-z0-9_-]{43}$/.test(value.key) && url.pathname.endsWith(path3) && /^(?:\/[A-Za-z0-9_-]+)*$/.test(url.pathname.slice(0, -path3.length));
|
|
5677
5677
|
})
|
|
5678
5678
|
]);
|
|
5679
|
+
var hasGitIdentityForbiddenChar = (value) => [...value].some((char) => {
|
|
5680
|
+
const code = char.charCodeAt(0);
|
|
5681
|
+
return code < 32 || code === 127 || char === "<" || char === ">";
|
|
5682
|
+
});
|
|
5683
|
+
var gitAuthorNameSchema = z24.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author name" }).transform((value) => value.trim()).pipe(z24.string().max(100).refine((value) => !hasGitIdentityForbiddenChar(value), { message: "Invalid git author name" }));
|
|
5684
|
+
var gitAuthorEmailSchema = z24.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author email" }).transform((value) => value.trim()).pipe(
|
|
5685
|
+
z24.string().max(254).refine(
|
|
5686
|
+
(value) => value === "" || !hasGitIdentityForbiddenChar(value) && z24.email().safeParse(value).success,
|
|
5687
|
+
{ message: "Invalid git author email" }
|
|
5688
|
+
)
|
|
5689
|
+
);
|
|
5690
|
+
var runGitIdentitySchema = z24.strictObject({
|
|
5691
|
+
name: gitAuthorNameSchema.pipe(z24.string().min(1)).optional(),
|
|
5692
|
+
email: gitAuthorEmailSchema.pipe(z24.string().min(1)).optional()
|
|
5693
|
+
});
|
|
5679
5694
|
var deviceRepoSchema = z24.object({
|
|
5680
5695
|
repoId: id3,
|
|
5681
5696
|
name: z24.string().max(500),
|
|
@@ -5884,7 +5899,9 @@ var runAssignmentSchema = z24.object({
|
|
|
5884
5899
|
*/
|
|
5885
5900
|
repositorySkills: z24.array(z24.string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/)).max(MAX_PROFILE_SKILLS_PER_RUN).optional(),
|
|
5886
5901
|
/** Frozen by the server benchmark ledger; never extracted from model output. */
|
|
5887
|
-
benchmark: runBenchmarkContext.optional()
|
|
5902
|
+
benchmark: runBenchmarkContext.optional(),
|
|
5903
|
+
/** Resolved personal/workspace Git commit author & committer identity (#3110). */
|
|
5904
|
+
gitIdentity: runGitIdentitySchema.optional()
|
|
5888
5905
|
}).refine((value) => !(value.modelCredential && value.subscriptionBinding), { message: "A run has one model credential", path: ["modelCredential"] }).refine(
|
|
5889
5906
|
(value) => !value.subscriptionLease || Boolean(value.subscriptionBinding && value.subscriptionBinding.route === value.subscriptionLease.route && (value.harness === "codex" ? value.subscriptionLease.route === "codex_cli" : value.harness === "claude_code" && value.subscriptionLease.route === "claude_code_cli")),
|
|
5890
5907
|
{ message: "A subscription lease belongs to the selected harness and binding", path: ["subscriptionLease"] }
|
|
@@ -6644,7 +6661,7 @@ import { join as join5 } from "node:path";
|
|
|
6644
6661
|
// package.json
|
|
6645
6662
|
var package_default = {
|
|
6646
6663
|
name: "@mikka/daemon",
|
|
6647
|
-
version: "0.0.
|
|
6664
|
+
version: "0.0.747",
|
|
6648
6665
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
6649
6666
|
type: "module",
|
|
6650
6667
|
private: true,
|
|
@@ -6712,7 +6729,7 @@ var package_default = {
|
|
|
6712
6729
|
engines: {
|
|
6713
6730
|
node: ">=22"
|
|
6714
6731
|
},
|
|
6715
|
-
gitHead: "
|
|
6732
|
+
gitHead: "052e3e6a97619230187c4133659332d928188dd3"
|
|
6716
6733
|
};
|
|
6717
6734
|
|
|
6718
6735
|
// src/paths.ts
|
|
@@ -10618,12 +10635,18 @@ var SAFE_GIT = [
|
|
|
10618
10635
|
"-c",
|
|
10619
10636
|
"protocol.ext.allow=never"
|
|
10620
10637
|
];
|
|
10638
|
+
var DEFAULT_GIT_AUTHOR_NAME = "Mikka Agent";
|
|
10639
|
+
var DEFAULT_GIT_AUTHOR_EMAIL = "agent@mikka.invalid";
|
|
10621
10640
|
var FALLBACK_IDENTITY = [
|
|
10622
10641
|
"-c",
|
|
10623
|
-
|
|
10642
|
+
`user.name=${DEFAULT_GIT_AUTHOR_NAME}`,
|
|
10624
10643
|
"-c",
|
|
10625
|
-
|
|
10644
|
+
`user.email=${DEFAULT_GIT_AUTHOR_EMAIL}`
|
|
10626
10645
|
];
|
|
10646
|
+
var REPO_ONLY_GIT_CONFIG_ENV = {
|
|
10647
|
+
GIT_CONFIG_GLOBAL: "/dev/null",
|
|
10648
|
+
GIT_CONFIG_SYSTEM: "/dev/null"
|
|
10649
|
+
};
|
|
10627
10650
|
async function worktreeGitDir(repoPath, worktree, signal) {
|
|
10628
10651
|
signal?.throwIfAborted();
|
|
10629
10652
|
const common2 = realpathSync5(
|
|
@@ -10702,13 +10725,32 @@ async function snapshotTree(repoPath, worktree, env, signal) {
|
|
|
10702
10725
|
rmSync5(dir, { recursive: true, force: true });
|
|
10703
10726
|
}
|
|
10704
10727
|
}
|
|
10705
|
-
async function
|
|
10728
|
+
async function readRepoGitConfig(git3, key2) {
|
|
10729
|
+
return git3(["config", key2], REPO_ONLY_GIT_CONFIG_ENV).then(
|
|
10730
|
+
(result) => String(result.stdout).trim(),
|
|
10731
|
+
() => ""
|
|
10732
|
+
);
|
|
10733
|
+
}
|
|
10734
|
+
async function resolvePublishGitIdentity(git3, gitIdentity) {
|
|
10735
|
+
const [repoName, repoEmail] = await Promise.all([
|
|
10736
|
+
readRepoGitConfig(git3, "user.name"),
|
|
10737
|
+
readRepoGitConfig(git3, "user.email")
|
|
10738
|
+
]);
|
|
10739
|
+
const name = repoName || gitIdentity?.name?.trim() || DEFAULT_GIT_AUTHOR_NAME;
|
|
10740
|
+
const email = repoEmail || gitIdentity?.email?.trim() || DEFAULT_GIT_AUTHOR_EMAIL;
|
|
10741
|
+
if (name === DEFAULT_GIT_AUTHOR_NAME && email === DEFAULT_GIT_AUTHOR_EMAIL) {
|
|
10742
|
+
return FALLBACK_IDENTITY;
|
|
10743
|
+
}
|
|
10744
|
+
return ["-c", `user.name=${name}`, "-c", `user.email=${email}`];
|
|
10745
|
+
}
|
|
10746
|
+
async function retainDeliverable(repoPath, worktree, runId, signal, gitIdentity) {
|
|
10706
10747
|
const tree = await snapshotTree(repoPath, worktree, void 0, signal);
|
|
10707
10748
|
const git3 = await pinnedGit(repoPath, worktree, void 0, signal);
|
|
10708
10749
|
const head = String((await git3(["rev-parse", "HEAD"])).stdout).trim();
|
|
10709
10750
|
const before = String((await git3(["rev-parse", "HEAD^{tree}"])).stdout).trim();
|
|
10710
10751
|
if (tree === before) return head;
|
|
10711
|
-
const
|
|
10752
|
+
const identity = await resolvePublishGitIdentity(git3, gitIdentity);
|
|
10753
|
+
const commit = String((await git3([...identity, "commit-tree", tree, "-p", head, "-m", "Retain task delivery for independent inspection"])).stdout).trim();
|
|
10712
10754
|
await git3(["update-ref", `refs/heads/${runBranch(runId)}`, commit, head]);
|
|
10713
10755
|
await git3(["read-tree", commit]);
|
|
10714
10756
|
return commit;
|
|
@@ -10778,10 +10820,7 @@ async function publishRun(options) {
|
|
|
10778
10820
|
}
|
|
10779
10821
|
let commit;
|
|
10780
10822
|
try {
|
|
10781
|
-
const identity = await git3
|
|
10782
|
-
(result) => String(result.stdout).trim() ? [] : FALLBACK_IDENTITY,
|
|
10783
|
-
() => FALLBACK_IDENTITY
|
|
10784
|
-
);
|
|
10823
|
+
const identity = await resolvePublishGitIdentity(git3, options.gitIdentity);
|
|
10785
10824
|
commit = String(
|
|
10786
10825
|
(await git3([
|
|
10787
10826
|
...identity,
|
|
@@ -17355,7 +17394,7 @@ async function collectReport(context, stopReason, error, agent) {
|
|
|
17355
17394
|
const command = assignment.verifyCommand ?? inferred?.command;
|
|
17356
17395
|
if (stopReason === "submitted") context.assertLive();
|
|
17357
17396
|
if (stopReason === "submitted" && assignment.factoryExecuteKind === "deliverable") {
|
|
17358
|
-
const deliverableCommit = await retainDeliverable(repo.path, worktree, runId, signal);
|
|
17397
|
+
const deliverableCommit = await retainDeliverable(repo.path, worktree, runId, signal, assignment.gitIdentity);
|
|
17359
17398
|
context.assertLive();
|
|
17360
17399
|
deps.journal.update(runId, { deliverableCommit });
|
|
17361
17400
|
}
|
|
@@ -24223,6 +24262,7 @@ var Daemon = class {
|
|
|
24223
24262
|
issueId: assignment.issueId,
|
|
24224
24263
|
summary: report2.summary,
|
|
24225
24264
|
signal,
|
|
24265
|
+
gitIdentity: assignment.gitIdentity,
|
|
24226
24266
|
pushBranch: assignment.pushBranch,
|
|
24227
24267
|
baseBranch: assignment.remoteUrl ? await this.repositories.baseRef(assignment.remoteUrl, assignment.baseBranch) : assignment.baseBranch,
|
|
24228
24268
|
push: (() => {
|
package/client.js
CHANGED
|
@@ -4304,6 +4304,21 @@ var runModelCredentialSchema = z24.discriminatedUnion("kind", [
|
|
|
4304
4304
|
return /^mkg_[A-Za-z0-9_-]{43}$/.test(value.key) && url.pathname.endsWith(path3) && /^(?:\/[A-Za-z0-9_-]+)*$/.test(url.pathname.slice(0, -path3.length));
|
|
4305
4305
|
})
|
|
4306
4306
|
]);
|
|
4307
|
+
var hasGitIdentityForbiddenChar = (value) => [...value].some((char) => {
|
|
4308
|
+
const code = char.charCodeAt(0);
|
|
4309
|
+
return code < 32 || code === 127 || char === "<" || char === ">";
|
|
4310
|
+
});
|
|
4311
|
+
var gitAuthorNameSchema = z24.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author name" }).transform((value) => value.trim()).pipe(z24.string().max(100).refine((value) => !hasGitIdentityForbiddenChar(value), { message: "Invalid git author name" }));
|
|
4312
|
+
var gitAuthorEmailSchema = z24.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author email" }).transform((value) => value.trim()).pipe(
|
|
4313
|
+
z24.string().max(254).refine(
|
|
4314
|
+
(value) => value === "" || !hasGitIdentityForbiddenChar(value) && z24.email().safeParse(value).success,
|
|
4315
|
+
{ message: "Invalid git author email" }
|
|
4316
|
+
)
|
|
4317
|
+
);
|
|
4318
|
+
var runGitIdentitySchema = z24.strictObject({
|
|
4319
|
+
name: gitAuthorNameSchema.pipe(z24.string().min(1)).optional(),
|
|
4320
|
+
email: gitAuthorEmailSchema.pipe(z24.string().min(1)).optional()
|
|
4321
|
+
});
|
|
4307
4322
|
var deviceRepoSchema = z24.object({
|
|
4308
4323
|
repoId: id3,
|
|
4309
4324
|
name: z24.string().max(500),
|
|
@@ -4512,7 +4527,9 @@ var runAssignmentSchema = z24.object({
|
|
|
4512
4527
|
*/
|
|
4513
4528
|
repositorySkills: z24.array(z24.string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/)).max(MAX_PROFILE_SKILLS_PER_RUN).optional(),
|
|
4514
4529
|
/** Frozen by the server benchmark ledger; never extracted from model output. */
|
|
4515
|
-
benchmark: runBenchmarkContext.optional()
|
|
4530
|
+
benchmark: runBenchmarkContext.optional(),
|
|
4531
|
+
/** Resolved personal/workspace Git commit author & committer identity (#3110). */
|
|
4532
|
+
gitIdentity: runGitIdentitySchema.optional()
|
|
4516
4533
|
}).refine((value) => !(value.modelCredential && value.subscriptionBinding), { message: "A run has one model credential", path: ["modelCredential"] }).refine(
|
|
4517
4534
|
(value) => !value.subscriptionLease || Boolean(value.subscriptionBinding && value.subscriptionBinding.route === value.subscriptionLease.route && (value.harness === "codex" ? value.subscriptionLease.route === "codex_cli" : value.harness === "claude_code" && value.subscriptionLease.route === "claude_code_cli")),
|
|
4518
4535
|
{ message: "A subscription lease belongs to the selected harness and binding", path: ["subscriptionLease"] }
|
|
@@ -5110,7 +5127,7 @@ import { join } from "node:path";
|
|
|
5110
5127
|
// package.json
|
|
5111
5128
|
var package_default = {
|
|
5112
5129
|
name: "@mikka/daemon",
|
|
5113
|
-
version: "0.0.
|
|
5130
|
+
version: "0.0.747",
|
|
5114
5131
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5115
5132
|
type: "module",
|
|
5116
5133
|
private: true,
|
|
@@ -5178,7 +5195,7 @@ var package_default = {
|
|
|
5178
5195
|
engines: {
|
|
5179
5196
|
node: ">=22"
|
|
5180
5197
|
},
|
|
5181
|
-
gitHead: "
|
|
5198
|
+
gitHead: "052e3e6a97619230187c4133659332d928188dd3"
|
|
5182
5199
|
};
|
|
5183
5200
|
|
|
5184
5201
|
// src/paths.ts
|
package/http-link.js
CHANGED
|
@@ -4691,6 +4691,21 @@ var runModelCredentialSchema = z26.discriminatedUnion("kind", [
|
|
|
4691
4691
|
return /^mkg_[A-Za-z0-9_-]{43}$/.test(value.key) && url.pathname.endsWith(path3) && /^(?:\/[A-Za-z0-9_-]+)*$/.test(url.pathname.slice(0, -path3.length));
|
|
4692
4692
|
})
|
|
4693
4693
|
]);
|
|
4694
|
+
var hasGitIdentityForbiddenChar = (value) => [...value].some((char) => {
|
|
4695
|
+
const code = char.charCodeAt(0);
|
|
4696
|
+
return code < 32 || code === 127 || char === "<" || char === ">";
|
|
4697
|
+
});
|
|
4698
|
+
var gitAuthorNameSchema = z26.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author name" }).transform((value) => value.trim()).pipe(z26.string().max(100).refine((value) => !hasGitIdentityForbiddenChar(value), { message: "Invalid git author name" }));
|
|
4699
|
+
var gitAuthorEmailSchema = z26.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author email" }).transform((value) => value.trim()).pipe(
|
|
4700
|
+
z26.string().max(254).refine(
|
|
4701
|
+
(value) => value === "" || !hasGitIdentityForbiddenChar(value) && z26.email().safeParse(value).success,
|
|
4702
|
+
{ message: "Invalid git author email" }
|
|
4703
|
+
)
|
|
4704
|
+
);
|
|
4705
|
+
var runGitIdentitySchema = z26.strictObject({
|
|
4706
|
+
name: gitAuthorNameSchema.pipe(z26.string().min(1)).optional(),
|
|
4707
|
+
email: gitAuthorEmailSchema.pipe(z26.string().min(1)).optional()
|
|
4708
|
+
});
|
|
4694
4709
|
var deviceRepoSchema = z26.object({
|
|
4695
4710
|
repoId: id3,
|
|
4696
4711
|
name: z26.string().max(500),
|
|
@@ -4899,7 +4914,9 @@ var runAssignmentSchema = z26.object({
|
|
|
4899
4914
|
*/
|
|
4900
4915
|
repositorySkills: z26.array(z26.string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/)).max(MAX_PROFILE_SKILLS_PER_RUN).optional(),
|
|
4901
4916
|
/** Frozen by the server benchmark ledger; never extracted from model output. */
|
|
4902
|
-
benchmark: runBenchmarkContext.optional()
|
|
4917
|
+
benchmark: runBenchmarkContext.optional(),
|
|
4918
|
+
/** Resolved personal/workspace Git commit author & committer identity (#3110). */
|
|
4919
|
+
gitIdentity: runGitIdentitySchema.optional()
|
|
4903
4920
|
}).refine((value) => !(value.modelCredential && value.subscriptionBinding), { message: "A run has one model credential", path: ["modelCredential"] }).refine(
|
|
4904
4921
|
(value) => !value.subscriptionLease || Boolean(value.subscriptionBinding && value.subscriptionBinding.route === value.subscriptionLease.route && (value.harness === "codex" ? value.subscriptionLease.route === "codex_cli" : value.harness === "claude_code" && value.subscriptionLease.route === "claude_code_cli")),
|
|
4905
4922
|
{ message: "A subscription lease belongs to the selected harness and binding", path: ["subscriptionLease"] }
|
|
@@ -5607,7 +5624,7 @@ var InvalidIdError = class extends DaemonError {
|
|
|
5607
5624
|
// package.json
|
|
5608
5625
|
var package_default = {
|
|
5609
5626
|
name: "@mikka/daemon",
|
|
5610
|
-
version: "0.0.
|
|
5627
|
+
version: "0.0.747",
|
|
5611
5628
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5612
5629
|
type: "module",
|
|
5613
5630
|
private: true,
|
|
@@ -5675,7 +5692,7 @@ var package_default = {
|
|
|
5675
5692
|
engines: {
|
|
5676
5693
|
node: ">=22"
|
|
5677
5694
|
},
|
|
5678
|
-
gitHead: "
|
|
5695
|
+
gitHead: "052e3e6a97619230187c4133659332d928188dd3"
|
|
5679
5696
|
};
|
|
5680
5697
|
|
|
5681
5698
|
// src/paths.ts
|
package/login.js
CHANGED
|
@@ -4346,6 +4346,21 @@ var runModelCredentialSchema = z24.discriminatedUnion("kind", [
|
|
|
4346
4346
|
return /^mkg_[A-Za-z0-9_-]{43}$/.test(value.key) && url.pathname.endsWith(path3) && /^(?:\/[A-Za-z0-9_-]+)*$/.test(url.pathname.slice(0, -path3.length));
|
|
4347
4347
|
})
|
|
4348
4348
|
]);
|
|
4349
|
+
var hasGitIdentityForbiddenChar = (value) => [...value].some((char) => {
|
|
4350
|
+
const code = char.charCodeAt(0);
|
|
4351
|
+
return code < 32 || code === 127 || char === "<" || char === ">";
|
|
4352
|
+
});
|
|
4353
|
+
var gitAuthorNameSchema = z24.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author name" }).transform((value) => value.trim()).pipe(z24.string().max(100).refine((value) => !hasGitIdentityForbiddenChar(value), { message: "Invalid git author name" }));
|
|
4354
|
+
var gitAuthorEmailSchema = z24.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author email" }).transform((value) => value.trim()).pipe(
|
|
4355
|
+
z24.string().max(254).refine(
|
|
4356
|
+
(value) => value === "" || !hasGitIdentityForbiddenChar(value) && z24.email().safeParse(value).success,
|
|
4357
|
+
{ message: "Invalid git author email" }
|
|
4358
|
+
)
|
|
4359
|
+
);
|
|
4360
|
+
var runGitIdentitySchema = z24.strictObject({
|
|
4361
|
+
name: gitAuthorNameSchema.pipe(z24.string().min(1)).optional(),
|
|
4362
|
+
email: gitAuthorEmailSchema.pipe(z24.string().min(1)).optional()
|
|
4363
|
+
});
|
|
4349
4364
|
var deviceRepoSchema = z24.object({
|
|
4350
4365
|
repoId: id3,
|
|
4351
4366
|
name: z24.string().max(500),
|
|
@@ -4554,7 +4569,9 @@ var runAssignmentSchema = z24.object({
|
|
|
4554
4569
|
*/
|
|
4555
4570
|
repositorySkills: z24.array(z24.string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/)).max(MAX_PROFILE_SKILLS_PER_RUN).optional(),
|
|
4556
4571
|
/** Frozen by the server benchmark ledger; never extracted from model output. */
|
|
4557
|
-
benchmark: runBenchmarkContext.optional()
|
|
4572
|
+
benchmark: runBenchmarkContext.optional(),
|
|
4573
|
+
/** Resolved personal/workspace Git commit author & committer identity (#3110). */
|
|
4574
|
+
gitIdentity: runGitIdentitySchema.optional()
|
|
4558
4575
|
}).refine((value) => !(value.modelCredential && value.subscriptionBinding), { message: "A run has one model credential", path: ["modelCredential"] }).refine(
|
|
4559
4576
|
(value) => !value.subscriptionLease || Boolean(value.subscriptionBinding && value.subscriptionBinding.route === value.subscriptionLease.route && (value.harness === "codex" ? value.subscriptionLease.route === "codex_cli" : value.harness === "claude_code" && value.subscriptionLease.route === "claude_code_cli")),
|
|
4560
4577
|
{ message: "A subscription lease belongs to the selected harness and binding", path: ["subscriptionLease"] }
|
|
@@ -5164,7 +5181,7 @@ var ServerUnreachableError = class extends DaemonError {
|
|
|
5164
5181
|
// package.json
|
|
5165
5182
|
var package_default = {
|
|
5166
5183
|
name: "@mikka/daemon",
|
|
5167
|
-
version: "0.0.
|
|
5184
|
+
version: "0.0.747",
|
|
5168
5185
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5169
5186
|
type: "module",
|
|
5170
5187
|
private: true,
|
|
@@ -5232,7 +5249,7 @@ var package_default = {
|
|
|
5232
5249
|
engines: {
|
|
5233
5250
|
node: ">=22"
|
|
5234
5251
|
},
|
|
5235
|
-
gitHead: "
|
|
5252
|
+
gitHead: "052e3e6a97619230187c4133659332d928188dd3"
|
|
5236
5253
|
};
|
|
5237
5254
|
|
|
5238
5255
|
// src/paths.ts
|
package/main.js
CHANGED
|
@@ -5198,6 +5198,21 @@ var runModelCredentialSchema = z24.discriminatedUnion("kind", [
|
|
|
5198
5198
|
return /^mkg_[A-Za-z0-9_-]{43}$/.test(value.key) && url.pathname.endsWith(path3) && /^(?:\/[A-Za-z0-9_-]+)*$/.test(url.pathname.slice(0, -path3.length));
|
|
5199
5199
|
})
|
|
5200
5200
|
]);
|
|
5201
|
+
var hasGitIdentityForbiddenChar = (value) => [...value].some((char) => {
|
|
5202
|
+
const code = char.charCodeAt(0);
|
|
5203
|
+
return code < 32 || code === 127 || char === "<" || char === ">";
|
|
5204
|
+
});
|
|
5205
|
+
var gitAuthorNameSchema = z24.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author name" }).transform((value) => value.trim()).pipe(z24.string().max(100).refine((value) => !hasGitIdentityForbiddenChar(value), { message: "Invalid git author name" }));
|
|
5206
|
+
var gitAuthorEmailSchema = z24.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author email" }).transform((value) => value.trim()).pipe(
|
|
5207
|
+
z24.string().max(254).refine(
|
|
5208
|
+
(value) => value === "" || !hasGitIdentityForbiddenChar(value) && z24.email().safeParse(value).success,
|
|
5209
|
+
{ message: "Invalid git author email" }
|
|
5210
|
+
)
|
|
5211
|
+
);
|
|
5212
|
+
var runGitIdentitySchema = z24.strictObject({
|
|
5213
|
+
name: gitAuthorNameSchema.pipe(z24.string().min(1)).optional(),
|
|
5214
|
+
email: gitAuthorEmailSchema.pipe(z24.string().min(1)).optional()
|
|
5215
|
+
});
|
|
5201
5216
|
var deviceRepoSchema = z24.object({
|
|
5202
5217
|
repoId: id3,
|
|
5203
5218
|
name: z24.string().max(500),
|
|
@@ -5406,7 +5421,9 @@ var runAssignmentSchema = z24.object({
|
|
|
5406
5421
|
*/
|
|
5407
5422
|
repositorySkills: z24.array(z24.string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/)).max(MAX_PROFILE_SKILLS_PER_RUN).optional(),
|
|
5408
5423
|
/** Frozen by the server benchmark ledger; never extracted from model output. */
|
|
5409
|
-
benchmark: runBenchmarkContext.optional()
|
|
5424
|
+
benchmark: runBenchmarkContext.optional(),
|
|
5425
|
+
/** Resolved personal/workspace Git commit author & committer identity (#3110). */
|
|
5426
|
+
gitIdentity: runGitIdentitySchema.optional()
|
|
5410
5427
|
}).refine((value) => !(value.modelCredential && value.subscriptionBinding), { message: "A run has one model credential", path: ["modelCredential"] }).refine(
|
|
5411
5428
|
(value) => !value.subscriptionLease || Boolean(value.subscriptionBinding && value.subscriptionBinding.route === value.subscriptionLease.route && (value.harness === "codex" ? value.subscriptionLease.route === "codex_cli" : value.harness === "claude_code" && value.subscriptionLease.route === "claude_code_cli")),
|
|
5412
5429
|
{ message: "A subscription lease belongs to the selected harness and binding", path: ["subscriptionLease"] }
|
|
@@ -6072,7 +6089,7 @@ import { join } from "node:path";
|
|
|
6072
6089
|
// package.json
|
|
6073
6090
|
var package_default = {
|
|
6074
6091
|
name: "@mikka/daemon",
|
|
6075
|
-
version: "0.0.
|
|
6092
|
+
version: "0.0.747",
|
|
6076
6093
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
6077
6094
|
type: "module",
|
|
6078
6095
|
private: true,
|
|
@@ -6140,7 +6157,7 @@ var package_default = {
|
|
|
6140
6157
|
engines: {
|
|
6141
6158
|
node: ">=22"
|
|
6142
6159
|
},
|
|
6143
|
-
gitHead: "
|
|
6160
|
+
gitHead: "052e3e6a97619230187c4133659332d928188dd3"
|
|
6144
6161
|
};
|
|
6145
6162
|
|
|
6146
6163
|
// src/paths.ts
|
|
@@ -8644,12 +8661,18 @@ var SAFE_GIT = [
|
|
|
8644
8661
|
"-c",
|
|
8645
8662
|
"protocol.ext.allow=never"
|
|
8646
8663
|
];
|
|
8664
|
+
var DEFAULT_GIT_AUTHOR_NAME = "Mikka Agent";
|
|
8665
|
+
var DEFAULT_GIT_AUTHOR_EMAIL = "agent@mikka.invalid";
|
|
8647
8666
|
var FALLBACK_IDENTITY = [
|
|
8648
8667
|
"-c",
|
|
8649
|
-
|
|
8668
|
+
`user.name=${DEFAULT_GIT_AUTHOR_NAME}`,
|
|
8650
8669
|
"-c",
|
|
8651
|
-
|
|
8670
|
+
`user.email=${DEFAULT_GIT_AUTHOR_EMAIL}`
|
|
8652
8671
|
];
|
|
8672
|
+
var REPO_ONLY_GIT_CONFIG_ENV = {
|
|
8673
|
+
GIT_CONFIG_GLOBAL: "/dev/null",
|
|
8674
|
+
GIT_CONFIG_SYSTEM: "/dev/null"
|
|
8675
|
+
};
|
|
8653
8676
|
async function worktreeGitDir(repoPath, worktree, signal) {
|
|
8654
8677
|
signal?.throwIfAborted();
|
|
8655
8678
|
const common2 = realpathSync4(
|
|
@@ -8728,13 +8751,32 @@ async function snapshotTree(repoPath, worktree, env, signal) {
|
|
|
8728
8751
|
rmSync4(dir, { recursive: true, force: true });
|
|
8729
8752
|
}
|
|
8730
8753
|
}
|
|
8731
|
-
async function
|
|
8754
|
+
async function readRepoGitConfig(git3, key2) {
|
|
8755
|
+
return git3(["config", key2], REPO_ONLY_GIT_CONFIG_ENV).then(
|
|
8756
|
+
(result) => String(result.stdout).trim(),
|
|
8757
|
+
() => ""
|
|
8758
|
+
);
|
|
8759
|
+
}
|
|
8760
|
+
async function resolvePublishGitIdentity(git3, gitIdentity) {
|
|
8761
|
+
const [repoName, repoEmail] = await Promise.all([
|
|
8762
|
+
readRepoGitConfig(git3, "user.name"),
|
|
8763
|
+
readRepoGitConfig(git3, "user.email")
|
|
8764
|
+
]);
|
|
8765
|
+
const name = repoName || gitIdentity?.name?.trim() || DEFAULT_GIT_AUTHOR_NAME;
|
|
8766
|
+
const email = repoEmail || gitIdentity?.email?.trim() || DEFAULT_GIT_AUTHOR_EMAIL;
|
|
8767
|
+
if (name === DEFAULT_GIT_AUTHOR_NAME && email === DEFAULT_GIT_AUTHOR_EMAIL) {
|
|
8768
|
+
return FALLBACK_IDENTITY;
|
|
8769
|
+
}
|
|
8770
|
+
return ["-c", `user.name=${name}`, "-c", `user.email=${email}`];
|
|
8771
|
+
}
|
|
8772
|
+
async function retainDeliverable(repoPath, worktree, runId, signal, gitIdentity) {
|
|
8732
8773
|
const tree = await snapshotTree(repoPath, worktree, void 0, signal);
|
|
8733
8774
|
const git3 = await pinnedGit(repoPath, worktree, void 0, signal);
|
|
8734
8775
|
const head = String((await git3(["rev-parse", "HEAD"])).stdout).trim();
|
|
8735
8776
|
const before = String((await git3(["rev-parse", "HEAD^{tree}"])).stdout).trim();
|
|
8736
8777
|
if (tree === before) return head;
|
|
8737
|
-
const
|
|
8778
|
+
const identity = await resolvePublishGitIdentity(git3, gitIdentity);
|
|
8779
|
+
const commit = String((await git3([...identity, "commit-tree", tree, "-p", head, "-m", "Retain task delivery for independent inspection"])).stdout).trim();
|
|
8738
8780
|
await git3(["update-ref", `refs/heads/${runBranch(runId)}`, commit, head]);
|
|
8739
8781
|
await git3(["read-tree", commit]);
|
|
8740
8782
|
return commit;
|
|
@@ -8804,10 +8846,7 @@ async function publishRun(options) {
|
|
|
8804
8846
|
}
|
|
8805
8847
|
let commit;
|
|
8806
8848
|
try {
|
|
8807
|
-
const identity = await git3
|
|
8808
|
-
(result) => String(result.stdout).trim() ? [] : FALLBACK_IDENTITY,
|
|
8809
|
-
() => FALLBACK_IDENTITY
|
|
8810
|
-
);
|
|
8849
|
+
const identity = await resolvePublishGitIdentity(git3, options.gitIdentity);
|
|
8811
8850
|
commit = String(
|
|
8812
8851
|
(await git3([
|
|
8813
8852
|
...identity,
|
|
@@ -15911,7 +15950,7 @@ async function collectReport(context, stopReason, error, agent) {
|
|
|
15911
15950
|
const command = assignment.verifyCommand ?? inferred?.command;
|
|
15912
15951
|
if (stopReason === "submitted") context.assertLive();
|
|
15913
15952
|
if (stopReason === "submitted" && assignment.factoryExecuteKind === "deliverable") {
|
|
15914
|
-
const deliverableCommit = await retainDeliverable(repo.path, worktree, runId, signal);
|
|
15953
|
+
const deliverableCommit = await retainDeliverable(repo.path, worktree, runId, signal, assignment.gitIdentity);
|
|
15915
15954
|
context.assertLive();
|
|
15916
15955
|
deps.journal.update(runId, { deliverableCommit });
|
|
15917
15956
|
}
|
|
@@ -22852,6 +22891,7 @@ var Daemon = class {
|
|
|
22852
22891
|
issueId: assignment.issueId,
|
|
22853
22892
|
summary: report2.summary,
|
|
22854
22893
|
signal,
|
|
22894
|
+
gitIdentity: assignment.gitIdentity,
|
|
22855
22895
|
pushBranch: assignment.pushBranch,
|
|
22856
22896
|
baseBranch: assignment.remoteUrl ? await this.repositories.baseRef(assignment.remoteUrl, assignment.baseBranch) : assignment.baseBranch,
|
|
22857
22897
|
push: (() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"sourceSha": "
|
|
3
|
+
"sourceSha": "052e3e6a97619230187c4133659332d928188dd3",
|
|
4
4
|
"repository": "aspectly-labs/Mikka",
|
|
5
|
-
"buildRunId": "
|
|
5
|
+
"buildRunId": "45062520067",
|
|
6
6
|
"buildKind": "github-actions-main",
|
|
7
7
|
"sourceLockSha256": "76c5ebe724d84dca9cc0481312df680f5ebf70120d514b88bc80b2ed0f5c1a3e",
|
|
8
|
-
"createdAt": "2026-11-
|
|
8
|
+
"createdAt": "2026-11-22T19:50:05.262Z",
|
|
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": 1110333,
|
|
39
|
+
"sha256": "72a83c23eb575a8643ba10b524d127640c168e50a1ba741742a43971f6bb1838"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"path": "client.js",
|
|
43
|
-
"size":
|
|
44
|
-
"sha256": "
|
|
43
|
+
"size": 213409,
|
|
44
|
+
"sha256": "b58833634614a49d882f7c716373632e4fdc76b80b9dcc376e01aa4884237917"
|
|
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": 321794,
|
|
164
|
+
"sha256": "22496673e3266559e81e354f7364d5fdacbfa88e802a74618e12bd9b09f628cc"
|
|
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": 271535,
|
|
174
|
+
"sha256": "ae2f2f0ba2f2d633e08b348737c342034fca5866687e51605bba5da6606b471d"
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"path": "main.js",
|
|
178
|
-
"size":
|
|
179
|
-
"sha256": "
|
|
178
|
+
"size": 1036630,
|
|
179
|
+
"sha256": "89d37ddfd20a67a35c7c342db3c8a6f0fccf8f461428e3ee7507cd9a5163cd10"
|
|
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": 1110349,
|
|
209
|
+
"sha256": "dbfd83b3249e48f848f7f38a18749f0726fcf97d15675439fd2862417a60b768"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
"path": "npm-shrinkwrap.json",
|
|
213
213
|
"size": 85380,
|
|
214
|
-
"sha256": "
|
|
214
|
+
"sha256": "a304eb65a810e271dd7fd3ea714b9df7252ebe4fc9ea26b4b206d4b0d2db88fb"
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"path": "package.json",
|
|
218
218
|
"size": 1554,
|
|
219
|
-
"sha256": "
|
|
219
|
+
"sha256": "6ba3e106ee430ab80cdabc9087eac2236a150f06c8111323ee580dce6d1ea4d4"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
"path": "paths.js",
|
|
223
223
|
"size": 4585,
|
|
224
|
-
"sha256": "
|
|
224
|
+
"sha256": "4344b54505900c9d9a0ea40b3f3204ba9ba53f3b99ac62badc5a90a5479c35c3"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
"path": "sandbox.js",
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
{
|
|
232
232
|
"path": "sbom.cdx.json",
|
|
233
233
|
"size": 155704,
|
|
234
|
-
"sha256": "
|
|
234
|
+
"sha256": "d90b2fe5b9f99fb368c94b68f9ce17c6e33f0d7c9d79c30b483f6a33fb64b7d6"
|
|
235
235
|
}
|
|
236
236
|
]
|
|
237
237
|
}
|
package/mikka.js
CHANGED
|
@@ -5677,6 +5677,21 @@ var runModelCredentialSchema = z24.discriminatedUnion("kind", [
|
|
|
5677
5677
|
return /^mkg_[A-Za-z0-9_-]{43}$/.test(value.key) && url.pathname.endsWith(path3) && /^(?:\/[A-Za-z0-9_-]+)*$/.test(url.pathname.slice(0, -path3.length));
|
|
5678
5678
|
})
|
|
5679
5679
|
]);
|
|
5680
|
+
var hasGitIdentityForbiddenChar = (value) => [...value].some((char) => {
|
|
5681
|
+
const code = char.charCodeAt(0);
|
|
5682
|
+
return code < 32 || code === 127 || char === "<" || char === ">";
|
|
5683
|
+
});
|
|
5684
|
+
var gitAuthorNameSchema = z24.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author name" }).transform((value) => value.trim()).pipe(z24.string().max(100).refine((value) => !hasGitIdentityForbiddenChar(value), { message: "Invalid git author name" }));
|
|
5685
|
+
var gitAuthorEmailSchema = z24.string().refine((value) => value === "" || value.trim().length > 0, { message: "Invalid git author email" }).transform((value) => value.trim()).pipe(
|
|
5686
|
+
z24.string().max(254).refine(
|
|
5687
|
+
(value) => value === "" || !hasGitIdentityForbiddenChar(value) && z24.email().safeParse(value).success,
|
|
5688
|
+
{ message: "Invalid git author email" }
|
|
5689
|
+
)
|
|
5690
|
+
);
|
|
5691
|
+
var runGitIdentitySchema = z24.strictObject({
|
|
5692
|
+
name: gitAuthorNameSchema.pipe(z24.string().min(1)).optional(),
|
|
5693
|
+
email: gitAuthorEmailSchema.pipe(z24.string().min(1)).optional()
|
|
5694
|
+
});
|
|
5680
5695
|
var deviceRepoSchema = z24.object({
|
|
5681
5696
|
repoId: id3,
|
|
5682
5697
|
name: z24.string().max(500),
|
|
@@ -5885,7 +5900,9 @@ var runAssignmentSchema = z24.object({
|
|
|
5885
5900
|
*/
|
|
5886
5901
|
repositorySkills: z24.array(z24.string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/)).max(MAX_PROFILE_SKILLS_PER_RUN).optional(),
|
|
5887
5902
|
/** Frozen by the server benchmark ledger; never extracted from model output. */
|
|
5888
|
-
benchmark: runBenchmarkContext.optional()
|
|
5903
|
+
benchmark: runBenchmarkContext.optional(),
|
|
5904
|
+
/** Resolved personal/workspace Git commit author & committer identity (#3110). */
|
|
5905
|
+
gitIdentity: runGitIdentitySchema.optional()
|
|
5889
5906
|
}).refine((value) => !(value.modelCredential && value.subscriptionBinding), { message: "A run has one model credential", path: ["modelCredential"] }).refine(
|
|
5890
5907
|
(value) => !value.subscriptionLease || Boolean(value.subscriptionBinding && value.subscriptionBinding.route === value.subscriptionLease.route && (value.harness === "codex" ? value.subscriptionLease.route === "codex_cli" : value.harness === "claude_code" && value.subscriptionLease.route === "claude_code_cli")),
|
|
5891
5908
|
{ message: "A subscription lease belongs to the selected harness and binding", path: ["subscriptionLease"] }
|
|
@@ -6645,7 +6662,7 @@ import { join as join5 } from "node:path";
|
|
|
6645
6662
|
// package.json
|
|
6646
6663
|
var package_default = {
|
|
6647
6664
|
name: "@mikka/daemon",
|
|
6648
|
-
version: "0.0.
|
|
6665
|
+
version: "0.0.747",
|
|
6649
6666
|
description: "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
6650
6667
|
type: "module",
|
|
6651
6668
|
private: true,
|
|
@@ -6713,7 +6730,7 @@ var package_default = {
|
|
|
6713
6730
|
engines: {
|
|
6714
6731
|
node: ">=22"
|
|
6715
6732
|
},
|
|
6716
|
-
gitHead: "
|
|
6733
|
+
gitHead: "052e3e6a97619230187c4133659332d928188dd3"
|
|
6717
6734
|
};
|
|
6718
6735
|
|
|
6719
6736
|
// src/paths.ts
|
|
@@ -10619,12 +10636,18 @@ var SAFE_GIT = [
|
|
|
10619
10636
|
"-c",
|
|
10620
10637
|
"protocol.ext.allow=never"
|
|
10621
10638
|
];
|
|
10639
|
+
var DEFAULT_GIT_AUTHOR_NAME = "Mikka Agent";
|
|
10640
|
+
var DEFAULT_GIT_AUTHOR_EMAIL = "agent@mikka.invalid";
|
|
10622
10641
|
var FALLBACK_IDENTITY = [
|
|
10623
10642
|
"-c",
|
|
10624
|
-
|
|
10643
|
+
`user.name=${DEFAULT_GIT_AUTHOR_NAME}`,
|
|
10625
10644
|
"-c",
|
|
10626
|
-
|
|
10645
|
+
`user.email=${DEFAULT_GIT_AUTHOR_EMAIL}`
|
|
10627
10646
|
];
|
|
10647
|
+
var REPO_ONLY_GIT_CONFIG_ENV = {
|
|
10648
|
+
GIT_CONFIG_GLOBAL: "/dev/null",
|
|
10649
|
+
GIT_CONFIG_SYSTEM: "/dev/null"
|
|
10650
|
+
};
|
|
10628
10651
|
async function worktreeGitDir(repoPath, worktree, signal) {
|
|
10629
10652
|
signal?.throwIfAborted();
|
|
10630
10653
|
const common2 = realpathSync5(
|
|
@@ -10703,13 +10726,32 @@ async function snapshotTree(repoPath, worktree, env, signal) {
|
|
|
10703
10726
|
rmSync5(dir, { recursive: true, force: true });
|
|
10704
10727
|
}
|
|
10705
10728
|
}
|
|
10706
|
-
async function
|
|
10729
|
+
async function readRepoGitConfig(git3, key2) {
|
|
10730
|
+
return git3(["config", key2], REPO_ONLY_GIT_CONFIG_ENV).then(
|
|
10731
|
+
(result) => String(result.stdout).trim(),
|
|
10732
|
+
() => ""
|
|
10733
|
+
);
|
|
10734
|
+
}
|
|
10735
|
+
async function resolvePublishGitIdentity(git3, gitIdentity) {
|
|
10736
|
+
const [repoName, repoEmail] = await Promise.all([
|
|
10737
|
+
readRepoGitConfig(git3, "user.name"),
|
|
10738
|
+
readRepoGitConfig(git3, "user.email")
|
|
10739
|
+
]);
|
|
10740
|
+
const name = repoName || gitIdentity?.name?.trim() || DEFAULT_GIT_AUTHOR_NAME;
|
|
10741
|
+
const email = repoEmail || gitIdentity?.email?.trim() || DEFAULT_GIT_AUTHOR_EMAIL;
|
|
10742
|
+
if (name === DEFAULT_GIT_AUTHOR_NAME && email === DEFAULT_GIT_AUTHOR_EMAIL) {
|
|
10743
|
+
return FALLBACK_IDENTITY;
|
|
10744
|
+
}
|
|
10745
|
+
return ["-c", `user.name=${name}`, "-c", `user.email=${email}`];
|
|
10746
|
+
}
|
|
10747
|
+
async function retainDeliverable(repoPath, worktree, runId, signal, gitIdentity) {
|
|
10707
10748
|
const tree = await snapshotTree(repoPath, worktree, void 0, signal);
|
|
10708
10749
|
const git3 = await pinnedGit(repoPath, worktree, void 0, signal);
|
|
10709
10750
|
const head = String((await git3(["rev-parse", "HEAD"])).stdout).trim();
|
|
10710
10751
|
const before = String((await git3(["rev-parse", "HEAD^{tree}"])).stdout).trim();
|
|
10711
10752
|
if (tree === before) return head;
|
|
10712
|
-
const
|
|
10753
|
+
const identity = await resolvePublishGitIdentity(git3, gitIdentity);
|
|
10754
|
+
const commit = String((await git3([...identity, "commit-tree", tree, "-p", head, "-m", "Retain task delivery for independent inspection"])).stdout).trim();
|
|
10713
10755
|
await git3(["update-ref", `refs/heads/${runBranch(runId)}`, commit, head]);
|
|
10714
10756
|
await git3(["read-tree", commit]);
|
|
10715
10757
|
return commit;
|
|
@@ -10779,10 +10821,7 @@ async function publishRun(options) {
|
|
|
10779
10821
|
}
|
|
10780
10822
|
let commit;
|
|
10781
10823
|
try {
|
|
10782
|
-
const identity = await git3
|
|
10783
|
-
(result) => String(result.stdout).trim() ? [] : FALLBACK_IDENTITY,
|
|
10784
|
-
() => FALLBACK_IDENTITY
|
|
10785
|
-
);
|
|
10824
|
+
const identity = await resolvePublishGitIdentity(git3, options.gitIdentity);
|
|
10786
10825
|
commit = String(
|
|
10787
10826
|
(await git3([
|
|
10788
10827
|
...identity,
|
|
@@ -17356,7 +17395,7 @@ async function collectReport(context, stopReason, error, agent) {
|
|
|
17356
17395
|
const command = assignment.verifyCommand ?? inferred?.command;
|
|
17357
17396
|
if (stopReason === "submitted") context.assertLive();
|
|
17358
17397
|
if (stopReason === "submitted" && assignment.factoryExecuteKind === "deliverable") {
|
|
17359
|
-
const deliverableCommit = await retainDeliverable(repo.path, worktree, runId, signal);
|
|
17398
|
+
const deliverableCommit = await retainDeliverable(repo.path, worktree, runId, signal, assignment.gitIdentity);
|
|
17360
17399
|
context.assertLive();
|
|
17361
17400
|
deps.journal.update(runId, { deliverableCommit });
|
|
17362
17401
|
}
|
|
@@ -24224,6 +24263,7 @@ var Daemon = class {
|
|
|
24224
24263
|
issueId: assignment.issueId,
|
|
24225
24264
|
summary: report2.summary,
|
|
24226
24265
|
signal,
|
|
24266
|
+
gitIdentity: assignment.gitIdentity,
|
|
24227
24267
|
pushBranch: assignment.pushBranch,
|
|
24228
24268
|
baseBranch: assignment.remoteUrl ? await this.repositories.baseRef(assignment.remoteUrl, assignment.baseBranch) : assignment.baseBranch,
|
|
24229
24269
|
push: (() => {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aspectlylabs/mikka",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.747",
|
|
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.747",
|
|
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.747",
|
|
4
4
|
"description": "Local Mikka daemon: runs agents through the user's own CLIs",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "052e3e6a97619230187c4133659332d928188dd3",
|
|
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.747",
|
|
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: "052e3e6a97619230187c4133659332d928188dd3"
|
|
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:f9d27d2d-505b-40aa-a353-3539945abc4b",
|
|
6
6
|
"version": 1,
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-11-
|
|
8
|
+
"timestamp": "2026-11-22T19:50:04.307Z",
|
|
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.747",
|
|
23
23
|
"type": "library",
|
|
24
|
-
"name": ".retained-build-
|
|
25
|
-
"version": "0.0.
|
|
24
|
+
"name": ".retained-build-aWywuF",
|
|
25
|
+
"version": "0.0.747",
|
|
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.747",
|
|
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.747",
|
|
4913
4913
|
"dependsOn": [
|
|
4914
4914
|
"@agentclientprotocol/sdk@1.9.0",
|
|
4915
4915
|
"@anthropic-ai/claude-agent-sdk@0.3.305",
|