@almadar/agent 1.6.4 → 2.0.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.
Files changed (107) hide show
  1. package/LICENSE +21 -72
  2. package/README.md +25 -0
  3. package/dist/agent/event-budget.d.ts +28 -0
  4. package/dist/agent/experimental/hitl-v2.d.ts +161 -0
  5. package/dist/agent/experimental/hitl-workflow-integration.d.ts +182 -0
  6. package/dist/agent/index.d.ts +14 -13
  7. package/dist/agent/index.js.map +1 -1
  8. package/dist/agent/interrupt-config.d.ts +51 -0
  9. package/dist/agent/session-manager.d.ts +204 -0
  10. package/dist/agent/skill-agent.d.ts +182 -0
  11. package/dist/agent/workflow-middleware.d.ts +63 -0
  12. package/dist/agent/workflow-tool-wrapper.d.ts +87 -0
  13. package/dist/{api-types-CXrq-fts.d.ts → api-types.d.ts} +85 -51
  14. package/dist/context/compaction.d.ts +191 -0
  15. package/dist/context-compaction.d.ts +55 -0
  16. package/dist/evals/online-sampling.d.ts +114 -0
  17. package/dist/evals/utils/compact-orbital.d.ts +100 -0
  18. package/dist/event-transformer/event-transformer.d.ts +120 -0
  19. package/dist/event-transformer/index.d.ts +4 -122
  20. package/dist/events.d.ts +85 -0
  21. package/dist/index.d.ts +58 -1678
  22. package/dist/index.js +39 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/memory/MemoryManager.d.ts +243 -0
  25. package/dist/memory/PreferenceLearner.d.ts +59 -0
  26. package/dist/memory/agentic-search.d.ts +116 -0
  27. package/dist/memory/index.d.ts +14 -0
  28. package/dist/memory/memory-orbital.d.ts +66 -0
  29. package/dist/memory/types.d.ts +143 -0
  30. package/dist/metrics.d.ts +77 -0
  31. package/dist/multi-user.d.ts +155 -0
  32. package/dist/observability/index.d.ts +14 -0
  33. package/dist/observability/langsmith-integration.d.ts +203 -0
  34. package/dist/observability.d.ts +196 -0
  35. package/dist/orbitals/archive/sanitize.d.ts +24 -0
  36. package/dist/orbitals/batch/batch-generator.d.ts +41 -0
  37. package/dist/orbitals/batch/concurrency.d.ts +54 -0
  38. package/dist/orbitals/batch/index.d.ts +14 -0
  39. package/dist/orbitals/batch/prompt-assembler.d.ts +92 -0
  40. package/dist/orbitals/batch/types.d.ts +103 -0
  41. package/dist/orbitals/cache/index.d.ts +11 -0
  42. package/dist/orbitals/cache/orbital-fingerprint.d.ts +37 -0
  43. package/dist/orbitals/cache/prompt-assembler.d.ts +65 -0
  44. package/dist/orbitals/cache/structural-templates.d.ts +33 -0
  45. package/dist/orbitals/combiner/index.d.ts +102 -0
  46. package/dist/orbitals/domain-language/index.d.ts +9 -0
  47. package/dist/orbitals/domain-language/prompts/index.d.ts +11 -0
  48. package/dist/orbitals/domain-language/prompts/odl-examples.d.ts +8 -0
  49. package/dist/orbitals/domain-language/prompts/odl-patterns.d.ts +8 -0
  50. package/dist/orbitals/domain-language/prompts/odl-syntax.d.ts +8 -0
  51. package/dist/orbitals/domain-language/prompts/odl-to-schema.d.ts +8 -0
  52. package/dist/orbitals/generation/index.d.ts +10 -0
  53. package/dist/orbitals/generation/orbital-generator.d.ts +120 -0
  54. package/dist/orbitals/shared/constants.d.ts +65 -0
  55. package/dist/orbitals/shared/index.d.ts +11 -0
  56. package/dist/orbitals/shared/types.d.ts +187 -0
  57. package/dist/orbitals/shared/utils.d.ts +97 -0
  58. package/dist/orchestration/complexity-classifier.d.ts +38 -0
  59. package/dist/orchestration/fixing-orchestrator.d.ts +53 -0
  60. package/dist/orchestration/index.d.ts +31 -0
  61. package/dist/orchestration/provider-router.d.ts +45 -0
  62. package/dist/{firestore-checkpointer-CkNKXoun.d.ts → persistence/firestore-checkpointer.d.ts} +13 -58
  63. package/dist/persistence/firestore-session-store.d.ts +75 -0
  64. package/dist/persistence/firestore-store.d.ts +86 -0
  65. package/dist/persistence/index.d.ts +7 -198
  66. package/dist/persistence/memory-backend.d.ts +33 -0
  67. package/dist/persistence/types.d.ts +40 -0
  68. package/dist/security/audit-log.d.ts +44 -0
  69. package/dist/state-sync.d.ts +171 -0
  70. package/dist/subagents.d.ts +38 -0
  71. package/dist/tools/combine-schemas.d.ts +154 -0
  72. package/dist/tools/composition.d.ts +119 -0
  73. package/dist/{orbital-subagent-BdFuf77p.d.ts → tools/domain-orbital.d.ts} +22 -461
  74. package/dist/tools/execute.d.ts +38 -0
  75. package/dist/tools/finish-task.d.ts +56 -0
  76. package/dist/tools/generate-schema.d.ts +53 -0
  77. package/dist/tools/github.d.ts +297 -0
  78. package/dist/tools/index.d.ts +1318 -8
  79. package/dist/tools/orbital-batch-subagent.d.ts +85 -0
  80. package/dist/tools/orbital-subagent.d.ts +454 -0
  81. package/dist/tools/orchestrated-fixing.d.ts +74 -0
  82. package/dist/tools/orchestrated-generation.d.ts +75 -0
  83. package/dist/tools/sandbox-executor.d.ts +31 -0
  84. package/dist/tools/schema-chunking.d.ts +117 -0
  85. package/dist/tools/trait-subagent.d.ts +179 -0
  86. package/dist/tools/validate-schema.d.ts +17 -0
  87. package/dist/types.d.ts +14 -17
  88. package/dist/utils/safety/capability-token.d.ts +50 -0
  89. package/dist/utils/safety/circuit-breaker.d.ts +71 -0
  90. package/dist/utils/safety/index.d.ts +19 -0
  91. package/dist/utils/safety/rate-limiter.d.ts +39 -0
  92. package/dist/utils/safety/threshold-auth.d.ts +70 -0
  93. package/dist/workspace/git-client.d.ts +51 -0
  94. package/dist/workspace/index.d.ts +29 -346
  95. package/dist/workspace/index.js +39 -0
  96. package/dist/workspace/index.js.map +1 -1
  97. package/dist/workspace/memory-files.d.ts +31 -0
  98. package/dist/workspace/sink-manager.d.ts +26 -0
  99. package/dist/workspace/sinks/firestore-sink.d.ts +41 -0
  100. package/dist/workspace/sinks/git-sink.d.ts +47 -0
  101. package/dist/workspace/sinks/index.d.ts +9 -0
  102. package/dist/workspace/templates.d.ts +32 -0
  103. package/dist/workspace/types.d.ts +86 -0
  104. package/dist/workspace/workspace-manager.d.ts +57 -0
  105. package/package.json +12 -10
  106. package/dist/index-DW3F-Ihx.d.ts +0 -2501
  107. package/dist/index-DZn69no8.d.ts +0 -1014
@@ -0,0 +1,297 @@
1
+ /**
2
+ * GitHub Tools for DeepAgent
3
+ *
4
+ * LangChain tools that wrap GitHubIntegration operations.
5
+ * These tools enable the agent to clone repos, create branches, commit, push, and create PRs.
6
+ */
7
+ import { z } from 'zod';
8
+ /**
9
+ * GitHub tools configuration
10
+ */
11
+ export interface GitHubToolsConfig {
12
+ /** GitHub personal access token */
13
+ token: string;
14
+ /** Repository owner (e.g., 'octocat') */
15
+ owner?: string;
16
+ /** Repository name (e.g., 'hello-world') */
17
+ repo?: string;
18
+ /** Working directory for git operations */
19
+ workDir: string;
20
+ }
21
+ /**
22
+ * Create GitHub tools for the agent
23
+ */
24
+ export declare function createGitHubTools(config: GitHubToolsConfig): {
25
+ github_clone: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
26
+ repoUrl: z.ZodString;
27
+ branch: z.ZodOptional<z.ZodString>;
28
+ depth: z.ZodOptional<z.ZodNumber>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ repoUrl: string;
31
+ branch?: string | undefined;
32
+ depth?: number | undefined;
33
+ }, {
34
+ repoUrl: string;
35
+ branch?: string | undefined;
36
+ depth?: number | undefined;
37
+ }>, {
38
+ repoUrl: string;
39
+ branch?: string | undefined;
40
+ depth?: number | undefined;
41
+ }, {
42
+ repoUrl: string;
43
+ branch?: string | undefined;
44
+ depth?: number | undefined;
45
+ }, string, "github_clone">;
46
+ github_create_branch: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
47
+ branchName: z.ZodString;
48
+ baseBranch: z.ZodOptional<z.ZodString>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ branchName: string;
51
+ baseBranch?: string | undefined;
52
+ }, {
53
+ branchName: string;
54
+ baseBranch?: string | undefined;
55
+ }>, {
56
+ branchName: string;
57
+ baseBranch?: string | undefined;
58
+ }, {
59
+ branchName: string;
60
+ baseBranch?: string | undefined;
61
+ }, string, "github_create_branch">;
62
+ github_commit: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
63
+ message: z.ZodString;
64
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ message: string;
67
+ files?: string[] | undefined;
68
+ }, {
69
+ message: string;
70
+ files?: string[] | undefined;
71
+ }>, {
72
+ message: string;
73
+ files?: string[] | undefined;
74
+ }, {
75
+ message: string;
76
+ files?: string[] | undefined;
77
+ }, string, "github_commit">;
78
+ github_push: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
79
+ branchName: z.ZodString;
80
+ }, "strip", z.ZodTypeAny, {
81
+ branchName: string;
82
+ }, {
83
+ branchName: string;
84
+ }>, {
85
+ branchName: string;
86
+ }, {
87
+ branchName: string;
88
+ }, string, "github_push">;
89
+ github_create_pr: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
90
+ title: z.ZodString;
91
+ body: z.ZodString;
92
+ baseBranch: z.ZodString;
93
+ headBranch: z.ZodString;
94
+ draft: z.ZodOptional<z.ZodBoolean>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ baseBranch: string;
97
+ title: string;
98
+ body: string;
99
+ headBranch: string;
100
+ draft?: boolean | undefined;
101
+ }, {
102
+ baseBranch: string;
103
+ title: string;
104
+ body: string;
105
+ headBranch: string;
106
+ draft?: boolean | undefined;
107
+ }>, {
108
+ baseBranch: string;
109
+ title: string;
110
+ body: string;
111
+ headBranch: string;
112
+ draft?: boolean | undefined;
113
+ }, {
114
+ baseBranch: string;
115
+ title: string;
116
+ body: string;
117
+ headBranch: string;
118
+ draft?: boolean | undefined;
119
+ }, string, "github_create_pr">;
120
+ github_list_issues: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
121
+ state: z.ZodOptional<z.ZodEnum<["open", "closed", "all"]>>;
122
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
123
+ limit: z.ZodOptional<z.ZodNumber>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ limit?: number | undefined;
126
+ state?: "open" | "closed" | "all" | undefined;
127
+ labels?: string[] | undefined;
128
+ }, {
129
+ limit?: number | undefined;
130
+ state?: "open" | "closed" | "all" | undefined;
131
+ labels?: string[] | undefined;
132
+ }>, {
133
+ limit?: number | undefined;
134
+ state?: "open" | "closed" | "all" | undefined;
135
+ labels?: string[] | undefined;
136
+ }, {
137
+ limit?: number | undefined;
138
+ state?: "open" | "closed" | "all" | undefined;
139
+ labels?: string[] | undefined;
140
+ }, string, "github_list_issues">;
141
+ github_get_issue: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
142
+ issueNumber: z.ZodNumber;
143
+ }, "strip", z.ZodTypeAny, {
144
+ issueNumber: number;
145
+ }, {
146
+ issueNumber: number;
147
+ }>, {
148
+ issueNumber: number;
149
+ }, {
150
+ issueNumber: number;
151
+ }, string, "github_get_issue">;
152
+ github_get_pr_comments: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
153
+ prNumber: z.ZodNumber;
154
+ }, "strip", z.ZodTypeAny, {
155
+ prNumber: number;
156
+ }, {
157
+ prNumber: number;
158
+ }>, {
159
+ prNumber: number;
160
+ }, {
161
+ prNumber: number;
162
+ }, string, "github_get_pr_comments">;
163
+ };
164
+ /**
165
+ * Create GitHub tools as array (for easy spreading into agent tools)
166
+ */
167
+ export declare function createGitHubToolsArray(config: GitHubToolsConfig): (import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
168
+ repoUrl: z.ZodString;
169
+ branch: z.ZodOptional<z.ZodString>;
170
+ depth: z.ZodOptional<z.ZodNumber>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ repoUrl: string;
173
+ branch?: string | undefined;
174
+ depth?: number | undefined;
175
+ }, {
176
+ repoUrl: string;
177
+ branch?: string | undefined;
178
+ depth?: number | undefined;
179
+ }>, {
180
+ repoUrl: string;
181
+ branch?: string | undefined;
182
+ depth?: number | undefined;
183
+ }, {
184
+ repoUrl: string;
185
+ branch?: string | undefined;
186
+ depth?: number | undefined;
187
+ }, string, "github_clone"> | import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
188
+ branchName: z.ZodString;
189
+ baseBranch: z.ZodOptional<z.ZodString>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ branchName: string;
192
+ baseBranch?: string | undefined;
193
+ }, {
194
+ branchName: string;
195
+ baseBranch?: string | undefined;
196
+ }>, {
197
+ branchName: string;
198
+ baseBranch?: string | undefined;
199
+ }, {
200
+ branchName: string;
201
+ baseBranch?: string | undefined;
202
+ }, string, "github_create_branch"> | import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
203
+ message: z.ZodString;
204
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ message: string;
207
+ files?: string[] | undefined;
208
+ }, {
209
+ message: string;
210
+ files?: string[] | undefined;
211
+ }>, {
212
+ message: string;
213
+ files?: string[] | undefined;
214
+ }, {
215
+ message: string;
216
+ files?: string[] | undefined;
217
+ }, string, "github_commit"> | import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
218
+ branchName: z.ZodString;
219
+ }, "strip", z.ZodTypeAny, {
220
+ branchName: string;
221
+ }, {
222
+ branchName: string;
223
+ }>, {
224
+ branchName: string;
225
+ }, {
226
+ branchName: string;
227
+ }, string, "github_push"> | import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
228
+ title: z.ZodString;
229
+ body: z.ZodString;
230
+ baseBranch: z.ZodString;
231
+ headBranch: z.ZodString;
232
+ draft: z.ZodOptional<z.ZodBoolean>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ baseBranch: string;
235
+ title: string;
236
+ body: string;
237
+ headBranch: string;
238
+ draft?: boolean | undefined;
239
+ }, {
240
+ baseBranch: string;
241
+ title: string;
242
+ body: string;
243
+ headBranch: string;
244
+ draft?: boolean | undefined;
245
+ }>, {
246
+ baseBranch: string;
247
+ title: string;
248
+ body: string;
249
+ headBranch: string;
250
+ draft?: boolean | undefined;
251
+ }, {
252
+ baseBranch: string;
253
+ title: string;
254
+ body: string;
255
+ headBranch: string;
256
+ draft?: boolean | undefined;
257
+ }, string, "github_create_pr"> | import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
258
+ state: z.ZodOptional<z.ZodEnum<["open", "closed", "all"]>>;
259
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
260
+ limit: z.ZodOptional<z.ZodNumber>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ limit?: number | undefined;
263
+ state?: "open" | "closed" | "all" | undefined;
264
+ labels?: string[] | undefined;
265
+ }, {
266
+ limit?: number | undefined;
267
+ state?: "open" | "closed" | "all" | undefined;
268
+ labels?: string[] | undefined;
269
+ }>, {
270
+ limit?: number | undefined;
271
+ state?: "open" | "closed" | "all" | undefined;
272
+ labels?: string[] | undefined;
273
+ }, {
274
+ limit?: number | undefined;
275
+ state?: "open" | "closed" | "all" | undefined;
276
+ labels?: string[] | undefined;
277
+ }, string, "github_list_issues"> | import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
278
+ issueNumber: z.ZodNumber;
279
+ }, "strip", z.ZodTypeAny, {
280
+ issueNumber: number;
281
+ }, {
282
+ issueNumber: number;
283
+ }>, {
284
+ issueNumber: number;
285
+ }, {
286
+ issueNumber: number;
287
+ }, string, "github_get_issue"> | import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
288
+ prNumber: z.ZodNumber;
289
+ }, "strip", z.ZodTypeAny, {
290
+ prNumber: number;
291
+ }, {
292
+ prNumber: number;
293
+ }>, {
294
+ prNumber: number;
295
+ }, {
296
+ prNumber: number;
297
+ }, string, "github_get_pr_comments">)[];