@harness-engineering/core 0.17.0 → 0.18.0

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.
@@ -1,2 +1,2 @@
1
- export { h as ArchHandle, j as ArchitectureOptions, s as archMatchers, t as archModule, u as architecture } from '../matchers-D20x48U9.mjs';
1
+ export { h as ArchHandle, j as ArchitectureOptions, s as archMatchers, t as archModule, u as architecture } from '../matchers-Dj1t5vpg.mjs';
2
2
  import 'zod';
@@ -1,2 +1,2 @@
1
- export { h as ArchHandle, j as ArchitectureOptions, s as archMatchers, t as archModule, u as architecture } from '../matchers-D20x48U9.js';
1
+ export { h as ArchHandle, j as ArchitectureOptions, s as archMatchers, t as archModule, u as architecture } from '../matchers-Dj1t5vpg.js';
2
2
  import 'zod';
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Result, SessionSectionName, SessionEntry, SessionSections, WorkflowStep, WorkflowStepResult, Workflow, WorkflowResult, SkillLifecycleHooks, SkillContext, SkillResult, TurnContext, CICheckName, CIFailOnSeverity, CICheckReport, Roadmap, FeatureStatus, RoadmapFeature, ExternalTicket, ExternalTicketState, TrackerSyncConfig, SyncResult, ModelPricing, UsageRecord, DailyUsage, SessionUsage } from '@harness-engineering/types';
2
2
  export * from '@harness-engineering/types';
3
3
  import { z } from 'zod';
4
- import { C as Collector, A as ArchConfig, a as ConstraintRule, M as MetricResult, b as ArchMetricCategory, c as ArchBaseline, d as ArchDiffResult, T as ThresholdConfig } from './matchers-D20x48U9.mjs';
5
- export { e as ArchBaselineSchema, f as ArchConfigSchema, g as ArchDiffResultSchema, h as ArchHandle, i as ArchMetricCategorySchema, j as ArchitectureOptions, k as CategoryBaseline, l as CategoryBaselineSchema, m as CategoryRegression, n as CategoryRegressionSchema, o as ConstraintRuleSchema, p as MetricResultSchema, q as ThresholdConfigSchema, V as Violation, r as ViolationSchema, s as archMatchers, t as archModule, u as architecture } from './matchers-D20x48U9.mjs';
4
+ import { C as Collector, A as ArchConfig, a as ConstraintRule, M as MetricResult, b as ArchMetricCategory, c as ArchBaseline, d as ArchDiffResult, T as ThresholdConfig } from './matchers-Dj1t5vpg.mjs';
5
+ export { e as ArchBaselineSchema, f as ArchConfigSchema, g as ArchDiffResultSchema, h as ArchHandle, i as ArchMetricCategorySchema, j as ArchitectureOptions, k as CategoryBaseline, l as CategoryBaselineSchema, m as CategoryRegression, n as CategoryRegressionSchema, o as ConstraintRuleSchema, p as MetricResultSchema, q as ThresholdConfigSchema, V as Violation, r as ViolationSchema, s as archMatchers, t as archModule, u as architecture } from './matchers-Dj1t5vpg.mjs';
6
6
  import Parser from 'web-tree-sitter';
7
7
 
8
8
  /**
@@ -594,12 +594,12 @@ declare const ManifestSchema: z.ZodObject<{
594
594
  schema: string;
595
595
  }>, "many">>;
596
596
  }, "strip", z.ZodTypeAny, {
597
- name: string;
598
597
  version: string;
598
+ name: string;
599
599
  include: string[];
600
600
  keywords: string[];
601
- layers?: Record<string, string[]> | undefined;
602
601
  description?: string | undefined;
602
+ layers?: Record<string, string[]> | undefined;
603
603
  minHarnessVersion?: string | undefined;
604
604
  boundaries?: {
605
605
  name: string;
@@ -608,11 +608,11 @@ declare const ManifestSchema: z.ZodObject<{
608
608
  schema: string;
609
609
  }[] | undefined;
610
610
  }, {
611
- name: string;
612
611
  version: string;
612
+ name: string;
613
613
  include: string[];
614
- layers?: Record<string, string[]> | undefined;
615
614
  description?: string | undefined;
615
+ layers?: Record<string, string[]> | undefined;
616
616
  minHarnessVersion?: string | undefined;
617
617
  keywords?: string[] | undefined;
618
618
  boundaries?: {
@@ -747,12 +747,12 @@ declare const BundleSchema: z.ZodObject<{
747
747
  schema: string;
748
748
  }>, "many">>;
749
749
  }, "strip", z.ZodTypeAny, {
750
- name: string;
751
750
  version: string;
751
+ name: string;
752
752
  include: string[];
753
753
  keywords: string[];
754
- layers?: Record<string, string[]> | undefined;
755
754
  description?: string | undefined;
755
+ layers?: Record<string, string[]> | undefined;
756
756
  minHarnessVersion?: string | undefined;
757
757
  boundaries?: {
758
758
  name: string;
@@ -761,11 +761,11 @@ declare const BundleSchema: z.ZodObject<{
761
761
  schema: string;
762
762
  }[] | undefined;
763
763
  }, {
764
- name: string;
765
764
  version: string;
765
+ name: string;
766
766
  include: string[];
767
- layers?: Record<string, string[]> | undefined;
768
767
  description?: string | undefined;
768
+ layers?: Record<string, string[]> | undefined;
769
769
  minHarnessVersion?: string | undefined;
770
770
  keywords?: string[] | undefined;
771
771
  boundaries?: {
@@ -871,15 +871,15 @@ declare const BundleSchema: z.ZodObject<{
871
871
  }>;
872
872
  contributions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
873
873
  }, "strip", z.ZodTypeAny, {
874
- name: string;
875
874
  version: string;
875
+ name: string;
876
876
  manifest: {
877
- name: string;
878
877
  version: string;
878
+ name: string;
879
879
  include: string[];
880
880
  keywords: string[];
881
- layers?: Record<string, string[]> | undefined;
882
881
  description?: string | undefined;
882
+ layers?: Record<string, string[]> | undefined;
883
883
  minHarnessVersion?: string | undefined;
884
884
  boundaries?: {
885
885
  name: string;
@@ -914,14 +914,14 @@ declare const BundleSchema: z.ZodObject<{
914
914
  minHarnessVersion?: string | undefined;
915
915
  contributions?: Record<string, unknown> | undefined;
916
916
  }, {
917
- name: string;
918
917
  version: string;
918
+ name: string;
919
919
  manifest: {
920
- name: string;
921
920
  version: string;
921
+ name: string;
922
922
  include: string[];
923
- layers?: Record<string, string[]> | undefined;
924
923
  description?: string | undefined;
924
+ layers?: Record<string, string[]> | undefined;
925
925
  minHarnessVersion?: string | undefined;
926
926
  keywords?: string[] | undefined;
927
927
  boundaries?: {
@@ -970,16 +970,16 @@ declare const LockfilePackageSchema: z.ZodObject<{
970
970
  integrity: z.ZodOptional<z.ZodString>;
971
971
  provenance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
972
972
  }, "strip", z.ZodTypeAny, {
973
- source: string;
974
973
  version: string;
974
+ source: string;
975
975
  installedAt: string;
976
976
  contributions?: Record<string, unknown> | null | undefined;
977
977
  resolved?: string | undefined;
978
978
  integrity?: string | undefined;
979
979
  provenance?: string[] | undefined;
980
980
  }, {
981
- source: string;
982
981
  version: string;
982
+ source: string;
983
983
  installedAt: string;
984
984
  contributions?: Record<string, unknown> | null | undefined;
985
985
  resolved?: string | undefined;
@@ -998,16 +998,16 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
998
998
  integrity: z.ZodOptional<z.ZodString>;
999
999
  provenance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1000
1000
  }, "strip", z.ZodTypeAny, {
1001
- source: string;
1002
1001
  version: string;
1002
+ source: string;
1003
1003
  installedAt: string;
1004
1004
  contributions?: Record<string, unknown> | null | undefined;
1005
1005
  resolved?: string | undefined;
1006
1006
  integrity?: string | undefined;
1007
1007
  provenance?: string[] | undefined;
1008
1008
  }, {
1009
- source: string;
1010
1009
  version: string;
1010
+ source: string;
1011
1011
  installedAt: string;
1012
1012
  contributions?: Record<string, unknown> | null | undefined;
1013
1013
  resolved?: string | undefined;
@@ -1016,8 +1016,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
1016
1016
  }>>;
1017
1017
  }, "strip", z.ZodTypeAny, {
1018
1018
  packages: Record<string, {
1019
- source: string;
1020
1019
  version: string;
1020
+ source: string;
1021
1021
  installedAt: string;
1022
1022
  contributions?: Record<string, unknown> | null | undefined;
1023
1023
  resolved?: string | undefined;
@@ -1028,8 +1028,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
1028
1028
  lockfileVersion?: 1 | undefined;
1029
1029
  }, {
1030
1030
  packages: Record<string, {
1031
- source: string;
1032
1031
  version: string;
1032
+ source: string;
1033
1033
  installedAt: string;
1034
1034
  contributions?: Record<string, unknown> | null | undefined;
1035
1035
  resolved?: string | undefined;
@@ -1040,8 +1040,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
1040
1040
  lockfileVersion?: 1 | undefined;
1041
1041
  }>, {
1042
1042
  packages: Record<string, {
1043
- source: string;
1044
1043
  version: string;
1044
+ source: string;
1045
1045
  installedAt: string;
1046
1046
  contributions?: Record<string, unknown> | null | undefined;
1047
1047
  resolved?: string | undefined;
@@ -1052,8 +1052,8 @@ declare const LockfileSchema: z.ZodEffects<z.ZodObject<{
1052
1052
  lockfileVersion?: 1 | undefined;
1053
1053
  }, {
1054
1054
  packages: Record<string, {
1055
- source: string;
1056
1055
  version: string;
1056
+ source: string;
1057
1057
  installedAt: string;
1058
1058
  contributions?: Record<string, unknown> | null | undefined;
1059
1059
  resolved?: string | undefined;
@@ -1924,12 +1924,12 @@ declare const PatternConfigSchema: z.ZodObject<{
1924
1924
  match: z.ZodString;
1925
1925
  convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
1926
1926
  }, "strip", z.ZodTypeAny, {
1927
- match: string;
1928
1927
  type: "naming";
1928
+ match: string;
1929
1929
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
1930
1930
  }, {
1931
- match: string;
1932
1931
  type: "naming";
1932
+ match: string;
1933
1933
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
1934
1934
  }>, z.ZodObject<{
1935
1935
  type: z.ZodLiteral<"max-exports">;
@@ -1961,10 +1961,10 @@ declare const PatternConfigSchema: z.ZodObject<{
1961
1961
  }>]>;
1962
1962
  message: z.ZodOptional<z.ZodString>;
1963
1963
  }, "strip", z.ZodTypeAny, {
1964
+ severity: "error" | "warning";
1965
+ description: string;
1964
1966
  files: string[];
1965
1967
  name: string;
1966
- description: string;
1967
- severity: "error" | "warning";
1968
1968
  rule: {
1969
1969
  type: "must-export";
1970
1970
  names: string[];
@@ -1982,8 +1982,8 @@ declare const PatternConfigSchema: z.ZodObject<{
1982
1982
  type: "no-import";
1983
1983
  from: string;
1984
1984
  } | {
1985
- match: string;
1986
1985
  type: "naming";
1986
+ match: string;
1987
1987
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
1988
1988
  } | {
1989
1989
  type: "max-exports";
@@ -1997,10 +1997,10 @@ declare const PatternConfigSchema: z.ZodObject<{
1997
1997
  };
1998
1998
  message?: string | undefined;
1999
1999
  }, {
2000
+ severity: "error" | "warning";
2001
+ description: string;
2000
2002
  files: string[];
2001
2003
  name: string;
2002
- description: string;
2003
- severity: "error" | "warning";
2004
2004
  rule: {
2005
2005
  type: "must-export";
2006
2006
  names: string[];
@@ -2018,8 +2018,8 @@ declare const PatternConfigSchema: z.ZodObject<{
2018
2018
  type: "no-import";
2019
2019
  from: string;
2020
2020
  } | {
2021
- match: string;
2022
2021
  type: "naming";
2022
+ match: string;
2023
2023
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2024
2024
  } | {
2025
2025
  type: "max-exports";
@@ -2037,10 +2037,10 @@ declare const PatternConfigSchema: z.ZodObject<{
2037
2037
  ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2038
2038
  }, "strip", z.ZodTypeAny, {
2039
2039
  patterns: {
2040
+ severity: "error" | "warning";
2041
+ description: string;
2040
2042
  files: string[];
2041
2043
  name: string;
2042
- description: string;
2043
- severity: "error" | "warning";
2044
2044
  rule: {
2045
2045
  type: "must-export";
2046
2046
  names: string[];
@@ -2058,8 +2058,8 @@ declare const PatternConfigSchema: z.ZodObject<{
2058
2058
  type: "no-import";
2059
2059
  from: string;
2060
2060
  } | {
2061
- match: string;
2062
2061
  type: "naming";
2062
+ match: string;
2063
2063
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2064
2064
  } | {
2065
2065
  type: "max-exports";
@@ -2077,10 +2077,10 @@ declare const PatternConfigSchema: z.ZodObject<{
2077
2077
  ignoreFiles?: string[] | undefined;
2078
2078
  }, {
2079
2079
  patterns: {
2080
+ severity: "error" | "warning";
2081
+ description: string;
2080
2082
  files: string[];
2081
2083
  name: string;
2082
- description: string;
2083
- severity: "error" | "warning";
2084
2084
  rule: {
2085
2085
  type: "must-export";
2086
2086
  names: string[];
@@ -2098,8 +2098,8 @@ declare const PatternConfigSchema: z.ZodObject<{
2098
2098
  type: "no-import";
2099
2099
  from: string;
2100
2100
  } | {
2101
- match: string;
2102
2101
  type: "naming";
2102
+ match: string;
2103
2103
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2104
2104
  } | {
2105
2105
  type: "max-exports";
@@ -2218,12 +2218,12 @@ declare const EntropyConfigSchema: z.ZodObject<{
2218
2218
  match: z.ZodString;
2219
2219
  convention: z.ZodEnum<["camelCase", "PascalCase", "UPPER_SNAKE", "kebab-case"]>;
2220
2220
  }, "strip", z.ZodTypeAny, {
2221
- match: string;
2222
2221
  type: "naming";
2222
+ match: string;
2223
2223
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2224
2224
  }, {
2225
- match: string;
2226
2225
  type: "naming";
2226
+ match: string;
2227
2227
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2228
2228
  }>, z.ZodObject<{
2229
2229
  type: z.ZodLiteral<"max-exports">;
@@ -2255,10 +2255,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2255
2255
  }>]>;
2256
2256
  message: z.ZodOptional<z.ZodString>;
2257
2257
  }, "strip", z.ZodTypeAny, {
2258
+ severity: "error" | "warning";
2259
+ description: string;
2258
2260
  files: string[];
2259
2261
  name: string;
2260
- description: string;
2261
- severity: "error" | "warning";
2262
2262
  rule: {
2263
2263
  type: "must-export";
2264
2264
  names: string[];
@@ -2276,8 +2276,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2276
2276
  type: "no-import";
2277
2277
  from: string;
2278
2278
  } | {
2279
- match: string;
2280
2279
  type: "naming";
2280
+ match: string;
2281
2281
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2282
2282
  } | {
2283
2283
  type: "max-exports";
@@ -2291,10 +2291,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2291
2291
  };
2292
2292
  message?: string | undefined;
2293
2293
  }, {
2294
+ severity: "error" | "warning";
2295
+ description: string;
2294
2296
  files: string[];
2295
2297
  name: string;
2296
- description: string;
2297
- severity: "error" | "warning";
2298
2298
  rule: {
2299
2299
  type: "must-export";
2300
2300
  names: string[];
@@ -2312,8 +2312,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2312
2312
  type: "no-import";
2313
2313
  from: string;
2314
2314
  } | {
2315
- match: string;
2316
2315
  type: "naming";
2316
+ match: string;
2317
2317
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2318
2318
  } | {
2319
2319
  type: "max-exports";
@@ -2331,10 +2331,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2331
2331
  ignoreFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2332
2332
  }, "strip", z.ZodTypeAny, {
2333
2333
  patterns: {
2334
+ severity: "error" | "warning";
2335
+ description: string;
2334
2336
  files: string[];
2335
2337
  name: string;
2336
- description: string;
2337
- severity: "error" | "warning";
2338
2338
  rule: {
2339
2339
  type: "must-export";
2340
2340
  names: string[];
@@ -2352,8 +2352,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2352
2352
  type: "no-import";
2353
2353
  from: string;
2354
2354
  } | {
2355
- match: string;
2356
2355
  type: "naming";
2356
+ match: string;
2357
2357
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2358
2358
  } | {
2359
2359
  type: "max-exports";
@@ -2371,10 +2371,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2371
2371
  ignoreFiles?: string[] | undefined;
2372
2372
  }, {
2373
2373
  patterns: {
2374
+ severity: "error" | "warning";
2375
+ description: string;
2374
2376
  files: string[];
2375
2377
  name: string;
2376
- description: string;
2377
- severity: "error" | "warning";
2378
2378
  rule: {
2379
2379
  type: "must-export";
2380
2380
  names: string[];
@@ -2392,8 +2392,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2392
2392
  type: "no-import";
2393
2393
  from: string;
2394
2394
  } | {
2395
- match: string;
2396
2395
  type: "naming";
2396
+ match: string;
2397
2397
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2398
2398
  } | {
2399
2399
  type: "max-exports";
@@ -2427,10 +2427,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2427
2427
  } | undefined;
2428
2428
  patterns?: boolean | {
2429
2429
  patterns: {
2430
+ severity: "error" | "warning";
2431
+ description: string;
2430
2432
  files: string[];
2431
2433
  name: string;
2432
- description: string;
2433
- severity: "error" | "warning";
2434
2434
  rule: {
2435
2435
  type: "must-export";
2436
2436
  names: string[];
@@ -2448,8 +2448,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2448
2448
  type: "no-import";
2449
2449
  from: string;
2450
2450
  } | {
2451
- match: string;
2452
2451
  type: "naming";
2452
+ match: string;
2453
2453
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2454
2454
  } | {
2455
2455
  type: "max-exports";
@@ -2483,10 +2483,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2483
2483
  } | undefined;
2484
2484
  patterns?: boolean | {
2485
2485
  patterns: {
2486
+ severity: "error" | "warning";
2487
+ description: string;
2486
2488
  files: string[];
2487
2489
  name: string;
2488
- description: string;
2489
- severity: "error" | "warning";
2490
2490
  rule: {
2491
2491
  type: "must-export";
2492
2492
  names: string[];
@@ -2504,8 +2504,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2504
2504
  type: "no-import";
2505
2505
  from: string;
2506
2506
  } | {
2507
- match: string;
2508
2507
  type: "naming";
2508
+ match: string;
2509
2509
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2510
2510
  } | {
2511
2511
  type: "max-exports";
@@ -2545,10 +2545,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2545
2545
  } | undefined;
2546
2546
  patterns?: boolean | {
2547
2547
  patterns: {
2548
+ severity: "error" | "warning";
2549
+ description: string;
2548
2550
  files: string[];
2549
2551
  name: string;
2550
- description: string;
2551
- severity: "error" | "warning";
2552
2552
  rule: {
2553
2553
  type: "must-export";
2554
2554
  names: string[];
@@ -2566,8 +2566,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2566
2566
  type: "no-import";
2567
2567
  from: string;
2568
2568
  } | {
2569
- match: string;
2570
2569
  type: "naming";
2570
+ match: string;
2571
2571
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2572
2572
  } | {
2573
2573
  type: "max-exports";
@@ -2609,10 +2609,10 @@ declare const EntropyConfigSchema: z.ZodObject<{
2609
2609
  } | undefined;
2610
2610
  patterns?: boolean | {
2611
2611
  patterns: {
2612
+ severity: "error" | "warning";
2613
+ description: string;
2612
2614
  files: string[];
2613
2615
  name: string;
2614
- description: string;
2615
- severity: "error" | "warning";
2616
2616
  rule: {
2617
2617
  type: "must-export";
2618
2618
  names: string[];
@@ -2630,8 +2630,8 @@ declare const EntropyConfigSchema: z.ZodObject<{
2630
2630
  type: "no-import";
2631
2631
  from: string;
2632
2632
  } | {
2633
- match: string;
2634
2633
  type: "naming";
2634
+ match: string;
2635
2635
  convention: "camelCase" | "PascalCase" | "UPPER_SNAKE" | "kebab-case";
2636
2636
  } | {
2637
2637
  type: "max-exports";
@@ -3357,13 +3357,13 @@ declare const FailureEntrySchema: z.ZodObject<{
3357
3357
  description: z.ZodString;
3358
3358
  }, "strip", z.ZodTypeAny, {
3359
3359
  type: string;
3360
- description: string;
3361
3360
  date: string;
3361
+ description: string;
3362
3362
  skill: string;
3363
3363
  }, {
3364
3364
  type: string;
3365
- description: string;
3366
3365
  date: string;
3366
+ description: string;
3367
3367
  skill: string;
3368
3368
  }>;
3369
3369
  type FailureEntry = z.infer<typeof FailureEntrySchema>;
@@ -3426,14 +3426,14 @@ declare const GateResultSchema: z.ZodObject<{
3426
3426
  output: z.ZodOptional<z.ZodString>;
3427
3427
  duration: z.ZodOptional<z.ZodNumber>;
3428
3428
  }, "strip", z.ZodTypeAny, {
3429
- name: string;
3430
3429
  passed: boolean;
3430
+ name: string;
3431
3431
  command: string;
3432
3432
  output?: string | undefined;
3433
3433
  duration?: number | undefined;
3434
3434
  }, {
3435
- name: string;
3436
3435
  passed: boolean;
3436
+ name: string;
3437
3437
  command: string;
3438
3438
  output?: string | undefined;
3439
3439
  duration?: number | undefined;
@@ -3441,8 +3441,8 @@ declare const GateResultSchema: z.ZodObject<{
3441
3441
  }, "strip", z.ZodTypeAny, {
3442
3442
  passed: boolean;
3443
3443
  checks: {
3444
- name: string;
3445
3444
  passed: boolean;
3445
+ name: string;
3446
3446
  command: string;
3447
3447
  output?: string | undefined;
3448
3448
  duration?: number | undefined;
@@ -3450,8 +3450,8 @@ declare const GateResultSchema: z.ZodObject<{
3450
3450
  }, {
3451
3451
  passed: boolean;
3452
3452
  checks: {
3453
- name: string;
3454
3453
  passed: boolean;
3454
+ name: string;
3455
3455
  command: string;
3456
3456
  output?: string | undefined;
3457
3457
  duration?: number | undefined;
@@ -3514,13 +3514,13 @@ declare const HarnessStateSchema: z.ZodObject<{
3514
3514
  description: z.ZodString;
3515
3515
  status: z.ZodEnum<["open", "resolved"]>;
3516
3516
  }, "strip", z.ZodTypeAny, {
3517
+ status: "resolved" | "open";
3517
3518
  id: string;
3518
3519
  description: string;
3519
- status: "resolved" | "open";
3520
3520
  }, {
3521
+ status: "resolved" | "open";
3521
3522
  id: string;
3522
3523
  description: string;
3523
- status: "resolved" | "open";
3524
3524
  }>, "many">>;
3525
3525
  progress: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["pending", "in_progress", "complete"]>>>;
3526
3526
  lastSession: z.ZodOptional<z.ZodObject<{
@@ -3546,9 +3546,9 @@ declare const HarnessStateSchema: z.ZodObject<{
3546
3546
  decision: string;
3547
3547
  }[];
3548
3548
  blockers: {
3549
+ status: "resolved" | "open";
3549
3550
  id: string;
3550
3551
  description: string;
3551
- status: "resolved" | "open";
3552
3552
  }[];
3553
3553
  schemaVersion: 1;
3554
3554
  position: {
@@ -3570,9 +3570,9 @@ declare const HarnessStateSchema: z.ZodObject<{
3570
3570
  decision: string;
3571
3571
  }[] | undefined;
3572
3572
  blockers?: {
3573
+ status: "resolved" | "open";
3573
3574
  id: string;
3574
3575
  description: string;
3575
- status: "resolved" | "open";
3576
3576
  }[] | undefined;
3577
3577
  position?: {
3578
3578
  task?: string | undefined;
@@ -4109,9 +4109,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
4109
4109
  } | undefined;
4110
4110
  }>>;
4111
4111
  }, "strip", z.ZodTypeAny, {
4112
- rules: Record<string, "error" | "warning" | "info" | "off">;
4113
4112
  enabled: boolean;
4114
4113
  strict: boolean;
4114
+ rules: Record<string, "error" | "warning" | "info" | "off">;
4115
4115
  exclude: string[];
4116
4116
  external?: {
4117
4117
  semgrep?: {
@@ -4123,9 +4123,9 @@ declare const SecurityConfigSchema: z.ZodObject<{
4123
4123
  } | undefined;
4124
4124
  } | undefined;
4125
4125
  }, {
4126
- rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
4127
4126
  enabled?: boolean | undefined;
4128
4127
  strict?: boolean | undefined;
4128
+ rules?: Record<string, "error" | "warning" | "info" | "off"> | undefined;
4129
4129
  exclude?: string[] | undefined;
4130
4130
  external?: {
4131
4131
  semgrep?: {
@@ -5126,7 +5126,7 @@ interface TrackerSyncAdapter {
5126
5126
  /** Push a new roadmap item to the external service */
5127
5127
  createTicket(feature: RoadmapFeature, milestone: string): Promise<Result<ExternalTicket>>;
5128
5128
  /** Update planning fields on an existing ticket */
5129
- updateTicket(externalId: string, changes: Partial<RoadmapFeature>): Promise<Result<ExternalTicket>>;
5129
+ updateTicket(externalId: string, changes: Partial<RoadmapFeature>, milestone?: string): Promise<Result<ExternalTicket>>;
5130
5130
  /** Pull current assignment + status from external service */
5131
5131
  fetchTicketState(externalId: string): Promise<Result<ExternalTicketState>>;
5132
5132
  /** Fetch all tickets matching the configured labels (paginated) */
@@ -5166,6 +5166,10 @@ interface GitHubAdapterOptions {
5166
5166
  fetchFn?: typeof fetch;
5167
5167
  /** Override API base URL (for GitHub Enterprise) */
5168
5168
  apiBase?: string;
5169
+ /** Max retries on rate limit (default: 5) */
5170
+ maxRetries?: number;
5171
+ /** Base delay in ms for exponential backoff (default: 1000) */
5172
+ baseDelayMs?: number;
5169
5173
  }
5170
5174
  declare class GitHubIssuesSyncAdapter implements TrackerSyncAdapter {
5171
5175
  private readonly token;
@@ -5174,10 +5178,26 @@ declare class GitHubIssuesSyncAdapter implements TrackerSyncAdapter {
5174
5178
  private readonly apiBase;
5175
5179
  private readonly owner;
5176
5180
  private readonly repo;
5181
+ private readonly retryOpts;
5182
+ /** Cached GitHub milestone name -> ID mapping */
5183
+ private milestoneCache;
5177
5184
  constructor(options: GitHubAdapterOptions);
5185
+ /**
5186
+ * Fetch all GitHub milestones and build the name -> ID cache.
5187
+ */
5188
+ private loadMilestones;
5189
+ /**
5190
+ * Get or create a GitHub milestone by name. Returns the milestone number.
5191
+ */
5192
+ private ensureMilestone;
5178
5193
  private headers;
5194
+ /**
5195
+ * Close an issue if the feature status maps to 'closed'.
5196
+ * GitHub Issues API doesn't accept state on POST — requires a follow-up PATCH.
5197
+ */
5198
+ private closeIfDone;
5179
5199
  createTicket(feature: RoadmapFeature, milestone: string): Promise<Result<ExternalTicket>>;
5180
- updateTicket(externalId: string, changes: Partial<RoadmapFeature>): Promise<Result<ExternalTicket>>;
5200
+ updateTicket(externalId: string, changes: Partial<RoadmapFeature>, milestone?: string): Promise<Result<ExternalTicket>>;
5181
5201
  fetchTicketState(externalId: string): Promise<Result<ExternalTicketState>>;
5182
5202
  fetchAllTickets(): Promise<Result<ExternalTicketState[]>>;
5183
5203
  assignTicket(externalId: string, assignee: string): Promise<Result<void>>;
@@ -5258,12 +5278,12 @@ declare const QuestionSchema: z.ZodObject<{
5258
5278
  default: z.ZodOptional<z.ZodString>;
5259
5279
  }, "strip", z.ZodTypeAny, {
5260
5280
  text: string;
5261
- default?: string | undefined;
5262
5281
  options?: string[] | undefined;
5282
+ default?: string | undefined;
5263
5283
  }, {
5264
5284
  text: string;
5265
- default?: string | undefined;
5266
5285
  options?: string[] | undefined;
5286
+ default?: string | undefined;
5267
5287
  }>;
5268
5288
  declare const ConfirmationSchema: z.ZodObject<{
5269
5289
  text: z.ZodString;
@@ -5307,12 +5327,12 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
5307
5327
  default: z.ZodOptional<z.ZodString>;
5308
5328
  }, "strip", z.ZodTypeAny, {
5309
5329
  text: string;
5310
- default?: string | undefined;
5311
5330
  options?: string[] | undefined;
5331
+ default?: string | undefined;
5312
5332
  }, {
5313
5333
  text: string;
5314
- default?: string | undefined;
5315
5334
  options?: string[] | undefined;
5335
+ default?: string | undefined;
5316
5336
  }>>;
5317
5337
  confirmation: z.ZodOptional<z.ZodObject<{
5318
5338
  text: z.ZodString;
@@ -5352,8 +5372,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
5352
5372
  stream?: string | undefined;
5353
5373
  question?: {
5354
5374
  text: string;
5355
- default?: string | undefined;
5356
5375
  options?: string[] | undefined;
5376
+ default?: string | undefined;
5357
5377
  } | undefined;
5358
5378
  confirmation?: {
5359
5379
  text: string;
@@ -5373,8 +5393,8 @@ declare const EmitInteractionInputSchema: z.ZodObject<{
5373
5393
  stream?: string | undefined;
5374
5394
  question?: {
5375
5395
  text: string;
5376
- default?: string | undefined;
5377
5396
  options?: string[] | undefined;
5397
+ default?: string | undefined;
5378
5398
  } | undefined;
5379
5399
  confirmation?: {
5380
5400
  text: string;