@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
|
@@ -48,6 +48,138 @@ var __esm = (fn, res, err) => () => {
|
|
|
48
48
|
return res;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
+
// ../../harness/kernel/log/roles.ts
|
|
52
|
+
function registerRole(name, role) {
|
|
53
|
+
roles.set(name, role);
|
|
54
|
+
}
|
|
55
|
+
function registerTitle(name, title) {
|
|
56
|
+
titles.set(name, title);
|
|
57
|
+
}
|
|
58
|
+
function isRole(value) {
|
|
59
|
+
return value !== undefined && roles.has(value);
|
|
60
|
+
}
|
|
61
|
+
function lookupRole(name) {
|
|
62
|
+
return roles.get(name);
|
|
63
|
+
}
|
|
64
|
+
function lookupTitle(name) {
|
|
65
|
+
return roles.get(name)?.title ?? titles.get(name);
|
|
66
|
+
}
|
|
67
|
+
var roles, titles;
|
|
68
|
+
var init_roles = __esm(() => {
|
|
69
|
+
roles = new Map;
|
|
70
|
+
titles = new Map;
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// ../../harness/kernel/log/envelope.ts
|
|
74
|
+
import { createHash } from "node:crypto";
|
|
75
|
+
function actorIdFromEnv(role) {
|
|
76
|
+
return role === undefined || role === "" ? null : role;
|
|
77
|
+
}
|
|
78
|
+
function lineageFieldFromEnv(value) {
|
|
79
|
+
return value === undefined || value === "" ? null : value;
|
|
80
|
+
}
|
|
81
|
+
function attemptFromEnv(value) {
|
|
82
|
+
if (value === undefined || value === "")
|
|
83
|
+
return null;
|
|
84
|
+
const n = Number(value);
|
|
85
|
+
return Number.isInteger(n) ? n : null;
|
|
86
|
+
}
|
|
87
|
+
function provenanceFor(input) {
|
|
88
|
+
if (input.provenance)
|
|
89
|
+
return input.provenance;
|
|
90
|
+
if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
|
|
91
|
+
return "unavailable";
|
|
92
|
+
if (input.env.role || input.env.task)
|
|
93
|
+
return "env_correlated";
|
|
94
|
+
return "unavailable";
|
|
95
|
+
}
|
|
96
|
+
function issueFromTask(task) {
|
|
97
|
+
if (task === undefined || task === "")
|
|
98
|
+
return null;
|
|
99
|
+
const n = Number(task);
|
|
100
|
+
return Number.isInteger(n) ? n : null;
|
|
101
|
+
}
|
|
102
|
+
function roundFromEnv(round) {
|
|
103
|
+
if (round === undefined || round === "")
|
|
104
|
+
return;
|
|
105
|
+
const n = Number(round);
|
|
106
|
+
return Number.isInteger(n) ? n : undefined;
|
|
107
|
+
}
|
|
108
|
+
function prFromEnv(pr) {
|
|
109
|
+
if (pr === undefined || pr === "")
|
|
110
|
+
return;
|
|
111
|
+
const n = Number(pr);
|
|
112
|
+
return Number.isInteger(n) && n > 0 ? n : undefined;
|
|
113
|
+
}
|
|
114
|
+
function buildHeader(input) {
|
|
115
|
+
const role = isRole(input.env.role) ? input.env.role : "unattributed";
|
|
116
|
+
const round = roundFromEnv(input.env.round);
|
|
117
|
+
const pr = prFromEnv(input.env.pr);
|
|
118
|
+
const subject = {
|
|
119
|
+
issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
|
|
120
|
+
role,
|
|
121
|
+
...round !== undefined ? { round } : {},
|
|
122
|
+
...pr !== undefined ? { pr } : {},
|
|
123
|
+
...input.subject ?? {}
|
|
124
|
+
};
|
|
125
|
+
const issue = subject.issue;
|
|
126
|
+
return {
|
|
127
|
+
meta: {
|
|
128
|
+
schema: 4,
|
|
129
|
+
ts: input.now.toISOString(),
|
|
130
|
+
run_id: input.runId,
|
|
131
|
+
seq: input.seq,
|
|
132
|
+
repo: input.repo,
|
|
133
|
+
vinaya: input.vinaya,
|
|
134
|
+
doctrine: input.doctrine,
|
|
135
|
+
host: input.host,
|
|
136
|
+
machine: createHash("sha256").update(input.hostname).digest("hex"),
|
|
137
|
+
event_id: input.eventId,
|
|
138
|
+
process_id: input.processId,
|
|
139
|
+
actor_id: actorIdFromEnv(input.env.role),
|
|
140
|
+
lineage: {
|
|
141
|
+
run: lineageFieldFromEnv(input.env.run),
|
|
142
|
+
attempt: attemptFromEnv(input.env.attempt),
|
|
143
|
+
parent: lineageFieldFromEnv(input.env.parent)
|
|
144
|
+
},
|
|
145
|
+
input_versions: {
|
|
146
|
+
manifest_version: input.inputVersions?.manifestVersion ?? null,
|
|
147
|
+
objectives_version: input.inputVersions?.objectivesVersion ?? null,
|
|
148
|
+
brief_hash: input.inputVersions?.briefHash ?? null,
|
|
149
|
+
ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
|
|
150
|
+
pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
|
|
151
|
+
policy_digest: input.inputVersions?.policyDigest ?? null
|
|
152
|
+
},
|
|
153
|
+
provenance: provenanceFor(input),
|
|
154
|
+
work: {
|
|
155
|
+
ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
|
|
156
|
+
repo: input.repo,
|
|
157
|
+
change: pr === undefined ? null : String(pr),
|
|
158
|
+
revision: input.revision ?? null
|
|
159
|
+
},
|
|
160
|
+
flow: {
|
|
161
|
+
id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
|
|
162
|
+
version: lineageFieldFromEnv(input.env.flowVersion)
|
|
163
|
+
},
|
|
164
|
+
runtime: lineageFieldFromEnv(input.env.runtime),
|
|
165
|
+
process: {
|
|
166
|
+
id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
|
|
167
|
+
version: lineageFieldFromEnv(input.env.processVersion),
|
|
168
|
+
digest: lineageFieldFromEnv(input.env.processDigest)
|
|
169
|
+
},
|
|
170
|
+
runner: {
|
|
171
|
+
id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
|
|
172
|
+
version: lineageFieldFromEnv(input.env.runnerVersion)
|
|
173
|
+
},
|
|
174
|
+
source: lineageFieldFromEnv(input.env.source)
|
|
175
|
+
},
|
|
176
|
+
subject
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
var init_envelope = __esm(() => {
|
|
180
|
+
init_roles();
|
|
181
|
+
});
|
|
182
|
+
|
|
51
183
|
// ../../harness/kernel/log/custom.ts
|
|
52
184
|
import { z } from "zod";
|
|
53
185
|
var CUSTOM_EVENT_NAME_PATTERN, CUSTOM_EVENT_NAME_MAX_LENGTH = 64, CUSTOM_EVENT_RESERVED_NAMESPACE = "vinaya", CUSTOM_EVENT_MAX_FIELDS = 20, CUSTOM_FIELD_NAME_PATTERN, CUSTOM_FIELD_NAME_MAX_LENGTH = 64, CUSTOM_TEXT_MAX_LENGTH = 500, CUSTOM_WORD_PATTERN, CUSTOM_WORD_MAX_LENGTH = 64, CUSTOM_FIELD_MAX_WORDS = 50, CustomFieldTypeSchema, CustomEventDeclarationsSchema;
|
|
@@ -105,19 +237,11 @@ var init_custom = __esm(() => {
|
|
|
105
237
|
|
|
106
238
|
// ../../harness/kernel/log/schema.ts
|
|
107
239
|
import { z as z2 } from "zod";
|
|
108
|
-
var CONFIDENCE_REASON_MAX_LENGTH = 280, REVIEW_FINDING_DESCRIPTION_MAX_LENGTH = 1000,
|
|
240
|
+
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;
|
|
109
241
|
var init_schema = __esm(() => {
|
|
110
242
|
init_custom();
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"developer",
|
|
114
|
-
"code-reviewer",
|
|
115
|
-
"security",
|
|
116
|
-
"principal",
|
|
117
|
-
"archivist",
|
|
118
|
-
"architect"
|
|
119
|
-
];
|
|
120
|
-
RoleSchema = z2.enum(ROLE_VALUES);
|
|
243
|
+
ROLE_NAME_PATTERN = /^[a-z0-9-]+$/;
|
|
244
|
+
RoleSchema = z2.string().regex(ROLE_NAME_PATTERN);
|
|
121
245
|
HOST_VALUES = ["hook", "ci", "cli", "loop"];
|
|
122
246
|
HostSchema = z2.enum(HOST_VALUES);
|
|
123
247
|
RUN_ID_PATTERN = /^[A-Za-z0-9_.-]{1,128}$/;
|
|
@@ -699,119 +823,6 @@ var init_schema = __esm(() => {
|
|
|
699
823
|
]);
|
|
700
824
|
});
|
|
701
825
|
|
|
702
|
-
// ../../harness/kernel/log/envelope.ts
|
|
703
|
-
import { createHash } from "node:crypto";
|
|
704
|
-
function isRole(value) {
|
|
705
|
-
return value !== undefined && ROLE_VALUES.includes(value);
|
|
706
|
-
}
|
|
707
|
-
function actorIdFromEnv(role) {
|
|
708
|
-
return role === undefined || role === "" ? null : role;
|
|
709
|
-
}
|
|
710
|
-
function lineageFieldFromEnv(value) {
|
|
711
|
-
return value === undefined || value === "" ? null : value;
|
|
712
|
-
}
|
|
713
|
-
function attemptFromEnv(value) {
|
|
714
|
-
if (value === undefined || value === "")
|
|
715
|
-
return null;
|
|
716
|
-
const n = Number(value);
|
|
717
|
-
return Number.isInteger(n) ? n : null;
|
|
718
|
-
}
|
|
719
|
-
function provenanceFor(input) {
|
|
720
|
-
if (input.provenance)
|
|
721
|
-
return input.provenance;
|
|
722
|
-
if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
|
|
723
|
-
return "unavailable";
|
|
724
|
-
if (input.env.role || input.env.task)
|
|
725
|
-
return "env_correlated";
|
|
726
|
-
return "unavailable";
|
|
727
|
-
}
|
|
728
|
-
function issueFromTask(task) {
|
|
729
|
-
if (task === undefined || task === "")
|
|
730
|
-
return null;
|
|
731
|
-
const n = Number(task);
|
|
732
|
-
return Number.isInteger(n) ? n : null;
|
|
733
|
-
}
|
|
734
|
-
function roundFromEnv(round) {
|
|
735
|
-
if (round === undefined || round === "")
|
|
736
|
-
return;
|
|
737
|
-
const n = Number(round);
|
|
738
|
-
return Number.isInteger(n) ? n : undefined;
|
|
739
|
-
}
|
|
740
|
-
function prFromEnv(pr) {
|
|
741
|
-
if (pr === undefined || pr === "")
|
|
742
|
-
return;
|
|
743
|
-
const n = Number(pr);
|
|
744
|
-
return Number.isInteger(n) && n > 0 ? n : undefined;
|
|
745
|
-
}
|
|
746
|
-
function buildHeader(input) {
|
|
747
|
-
const role = isRole(input.env.role) ? input.env.role : "unattributed";
|
|
748
|
-
const round = roundFromEnv(input.env.round);
|
|
749
|
-
const pr = prFromEnv(input.env.pr);
|
|
750
|
-
const subject = {
|
|
751
|
-
issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
|
|
752
|
-
role,
|
|
753
|
-
...round !== undefined ? { round } : {},
|
|
754
|
-
...pr !== undefined ? { pr } : {},
|
|
755
|
-
...input.subject ?? {}
|
|
756
|
-
};
|
|
757
|
-
const issue = subject.issue;
|
|
758
|
-
return {
|
|
759
|
-
meta: {
|
|
760
|
-
schema: 4,
|
|
761
|
-
ts: input.now.toISOString(),
|
|
762
|
-
run_id: input.runId,
|
|
763
|
-
seq: input.seq,
|
|
764
|
-
repo: input.repo,
|
|
765
|
-
vinaya: input.vinaya,
|
|
766
|
-
doctrine: input.doctrine,
|
|
767
|
-
host: input.host,
|
|
768
|
-
machine: createHash("sha256").update(input.hostname).digest("hex"),
|
|
769
|
-
event_id: input.eventId,
|
|
770
|
-
process_id: input.processId,
|
|
771
|
-
actor_id: actorIdFromEnv(input.env.role),
|
|
772
|
-
lineage: {
|
|
773
|
-
run: lineageFieldFromEnv(input.env.run),
|
|
774
|
-
attempt: attemptFromEnv(input.env.attempt),
|
|
775
|
-
parent: lineageFieldFromEnv(input.env.parent)
|
|
776
|
-
},
|
|
777
|
-
input_versions: {
|
|
778
|
-
manifest_version: input.inputVersions?.manifestVersion ?? null,
|
|
779
|
-
objectives_version: input.inputVersions?.objectivesVersion ?? null,
|
|
780
|
-
brief_hash: input.inputVersions?.briefHash ?? null,
|
|
781
|
-
ruling_ordinal: input.inputVersions?.rulingOrdinal ?? null,
|
|
782
|
-
pause_bound_ruling: input.inputVersions?.pauseBoundRuling ?? null,
|
|
783
|
-
policy_digest: input.inputVersions?.policyDigest ?? null
|
|
784
|
-
},
|
|
785
|
-
provenance: provenanceFor(input),
|
|
786
|
-
work: {
|
|
787
|
-
ref: lineageFieldFromEnv(input.env.workRef) ?? (issue === null ? null : String(issue)),
|
|
788
|
-
repo: input.repo,
|
|
789
|
-
change: pr === undefined ? null : String(pr),
|
|
790
|
-
revision: input.revision ?? null
|
|
791
|
-
},
|
|
792
|
-
flow: {
|
|
793
|
-
id: lineageFieldFromEnv(input.env.flow) ?? "vinaya",
|
|
794
|
-
version: lineageFieldFromEnv(input.env.flowVersion)
|
|
795
|
-
},
|
|
796
|
-
runtime: lineageFieldFromEnv(input.env.runtime),
|
|
797
|
-
process: {
|
|
798
|
-
id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
|
|
799
|
-
version: lineageFieldFromEnv(input.env.processVersion),
|
|
800
|
-
digest: lineageFieldFromEnv(input.env.processDigest)
|
|
801
|
-
},
|
|
802
|
-
runner: {
|
|
803
|
-
id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
|
|
804
|
-
version: lineageFieldFromEnv(input.env.runnerVersion)
|
|
805
|
-
},
|
|
806
|
-
source: lineageFieldFromEnv(input.env.source)
|
|
807
|
-
},
|
|
808
|
-
subject
|
|
809
|
-
};
|
|
810
|
-
}
|
|
811
|
-
var init_envelope = __esm(() => {
|
|
812
|
-
init_schema();
|
|
813
|
-
});
|
|
814
|
-
|
|
815
826
|
// ../../harness/kernel/log/redact.ts
|
|
816
827
|
function redactString(value, home) {
|
|
817
828
|
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]+$/;
|
|
@@ -6055,6 +6054,28 @@ var init_registry = __esm(() => {
|
|
|
6055
6054
|
CORE_CHECK_RING = Object.fromEntries(REGISTRY.map(([spec, ring]) => [spec.name, ring]));
|
|
6056
6055
|
});
|
|
6057
6056
|
|
|
6057
|
+
// ../../harness/processes/vinaya-strict/integration/log/log-roles.ts
|
|
6058
|
+
function registerVinayaLogRoles() {
|
|
6059
|
+
for (const { name, reading, title, reviews } of VINAYA_LOG_ROLES)
|
|
6060
|
+
registerRole(name, { reading, title, reviews });
|
|
6061
|
+
registerTitle("dev-review-loop", "Loop");
|
|
6062
|
+
}
|
|
6063
|
+
var VINAYA_LOG_ROLES, VINAYA_LOG_ROLE_NAMES;
|
|
6064
|
+
var init_log_roles = __esm(() => {
|
|
6065
|
+
init_roles();
|
|
6066
|
+
VINAYA_LOG_ROLES = [
|
|
6067
|
+
{ name: "planner", reading: "planner", title: "Planner", reviews: false },
|
|
6068
|
+
{ name: "developer", reading: "developer", title: "Developer", reviews: false },
|
|
6069
|
+
{ name: "code-reviewer", reading: "code reviewer", title: "Code review", reviews: true },
|
|
6070
|
+
{ name: "security", reading: "security reviewer", title: "Security", reviews: true },
|
|
6071
|
+
{ name: "principal", reading: "principal", title: "Principal", reviews: false },
|
|
6072
|
+
{ name: "archivist", reading: "archivist", title: "Archivist", reviews: false },
|
|
6073
|
+
{ name: "architect", reading: "architect", title: "Architect", reviews: false }
|
|
6074
|
+
];
|
|
6075
|
+
VINAYA_LOG_ROLE_NAMES = VINAYA_LOG_ROLES.map((role) => role.name);
|
|
6076
|
+
registerVinayaLogRoles();
|
|
6077
|
+
});
|
|
6078
|
+
|
|
6058
6079
|
// ../../harness/processes/vinaya-strict/integration/log/branch-issue.ts
|
|
6059
6080
|
import { execFile as execFile5 } from "node:child_process";
|
|
6060
6081
|
import { promisify as promisify5 } from "node:util";
|
|
@@ -6257,6 +6278,7 @@ function installVinayaLogSinkFactory() {
|
|
|
6257
6278
|
var init_log_sink_factory = __esm(() => {
|
|
6258
6279
|
init_log_sink();
|
|
6259
6280
|
init_package_root();
|
|
6281
|
+
init_log_roles();
|
|
6260
6282
|
init_branch_issue();
|
|
6261
6283
|
init_doctrine_version();
|
|
6262
6284
|
});
|
|
@@ -6662,8 +6684,8 @@ var init_protected_paths2 = __esm(() => {
|
|
|
6662
6684
|
|
|
6663
6685
|
// ../../harness/processes/vinaya-strict/integration/policies/roles.ts
|
|
6664
6686
|
var GRANTED_ROLES, ROLE_TOOL_GRANTS, VINAYA_TOOL_GRANTS, VINAYA_BROKER_ROLES, VINAYA_BOUNDARY_ROLES, OPERATOR_TOOL_GRANT, VINAYA_ROUTER_ROLES;
|
|
6665
|
-
var
|
|
6666
|
-
|
|
6687
|
+
var init_roles2 = __esm(() => {
|
|
6688
|
+
init_log_roles();
|
|
6667
6689
|
GRANTED_ROLES = ["developer", "code-reviewer", "security", "controller"];
|
|
6668
6690
|
ROLE_TOOL_GRANTS = {
|
|
6669
6691
|
developer: [
|
|
@@ -6682,7 +6704,7 @@ var init_roles = __esm(() => {
|
|
|
6682
6704
|
};
|
|
6683
6705
|
VINAYA_TOOL_GRANTS = { roles: GRANTED_ROLES, grants: ROLE_TOOL_GRANTS };
|
|
6684
6706
|
VINAYA_BROKER_ROLES = {
|
|
6685
|
-
recognizedRoles:
|
|
6707
|
+
recognizedRoles: VINAYA_LOG_ROLE_NAMES,
|
|
6686
6708
|
workerRoles: ["developer"],
|
|
6687
6709
|
surfaceOwner: "the Planner"
|
|
6688
6710
|
};
|
|
@@ -6766,7 +6788,7 @@ function vinayaRouterPolicies() {
|
|
|
6766
6788
|
var init_vinaya_policies = __esm(() => {
|
|
6767
6789
|
init_launch_records();
|
|
6768
6790
|
init_protected_paths2();
|
|
6769
|
-
|
|
6791
|
+
init_roles2();
|
|
6770
6792
|
init_scratch_names();
|
|
6771
6793
|
});
|
|
6772
6794
|
|