@rallycry/conveyor-agent 10.13.0 → 10.13.3
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.
|
@@ -1920,7 +1920,7 @@ var DEFAULT_RISK_LEVELS = [
|
|
|
1920
1920
|
{
|
|
1921
1921
|
level: "high",
|
|
1922
1922
|
value: 3,
|
|
1923
|
-
label: "
|
|
1923
|
+
label: "Elevated",
|
|
1924
1924
|
description: "Touches important surface area; review carefully.",
|
|
1925
1925
|
color: "#ea580c",
|
|
1926
1926
|
ordinal: 1
|
|
@@ -1928,7 +1928,7 @@ var DEFAULT_RISK_LEVELS = [
|
|
|
1928
1928
|
{
|
|
1929
1929
|
level: "medium",
|
|
1930
1930
|
value: 2,
|
|
1931
|
-
label: "
|
|
1931
|
+
label: "Moderate",
|
|
1932
1932
|
description: "Moderate surface area; normal review.",
|
|
1933
1933
|
color: "#d97706",
|
|
1934
1934
|
ordinal: 2
|
|
@@ -1936,13 +1936,15 @@ var DEFAULT_RISK_LEVELS = [
|
|
|
1936
1936
|
{
|
|
1937
1937
|
level: "low",
|
|
1938
1938
|
value: 1,
|
|
1939
|
-
label: "
|
|
1939
|
+
label: "Minimal",
|
|
1940
1940
|
description: "Small or isolated surface area.",
|
|
1941
1941
|
color: "#64748b",
|
|
1942
1942
|
ordinal: 3
|
|
1943
1943
|
}
|
|
1944
1944
|
];
|
|
1945
|
-
var LEVEL_BY_VALUE = new Map(
|
|
1945
|
+
var LEVEL_BY_VALUE = new Map(
|
|
1946
|
+
DEFAULT_RISK_LEVELS.map((m) => [m.value, m.level])
|
|
1947
|
+
);
|
|
1946
1948
|
var ACTIVE_WORK_STATUSES = [
|
|
1947
1949
|
"InProgress",
|
|
1948
1950
|
"ReviewPR",
|
|
@@ -2591,6 +2593,9 @@ var ListProjectTagsRequestSchema = z4.object({
|
|
|
2591
2593
|
var GetProjectSummaryRequestSchema = z4.object({
|
|
2592
2594
|
projectId: z4.string()
|
|
2593
2595
|
});
|
|
2596
|
+
var GetProjectOnboardingStatusRequestSchema = z4.object({
|
|
2597
|
+
projectId: z4.string()
|
|
2598
|
+
});
|
|
2594
2599
|
var CreateProjectTaskRequestSchema = z4.object({
|
|
2595
2600
|
projectId: z4.string(),
|
|
2596
2601
|
title: z4.string().min(1),
|
|
@@ -3754,9 +3759,9 @@ function stringField2(record, ...keys) {
|
|
|
3754
3759
|
function truncate(text, max) {
|
|
3755
3760
|
return text.length > max ? `${text.slice(0, max)}\u2026` : text;
|
|
3756
3761
|
}
|
|
3757
|
-
function
|
|
3762
|
+
function isNonConversationText(text) {
|
|
3758
3763
|
const trimmed = text.trimStart();
|
|
3759
|
-
return trimmed.startsWith("<command-name>") || trimmed.startsWith("<local-command-");
|
|
3764
|
+
return trimmed.startsWith("<command-name>") || trimmed.startsWith("<local-command-") || trimmed.startsWith("<task-notification>");
|
|
3760
3765
|
}
|
|
3761
3766
|
function mapSystem2(record) {
|
|
3762
3767
|
if (record.subtype === "init") {
|
|
@@ -3838,7 +3843,7 @@ function mapUser(record) {
|
|
|
3838
3843
|
return [];
|
|
3839
3844
|
}
|
|
3840
3845
|
const trimmed = text.trim();
|
|
3841
|
-
if (trimmed.length === 0 ||
|
|
3846
|
+
if (trimmed.length === 0 || isNonConversationText(trimmed)) return [];
|
|
3842
3847
|
return [{ kind: "user_text", text: truncate(trimmed, TEXT_MAX) }];
|
|
3843
3848
|
}
|
|
3844
3849
|
function mapChatRecords(raw) {
|
|
@@ -6937,6 +6942,16 @@ ${context.projectDescription}` : "";
|
|
|
6937
6942
|
parts.push(`
|
|
6938
6943
|
## Project: ${context.projectName}${descLine}`);
|
|
6939
6944
|
}
|
|
6945
|
+
if (context.subProject?.rootPath) {
|
|
6946
|
+
parts.push(
|
|
6947
|
+
`
|
|
6948
|
+
## Sub-project scope: ${context.subProject.name}`,
|
|
6949
|
+
`This task belongs to the "${context.subProject.name}" sub-project, which owns \`${context.subProject.rootPath}\`.`,
|
|
6950
|
+
`- Read and reference the whole repository freely.`,
|
|
6951
|
+
`- Substantive code changes belong under \`${context.subProject.rootPath}\`. Trivial wiring elsewhere (exports, route registration) is fine when required.`,
|
|
6952
|
+
`- If the work genuinely requires substantive changes outside that folder, do NOT make them here \u2014 create a task on the parent project board (as part of a pack with this one) describing the needed change.`
|
|
6953
|
+
);
|
|
6954
|
+
}
|
|
6940
6955
|
if (context.description) {
|
|
6941
6956
|
parts.push(`
|
|
6942
6957
|
## Description
|
|
@@ -10306,13 +10321,20 @@ function zonedWallClockToUtc(y, mo, d, h, mi, tz) {
|
|
|
10306
10321
|
const firstGuess = naiveUtc - tzOffsetMs(naiveUtc, tz);
|
|
10307
10322
|
return naiveUtc - tzOffsetMs(firstGuess, tz);
|
|
10308
10323
|
}
|
|
10309
|
-
function
|
|
10310
|
-
|
|
10324
|
+
function localTimeZone() {
|
|
10325
|
+
try {
|
|
10326
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
|
|
10327
|
+
} catch {
|
|
10328
|
+
return "UTC";
|
|
10329
|
+
}
|
|
10330
|
+
}
|
|
10331
|
+
function parseResetInstant(rowText, now, defaultTz = localTimeZone()) {
|
|
10332
|
+
const m = /resets\s+(?:by\s+)?(?:([a-z]{3})\s+(\d{1,2})(?:,|\s+at)?\s+)?(\d{1,2})(?::(\d{2}))?\s*(am|pm)(?:\s*\(([^)]+)\))?/i.exec(
|
|
10311
10333
|
rowText
|
|
10312
10334
|
);
|
|
10313
10335
|
if (!m) return null;
|
|
10314
10336
|
const [, monStr, dayStr, hourStr, minStr, meridiem, tzRaw] = m;
|
|
10315
|
-
const tz = tzRaw.trim();
|
|
10337
|
+
const tz = tzRaw ? tzRaw.trim() : defaultTz;
|
|
10316
10338
|
let hour = Number(hourStr) % 12;
|
|
10317
10339
|
if (/pm/i.test(meridiem)) hour += 12;
|
|
10318
10340
|
const minute = minStr ? Number(minStr) : 0;
|
|
@@ -10360,7 +10382,7 @@ var BAR_GLYPHS = /[─-▟]/g;
|
|
|
10360
10382
|
function normalizeUsageText(stdout) {
|
|
10361
10383
|
return stdout.replace(ANSI_CSI2, "").replace(ANSI_OSC, "").replace(BAR_GLYPHS, " ").replace(/\r/g, "");
|
|
10362
10384
|
}
|
|
10363
|
-
function parseUsageGauges(stdout, now = Date.now()) {
|
|
10385
|
+
function parseUsageGauges(stdout, now = Date.now(), defaultTz) {
|
|
10364
10386
|
const text = normalizeUsageText(stdout);
|
|
10365
10387
|
const rows = [
|
|
10366
10388
|
...text.matchAll(
|
|
@@ -10370,7 +10392,7 @@ function parseUsageGauges(stdout, now = Date.now()) {
|
|
|
10370
10392
|
const gauges = rows.map((m) => ({
|
|
10371
10393
|
label: `Current ${m[1].toLowerCase()}${m[2] ? ` ${m[2]}` : ""}`,
|
|
10372
10394
|
utilization: Number(m[3]) / 100,
|
|
10373
|
-
resetsAt: parseResetInstant(m[4] ?? "", now)
|
|
10395
|
+
resetsAt: parseResetInstant(m[4] ?? "", now, defaultTz)
|
|
10374
10396
|
}));
|
|
10375
10397
|
const session = gauges.find((g) => g.label.startsWith("Current session"));
|
|
10376
10398
|
const weekly = gauges.filter((g) => g.label.startsWith("Current week"));
|
|
@@ -12041,4 +12063,4 @@ export {
|
|
|
12041
12063
|
runStartCommand,
|
|
12042
12064
|
unshallowRepo
|
|
12043
12065
|
};
|
|
12044
|
-
//# sourceMappingURL=chunk-
|
|
12066
|
+
//# sourceMappingURL=chunk-P4VWWR5O.js.map
|