@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
|
@@ -2645,21 +2645,145 @@ var init_compose = __esm(() => {
|
|
|
2645
2645
|
installVinayaConfigProvider();
|
|
2646
2646
|
});
|
|
2647
2647
|
|
|
2648
|
+
// ../../harness/kernel/log/roles.ts
|
|
2649
|
+
function registerRole(name, role) {
|
|
2650
|
+
roles.set(name, role);
|
|
2651
|
+
}
|
|
2652
|
+
function registerTitle(name, title) {
|
|
2653
|
+
titles.set(name, title);
|
|
2654
|
+
}
|
|
2655
|
+
function isRole(value) {
|
|
2656
|
+
return value !== undefined && roles.has(value);
|
|
2657
|
+
}
|
|
2658
|
+
function lookupRole(name) {
|
|
2659
|
+
return roles.get(name);
|
|
2660
|
+
}
|
|
2661
|
+
function lookupTitle(name) {
|
|
2662
|
+
return roles.get(name)?.title ?? titles.get(name);
|
|
2663
|
+
}
|
|
2664
|
+
var roles, titles;
|
|
2665
|
+
var init_roles = __esm(() => {
|
|
2666
|
+
roles = new Map;
|
|
2667
|
+
titles = new Map;
|
|
2668
|
+
});
|
|
2669
|
+
|
|
2670
|
+
// ../../harness/kernel/log/envelope.ts
|
|
2671
|
+
import { createHash as createHash2 } from "node:crypto";
|
|
2672
|
+
function actorIdFromEnv(role) {
|
|
2673
|
+
return role === undefined || role === "" ? null : role;
|
|
2674
|
+
}
|
|
2675
|
+
function lineageFieldFromEnv(value) {
|
|
2676
|
+
return value === undefined || value === "" ? null : value;
|
|
2677
|
+
}
|
|
2678
|
+
function attemptFromEnv(value) {
|
|
2679
|
+
if (value === undefined || value === "")
|
|
2680
|
+
return null;
|
|
2681
|
+
const n = Number(value);
|
|
2682
|
+
return Number.isInteger(n) ? n : null;
|
|
2683
|
+
}
|
|
2684
|
+
function provenanceFor(input) {
|
|
2685
|
+
if (input.provenance)
|
|
2686
|
+
return input.provenance;
|
|
2687
|
+
if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
|
|
2688
|
+
return "unavailable";
|
|
2689
|
+
if (input.env.role || input.env.task)
|
|
2690
|
+
return "env_correlated";
|
|
2691
|
+
return "unavailable";
|
|
2692
|
+
}
|
|
2693
|
+
function issueFromTask(task) {
|
|
2694
|
+
if (task === undefined || task === "")
|
|
2695
|
+
return null;
|
|
2696
|
+
const n = Number(task);
|
|
2697
|
+
return Number.isInteger(n) ? n : null;
|
|
2698
|
+
}
|
|
2699
|
+
function roundFromEnv(round) {
|
|
2700
|
+
if (round === undefined || round === "")
|
|
2701
|
+
return;
|
|
2702
|
+
const n = Number(round);
|
|
2703
|
+
return Number.isInteger(n) ? n : undefined;
|
|
2704
|
+
}
|
|
2705
|
+
function prFromEnv(pr) {
|
|
2706
|
+
if (pr === undefined || pr === "")
|
|
2707
|
+
return;
|
|
2708
|
+
const n = Number(pr);
|
|
2709
|
+
return Number.isInteger(n) && n > 0 ? n : undefined;
|
|
2710
|
+
}
|
|
2711
|
+
function buildHeader(input) {
|
|
2712
|
+
const role = isRole(input.env.role) ? input.env.role : "unattributed";
|
|
2713
|
+
const round = roundFromEnv(input.env.round);
|
|
2714
|
+
const pr = prFromEnv(input.env.pr);
|
|
2715
|
+
const subject = {
|
|
2716
|
+
issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
|
|
2717
|
+
role,
|
|
2718
|
+
...round !== undefined ? { round } : {},
|
|
2719
|
+
...pr !== undefined ? { pr } : {},
|
|
2720
|
+
...input.subject ?? {}
|
|
2721
|
+
};
|
|
2722
|
+
const issue = subject.issue;
|
|
2723
|
+
return {
|
|
2724
|
+
meta: {
|
|
2725
|
+
schema: 4,
|
|
2726
|
+
ts: input.now.toISOString(),
|
|
2727
|
+
run_id: input.runId,
|
|
2728
|
+
seq: input.seq,
|
|
2729
|
+
repo: input.repo,
|
|
2730
|
+
vinaya: input.vinaya,
|
|
2731
|
+
doctrine: input.doctrine,
|
|
2732
|
+
host: input.host,
|
|
2733
|
+
machine: createHash2("sha256").update(input.hostname).digest("hex"),
|
|
2734
|
+
event_id: input.eventId,
|
|
2735
|
+
process_id: input.processId,
|
|
2736
|
+
actor_id: actorIdFromEnv(input.env.role),
|
|
2737
|
+
lineage: {
|
|
2738
|
+
run: lineageFieldFromEnv(input.env.run),
|
|
2739
|
+
attempt: attemptFromEnv(input.env.attempt),
|
|
2740
|
+
parent: lineageFieldFromEnv(input.env.parent)
|
|
2741
|
+
},
|
|
2742
|
+
input_versions: {
|
|
2743
|
+
manifest_version: input.inputVersions?.manifestVersion ?? null,
|
|
2744
|
+
objectives_version: input.inputVersions?.objectivesVersion ?? null,
|
|
2745
|
+
brief_hash: input.inputVersions?.briefHash ?? null,
|
|
2746
|
+
ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
|
|
2747
|
+
pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
|
|
2748
|
+
policy_digest: input.inputVersions?.policyDigest ?? null
|
|
2749
|
+
},
|
|
2750
|
+
provenance: provenanceFor(input),
|
|
2751
|
+
work: {
|
|
2752
|
+
ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
|
|
2753
|
+
repo: input.repo,
|
|
2754
|
+
change: pr === undefined ? null : String(pr),
|
|
2755
|
+
revision: input.revision ?? null
|
|
2756
|
+
},
|
|
2757
|
+
flow: {
|
|
2758
|
+
id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
|
|
2759
|
+
version: lineageFieldFromEnv(input.env.flowVersion)
|
|
2760
|
+
},
|
|
2761
|
+
runtime: lineageFieldFromEnv(input.env.runtime),
|
|
2762
|
+
process: {
|
|
2763
|
+
id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
|
|
2764
|
+
version: lineageFieldFromEnv(input.env.processVersion),
|
|
2765
|
+
digest: lineageFieldFromEnv(input.env.processDigest)
|
|
2766
|
+
},
|
|
2767
|
+
runner: {
|
|
2768
|
+
id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
|
|
2769
|
+
version: lineageFieldFromEnv(input.env.runnerVersion)
|
|
2770
|
+
},
|
|
2771
|
+
source: lineageFieldFromEnv(input.env.source)
|
|
2772
|
+
},
|
|
2773
|
+
subject
|
|
2774
|
+
};
|
|
2775
|
+
}
|
|
2776
|
+
var init_envelope = __esm(() => {
|
|
2777
|
+
init_roles();
|
|
2778
|
+
});
|
|
2779
|
+
|
|
2648
2780
|
// ../../harness/kernel/log/schema.ts
|
|
2649
2781
|
import { z as z6 } from "zod";
|
|
2650
|
-
var CONFIDENCE_REASON_MAX_LENGTH = 280, REVIEW_FINDING_DESCRIPTION_MAX_LENGTH = 1000,
|
|
2782
|
+
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;
|
|
2651
2783
|
var init_schema = __esm(() => {
|
|
2652
2784
|
init_custom();
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
"developer",
|
|
2656
|
-
"code-reviewer",
|
|
2657
|
-
"security",
|
|
2658
|
-
"principal",
|
|
2659
|
-
"archivist",
|
|
2660
|
-
"architect"
|
|
2661
|
-
];
|
|
2662
|
-
RoleSchema = z6.enum(ROLE_VALUES);
|
|
2785
|
+
ROLE_NAME_PATTERN = /^[a-z0-9-]+$/;
|
|
2786
|
+
RoleSchema = z6.string().regex(ROLE_NAME_PATTERN);
|
|
2663
2787
|
HOST_VALUES = ["hook", "ci", "cli", "loop"];
|
|
2664
2788
|
HostSchema = z6.enum(HOST_VALUES);
|
|
2665
2789
|
RUN_ID_PATTERN = /^[A-Za-z0-9_.-]{1,128}$/;
|
|
@@ -3241,119 +3365,6 @@ var init_schema = __esm(() => {
|
|
|
3241
3365
|
]);
|
|
3242
3366
|
});
|
|
3243
3367
|
|
|
3244
|
-
// ../../harness/kernel/log/envelope.ts
|
|
3245
|
-
import { createHash as createHash2 } from "node:crypto";
|
|
3246
|
-
function isRole(value) {
|
|
3247
|
-
return value !== undefined && ROLE_VALUES.includes(value);
|
|
3248
|
-
}
|
|
3249
|
-
function actorIdFromEnv(role) {
|
|
3250
|
-
return role === undefined || role === "" ? null : role;
|
|
3251
|
-
}
|
|
3252
|
-
function lineageFieldFromEnv(value) {
|
|
3253
|
-
return value === undefined || value === "" ? null : value;
|
|
3254
|
-
}
|
|
3255
|
-
function attemptFromEnv(value) {
|
|
3256
|
-
if (value === undefined || value === "")
|
|
3257
|
-
return null;
|
|
3258
|
-
const n = Number(value);
|
|
3259
|
-
return Number.isInteger(n) ? n : null;
|
|
3260
|
-
}
|
|
3261
|
-
function provenanceFor(input) {
|
|
3262
|
-
if (input.provenance)
|
|
3263
|
-
return input.provenance;
|
|
3264
|
-
if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
|
|
3265
|
-
return "unavailable";
|
|
3266
|
-
if (input.env.role || input.env.task)
|
|
3267
|
-
return "env_correlated";
|
|
3268
|
-
return "unavailable";
|
|
3269
|
-
}
|
|
3270
|
-
function issueFromTask(task) {
|
|
3271
|
-
if (task === undefined || task === "")
|
|
3272
|
-
return null;
|
|
3273
|
-
const n = Number(task);
|
|
3274
|
-
return Number.isInteger(n) ? n : null;
|
|
3275
|
-
}
|
|
3276
|
-
function roundFromEnv(round) {
|
|
3277
|
-
if (round === undefined || round === "")
|
|
3278
|
-
return;
|
|
3279
|
-
const n = Number(round);
|
|
3280
|
-
return Number.isInteger(n) ? n : undefined;
|
|
3281
|
-
}
|
|
3282
|
-
function prFromEnv(pr) {
|
|
3283
|
-
if (pr === undefined || pr === "")
|
|
3284
|
-
return;
|
|
3285
|
-
const n = Number(pr);
|
|
3286
|
-
return Number.isInteger(n) && n > 0 ? n : undefined;
|
|
3287
|
-
}
|
|
3288
|
-
function buildHeader(input) {
|
|
3289
|
-
const role = isRole(input.env.role) ? input.env.role : "unattributed";
|
|
3290
|
-
const round = roundFromEnv(input.env.round);
|
|
3291
|
-
const pr = prFromEnv(input.env.pr);
|
|
3292
|
-
const subject = {
|
|
3293
|
-
issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
|
|
3294
|
-
role,
|
|
3295
|
-
...round !== undefined ? { round } : {},
|
|
3296
|
-
...pr !== undefined ? { pr } : {},
|
|
3297
|
-
...input.subject ?? {}
|
|
3298
|
-
};
|
|
3299
|
-
const issue = subject.issue;
|
|
3300
|
-
return {
|
|
3301
|
-
meta: {
|
|
3302
|
-
schema: 4,
|
|
3303
|
-
ts: input.now.toISOString(),
|
|
3304
|
-
run_id: input.runId,
|
|
3305
|
-
seq: input.seq,
|
|
3306
|
-
repo: input.repo,
|
|
3307
|
-
vinaya: input.vinaya,
|
|
3308
|
-
doctrine: input.doctrine,
|
|
3309
|
-
host: input.host,
|
|
3310
|
-
machine: createHash2("sha256").update(input.hostname).digest("hex"),
|
|
3311
|
-
event_id: input.eventId,
|
|
3312
|
-
process_id: input.processId,
|
|
3313
|
-
actor_id: actorIdFromEnv(input.env.role),
|
|
3314
|
-
lineage: {
|
|
3315
|
-
run: lineageFieldFromEnv(input.env.run),
|
|
3316
|
-
attempt: attemptFromEnv(input.env.attempt),
|
|
3317
|
-
parent: lineageFieldFromEnv(input.env.parent)
|
|
3318
|
-
},
|
|
3319
|
-
input_versions: {
|
|
3320
|
-
manifest_version: input.inputVersions?.manifestVersion ?? null,
|
|
3321
|
-
objectives_version: input.inputVersions?.objectivesVersion ?? null,
|
|
3322
|
-
brief_hash: input.inputVersions?.briefHash ?? null,
|
|
3323
|
-
ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
|
|
3324
|
-
pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
|
|
3325
|
-
policy_digest: input.inputVersions?.policyDigest ?? null
|
|
3326
|
-
},
|
|
3327
|
-
provenance: provenanceFor(input),
|
|
3328
|
-
work: {
|
|
3329
|
-
ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
|
|
3330
|
-
repo: input.repo,
|
|
3331
|
-
change: pr === undefined ? null : String(pr),
|
|
3332
|
-
revision: input.revision ?? null
|
|
3333
|
-
},
|
|
3334
|
-
flow: {
|
|
3335
|
-
id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
|
|
3336
|
-
version: lineageFieldFromEnv(input.env.flowVersion)
|
|
3337
|
-
},
|
|
3338
|
-
runtime: lineageFieldFromEnv(input.env.runtime),
|
|
3339
|
-
process: {
|
|
3340
|
-
id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
|
|
3341
|
-
version: lineageFieldFromEnv(input.env.processVersion),
|
|
3342
|
-
digest: lineageFieldFromEnv(input.env.processDigest)
|
|
3343
|
-
},
|
|
3344
|
-
runner: {
|
|
3345
|
-
id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
|
|
3346
|
-
version: lineageFieldFromEnv(input.env.runnerVersion)
|
|
3347
|
-
},
|
|
3348
|
-
source: lineageFieldFromEnv(input.env.source)
|
|
3349
|
-
},
|
|
3350
|
-
subject
|
|
3351
|
-
};
|
|
3352
|
-
}
|
|
3353
|
-
var init_envelope = __esm(() => {
|
|
3354
|
-
init_schema();
|
|
3355
|
-
});
|
|
3356
|
-
|
|
3357
3368
|
// ../../harness/kernel/log/redact.ts
|
|
3358
3369
|
function redactString(value, home) {
|
|
3359
3370
|
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>");
|
|
@@ -3860,7 +3871,8 @@ function code(value) {
|
|
|
3860
3871
|
return typeof value === "string" && CODE_TOKEN_PATTERN.test(value) ? value : null;
|
|
3861
3872
|
}
|
|
3862
3873
|
function roleSubject(value, sentenceStart = true) {
|
|
3863
|
-
const
|
|
3874
|
+
const known = typeof value === "string" ? lookupRole(value) : undefined;
|
|
3875
|
+
const name = known ? `the ${known.reading}` : "a role";
|
|
3864
3876
|
return sentenceStart ? `${name[0]?.toUpperCase()}${name.slice(1)}` : name;
|
|
3865
3877
|
}
|
|
3866
3878
|
function roundLabel(record) {
|
|
@@ -3979,7 +3991,7 @@ function conflictReentry(record) {
|
|
|
3979
3991
|
function dispatched(record) {
|
|
3980
3992
|
const role = text(record.target_role);
|
|
3981
3993
|
const who = roleSubject(role);
|
|
3982
|
-
const reviewing = role
|
|
3994
|
+
const reviewing = role !== null && (lookupRole(role)?.reviews ?? false);
|
|
3983
3995
|
const round = whole(record.round);
|
|
3984
3996
|
return {
|
|
3985
3997
|
kind: "working",
|
|
@@ -4038,6 +4050,7 @@ function narrate(record, earlier = []) {
|
|
|
4038
4050
|
}
|
|
4039
4051
|
var REASONS, PAUSE_WITHOUT_CODE;
|
|
4040
4052
|
var init_narration = __esm(() => {
|
|
4053
|
+
init_roles();
|
|
4041
4054
|
init_schema();
|
|
4042
4055
|
REASONS = {
|
|
4043
4056
|
escalation: { words: "a role escalated a question", person: true },
|
|
@@ -4070,13 +4083,7 @@ var init_narration = __esm(() => {
|
|
|
4070
4083
|
|
|
4071
4084
|
// ../../harness/kernel/adapters/agents/agent-line.ts
|
|
4072
4085
|
function roleLabel(role) {
|
|
4073
|
-
|
|
4074
|
-
return roleLabels[role];
|
|
4075
|
-
if (role === "dev-review-loop")
|
|
4076
|
-
return "Loop";
|
|
4077
|
-
if (role === "operator")
|
|
4078
|
-
return "Operator";
|
|
4079
|
-
return role.replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
|
|
4086
|
+
return lookupTitle(role) ?? role.replace(/-/g, " ").replace(/\b\w/g, (letter) => letter.toUpperCase());
|
|
4080
4087
|
}
|
|
4081
4088
|
function formatLineMeta(meta) {
|
|
4082
4089
|
if (meta === undefined)
|
|
@@ -4090,17 +4097,9 @@ function formatAgentLine(role, words, options = {}) {
|
|
|
4090
4097
|
const mark = options.unicode ?? true ? unicodeMarks[options.mark ?? "working"] : asciiMarks[options.mark ?? "working"];
|
|
4091
4098
|
return `${time} ${mark} ${roleLabel(role)} ${words}`;
|
|
4092
4099
|
}
|
|
4093
|
-
var
|
|
4100
|
+
var unicodeMarks, asciiMarks, META_KEY, META_VALUE;
|
|
4094
4101
|
var init_agent_line = __esm(() => {
|
|
4095
|
-
|
|
4096
|
-
planner: "Planner",
|
|
4097
|
-
developer: "Developer",
|
|
4098
|
-
"code-reviewer": "Code review",
|
|
4099
|
-
security: "Security",
|
|
4100
|
-
principal: "Principal",
|
|
4101
|
-
archivist: "Archivist",
|
|
4102
|
-
architect: "Architect"
|
|
4103
|
-
};
|
|
4102
|
+
init_roles();
|
|
4104
4103
|
unicodeMarks = { working: "▸", done: "✓", failed: "✕", waiting: "◌", round: "◆" };
|
|
4105
4104
|
asciiMarks = { working: ">", done: "+", failed: "x", waiting: "~", round: "#" };
|
|
4106
4105
|
META_KEY = /^[a-z]+$/;
|
|
@@ -6039,6 +6038,28 @@ var init_registry = __esm(() => {
|
|
|
6039
6038
|
CORE_CHECK_RING = Object.fromEntries(REGISTRY.map(([spec, ring]) => [spec.name, ring]));
|
|
6040
6039
|
});
|
|
6041
6040
|
|
|
6041
|
+
// ../../harness/processes/vinaya-strict/integration/log/log-roles.ts
|
|
6042
|
+
function registerVinayaLogRoles() {
|
|
6043
|
+
for (const { name, reading, title, reviews } of VINAYA_LOG_ROLES)
|
|
6044
|
+
registerRole(name, { reading, title, reviews });
|
|
6045
|
+
registerTitle("dev-review-loop", "Loop");
|
|
6046
|
+
}
|
|
6047
|
+
var VINAYA_LOG_ROLES, VINAYA_LOG_ROLE_NAMES;
|
|
6048
|
+
var init_log_roles = __esm(() => {
|
|
6049
|
+
init_roles();
|
|
6050
|
+
VINAYA_LOG_ROLES = [
|
|
6051
|
+
{ name: "planner", reading: "planner", title: "Planner", reviews: false },
|
|
6052
|
+
{ name: "developer", reading: "developer", title: "Developer", reviews: false },
|
|
6053
|
+
{ name: "code-reviewer", reading: "code reviewer", title: "Code review", reviews: true },
|
|
6054
|
+
{ name: "security", reading: "security reviewer", title: "Security", reviews: true },
|
|
6055
|
+
{ name: "principal", reading: "principal", title: "Principal", reviews: false },
|
|
6056
|
+
{ name: "archivist", reading: "archivist", title: "Archivist", reviews: false },
|
|
6057
|
+
{ name: "architect", reading: "architect", title: "Architect", reviews: false }
|
|
6058
|
+
];
|
|
6059
|
+
VINAYA_LOG_ROLE_NAMES = VINAYA_LOG_ROLES.map((role) => role.name);
|
|
6060
|
+
registerVinayaLogRoles();
|
|
6061
|
+
});
|
|
6062
|
+
|
|
6042
6063
|
// ../../harness/processes/vinaya-strict/integration/log/branch-issue.ts
|
|
6043
6064
|
import { execFile as execFile5 } from "node:child_process";
|
|
6044
6065
|
import { promisify as promisify5 } from "node:util";
|
|
@@ -6241,6 +6262,7 @@ function installVinayaLogSinkFactory() {
|
|
|
6241
6262
|
var init_log_sink_factory = __esm(() => {
|
|
6242
6263
|
init_log_sink();
|
|
6243
6264
|
init_package_root();
|
|
6265
|
+
init_log_roles();
|
|
6244
6266
|
init_branch_issue();
|
|
6245
6267
|
init_doctrine_version();
|
|
6246
6268
|
});
|
|
@@ -6646,8 +6668,8 @@ var init_protected_paths2 = __esm(() => {
|
|
|
6646
6668
|
|
|
6647
6669
|
// ../../harness/processes/vinaya-strict/integration/policies/roles.ts
|
|
6648
6670
|
var GRANTED_ROLES, ROLE_TOOL_GRANTS, VINAYA_TOOL_GRANTS, VINAYA_BROKER_ROLES, VINAYA_BOUNDARY_ROLES, OPERATOR_TOOL_GRANT, VINAYA_ROUTER_ROLES;
|
|
6649
|
-
var
|
|
6650
|
-
|
|
6671
|
+
var init_roles2 = __esm(() => {
|
|
6672
|
+
init_log_roles();
|
|
6651
6673
|
GRANTED_ROLES = ["developer", "code-reviewer", "security", "controller"];
|
|
6652
6674
|
ROLE_TOOL_GRANTS = {
|
|
6653
6675
|
developer: [
|
|
@@ -6666,7 +6688,7 @@ var init_roles = __esm(() => {
|
|
|
6666
6688
|
};
|
|
6667
6689
|
VINAYA_TOOL_GRANTS = { roles: GRANTED_ROLES, grants: ROLE_TOOL_GRANTS };
|
|
6668
6690
|
VINAYA_BROKER_ROLES = {
|
|
6669
|
-
recognizedRoles:
|
|
6691
|
+
recognizedRoles: VINAYA_LOG_ROLE_NAMES,
|
|
6670
6692
|
workerRoles: ["developer"],
|
|
6671
6693
|
surfaceOwner: "the Planner"
|
|
6672
6694
|
};
|
|
@@ -6750,7 +6772,7 @@ function vinayaRouterPolicies() {
|
|
|
6750
6772
|
var init_vinaya_policies = __esm(() => {
|
|
6751
6773
|
init_launch_records();
|
|
6752
6774
|
init_protected_paths2();
|
|
6753
|
-
|
|
6775
|
+
init_roles2();
|
|
6754
6776
|
init_scratch_names();
|
|
6755
6777
|
});
|
|
6756
6778
|
|