@open330/oac 2026.2.5

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +115 -0
  2. package/LICENSE +21 -0
  3. package/README.md +597 -0
  4. package/dist/budget/index.d.ts +117 -0
  5. package/dist/budget/index.js +23 -0
  6. package/dist/budget/index.js.map +1 -0
  7. package/dist/chunk-4IUL7ECC.js +3152 -0
  8. package/dist/chunk-4IUL7ECC.js.map +1 -0
  9. package/dist/chunk-5GAUWC3L.js +469 -0
  10. package/dist/chunk-5GAUWC3L.js.map +1 -0
  11. package/dist/chunk-6A37SKAJ.js +58 -0
  12. package/dist/chunk-6A37SKAJ.js.map +1 -0
  13. package/dist/chunk-7C7SC4TZ.js +358 -0
  14. package/dist/chunk-7C7SC4TZ.js.map +1 -0
  15. package/dist/chunk-CJAJ4MBO.js +475 -0
  16. package/dist/chunk-CJAJ4MBO.js.map +1 -0
  17. package/dist/chunk-LQC5DLT7.js +317 -0
  18. package/dist/chunk-LQC5DLT7.js.map +1 -0
  19. package/dist/chunk-OTPXGXO7.js +2368 -0
  20. package/dist/chunk-OTPXGXO7.js.map +1 -0
  21. package/dist/chunk-QPVNC7S4.js +1833 -0
  22. package/dist/chunk-QPVNC7S4.js.map +1 -0
  23. package/dist/cli/cli.d.ts +13 -0
  24. package/dist/cli/cli.js +16 -0
  25. package/dist/cli/cli.js.map +1 -0
  26. package/dist/cli/index.d.ts +1 -0
  27. package/dist/cli/index.js +22 -0
  28. package/dist/cli/index.js.map +1 -0
  29. package/dist/completion/index.d.ts +91 -0
  30. package/dist/completion/index.js +587 -0
  31. package/dist/completion/index.js.map +1 -0
  32. package/dist/config-DequKoFA.d.ts +1468 -0
  33. package/dist/core/index.d.ts +64 -0
  34. package/dist/core/index.js +87 -0
  35. package/dist/core/index.js.map +1 -0
  36. package/dist/dashboard/index.d.ts +14 -0
  37. package/dist/dashboard/index.js +1253 -0
  38. package/dist/dashboard/index.js.map +1 -0
  39. package/dist/discovery/index.d.ts +285 -0
  40. package/dist/discovery/index.js +50 -0
  41. package/dist/discovery/index.js.map +1 -0
  42. package/dist/event-bus-KiuR6e3P.d.ts +91 -0
  43. package/dist/execution/index.d.ts +215 -0
  44. package/dist/execution/index.js +27 -0
  45. package/dist/execution/index.js.map +1 -0
  46. package/dist/repo/index.d.ts +33 -0
  47. package/dist/repo/index.js +19 -0
  48. package/dist/repo/index.js.map +1 -0
  49. package/dist/tracking/index.d.ts +357 -0
  50. package/dist/tracking/index.js +15 -0
  51. package/dist/tracking/index.js.map +1 -0
  52. package/dist/types-CYCwgojB.d.ts +34 -0
  53. package/dist/types-Ck7IucqK.d.ts +195 -0
  54. package/docs/config-reference.md +271 -0
  55. package/docs/multi-agent-support-technical-spec.md +312 -0
  56. package/package.json +82 -0
@@ -0,0 +1,64 @@
1
+ export { A as AnalyzeSchema, B as BudgetSchema, C as CompletionSchema, D as DashboardSchema, a as DiscoveryScannersSchema, b as DiscoverySchema, E as ExecutionSchema, J as JiraIntegrationSchema, L as LinearIntegrationSchema, c as LoadConfigOptions, O as OacConfig, d as OacConfigInput, e as OacConfigSchema, P as PrSchema, f as ProviderSchema, R as RepoTargetSchema, T as TrackingSchema, V as ValidationSchema, g as defineConfig, i as interpolateEnvVars, l as loadConfig } from '../config-DequKoFA.js';
2
+ export { B as BUDGET_ERROR_CODES, a as BudgetErrorCode, C as COMPLETION_ERROR_CODES, b as CONFIG_ERROR_CODES, c as CompletionErrorCode, d as ConfigErrorCode, D as DISCOVERY_ERROR_CODES, e as DiscoveryErrorCode, E as EXECUTION_ERROR_CODES, f as ExecutionErrorCode, O as OAC_ERROR_CODES, g as OacError, h as OacErrorCode, i as OacErrorOptions, j as OacErrorSeverity, k as OacEventBus, l as OacEvents, R as REPO_ERROR_CODES, m as RepoErrorCode, S as SYSTEM_ERROR_CODES, n as SystemErrorCode, o as budgetError, p as completionError, q as configError, r as createEventBus, s as discoveryError, t as executionError, u as repoError } from '../event-bus-KiuR6e3P.js';
3
+ export { A as AgentProviderId, C as ContributionLog, a as ContributionTask, E as Epic, b as EpicStatus, c as ExecutionMode, d as ExecutionPlan, e as ExecutionResult, R as ResolvedRepo, f as RunSummary, T as Task, g as TaskComplexity, h as TaskSource, i as TokenEstimate, U as UNLIMITED_BUDGET } from '../types-Ck7IucqK.js';
4
+ import 'zod';
5
+ import 'eventemitter3';
6
+
7
+ /**
8
+ * Memory pressure monitoring utilities.
9
+ *
10
+ * Provides lightweight heap-usage checks that callers can use to
11
+ * throttle work when the process is approaching memory limits.
12
+ */
13
+ interface MemorySnapshot {
14
+ heapUsedMB: number;
15
+ heapTotalMB: number;
16
+ rssUsedMB: number;
17
+ /** Ratio of heapUsed / heapTotal (0–1). */
18
+ heapPressure: number;
19
+ /** True when heapPressure exceeds the configured threshold. */
20
+ isUnderPressure: boolean;
21
+ }
22
+ /**
23
+ * Take a snapshot of current memory usage.
24
+ *
25
+ * @param pressureRatio - Threshold ratio (0–1) above which `isUnderPressure`
26
+ * is set to `true`. Defaults to 0.85.
27
+ */
28
+ declare function getMemorySnapshot(pressureRatio?: number): MemorySnapshot;
29
+ /**
30
+ * Creates a monitor that periodically checks memory pressure and calls
31
+ * `onPressure` when the threshold is exceeded. The monitor can be used
32
+ * to pause a PQueue or reduce concurrency under load.
33
+ *
34
+ * Returns a `stop` function to clear the interval.
35
+ */
36
+ declare function createMemoryMonitor(options: {
37
+ /** Polling interval in milliseconds (default: 5 000). */
38
+ intervalMs?: number;
39
+ /** Heap pressure ratio threshold (default: 0.85). */
40
+ pressureRatio?: number;
41
+ /** Called when heap pressure exceeds the threshold. */
42
+ onPressure: (snapshot: MemorySnapshot) => void;
43
+ /** Called when heap pressure drops back below the threshold. */
44
+ onRelief?: (snapshot: MemorySnapshot) => void;
45
+ }): {
46
+ stop: () => void;
47
+ };
48
+
49
+ /**
50
+ * Shared utility functions used across the codebase.
51
+ */
52
+ /**
53
+ * Truncate a string to `maxLength`, appending an ellipsis when trimmed.
54
+ * Defaults to the unicode ellipsis `"…"` (1 char). Pass `"..."` for the
55
+ * three-dot ASCII variant.
56
+ */
57
+ declare function truncate(value: string, maxLength: number, ellipsis?: string): string;
58
+ /**
59
+ * Type guard: returns `true` when `value` is a non-null object
60
+ * (i.e.\ a `Record<string, unknown>`).
61
+ */
62
+ declare function isRecord(value: unknown): value is Record<string, unknown>;
63
+
64
+ export { type MemorySnapshot, createMemoryMonitor, getMemorySnapshot, isRecord, truncate };
@@ -0,0 +1,87 @@
1
+ import {
2
+ AnalyzeSchema,
3
+ BUDGET_ERROR_CODES,
4
+ BudgetSchema,
5
+ COMPLETION_ERROR_CODES,
6
+ CONFIG_ERROR_CODES,
7
+ CompletionSchema,
8
+ DISCOVERY_ERROR_CODES,
9
+ DashboardSchema,
10
+ DiscoveryScannersSchema,
11
+ DiscoverySchema,
12
+ EXECUTION_ERROR_CODES,
13
+ ExecutionSchema,
14
+ JiraIntegrationSchema,
15
+ LinearIntegrationSchema,
16
+ OAC_ERROR_CODES,
17
+ OacConfig,
18
+ OacConfigSchema,
19
+ OacError,
20
+ PrSchema,
21
+ ProviderSchema,
22
+ REPO_ERROR_CODES,
23
+ RepoTargetSchema,
24
+ SYSTEM_ERROR_CODES,
25
+ TrackingSchema,
26
+ UNLIMITED_BUDGET,
27
+ ValidationSchema,
28
+ budgetError,
29
+ completionError,
30
+ configError,
31
+ createEventBus,
32
+ defineConfig,
33
+ discoveryError,
34
+ executionError,
35
+ interpolateEnvVars,
36
+ loadConfig,
37
+ repoError
38
+ } from "../chunk-7C7SC4TZ.js";
39
+ import {
40
+ createMemoryMonitor,
41
+ getMemorySnapshot,
42
+ isRecord,
43
+ truncate
44
+ } from "../chunk-6A37SKAJ.js";
45
+ export {
46
+ AnalyzeSchema,
47
+ BUDGET_ERROR_CODES,
48
+ BudgetSchema,
49
+ COMPLETION_ERROR_CODES,
50
+ CONFIG_ERROR_CODES,
51
+ CompletionSchema,
52
+ DISCOVERY_ERROR_CODES,
53
+ DashboardSchema,
54
+ DiscoveryScannersSchema,
55
+ DiscoverySchema,
56
+ EXECUTION_ERROR_CODES,
57
+ ExecutionSchema,
58
+ JiraIntegrationSchema,
59
+ LinearIntegrationSchema,
60
+ OAC_ERROR_CODES,
61
+ OacConfig,
62
+ OacConfigSchema,
63
+ OacError,
64
+ PrSchema,
65
+ ProviderSchema,
66
+ REPO_ERROR_CODES,
67
+ RepoTargetSchema,
68
+ SYSTEM_ERROR_CODES,
69
+ TrackingSchema,
70
+ UNLIMITED_BUDGET,
71
+ ValidationSchema,
72
+ budgetError,
73
+ completionError,
74
+ configError,
75
+ createEventBus,
76
+ createMemoryMonitor,
77
+ defineConfig,
78
+ discoveryError,
79
+ executionError,
80
+ getMemorySnapshot,
81
+ interpolateEnvVars,
82
+ isRecord,
83
+ loadConfig,
84
+ repoError,
85
+ truncate
86
+ };
87
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,14 @@
1
+ import Fastify from 'fastify';
2
+
3
+ interface DashboardOptions {
4
+ port: number;
5
+ host: string;
6
+ openBrowser: boolean;
7
+ oacDir: string;
8
+ }
9
+ declare function createDashboardServer(options?: Partial<DashboardOptions>): Promise<ReturnType<typeof Fastify>>;
10
+ declare function startDashboard(options?: Partial<DashboardOptions>): Promise<void>;
11
+
12
+ declare function renderDashboardHtml(port: number): string;
13
+
14
+ export { type DashboardOptions, createDashboardServer, renderDashboardHtml, startDashboard };