@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/pr.js
CHANGED
|
@@ -4205,21 +4205,145 @@ var init_resolve_repo = __esm(() => {
|
|
|
4205
4205
|
};
|
|
4206
4206
|
});
|
|
4207
4207
|
|
|
4208
|
+
// ../../harness/kernel/log/roles.ts
|
|
4209
|
+
function registerRole(name, role) {
|
|
4210
|
+
roles.set(name, role);
|
|
4211
|
+
}
|
|
4212
|
+
function registerTitle(name, title) {
|
|
4213
|
+
titles.set(name, title);
|
|
4214
|
+
}
|
|
4215
|
+
function isRole(value) {
|
|
4216
|
+
return value !== undefined && roles.has(value);
|
|
4217
|
+
}
|
|
4218
|
+
function lookupRole(name) {
|
|
4219
|
+
return roles.get(name);
|
|
4220
|
+
}
|
|
4221
|
+
function lookupTitle(name) {
|
|
4222
|
+
return roles.get(name)?.title ?? titles.get(name);
|
|
4223
|
+
}
|
|
4224
|
+
var roles, titles;
|
|
4225
|
+
var init_roles = __esm(() => {
|
|
4226
|
+
roles = new Map;
|
|
4227
|
+
titles = new Map;
|
|
4228
|
+
});
|
|
4229
|
+
|
|
4230
|
+
// ../../harness/kernel/log/envelope.ts
|
|
4231
|
+
import { createHash as createHash2 } from "node:crypto";
|
|
4232
|
+
function actorIdFromEnv(role) {
|
|
4233
|
+
return role === undefined || role === "" ? null : role;
|
|
4234
|
+
}
|
|
4235
|
+
function lineageFieldFromEnv(value) {
|
|
4236
|
+
return value === undefined || value === "" ? null : value;
|
|
4237
|
+
}
|
|
4238
|
+
function attemptFromEnv(value) {
|
|
4239
|
+
if (value === undefined || value === "")
|
|
4240
|
+
return null;
|
|
4241
|
+
const n = Number(value);
|
|
4242
|
+
return Number.isInteger(n) ? n : null;
|
|
4243
|
+
}
|
|
4244
|
+
function provenanceFor(input) {
|
|
4245
|
+
if (input.provenance)
|
|
4246
|
+
return input.provenance;
|
|
4247
|
+
if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
|
|
4248
|
+
return "unavailable";
|
|
4249
|
+
if (input.env.role || input.env.task)
|
|
4250
|
+
return "env_correlated";
|
|
4251
|
+
return "unavailable";
|
|
4252
|
+
}
|
|
4253
|
+
function issueFromTask(task) {
|
|
4254
|
+
if (task === undefined || task === "")
|
|
4255
|
+
return null;
|
|
4256
|
+
const n = Number(task);
|
|
4257
|
+
return Number.isInteger(n) ? n : null;
|
|
4258
|
+
}
|
|
4259
|
+
function roundFromEnv(round) {
|
|
4260
|
+
if (round === undefined || round === "")
|
|
4261
|
+
return;
|
|
4262
|
+
const n = Number(round);
|
|
4263
|
+
return Number.isInteger(n) ? n : undefined;
|
|
4264
|
+
}
|
|
4265
|
+
function prFromEnv(pr) {
|
|
4266
|
+
if (pr === undefined || pr === "")
|
|
4267
|
+
return;
|
|
4268
|
+
const n = Number(pr);
|
|
4269
|
+
return Number.isInteger(n) && n > 0 ? n : undefined;
|
|
4270
|
+
}
|
|
4271
|
+
function buildHeader(input) {
|
|
4272
|
+
const role = isRole(input.env.role) ? input.env.role : "unattributed";
|
|
4273
|
+
const round = roundFromEnv(input.env.round);
|
|
4274
|
+
const pr = prFromEnv(input.env.pr);
|
|
4275
|
+
const subject = {
|
|
4276
|
+
issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
|
|
4277
|
+
role,
|
|
4278
|
+
...round !== undefined ? { round } : {},
|
|
4279
|
+
...pr !== undefined ? { pr } : {},
|
|
4280
|
+
...input.subject ?? {}
|
|
4281
|
+
};
|
|
4282
|
+
const issue = subject.issue;
|
|
4283
|
+
return {
|
|
4284
|
+
meta: {
|
|
4285
|
+
schema: 4,
|
|
4286
|
+
ts: input.now.toISOString(),
|
|
4287
|
+
run_id: input.runId,
|
|
4288
|
+
seq: input.seq,
|
|
4289
|
+
repo: input.repo,
|
|
4290
|
+
vinaya: input.vinaya,
|
|
4291
|
+
doctrine: input.doctrine,
|
|
4292
|
+
host: input.host,
|
|
4293
|
+
machine: createHash2("sha256").update(input.hostname).digest("hex"),
|
|
4294
|
+
event_id: input.eventId,
|
|
4295
|
+
process_id: input.processId,
|
|
4296
|
+
actor_id: actorIdFromEnv(input.env.role),
|
|
4297
|
+
lineage: {
|
|
4298
|
+
run: lineageFieldFromEnv(input.env.run),
|
|
4299
|
+
attempt: attemptFromEnv(input.env.attempt),
|
|
4300
|
+
parent: lineageFieldFromEnv(input.env.parent)
|
|
4301
|
+
},
|
|
4302
|
+
input_versions: {
|
|
4303
|
+
manifest_version: input.inputVersions?.manifestVersion ?? null,
|
|
4304
|
+
objectives_version: input.inputVersions?.objectivesVersion ?? null,
|
|
4305
|
+
brief_hash: input.inputVersions?.briefHash ?? null,
|
|
4306
|
+
ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
|
|
4307
|
+
pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
|
|
4308
|
+
policy_digest: input.inputVersions?.policyDigest ?? null
|
|
4309
|
+
},
|
|
4310
|
+
provenance: provenanceFor(input),
|
|
4311
|
+
work: {
|
|
4312
|
+
ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
|
|
4313
|
+
repo: input.repo,
|
|
4314
|
+
change: pr === undefined ? null : String(pr),
|
|
4315
|
+
revision: input.revision ?? null
|
|
4316
|
+
},
|
|
4317
|
+
flow: {
|
|
4318
|
+
id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
|
|
4319
|
+
version: lineageFieldFromEnv(input.env.flowVersion)
|
|
4320
|
+
},
|
|
4321
|
+
runtime: lineageFieldFromEnv(input.env.runtime),
|
|
4322
|
+
process: {
|
|
4323
|
+
id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
|
|
4324
|
+
version: lineageFieldFromEnv(input.env.processVersion),
|
|
4325
|
+
digest: lineageFieldFromEnv(input.env.processDigest)
|
|
4326
|
+
},
|
|
4327
|
+
runner: {
|
|
4328
|
+
id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
|
|
4329
|
+
version: lineageFieldFromEnv(input.env.runnerVersion)
|
|
4330
|
+
},
|
|
4331
|
+
source: lineageFieldFromEnv(input.env.source)
|
|
4332
|
+
},
|
|
4333
|
+
subject
|
|
4334
|
+
};
|
|
4335
|
+
}
|
|
4336
|
+
var init_envelope = __esm(() => {
|
|
4337
|
+
init_roles();
|
|
4338
|
+
});
|
|
4339
|
+
|
|
4208
4340
|
// ../../harness/kernel/log/schema.ts
|
|
4209
4341
|
import { z as z6 } from "zod";
|
|
4210
|
-
var CONFIDENCE_REASON_MAX_LENGTH = 280, REVIEW_FINDING_DESCRIPTION_MAX_LENGTH = 1000,
|
|
4342
|
+
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;
|
|
4211
4343
|
var init_schema = __esm(() => {
|
|
4212
4344
|
init_custom();
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
"developer",
|
|
4216
|
-
"code-reviewer",
|
|
4217
|
-
"security",
|
|
4218
|
-
"principal",
|
|
4219
|
-
"archivist",
|
|
4220
|
-
"architect"
|
|
4221
|
-
];
|
|
4222
|
-
RoleSchema = z6.enum(ROLE_VALUES);
|
|
4345
|
+
ROLE_NAME_PATTERN = /^[a-z0-9-]+$/;
|
|
4346
|
+
RoleSchema = z6.string().regex(ROLE_NAME_PATTERN);
|
|
4223
4347
|
HOST_VALUES = ["hook", "ci", "cli", "loop"];
|
|
4224
4348
|
HostSchema = z6.enum(HOST_VALUES);
|
|
4225
4349
|
RUN_ID_PATTERN = /^[A-Za-z0-9_.-]{1,128}$/;
|
|
@@ -4801,119 +4925,6 @@ var init_schema = __esm(() => {
|
|
|
4801
4925
|
]);
|
|
4802
4926
|
});
|
|
4803
4927
|
|
|
4804
|
-
// ../../harness/kernel/log/envelope.ts
|
|
4805
|
-
import { createHash as createHash2 } from "node:crypto";
|
|
4806
|
-
function isRole(value) {
|
|
4807
|
-
return value !== undefined && ROLE_VALUES.includes(value);
|
|
4808
|
-
}
|
|
4809
|
-
function actorIdFromEnv(role) {
|
|
4810
|
-
return role === undefined || role === "" ? null : role;
|
|
4811
|
-
}
|
|
4812
|
-
function lineageFieldFromEnv(value) {
|
|
4813
|
-
return value === undefined || value === "" ? null : value;
|
|
4814
|
-
}
|
|
4815
|
-
function attemptFromEnv(value) {
|
|
4816
|
-
if (value === undefined || value === "")
|
|
4817
|
-
return null;
|
|
4818
|
-
const n = Number(value);
|
|
4819
|
-
return Number.isInteger(n) ? n : null;
|
|
4820
|
-
}
|
|
4821
|
-
function provenanceFor(input) {
|
|
4822
|
-
if (input.provenance)
|
|
4823
|
-
return input.provenance;
|
|
4824
|
-
if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
|
|
4825
|
-
return "unavailable";
|
|
4826
|
-
if (input.env.role || input.env.task)
|
|
4827
|
-
return "env_correlated";
|
|
4828
|
-
return "unavailable";
|
|
4829
|
-
}
|
|
4830
|
-
function issueFromTask(task) {
|
|
4831
|
-
if (task === undefined || task === "")
|
|
4832
|
-
return null;
|
|
4833
|
-
const n = Number(task);
|
|
4834
|
-
return Number.isInteger(n) ? n : null;
|
|
4835
|
-
}
|
|
4836
|
-
function roundFromEnv(round) {
|
|
4837
|
-
if (round === undefined || round === "")
|
|
4838
|
-
return;
|
|
4839
|
-
const n = Number(round);
|
|
4840
|
-
return Number.isInteger(n) ? n : undefined;
|
|
4841
|
-
}
|
|
4842
|
-
function prFromEnv(pr) {
|
|
4843
|
-
if (pr === undefined || pr === "")
|
|
4844
|
-
return;
|
|
4845
|
-
const n = Number(pr);
|
|
4846
|
-
return Number.isInteger(n) && n > 0 ? n : undefined;
|
|
4847
|
-
}
|
|
4848
|
-
function buildHeader(input) {
|
|
4849
|
-
const role = isRole(input.env.role) ? input.env.role : "unattributed";
|
|
4850
|
-
const round = roundFromEnv(input.env.round);
|
|
4851
|
-
const pr = prFromEnv(input.env.pr);
|
|
4852
|
-
const subject = {
|
|
4853
|
-
issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
|
|
4854
|
-
role,
|
|
4855
|
-
...round !== undefined ? { round } : {},
|
|
4856
|
-
...pr !== undefined ? { pr } : {},
|
|
4857
|
-
...input.subject ?? {}
|
|
4858
|
-
};
|
|
4859
|
-
const issue = subject.issue;
|
|
4860
|
-
return {
|
|
4861
|
-
meta: {
|
|
4862
|
-
schema: 4,
|
|
4863
|
-
ts: input.now.toISOString(),
|
|
4864
|
-
run_id: input.runId,
|
|
4865
|
-
seq: input.seq,
|
|
4866
|
-
repo: input.repo,
|
|
4867
|
-
vinaya: input.vinaya,
|
|
4868
|
-
doctrine: input.doctrine,
|
|
4869
|
-
host: input.host,
|
|
4870
|
-
machine: createHash2("sha256").update(input.hostname).digest("hex"),
|
|
4871
|
-
event_id: input.eventId,
|
|
4872
|
-
process_id: input.processId,
|
|
4873
|
-
actor_id: actorIdFromEnv(input.env.role),
|
|
4874
|
-
lineage: {
|
|
4875
|
-
run: lineageFieldFromEnv(input.env.run),
|
|
4876
|
-
attempt: attemptFromEnv(input.env.attempt),
|
|
4877
|
-
parent: lineageFieldFromEnv(input.env.parent)
|
|
4878
|
-
},
|
|
4879
|
-
input_versions: {
|
|
4880
|
-
manifest_version: input.inputVersions?.manifestVersion ?? null,
|
|
4881
|
-
objectives_version: input.inputVersions?.objectivesVersion ?? null,
|
|
4882
|
-
brief_hash: input.inputVersions?.briefHash ?? null,
|
|
4883
|
-
ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
|
|
4884
|
-
pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
|
|
4885
|
-
policy_digest: input.inputVersions?.policyDigest ?? null
|
|
4886
|
-
},
|
|
4887
|
-
provenance: provenanceFor(input),
|
|
4888
|
-
work: {
|
|
4889
|
-
ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
|
|
4890
|
-
repo: input.repo,
|
|
4891
|
-
change: pr === undefined ? null : String(pr),
|
|
4892
|
-
revision: input.revision ?? null
|
|
4893
|
-
},
|
|
4894
|
-
flow: {
|
|
4895
|
-
id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
|
|
4896
|
-
version: lineageFieldFromEnv(input.env.flowVersion)
|
|
4897
|
-
},
|
|
4898
|
-
runtime: lineageFieldFromEnv(input.env.runtime),
|
|
4899
|
-
process: {
|
|
4900
|
-
id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
|
|
4901
|
-
version: lineageFieldFromEnv(input.env.processVersion),
|
|
4902
|
-
digest: lineageFieldFromEnv(input.env.processDigest)
|
|
4903
|
-
},
|
|
4904
|
-
runner: {
|
|
4905
|
-
id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
|
|
4906
|
-
version: lineageFieldFromEnv(input.env.runnerVersion)
|
|
4907
|
-
},
|
|
4908
|
-
source: lineageFieldFromEnv(input.env.source)
|
|
4909
|
-
},
|
|
4910
|
-
subject
|
|
4911
|
-
};
|
|
4912
|
-
}
|
|
4913
|
-
var init_envelope = __esm(() => {
|
|
4914
|
-
init_schema();
|
|
4915
|
-
});
|
|
4916
|
-
|
|
4917
4928
|
// ../../harness/kernel/log/redact.ts
|
|
4918
4929
|
function redactString(value, home) {
|
|
4919
4930
|
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>");
|
|
@@ -5420,7 +5431,8 @@ function code(value) {
|
|
|
5420
5431
|
return typeof value === "string" && CODE_TOKEN_PATTERN.test(value) ? value : null;
|
|
5421
5432
|
}
|
|
5422
5433
|
function roleSubject(value, sentenceStart = true) {
|
|
5423
|
-
const
|
|
5434
|
+
const known = typeof value === "string" ? lookupRole(value) : undefined;
|
|
5435
|
+
const name = known ? `the ${known.reading}` : "a role";
|
|
5424
5436
|
return sentenceStart ? `${name[0]?.toUpperCase()}${name.slice(1)}` : name;
|
|
5425
5437
|
}
|
|
5426
5438
|
function roundLabel(record) {
|
|
@@ -5539,7 +5551,7 @@ function conflictReentry(record) {
|
|
|
5539
5551
|
function dispatched(record) {
|
|
5540
5552
|
const role = text(record.target_role);
|
|
5541
5553
|
const who = roleSubject(role);
|
|
5542
|
-
const reviewing = role
|
|
5554
|
+
const reviewing = role !== null && (lookupRole(role)?.reviews ?? false);
|
|
5543
5555
|
const round = whole(record.round);
|
|
5544
5556
|
return {
|
|
5545
5557
|
kind: "working",
|
|
@@ -5598,6 +5610,7 @@ function narrate(record, earlier = []) {
|
|
|
5598
5610
|
}
|
|
5599
5611
|
var REASONS, PAUSE_WITHOUT_CODE;
|
|
5600
5612
|
var init_narration = __esm(() => {
|
|
5613
|
+
init_roles();
|
|
5601
5614
|
init_schema();
|
|
5602
5615
|
REASONS = {
|
|
5603
5616
|
escalation: { words: "a role escalated a question", person: true },
|
|
@@ -5630,13 +5643,7 @@ var init_narration = __esm(() => {
|
|
|
5630
5643
|
|
|
5631
5644
|
// ../../harness/kernel/adapters/agents/agent-line.ts
|
|
5632
5645
|
function roleLabel(role) {
|
|
5633
|
-
|
|
5634
|
-
return roleLabels[role];
|
|
5635
|
-
if (role === "dev-review-loop")
|
|
5636
|
-
return "Loop";
|
|
5637
|
-
if (role === "operator")
|
|
5638
|
-
return "Operator";
|
|
5639
|
-
return role.replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
|
|
5646
|
+
return lookupTitle(role) ?? role.replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
|
|
5640
5647
|
}
|
|
5641
5648
|
function formatLineMeta(meta) {
|
|
5642
5649
|
if (meta === undefined)
|
|
@@ -5650,17 +5657,9 @@ function formatAgentLine(role, words, options = {}) {
|
|
|
5650
5657
|
const mark = options.unicode ?? true ? unicodeMarks[options.mark ?? "working"] : asciiMarks[options.mark ?? "working"];
|
|
5651
5658
|
return `${time} ${mark} ${roleLabel(role)} ${words}`;
|
|
5652
5659
|
}
|
|
5653
|
-
var
|
|
5660
|
+
var unicodeMarks, asciiMarks, META_KEY, META_VALUE;
|
|
5654
5661
|
var init_agent_line = __esm(() => {
|
|
5655
|
-
|
|
5656
|
-
planner: "Planner",
|
|
5657
|
-
developer: "Developer",
|
|
5658
|
-
"code-reviewer": "Code review",
|
|
5659
|
-
security: "Security",
|
|
5660
|
-
principal: "Principal",
|
|
5661
|
-
archivist: "Archivist",
|
|
5662
|
-
architect: "Architect"
|
|
5663
|
-
};
|
|
5662
|
+
init_roles();
|
|
5664
5663
|
unicodeMarks = { working: "▸", done: "✓", failed: "✕", waiting: "◌", round: "◆" };
|
|
5665
5664
|
asciiMarks = { working: ">", done: "+", failed: "x", waiting: "~", round: "#" };
|
|
5666
5665
|
META_KEY = /^[a-z]+$/;
|
|
@@ -6978,6 +6977,28 @@ var init_install_process = __esm(() => {
|
|
|
6978
6977
|
SLOT_ORDER = ["log", "config", "checks"];
|
|
6979
6978
|
});
|
|
6980
6979
|
|
|
6980
|
+
// ../../harness/processes/vinaya-strict/integration/log/log-roles.ts
|
|
6981
|
+
function registerVinayaLogRoles() {
|
|
6982
|
+
for (const { name, reading, title, reviews } of VINAYA_LOG_ROLES)
|
|
6983
|
+
registerRole(name, { reading, title, reviews });
|
|
6984
|
+
registerTitle("dev-review-loop", "Loop");
|
|
6985
|
+
}
|
|
6986
|
+
var VINAYA_LOG_ROLES, VINAYA_LOG_ROLE_NAMES;
|
|
6987
|
+
var init_log_roles = __esm(() => {
|
|
6988
|
+
init_roles();
|
|
6989
|
+
VINAYA_LOG_ROLES = [
|
|
6990
|
+
{ name: "planner", reading: "planner", title: "Planner", reviews: false },
|
|
6991
|
+
{ name: "developer", reading: "developer", title: "Developer", reviews: false },
|
|
6992
|
+
{ name: "code-reviewer", reading: "code reviewer", title: "Code review", reviews: true },
|
|
6993
|
+
{ name: "security", reading: "security reviewer", title: "Security", reviews: true },
|
|
6994
|
+
{ name: "principal", reading: "principal", title: "Principal", reviews: false },
|
|
6995
|
+
{ name: "archivist", reading: "archivist", title: "Archivist", reviews: false },
|
|
6996
|
+
{ name: "architect", reading: "architect", title: "Architect", reviews: false }
|
|
6997
|
+
];
|
|
6998
|
+
VINAYA_LOG_ROLE_NAMES = VINAYA_LOG_ROLES.map((role) => role.name);
|
|
6999
|
+
registerVinayaLogRoles();
|
|
7000
|
+
});
|
|
7001
|
+
|
|
6981
7002
|
// ../../harness/processes/vinaya-strict/integration/log/branch-issue.ts
|
|
6982
7003
|
import { execFile as execFile7 } from "node:child_process";
|
|
6983
7004
|
import { promisify as promisify7 } from "node:util";
|
|
@@ -7180,6 +7201,7 @@ function installVinayaLogSinkFactory() {
|
|
|
7180
7201
|
var init_log_sink_factory = __esm(() => {
|
|
7181
7202
|
init_log_sink();
|
|
7182
7203
|
init_package_root();
|
|
7204
|
+
init_log_roles();
|
|
7183
7205
|
init_branch_issue();
|
|
7184
7206
|
init_doctrine_version();
|
|
7185
7207
|
});
|
|
@@ -7578,8 +7600,8 @@ var init_protected_paths2 = __esm(() => {
|
|
|
7578
7600
|
|
|
7579
7601
|
// ../../harness/processes/vinaya-strict/integration/policies/roles.ts
|
|
7580
7602
|
var GRANTED_ROLES, ROLE_TOOL_GRANTS, VINAYA_TOOL_GRANTS, VINAYA_BROKER_ROLES, VINAYA_BOUNDARY_ROLES, OPERATOR_TOOL_GRANT, VINAYA_ROUTER_ROLES;
|
|
7581
|
-
var
|
|
7582
|
-
|
|
7603
|
+
var init_roles2 = __esm(() => {
|
|
7604
|
+
init_log_roles();
|
|
7583
7605
|
GRANTED_ROLES = ["developer", "code-reviewer", "security", "controller"];
|
|
7584
7606
|
ROLE_TOOL_GRANTS = {
|
|
7585
7607
|
developer: [
|
|
@@ -7598,7 +7620,7 @@ var init_roles = __esm(() => {
|
|
|
7598
7620
|
};
|
|
7599
7621
|
VINAYA_TOOL_GRANTS = { roles: GRANTED_ROLES, grants: ROLE_TOOL_GRANTS };
|
|
7600
7622
|
VINAYA_BROKER_ROLES = {
|
|
7601
|
-
recognizedRoles:
|
|
7623
|
+
recognizedRoles: VINAYA_LOG_ROLE_NAMES,
|
|
7602
7624
|
workerRoles: ["developer"],
|
|
7603
7625
|
surfaceOwner: "the Planner"
|
|
7604
7626
|
};
|
|
@@ -7682,7 +7704,7 @@ function vinayaRouterPolicies() {
|
|
|
7682
7704
|
var init_vinaya_policies = __esm(() => {
|
|
7683
7705
|
init_launch_records();
|
|
7684
7706
|
init_protected_paths2();
|
|
7685
|
-
|
|
7707
|
+
init_roles2();
|
|
7686
7708
|
init_scratch_names();
|
|
7687
7709
|
});
|
|
7688
7710
|
|