@rallycry/conveyor-agent 10.13.0 → 10.13.1

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.
@@ -2591,6 +2591,9 @@ var ListProjectTagsRequestSchema = z4.object({
2591
2591
  var GetProjectSummaryRequestSchema = z4.object({
2592
2592
  projectId: z4.string()
2593
2593
  });
2594
+ var GetProjectOnboardingStatusRequestSchema = z4.object({
2595
+ projectId: z4.string()
2596
+ });
2594
2597
  var CreateProjectTaskRequestSchema = z4.object({
2595
2598
  projectId: z4.string(),
2596
2599
  title: z4.string().min(1),
@@ -6937,6 +6940,16 @@ ${context.projectDescription}` : "";
6937
6940
  parts.push(`
6938
6941
  ## Project: ${context.projectName}${descLine}`);
6939
6942
  }
6943
+ if (context.subProject?.rootPath) {
6944
+ parts.push(
6945
+ `
6946
+ ## Sub-project scope: ${context.subProject.name}`,
6947
+ `This task belongs to the "${context.subProject.name}" sub-project, which owns \`${context.subProject.rootPath}\`.`,
6948
+ `- Read and reference the whole repository freely.`,
6949
+ `- Substantive code changes belong under \`${context.subProject.rootPath}\`. Trivial wiring elsewhere (exports, route registration) is fine when required.`,
6950
+ `- 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.`
6951
+ );
6952
+ }
6940
6953
  if (context.description) {
6941
6954
  parts.push(`
6942
6955
  ## Description
@@ -10306,13 +10319,20 @@ function zonedWallClockToUtc(y, mo, d, h, mi, tz) {
10306
10319
  const firstGuess = naiveUtc - tzOffsetMs(naiveUtc, tz);
10307
10320
  return naiveUtc - tzOffsetMs(firstGuess, tz);
10308
10321
  }
10309
- function parseResetInstant(rowText, now) {
10310
- const m = /resets\s+(?:([a-z]{3})\s+(\d{1,2})(?:,|\s+at)?\s+)?(\d{1,2})(?::(\d{2}))?\s*(am|pm)\s*\(([^)]+)\)/i.exec(
10322
+ function localTimeZone() {
10323
+ try {
10324
+ return Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
10325
+ } catch {
10326
+ return "UTC";
10327
+ }
10328
+ }
10329
+ function parseResetInstant(rowText, now, defaultTz = localTimeZone()) {
10330
+ 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
10331
  rowText
10312
10332
  );
10313
10333
  if (!m) return null;
10314
10334
  const [, monStr, dayStr, hourStr, minStr, meridiem, tzRaw] = m;
10315
- const tz = tzRaw.trim();
10335
+ const tz = tzRaw ? tzRaw.trim() : defaultTz;
10316
10336
  let hour = Number(hourStr) % 12;
10317
10337
  if (/pm/i.test(meridiem)) hour += 12;
10318
10338
  const minute = minStr ? Number(minStr) : 0;
@@ -10360,7 +10380,7 @@ var BAR_GLYPHS = /[─-▟]/g;
10360
10380
  function normalizeUsageText(stdout) {
10361
10381
  return stdout.replace(ANSI_CSI2, "").replace(ANSI_OSC, "").replace(BAR_GLYPHS, " ").replace(/\r/g, "");
10362
10382
  }
10363
- function parseUsageGauges(stdout, now = Date.now()) {
10383
+ function parseUsageGauges(stdout, now = Date.now(), defaultTz) {
10364
10384
  const text = normalizeUsageText(stdout);
10365
10385
  const rows = [
10366
10386
  ...text.matchAll(
@@ -10370,7 +10390,7 @@ function parseUsageGauges(stdout, now = Date.now()) {
10370
10390
  const gauges = rows.map((m) => ({
10371
10391
  label: `Current ${m[1].toLowerCase()}${m[2] ? ` ${m[2]}` : ""}`,
10372
10392
  utilization: Number(m[3]) / 100,
10373
- resetsAt: parseResetInstant(m[4] ?? "", now)
10393
+ resetsAt: parseResetInstant(m[4] ?? "", now, defaultTz)
10374
10394
  }));
10375
10395
  const session = gauges.find((g) => g.label.startsWith("Current session"));
10376
10396
  const weekly = gauges.filter((g) => g.label.startsWith("Current week"));
@@ -12041,4 +12061,4 @@ export {
12041
12061
  runStartCommand,
12042
12062
  unshallowRepo
12043
12063
  };
12044
- //# sourceMappingURL=chunk-CHJ7JPAQ.js.map
12064
+ //# sourceMappingURL=chunk-NMZNCP66.js.map