@attalabs/vinaya 0.42.1 → 0.42.2
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/dist/checks/bin/check-evidence-fresh.js +169 -147
- package/dist/checks/bin/check-registry-gates.js +10 -3
- package/dist/index.js +292 -168
- package/dist/lib/pre-push-cache-test-run.js +142 -143
- package/dist/lib/pre-push-changed-files.js +10 -3
- package/dist/lib/pre-push-progress-dir.js +169 -147
- package/dist/lib/pre-push-select-tests.js +16 -4
- package/dist/lib/push-progress-observer.js +169 -147
- package/dist/programs/archive.js +169 -147
- package/dist/programs/audit.js +169 -147
- package/dist/programs/check.js +169 -147
- package/dist/programs/commit-msg.js +169 -147
- package/dist/programs/dev-review-loop.js +291 -170
- package/dist/programs/dispatch.js +1902 -1876
- package/dist/programs/log-emit.js +169 -147
- package/dist/programs/log-selftest.js +169 -147
- package/dist/programs/log-send.js +169 -147
- package/dist/programs/pr-report.js +169 -147
- package/dist/programs/pr-snapshot.js +169 -147
- package/dist/programs/pr-verify-evidence.js +169 -147
- package/dist/programs/pr.js +169 -147
- package/dist/programs/review-post.js +169 -147
- package/dist/programs/review-status.js +177 -147
- package/dist/programs/sync.js +60 -38
- package/dist/programs/task-brief.js +169 -147
- package/dist/programs/task-sweep.js +241 -150
- package/dist/programs/task-tools-serve.js +249 -154
- package/dist/programs/tokens.js +169 -147
- package/dist/programs/waiver.js +169 -147
- package/package.json +1 -1
- package/studio-standalone/apps/vinaya-studio/.next/BUILD_ID +1 -1
- package/studio-standalone/apps/vinaya-studio/.next/build-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.html +1 -1
- package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/.next/server/middleware-build-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/.next/server/pages/500.html +1 -1
- /package/studio-standalone/apps/vinaya-studio/.next/static/{yFfoujElgbwPk-7KNS-kw → Q_xjhiWztjosXWbMSJ0Yp}/_buildManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/.next/static/{yFfoujElgbwPk-7KNS-kw → Q_xjhiWztjosXWbMSJ0Yp}/_ssgManifest.js +0 -0
package/dist/programs/tokens.js
CHANGED
|
@@ -3513,21 +3513,145 @@ var init_resolve_repo = __esm(() => {
|
|
|
3513
3513
|
};
|
|
3514
3514
|
});
|
|
3515
3515
|
|
|
3516
|
+
// ../../harness/kernel/log/roles.ts
|
|
3517
|
+
function registerRole(name, role) {
|
|
3518
|
+
roles.set(name, role);
|
|
3519
|
+
}
|
|
3520
|
+
function registerTitle(name, title) {
|
|
3521
|
+
titles.set(name, title);
|
|
3522
|
+
}
|
|
3523
|
+
function isRole(value) {
|
|
3524
|
+
return value !== undefined && roles.has(value);
|
|
3525
|
+
}
|
|
3526
|
+
function lookupRole(name) {
|
|
3527
|
+
return roles.get(name);
|
|
3528
|
+
}
|
|
3529
|
+
function lookupTitle(name) {
|
|
3530
|
+
return roles.get(name)?.title ?? titles.get(name);
|
|
3531
|
+
}
|
|
3532
|
+
var roles, titles;
|
|
3533
|
+
var init_roles = __esm(() => {
|
|
3534
|
+
roles = new Map;
|
|
3535
|
+
titles = new Map;
|
|
3536
|
+
});
|
|
3537
|
+
|
|
3538
|
+
// ../../harness/kernel/log/envelope.ts
|
|
3539
|
+
import { createHash as createHash3 } from "node:crypto";
|
|
3540
|
+
function actorIdFromEnv(role) {
|
|
3541
|
+
return role === undefined || role === "" ? null : role;
|
|
3542
|
+
}
|
|
3543
|
+
function lineageFieldFromEnv(value) {
|
|
3544
|
+
return value === undefined || value === "" ? null : value;
|
|
3545
|
+
}
|
|
3546
|
+
function attemptFromEnv(value) {
|
|
3547
|
+
if (value === undefined || value === "")
|
|
3548
|
+
return null;
|
|
3549
|
+
const n = Number(value);
|
|
3550
|
+
return Number.isInteger(n) ? n : null;
|
|
3551
|
+
}
|
|
3552
|
+
function provenanceFor(input) {
|
|
3553
|
+
if (input.provenance)
|
|
3554
|
+
return input.provenance;
|
|
3555
|
+
if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
|
|
3556
|
+
return "unavailable";
|
|
3557
|
+
if (input.env.role || input.env.task)
|
|
3558
|
+
return "env_correlated";
|
|
3559
|
+
return "unavailable";
|
|
3560
|
+
}
|
|
3561
|
+
function issueFromTask(task) {
|
|
3562
|
+
if (task === undefined || task === "")
|
|
3563
|
+
return null;
|
|
3564
|
+
const n = Number(task);
|
|
3565
|
+
return Number.isInteger(n) ? n : null;
|
|
3566
|
+
}
|
|
3567
|
+
function roundFromEnv(round) {
|
|
3568
|
+
if (round === undefined || round === "")
|
|
3569
|
+
return;
|
|
3570
|
+
const n = Number(round);
|
|
3571
|
+
return Number.isInteger(n) ? n : undefined;
|
|
3572
|
+
}
|
|
3573
|
+
function prFromEnv(pr) {
|
|
3574
|
+
if (pr === undefined || pr === "")
|
|
3575
|
+
return;
|
|
3576
|
+
const n = Number(pr);
|
|
3577
|
+
return Number.isInteger(n) && n > 0 ? n : undefined;
|
|
3578
|
+
}
|
|
3579
|
+
function buildHeader(input) {
|
|
3580
|
+
const role = isRole(input.env.role) ? input.env.role : "unattributed";
|
|
3581
|
+
const round = roundFromEnv(input.env.round);
|
|
3582
|
+
const pr = prFromEnv(input.env.pr);
|
|
3583
|
+
const subject = {
|
|
3584
|
+
issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
|
|
3585
|
+
role,
|
|
3586
|
+
...round !== undefined ? { round } : {},
|
|
3587
|
+
...pr !== undefined ? { pr } : {},
|
|
3588
|
+
...input.subject ?? {}
|
|
3589
|
+
};
|
|
3590
|
+
const issue = subject.issue;
|
|
3591
|
+
return {
|
|
3592
|
+
meta: {
|
|
3593
|
+
schema: 4,
|
|
3594
|
+
ts: input.now.toISOString(),
|
|
3595
|
+
run_id: input.runId,
|
|
3596
|
+
seq: input.seq,
|
|
3597
|
+
repo: input.repo,
|
|
3598
|
+
vinaya: input.vinaya,
|
|
3599
|
+
doctrine: input.doctrine,
|
|
3600
|
+
host: input.host,
|
|
3601
|
+
machine: createHash3("sha256").update(input.hostname).digest("hex"),
|
|
3602
|
+
event_id: input.eventId,
|
|
3603
|
+
process_id: input.processId,
|
|
3604
|
+
actor_id: actorIdFromEnv(input.env.role),
|
|
3605
|
+
lineage: {
|
|
3606
|
+
run: lineageFieldFromEnv(input.env.run),
|
|
3607
|
+
attempt: attemptFromEnv(input.env.attempt),
|
|
3608
|
+
parent: lineageFieldFromEnv(input.env.parent)
|
|
3609
|
+
},
|
|
3610
|
+
input_versions: {
|
|
3611
|
+
manifest_version: input.inputVersions?.manifestVersion ?? null,
|
|
3612
|
+
objectives_version: input.inputVersions?.objectivesVersion ?? null,
|
|
3613
|
+
brief_hash: input.inputVersions?.briefHash ?? null,
|
|
3614
|
+
ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
|
|
3615
|
+
pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
|
|
3616
|
+
policy_digest: input.inputVersions?.policyDigest ?? null
|
|
3617
|
+
},
|
|
3618
|
+
provenance: provenanceFor(input),
|
|
3619
|
+
work: {
|
|
3620
|
+
ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
|
|
3621
|
+
repo: input.repo,
|
|
3622
|
+
change: pr === undefined ? null : String(pr),
|
|
3623
|
+
revision: input.revision ?? null
|
|
3624
|
+
},
|
|
3625
|
+
flow: {
|
|
3626
|
+
id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
|
|
3627
|
+
version: lineageFieldFromEnv(input.env.flowVersion)
|
|
3628
|
+
},
|
|
3629
|
+
runtime: lineageFieldFromEnv(input.env.runtime),
|
|
3630
|
+
process: {
|
|
3631
|
+
id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
|
|
3632
|
+
version: lineageFieldFromEnv(input.env.processVersion),
|
|
3633
|
+
digest: lineageFieldFromEnv(input.env.processDigest)
|
|
3634
|
+
},
|
|
3635
|
+
runner: {
|
|
3636
|
+
id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
|
|
3637
|
+
version: lineageFieldFromEnv(input.env.runnerVersion)
|
|
3638
|
+
},
|
|
3639
|
+
source: lineageFieldFromEnv(input.env.source)
|
|
3640
|
+
},
|
|
3641
|
+
subject
|
|
3642
|
+
};
|
|
3643
|
+
}
|
|
3644
|
+
var init_envelope = __esm(() => {
|
|
3645
|
+
init_roles();
|
|
3646
|
+
});
|
|
3647
|
+
|
|
3516
3648
|
// ../../harness/kernel/log/schema.ts
|
|
3517
3649
|
import { z as z6 } from "zod";
|
|
3518
|
-
var CONFIDENCE_REASON_MAX_LENGTH = 280, REVIEW_FINDING_DESCRIPTION_MAX_LENGTH = 1000,
|
|
3650
|
+
var CONFIDENCE_REASON_MAX_LENGTH = 280, REVIEW_FINDING_DESCRIPTION_MAX_LENGTH = 1000, ROLE_NAME_PATTERN, RoleSchema, HOST_VALUES, HostSchema, RUN_ID_PATTERN, headerMetaCore, HeaderMetaV1Schema, LineageSchema, InputVersionsSchema, ProvenanceSchema, HeaderMetaV2Schema, WorkSchema, FlowSchema, HeaderMetaV3Schema, HeaderMetaV4Schema, HeaderMetaSchema, SubjectSchema, HeaderSchema, envelopeTail, ReviewFindingSchema, DispatchOutcomeSchema, dispatchShared, dispatchUsageField, DispatchEventSchema, CODE_TOKEN_PATTERN, CodeTokenSchema, ReviewerVerdictSchema, loopShared, DevReviewLoopEventSchema, ForgeOpSchema, ForgeWriteTargetSchema, forgeWriteShared, ForgeWriteEventSchema, GateOutcomeSchema, gateShared, GateEventSchema, OperationResultSchema, operationShared, OperationEventSchema, UsageUnitsSchema, usageShared, UsageEventSchema, RoleAttemptOutcomeSchema, roleAttemptShared, RoleAttemptEventSchema, handoffShared, HandoffEventSchema, EffectTargetSchema, effectShared, EffectEventSchema, CustomFieldValueSchema, customShared, CustomEventSchema, LogEventSchema;
|
|
3519
3651
|
var init_schema = __esm(() => {
|
|
3520
3652
|
init_custom();
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
"developer",
|
|
3524
|
-
"code-reviewer",
|
|
3525
|
-
"security",
|
|
3526
|
-
"principal",
|
|
3527
|
-
"archivist",
|
|
3528
|
-
"architect"
|
|
3529
|
-
];
|
|
3530
|
-
RoleSchema = z6.enum(ROLE_VALUES);
|
|
3653
|
+
ROLE_NAME_PATTERN = /^[a-z0-9-]+$/;
|
|
3654
|
+
RoleSchema = z6.string().regex(ROLE_NAME_PATTERN);
|
|
3531
3655
|
HOST_VALUES = ["hook", "ci", "cli", "loop"];
|
|
3532
3656
|
HostSchema = z6.enum(HOST_VALUES);
|
|
3533
3657
|
RUN_ID_PATTERN = /^[A-Za-z0-9_.-]{1,128}$/;
|
|
@@ -4109,119 +4233,6 @@ var init_schema = __esm(() => {
|
|
|
4109
4233
|
]);
|
|
4110
4234
|
});
|
|
4111
4235
|
|
|
4112
|
-
// ../../harness/kernel/log/envelope.ts
|
|
4113
|
-
import { createHash as createHash3 } from "node:crypto";
|
|
4114
|
-
function isRole(value) {
|
|
4115
|
-
return value !== undefined && ROLE_VALUES.includes(value);
|
|
4116
|
-
}
|
|
4117
|
-
function actorIdFromEnv(role) {
|
|
4118
|
-
return role === undefined || role === "" ? null : role;
|
|
4119
|
-
}
|
|
4120
|
-
function lineageFieldFromEnv(value) {
|
|
4121
|
-
return value === undefined || value === "" ? null : value;
|
|
4122
|
-
}
|
|
4123
|
-
function attemptFromEnv(value) {
|
|
4124
|
-
if (value === undefined || value === "")
|
|
4125
|
-
return null;
|
|
4126
|
-
const n = Number(value);
|
|
4127
|
-
return Number.isInteger(n) ? n : null;
|
|
4128
|
-
}
|
|
4129
|
-
function provenanceFor(input) {
|
|
4130
|
-
if (input.provenance)
|
|
4131
|
-
return input.provenance;
|
|
4132
|
-
if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
|
|
4133
|
-
return "unavailable";
|
|
4134
|
-
if (input.env.role || input.env.task)
|
|
4135
|
-
return "env_correlated";
|
|
4136
|
-
return "unavailable";
|
|
4137
|
-
}
|
|
4138
|
-
function issueFromTask(task) {
|
|
4139
|
-
if (task === undefined || task === "")
|
|
4140
|
-
return null;
|
|
4141
|
-
const n = Number(task);
|
|
4142
|
-
return Number.isInteger(n) ? n : null;
|
|
4143
|
-
}
|
|
4144
|
-
function roundFromEnv(round) {
|
|
4145
|
-
if (round === undefined || round === "")
|
|
4146
|
-
return;
|
|
4147
|
-
const n = Number(round);
|
|
4148
|
-
return Number.isInteger(n) ? n : undefined;
|
|
4149
|
-
}
|
|
4150
|
-
function prFromEnv(pr) {
|
|
4151
|
-
if (pr === undefined || pr === "")
|
|
4152
|
-
return;
|
|
4153
|
-
const n = Number(pr);
|
|
4154
|
-
return Number.isInteger(n) && n > 0 ? n : undefined;
|
|
4155
|
-
}
|
|
4156
|
-
function buildHeader(input) {
|
|
4157
|
-
const role = isRole(input.env.role) ? input.env.role : "unattributed";
|
|
4158
|
-
const round = roundFromEnv(input.env.round);
|
|
4159
|
-
const pr = prFromEnv(input.env.pr);
|
|
4160
|
-
const subject = {
|
|
4161
|
-
issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
|
|
4162
|
-
role,
|
|
4163
|
-
...round !== undefined ? { round } : {},
|
|
4164
|
-
...pr !== undefined ? { pr } : {},
|
|
4165
|
-
...input.subject ?? {}
|
|
4166
|
-
};
|
|
4167
|
-
const issue = subject.issue;
|
|
4168
|
-
return {
|
|
4169
|
-
meta: {
|
|
4170
|
-
schema: 4,
|
|
4171
|
-
ts: input.now.toISOString(),
|
|
4172
|
-
run_id: input.runId,
|
|
4173
|
-
seq: input.seq,
|
|
4174
|
-
repo: input.repo,
|
|
4175
|
-
vinaya: input.vinaya,
|
|
4176
|
-
doctrine: input.doctrine,
|
|
4177
|
-
host: input.host,
|
|
4178
|
-
machine: createHash3("sha256").update(input.hostname).digest("hex"),
|
|
4179
|
-
event_id: input.eventId,
|
|
4180
|
-
process_id: input.processId,
|
|
4181
|
-
actor_id: actorIdFromEnv(input.env.role),
|
|
4182
|
-
lineage: {
|
|
4183
|
-
run: lineageFieldFromEnv(input.env.run),
|
|
4184
|
-
attempt: attemptFromEnv(input.env.attempt),
|
|
4185
|
-
parent: lineageFieldFromEnv(input.env.parent)
|
|
4186
|
-
},
|
|
4187
|
-
input_versions: {
|
|
4188
|
-
manifest_version: input.inputVersions?.manifestVersion ?? null,
|
|
4189
|
-
objectives_version: input.inputVersions?.objectivesVersion ?? null,
|
|
4190
|
-
brief_hash: input.inputVersions?.briefHash ?? null,
|
|
4191
|
-
ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
|
|
4192
|
-
pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
|
|
4193
|
-
policy_digest: input.inputVersions?.policyDigest ?? null
|
|
4194
|
-
},
|
|
4195
|
-
provenance: provenanceFor(input),
|
|
4196
|
-
work: {
|
|
4197
|
-
ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
|
|
4198
|
-
repo: input.repo,
|
|
4199
|
-
change: pr === undefined ? null : String(pr),
|
|
4200
|
-
revision: input.revision ?? null
|
|
4201
|
-
},
|
|
4202
|
-
flow: {
|
|
4203
|
-
id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
|
|
4204
|
-
version: lineageFieldFromEnv(input.env.flowVersion)
|
|
4205
|
-
},
|
|
4206
|
-
runtime: lineageFieldFromEnv(input.env.runtime),
|
|
4207
|
-
process: {
|
|
4208
|
-
id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
|
|
4209
|
-
version: lineageFieldFromEnv(input.env.processVersion),
|
|
4210
|
-
digest: lineageFieldFromEnv(input.env.processDigest)
|
|
4211
|
-
},
|
|
4212
|
-
runner: {
|
|
4213
|
-
id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
|
|
4214
|
-
version: lineageFieldFromEnv(input.env.runnerVersion)
|
|
4215
|
-
},
|
|
4216
|
-
source: lineageFieldFromEnv(input.env.source)
|
|
4217
|
-
},
|
|
4218
|
-
subject
|
|
4219
|
-
};
|
|
4220
|
-
}
|
|
4221
|
-
var init_envelope = __esm(() => {
|
|
4222
|
-
init_schema();
|
|
4223
|
-
});
|
|
4224
|
-
|
|
4225
4236
|
// ../../harness/kernel/log/redact.ts
|
|
4226
4237
|
function redactString(value, home) {
|
|
4227
4238
|
let out = value.replace(GITHUB_TOKEN_PATTERN, "<redacted>").replace(CLASSIC_GITHUB_PAT_PATTERN, "$1<redacted>").replace(BEARER_TOKEN_PATTERN, "<redacted>").replace(AWS_ACCESS_KEY_PATTERN, "<redacted>").replace(SLACK_TOKEN_PATTERN, "<redacted>").replace(STRIPE_KEY_PATTERN, "<redacted>").replace(ANTHROPIC_KEY_PATTERN, "<redacted>").replace(OPENAI_KEY_PATTERN, "<redacted>").replace(NPM_TOKEN_PATTERN, "<redacted>").replace(JWT_PATTERN, "<redacted>").replace(PEM_BLOCK_PATTERN, "<redacted>").replace(BASIC_AUTH_URL_PATTERN, "$1<redacted>@").replace(GENERIC_SECRET_ASSIGNMENT_PATTERN, "$1<redacted>");
|
|
@@ -4719,7 +4730,8 @@ function code(value) {
|
|
|
4719
4730
|
return typeof value === "string" && CODE_TOKEN_PATTERN.test(value) ? value : null;
|
|
4720
4731
|
}
|
|
4721
4732
|
function roleSubject(value, sentenceStart = true) {
|
|
4722
|
-
const
|
|
4733
|
+
const known = typeof value === "string" ? lookupRole(value) : undefined;
|
|
4734
|
+
const name = known ? `the ${known.reading}` : "a role";
|
|
4723
4735
|
return sentenceStart ? `${name[0]?.toUpperCase()}${name.slice(1)}` : name;
|
|
4724
4736
|
}
|
|
4725
4737
|
function roundLabel(record) {
|
|
@@ -4838,7 +4850,7 @@ function conflictReentry(record) {
|
|
|
4838
4850
|
function dispatched(record) {
|
|
4839
4851
|
const role = text(record.target_role);
|
|
4840
4852
|
const who = roleSubject(role);
|
|
4841
|
-
const reviewing = role
|
|
4853
|
+
const reviewing = role !== null && (lookupRole(role)?.reviews ?? false);
|
|
4842
4854
|
const round = whole(record.round);
|
|
4843
4855
|
return {
|
|
4844
4856
|
kind: "working",
|
|
@@ -4897,6 +4909,7 @@ function narrate(record, earlier = []) {
|
|
|
4897
4909
|
}
|
|
4898
4910
|
var REASONS, PAUSE_WITHOUT_CODE;
|
|
4899
4911
|
var init_narration = __esm(() => {
|
|
4912
|
+
init_roles();
|
|
4900
4913
|
init_schema();
|
|
4901
4914
|
REASONS = {
|
|
4902
4915
|
escalation: { words: "a role escalated a question", person: true },
|
|
@@ -4929,13 +4942,7 @@ var init_narration = __esm(() => {
|
|
|
4929
4942
|
|
|
4930
4943
|
// ../../harness/kernel/adapters/agents/agent-line.ts
|
|
4931
4944
|
function roleLabel(role) {
|
|
4932
|
-
|
|
4933
|
-
return roleLabels[role];
|
|
4934
|
-
if (role === "dev-review-loop")
|
|
4935
|
-
return "Loop";
|
|
4936
|
-
if (role === "operator")
|
|
4937
|
-
return "Operator";
|
|
4938
|
-
return role.replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
|
|
4945
|
+
return lookupTitle(role) ?? role.replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
|
|
4939
4946
|
}
|
|
4940
4947
|
function formatLineMeta(meta) {
|
|
4941
4948
|
if (meta === undefined)
|
|
@@ -4949,17 +4956,9 @@ function formatAgentLine(role, words, options = {}) {
|
|
|
4949
4956
|
const mark = options.unicode ?? true ? unicodeMarks[options.mark ?? "working"] : asciiMarks[options.mark ?? "working"];
|
|
4950
4957
|
return `${time} ${mark} ${roleLabel(role)} ${words}`;
|
|
4951
4958
|
}
|
|
4952
|
-
var
|
|
4959
|
+
var unicodeMarks, asciiMarks, META_KEY, META_VALUE;
|
|
4953
4960
|
var init_agent_line = __esm(() => {
|
|
4954
|
-
|
|
4955
|
-
planner: "Planner",
|
|
4956
|
-
developer: "Developer",
|
|
4957
|
-
"code-reviewer": "Code review",
|
|
4958
|
-
security: "Security",
|
|
4959
|
-
principal: "Principal",
|
|
4960
|
-
archivist: "Archivist",
|
|
4961
|
-
architect: "Architect"
|
|
4962
|
-
};
|
|
4961
|
+
init_roles();
|
|
4963
4962
|
unicodeMarks = { working: "▸", done: "✓", failed: "✕", waiting: "◌", round: "◆" };
|
|
4964
4963
|
asciiMarks = { working: ">", done: "+", failed: "x", waiting: "~", round: "#" };
|
|
4965
4964
|
META_KEY = /^[a-z]+$/;
|
|
@@ -6181,6 +6180,28 @@ var init_log_sink = __esm(() => {
|
|
|
6181
6180
|
defaultSinkSlot = createDefaultLogSinkSlot(process.env.VINAYA_RUN_ID || randomUUID2());
|
|
6182
6181
|
});
|
|
6183
6182
|
|
|
6183
|
+
// ../../harness/processes/vinaya-strict/integration/log/log-roles.ts
|
|
6184
|
+
function registerVinayaLogRoles() {
|
|
6185
|
+
for (const { name, reading, title, reviews } of VINAYA_LOG_ROLES)
|
|
6186
|
+
registerRole(name, { reading, title, reviews });
|
|
6187
|
+
registerTitle("dev-review-loop", "Loop");
|
|
6188
|
+
}
|
|
6189
|
+
var VINAYA_LOG_ROLES, VINAYA_LOG_ROLE_NAMES;
|
|
6190
|
+
var init_log_roles = __esm(() => {
|
|
6191
|
+
init_roles();
|
|
6192
|
+
VINAYA_LOG_ROLES = [
|
|
6193
|
+
{ name: "planner", reading: "planner", title: "Planner", reviews: false },
|
|
6194
|
+
{ name: "developer", reading: "developer", title: "Developer", reviews: false },
|
|
6195
|
+
{ name: "code-reviewer", reading: "code reviewer", title: "Code review", reviews: true },
|
|
6196
|
+
{ name: "security", reading: "security reviewer", title: "Security", reviews: true },
|
|
6197
|
+
{ name: "principal", reading: "principal", title: "Principal", reviews: false },
|
|
6198
|
+
{ name: "archivist", reading: "archivist", title: "Archivist", reviews: false },
|
|
6199
|
+
{ name: "architect", reading: "architect", title: "Architect", reviews: false }
|
|
6200
|
+
];
|
|
6201
|
+
VINAYA_LOG_ROLE_NAMES = VINAYA_LOG_ROLES.map((role) => role.name);
|
|
6202
|
+
registerVinayaLogRoles();
|
|
6203
|
+
});
|
|
6204
|
+
|
|
6184
6205
|
// ../../harness/processes/vinaya-strict/integration/log/branch-issue.ts
|
|
6185
6206
|
import { execFile as execFile5 } from "node:child_process";
|
|
6186
6207
|
import { promisify as promisify5 } from "node:util";
|
|
@@ -6383,6 +6404,7 @@ function installVinayaLogSinkFactory() {
|
|
|
6383
6404
|
var init_log_sink_factory = __esm(() => {
|
|
6384
6405
|
init_log_sink();
|
|
6385
6406
|
init_package_root();
|
|
6407
|
+
init_log_roles();
|
|
6386
6408
|
init_branch_issue();
|
|
6387
6409
|
init_doctrine_version();
|
|
6388
6410
|
});
|
|
@@ -6785,8 +6807,8 @@ var init_protected_paths2 = __esm(() => {
|
|
|
6785
6807
|
|
|
6786
6808
|
// ../../harness/processes/vinaya-strict/integration/policies/roles.ts
|
|
6787
6809
|
var GRANTED_ROLES, ROLE_TOOL_GRANTS, VINAYA_TOOL_GRANTS, VINAYA_BROKER_ROLES, VINAYA_BOUNDARY_ROLES, OPERATOR_TOOL_GRANT, VINAYA_ROUTER_ROLES;
|
|
6788
|
-
var
|
|
6789
|
-
|
|
6810
|
+
var init_roles2 = __esm(() => {
|
|
6811
|
+
init_log_roles();
|
|
6790
6812
|
GRANTED_ROLES = ["developer", "code-reviewer", "security", "controller"];
|
|
6791
6813
|
ROLE_TOOL_GRANTS = {
|
|
6792
6814
|
developer: [
|
|
@@ -6805,7 +6827,7 @@ var init_roles = __esm(() => {
|
|
|
6805
6827
|
};
|
|
6806
6828
|
VINAYA_TOOL_GRANTS = { roles: GRANTED_ROLES, grants: ROLE_TOOL_GRANTS };
|
|
6807
6829
|
VINAYA_BROKER_ROLES = {
|
|
6808
|
-
recognizedRoles:
|
|
6830
|
+
recognizedRoles: VINAYA_LOG_ROLE_NAMES,
|
|
6809
6831
|
workerRoles: ["developer"],
|
|
6810
6832
|
surfaceOwner: "the Planner"
|
|
6811
6833
|
};
|
|
@@ -6889,7 +6911,7 @@ function vinayaRouterPolicies() {
|
|
|
6889
6911
|
var init_vinaya_policies = __esm(() => {
|
|
6890
6912
|
init_launch_records();
|
|
6891
6913
|
init_protected_paths2();
|
|
6892
|
-
|
|
6914
|
+
init_roles2();
|
|
6893
6915
|
init_scratch_names();
|
|
6894
6916
|
});
|
|
6895
6917
|
|