substrate-ai 0.9.0 → 0.11.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.
Files changed (35) hide show
  1. package/dist/adapter-registry-DXLMTmfD.js +0 -0
  2. package/dist/adapter-registry-neBZrkr3.js +4 -0
  3. package/dist/cli/index.js +5594 -5951
  4. package/dist/decisions-C0pz9Clx.js +0 -0
  5. package/dist/{decisions-BDLp3tJB.js → decisions-DQZW0h9X.js} +2 -1
  6. package/dist/dist-eNB_v7Iy.js +10205 -0
  7. package/dist/errors-BvyMlvCX.js +74 -0
  8. package/dist/experimenter-Dos3NsCg.js +3 -0
  9. package/dist/health-BvYILeQQ.js +6 -0
  10. package/dist/{health-C-VRJruD.js → health-CiDi90gC.js} +57 -1850
  11. package/dist/{helpers-CpMs8VZX.js → helpers-DTp3VJ2-.js} +31 -121
  12. package/dist/index.d.ts +709 -266
  13. package/dist/index.js +5 -3
  14. package/dist/{logger-D2fS2ccL.js → logger-KeHncl-f.js} +2 -42
  15. package/dist/routing-CcBOCuC9.js +0 -0
  16. package/dist/{routing-CD8bIci_.js → routing-HaYsjEIS.js} +2 -2
  17. package/dist/{run-ClxNDHbr.js → run-CAUhTR7Y.js} +594 -4249
  18. package/dist/run-DPZOQOvB.js +9 -0
  19. package/dist/{upgrade-B1S61VXJ.js → upgrade-DFGrqjGI.js} +3 -3
  20. package/dist/{upgrade-BK0HrKA6.js → upgrade-DYdYuuJK.js} +3 -3
  21. package/dist/version-manager-impl-BmOWu8ml.js +0 -0
  22. package/dist/version-manager-impl-CKv6I1S0.js +4 -0
  23. package/package.json +5 -2
  24. package/dist/adapter-registry-D2zdMwVu.js +0 -840
  25. package/dist/adapter-registry-WAyFydN5.js +0 -4
  26. package/dist/config-migrator-CtGelIsG.js +0 -250
  27. package/dist/decisions-DhAA2HG2.js +0 -397
  28. package/dist/experimenter-D_N_7ZF3.js +0 -503
  29. package/dist/git-utils-DxPx6erV.js +0 -365
  30. package/dist/health-DMbNP9bw.js +0 -5
  31. package/dist/operational-BdcdmDqS.js +0 -374
  32. package/dist/routing-BVrxrM6v.js +0 -832
  33. package/dist/run-MAQ3Wuju.js +0 -10
  34. package/dist/version-manager-impl-BIxOe7gZ.js +0 -372
  35. package/dist/version-manager-impl-RrWs-CI6.js +0 -4
@@ -0,0 +1,74 @@
1
+ import { AdtError } from "./dist-eNB_v7Iy.js";
2
+
3
+ //#region src/core/errors.ts
4
+ /** Error thrown when task configuration is invalid */
5
+ var TaskConfigError = class extends AdtError {
6
+ constructor(message, context = {}) {
7
+ super(message, "TASK_CONFIG_ERROR", context);
8
+ this.name = "TaskConfigError";
9
+ }
10
+ };
11
+ /** Error thrown when a worker/agent operation fails */
12
+ var WorkerError = class extends AdtError {
13
+ constructor(message, context = {}) {
14
+ super(message, "WORKER_ERROR", context);
15
+ this.name = "WorkerError";
16
+ }
17
+ };
18
+ /** Error thrown when a worker/agent cannot be found */
19
+ var WorkerNotFoundError = class extends AdtError {
20
+ constructor(agentId) {
21
+ super(`Worker agent not found: ${agentId}`, "WORKER_NOT_FOUND", { agentId });
22
+ this.name = "WorkerNotFoundError";
23
+ }
24
+ };
25
+ /** Error thrown when a task graph is invalid */
26
+ var TaskGraphError = class extends AdtError {
27
+ constructor(message, context = {}) {
28
+ super(message, "TASK_GRAPH_ERROR", context);
29
+ this.name = "TaskGraphError";
30
+ }
31
+ };
32
+ /** Error thrown when a task graph has cycles (deadlock) */
33
+ var TaskGraphCycleError = class extends TaskGraphError {
34
+ constructor(cycle) {
35
+ super(`Circular dependency detected in task graph: ${cycle.join(" -> ")}`, { cycle });
36
+ this.name = "TaskGraphCycleError";
37
+ }
38
+ };
39
+ /** Error thrown when a budget limit is exceeded */
40
+ var BudgetExceededError = class extends AdtError {
41
+ constructor(limit, current, context = {}) {
42
+ super(`Budget cap exceeded: current=${String(current)}, limit=${String(limit)}`, "BUDGET_EXCEEDED", {
43
+ limit,
44
+ current,
45
+ ...context
46
+ });
47
+ this.name = "BudgetExceededError";
48
+ }
49
+ };
50
+ /** Error thrown when git operations fail */
51
+ var GitError = class extends AdtError {
52
+ constructor(message, context = {}) {
53
+ super(message, "GIT_ERROR", context);
54
+ this.name = "GitError";
55
+ }
56
+ };
57
+ /** Error thrown when state recovery fails */
58
+ var RecoveryError = class extends AdtError {
59
+ constructor(message, context = {}) {
60
+ super(message, "RECOVERY_ERROR", context);
61
+ this.name = "RecoveryError";
62
+ }
63
+ };
64
+ /** Error thrown when a task graph file uses an incompatible format version */
65
+ var TaskGraphIncompatibleFormatError = class extends AdtError {
66
+ constructor(message, context = {}) {
67
+ super(message, "TASK_GRAPH_INCOMPATIBLE_FORMAT", context);
68
+ this.name = "TaskGraphIncompatibleFormatError";
69
+ }
70
+ };
71
+
72
+ //#endregion
73
+ export { BudgetExceededError, GitError, RecoveryError, TaskConfigError, TaskGraphCycleError, TaskGraphError, TaskGraphIncompatibleFormatError, WorkerError, WorkerNotFoundError };
74
+ //# sourceMappingURL=errors-BvyMlvCX.js.map
@@ -0,0 +1,3 @@
1
+ import { buildAuditLogEntry, buildBranchName, buildModificationDirective, buildPRBody, buildWorktreePath, createExperimenter, determineVerdict, resolvePromptFile } from "./dist-eNB_v7Iy.js";
2
+
3
+ export { createExperimenter };
@@ -0,0 +1,6 @@
1
+ import { DEFAULT_STALL_THRESHOLD_SECONDS, getAllDescendantPids, getAutoHealthData, inspectProcessTree, isOrchestratorProcessLine, registerHealthCommand, runHealthAction } from "./health-CiDi90gC.js";
2
+ import "./logger-KeHncl-f.js";
3
+ import "./dist-eNB_v7Iy.js";
4
+ import "./decisions-C0pz9Clx.js";
5
+
6
+ export { inspectProcessTree };