lorenz 0.1.0 → 0.1.2

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 (205) hide show
  1. package/README.md +83 -691
  2. package/RELEASE-MANIFEST.json +2 -2
  3. package/apps/cli/dist/daemon.d.ts +1 -1
  4. package/apps/cli/dist/daemon.d.ts.map +1 -1
  5. package/apps/cli/dist/daemon.js +6 -13
  6. package/apps/cli/dist/daemon.js.map +1 -1
  7. package/apps/cli/dist/doctor.js +5 -5
  8. package/apps/cli/dist/doctor.js.map +1 -1
  9. package/apps/cli/dist/index.d.ts +2 -2
  10. package/apps/cli/dist/index.d.ts.map +1 -1
  11. package/apps/cli/dist/index.js +1 -1
  12. package/apps/cli/dist/index.js.map +1 -1
  13. package/apps/cli/dist/main.js +5 -5
  14. package/apps/cli/dist/main.js.map +1 -1
  15. package/apps/cli/dist/runs.js +2 -2
  16. package/apps/cli/dist/runs.js.map +1 -1
  17. package/apps/cli/dist/workerDriverLoader.js +1 -1
  18. package/apps/cli/package.json +1 -1
  19. package/apps/{symphony-dashboard/dist/assets/index-DQ6XlL0d.js → lorenz-dashboard/dist/assets/index-DD4yVBDF.js} +13 -13
  20. package/apps/{symphony-dashboard → lorenz-dashboard}/dist/index.html +2 -2
  21. package/extensions/docker-worker/dist/index.d.ts +2 -2
  22. package/extensions/docker-worker/dist/index.js +4 -4
  23. package/extensions/docker-worker/dist/index.js.map +1 -1
  24. package/extensions/docker-worker/package.json +1 -1
  25. package/extensions/jira-tracker/dist/client.d.ts +7 -2
  26. package/extensions/jira-tracker/dist/client.d.ts.map +1 -1
  27. package/extensions/jira-tracker/dist/client.js +163 -6
  28. package/extensions/jira-tracker/dist/client.js.map +1 -1
  29. package/extensions/jira-tracker/dist/options.d.ts +4 -2
  30. package/extensions/jira-tracker/dist/options.d.ts.map +1 -1
  31. package/extensions/jira-tracker/dist/options.js +2 -0
  32. package/extensions/jira-tracker/dist/options.js.map +1 -1
  33. package/extensions/jira-tracker/dist/provider.d.ts.map +1 -1
  34. package/extensions/jira-tracker/dist/provider.js +6 -0
  35. package/extensions/jira-tracker/dist/provider.js.map +1 -1
  36. package/extensions/jira-tracker/package.json +1 -1
  37. package/extensions/linear-tracker/dist/client.js +9 -9
  38. package/extensions/linear-tracker/dist/client.js.map +1 -1
  39. package/extensions/linear-tracker/dist/toolOps.d.ts.map +1 -1
  40. package/extensions/linear-tracker/dist/toolOps.js +101 -10
  41. package/extensions/linear-tracker/dist/toolOps.js.map +1 -1
  42. package/extensions/linear-tracker/dist/tools.js +5 -5
  43. package/extensions/linear-tracker/dist/tools.js.map +1 -1
  44. package/extensions/linear-tracker/package.json +1 -1
  45. package/extensions/local-tracker/dist/boardStore.d.ts +1 -1
  46. package/extensions/local-tracker/dist/boardStore.js +5 -5
  47. package/extensions/local-tracker/dist/boardStore.js.map +1 -1
  48. package/extensions/local-tracker/dist/options.d.ts +1 -1
  49. package/extensions/local-tracker/dist/options.d.ts.map +1 -1
  50. package/extensions/local-tracker/dist/resolveBoardDir.d.ts +2 -2
  51. package/extensions/local-tracker/dist/resolveBoardDir.d.ts.map +1 -1
  52. package/extensions/local-tracker/dist/resolveBoardDir.js +2 -2
  53. package/extensions/local-tracker/dist/resolveBoardDir.js.map +1 -1
  54. package/extensions/local-tracker/package.json +1 -1
  55. package/extensions/memory-tracker/dist/index.d.ts +1 -1
  56. package/extensions/memory-tracker/dist/index.js +3 -3
  57. package/extensions/memory-tracker/dist/index.js.map +1 -1
  58. package/extensions/memory-tracker/package.json +1 -1
  59. package/extensions/slack-tracker/dist/inMemoryTransport.d.ts +4 -1
  60. package/extensions/slack-tracker/dist/inMemoryTransport.d.ts.map +1 -1
  61. package/extensions/slack-tracker/dist/inMemoryTransport.js +4 -2
  62. package/extensions/slack-tracker/dist/inMemoryTransport.js.map +1 -1
  63. package/extensions/slack-tracker/dist/index.d.ts +1 -1
  64. package/extensions/slack-tracker/dist/index.d.ts.map +1 -1
  65. package/extensions/slack-tracker/dist/index.js +1 -1
  66. package/extensions/slack-tracker/dist/index.js.map +1 -1
  67. package/extensions/slack-tracker/dist/mapping.d.ts +9 -0
  68. package/extensions/slack-tracker/dist/mapping.d.ts.map +1 -1
  69. package/extensions/slack-tracker/dist/mapping.js +13 -0
  70. package/extensions/slack-tracker/dist/mapping.js.map +1 -1
  71. package/extensions/slack-tracker/dist/operations.d.ts.map +1 -1
  72. package/extensions/slack-tracker/dist/operations.js +8 -4
  73. package/extensions/slack-tracker/dist/operations.js.map +1 -1
  74. package/extensions/slack-tracker/dist/options.d.ts +13 -1
  75. package/extensions/slack-tracker/dist/options.d.ts.map +1 -1
  76. package/extensions/slack-tracker/dist/options.js +1 -0
  77. package/extensions/slack-tracker/dist/options.js.map +1 -1
  78. package/extensions/slack-tracker/dist/provider.d.ts.map +1 -1
  79. package/extensions/slack-tracker/dist/provider.js +8 -1
  80. package/extensions/slack-tracker/dist/provider.js.map +1 -1
  81. package/extensions/slack-tracker/dist/threadState.d.ts.map +1 -1
  82. package/extensions/slack-tracker/dist/threadState.js +8 -4
  83. package/extensions/slack-tracker/dist/threadState.js.map +1 -1
  84. package/extensions/slack-tracker/dist/webTransport.d.ts +1 -0
  85. package/extensions/slack-tracker/dist/webTransport.d.ts.map +1 -1
  86. package/extensions/slack-tracker/dist/webTransport.js +10 -4
  87. package/extensions/slack-tracker/dist/webTransport.js.map +1 -1
  88. package/extensions/slack-tracker/package.json +1 -1
  89. package/package.json +3 -3
  90. package/packages/acp/dist/index.d.ts +1 -1
  91. package/packages/acp/dist/index.d.ts.map +1 -1
  92. package/packages/acp/dist/index.js +3 -8
  93. package/packages/acp/dist/index.js.map +1 -1
  94. package/packages/acp/dist/options.d.ts +2 -2
  95. package/packages/acp/dist/options.d.ts.map +1 -1
  96. package/packages/acp/package.json +1 -1
  97. package/packages/agent-runner/package.json +1 -1
  98. package/packages/agent-sdk/dist/provider.d.ts +1 -8
  99. package/packages/agent-sdk/dist/provider.d.ts.map +1 -1
  100. package/packages/agent-sdk/dist/provider.js.map +1 -1
  101. package/packages/agent-sdk/package.json +1 -1
  102. package/packages/cli-kit/package.json +1 -1
  103. package/packages/config/dist/defaults.js +4 -4
  104. package/packages/config/dist/defaults.js.map +1 -1
  105. package/packages/config/dist/parse.js +1 -1
  106. package/packages/config/dist/parse.js.map +1 -1
  107. package/packages/config/dist/schemas.d.ts +1 -1
  108. package/packages/config/package.json +1 -1
  109. package/packages/dispatch/package.json +1 -1
  110. package/packages/dispatch-coordinator/package.json +1 -1
  111. package/packages/domain/dist/index.d.ts +8 -8
  112. package/packages/domain/package.json +1 -1
  113. package/packages/humanize/package.json +1 -1
  114. package/packages/issue/package.json +1 -1
  115. package/packages/log-file/dist/index.js +2 -2
  116. package/packages/log-file/dist/index.js.map +1 -1
  117. package/packages/log-file/package.json +1 -1
  118. package/packages/mcp/dist/agentEndpoint.js +2 -2
  119. package/packages/mcp/dist/agentEndpoint.js.map +1 -1
  120. package/packages/mcp/package.json +1 -1
  121. package/packages/orchestrator/package.json +1 -1
  122. package/packages/policies/package.json +1 -1
  123. package/packages/presenter/dist/index.js +1 -1
  124. package/packages/presenter/dist/index.js.map +1 -1
  125. package/packages/presenter/package.json +1 -1
  126. package/packages/projections/package.json +1 -1
  127. package/packages/prompt/package.json +1 -1
  128. package/packages/retry-scheduler/package.json +1 -1
  129. package/packages/runtime/dist/index.d.ts +5 -5
  130. package/packages/runtime/dist/index.d.ts.map +1 -1
  131. package/packages/runtime/dist/index.js +1 -1
  132. package/packages/runtime/dist/index.js.map +1 -1
  133. package/packages/runtime/package.json +1 -1
  134. package/packages/runtime-events/package.json +1 -1
  135. package/packages/server/dist/index.js +1 -1
  136. package/packages/server/dist/index.js.map +1 -1
  137. package/packages/server/dist/issue-store.js +1 -1
  138. package/packages/server/dist/issue-store.js.map +1 -1
  139. package/packages/server/package.json +1 -1
  140. package/packages/ssh/dist/index.js +1 -1
  141. package/packages/ssh/dist/index.js.map +1 -1
  142. package/packages/ssh/package.json +1 -1
  143. package/packages/static-worker/package.json +1 -1
  144. package/packages/tool-sdk/package.json +1 -1
  145. package/packages/traceviz-emitter/package.json +1 -1
  146. package/packages/traceviz-server/package.json +1 -1
  147. package/packages/tracker-sdk/dist/index.d.ts +1 -1
  148. package/packages/tracker-sdk/dist/index.d.ts.map +1 -1
  149. package/packages/tracker-sdk/dist/index.js.map +1 -1
  150. package/packages/tracker-sdk/dist/provider.d.ts +13 -2
  151. package/packages/tracker-sdk/dist/provider.d.ts.map +1 -1
  152. package/packages/tracker-sdk/dist/toolPack.d.ts.map +1 -1
  153. package/packages/tracker-sdk/dist/toolPack.js +43 -3
  154. package/packages/tracker-sdk/dist/toolPack.js.map +1 -1
  155. package/packages/tracker-sdk/package.json +1 -1
  156. package/packages/tui/dist/index.js +1 -1
  157. package/packages/tui/dist/index.js.map +1 -1
  158. package/packages/tui/package.json +1 -1
  159. package/packages/worker-host-pool/package.json +1 -1
  160. package/packages/worker-pool/package.json +1 -1
  161. package/packages/worker-sdk/dist/conformance.d.ts +1 -1
  162. package/packages/worker-sdk/dist/conformance.js +2 -2
  163. package/packages/worker-sdk/dist/conformance.js.map +1 -1
  164. package/packages/worker-sdk/dist/types.d.ts +1 -1
  165. package/packages/worker-sdk/dist/types.d.ts.map +1 -1
  166. package/packages/worker-sdk/dist/types.js +1 -1
  167. package/packages/worker-sdk/dist/types.js.map +1 -1
  168. package/packages/worker-sdk/package.json +1 -1
  169. package/packages/workflow/dist/index.js +1 -1
  170. package/packages/workflow/dist/index.js.map +1 -1
  171. package/packages/workflow/package.json +1 -1
  172. package/packages/workspace/dist/index.d.ts +1 -1
  173. package/packages/workspace/dist/index.d.ts.map +1 -1
  174. package/packages/workspace/dist/index.js +5 -3
  175. package/packages/workspace/dist/index.js.map +1 -1
  176. package/packages/workspace/package.json +1 -1
  177. package/runtime-deps/anthropic-claude-agent-sdk/node_modules/.bin/anthropic-ai-sdk +3 -7
  178. package/vendor/claude-agent-acp/dist/bundle.js +1 -1
  179. package/LICENSE +0 -201
  180. package/NOTICE +0 -13
  181. package/packages/acp/dist/toml.d.ts +0 -2
  182. package/packages/acp/dist/toml.d.ts.map +0 -1
  183. package/packages/acp/dist/toml.js +0 -51
  184. package/packages/acp/dist/toml.js.map +0 -1
  185. package/packages/mcp/dist/filter.d.ts +0 -70
  186. package/packages/mcp/dist/filter.d.ts.map +0 -1
  187. package/packages/mcp/dist/filter.js +0 -231
  188. package/packages/mcp/dist/filter.js.map +0 -1
  189. package/packages/mcp/dist/tools/linear.d.ts +0 -5
  190. package/packages/mcp/dist/tools/linear.d.ts.map +0 -1
  191. package/packages/mcp/dist/tools/linear.js +0 -192
  192. package/packages/mcp/dist/tools/linear.js.map +0 -1
  193. package/packages/mcp/dist/tools/local.d.ts +0 -5
  194. package/packages/mcp/dist/tools/local.d.ts.map +0 -1
  195. package/packages/mcp/dist/tools/local.js +0 -161
  196. package/packages/mcp/dist/tools/local.js.map +0 -1
  197. package/packages/mcp/dist/tools/result.d.ts +0 -5
  198. package/packages/mcp/dist/tools/result.d.ts.map +0 -1
  199. package/packages/mcp/dist/tools/result.js +0 -15
  200. package/packages/mcp/dist/tools/result.js.map +0 -1
  201. package/packages/policies/dist/resume.d.ts +0 -14
  202. package/packages/policies/dist/resume.d.ts.map +0 -1
  203. package/packages/policies/dist/resume.js +0 -7
  204. package/packages/policies/dist/resume.js.map +0 -1
  205. /package/apps/{symphony-dashboard → lorenz-dashboard}/dist/assets/index-B3owF3jd.css +0 -0
package/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
package/NOTICE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2025 OpenAI
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- Distributed under the License is distributed on an “AS IS” BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- Limitations under the License.
@@ -1,2 +0,0 @@
1
- export declare function toToml(obj: Record<string, unknown>, prefix?: string): string;
2
- //# sourceMappingURL=toml.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toml.d.ts","sourceRoot":"","sources":["../src/toml.ts"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,SAAK,GAAG,MAAM,CAExE"}
@@ -1,51 +0,0 @@
1
- import { isRecord } from "@symphony/domain";
2
- export function toToml(obj, prefix = "") {
3
- return toTomlLines(obj, prefix ? prefix.split(".") : []).join("\n") + "\n";
4
- }
5
- function toTomlLines(obj, prefix) {
6
- const lines = [];
7
- const sections = [];
8
- for (const [key, value] of Object.entries(obj)) {
9
- if (value === null || value === undefined)
10
- continue;
11
- if (isRecord(value)) {
12
- sections.push([[...prefix, key], value]);
13
- }
14
- else {
15
- lines.push(`${toTomlKey(key)} = ${toTomlValue(value)}`);
16
- }
17
- }
18
- for (const [section, nested] of sections) {
19
- lines.push(`\n[${section.map(toTomlKey).join(".")}]`);
20
- lines.push(...toTomlLines(nested, section));
21
- }
22
- return lines;
23
- }
24
- function toTomlKey(key) {
25
- if (/[\r\n]/u.test(key))
26
- throw new Error("TOML key cannot contain newline");
27
- if (hasControlCharacter(key)) {
28
- throw new Error("TOML key cannot contain control characters");
29
- }
30
- if (/^[A-Za-z0-9_-]+$/u.test(key))
31
- return key;
32
- return JSON.stringify(key);
33
- }
34
- function hasControlCharacter(value) {
35
- for (const char of value) {
36
- const code = char.charCodeAt(0);
37
- if (code <= 0x1f || code === 0x7f)
38
- return true;
39
- }
40
- return false;
41
- }
42
- function toTomlValue(value) {
43
- if (typeof value === "string")
44
- return JSON.stringify(value);
45
- if (typeof value === "boolean" || typeof value === "number")
46
- return String(value);
47
- if (Array.isArray(value))
48
- return `[${value.map(toTomlValue).join(", ")}]`;
49
- return JSON.stringify(value);
50
- }
51
- //# sourceMappingURL=toml.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toml.js","sourceRoot":"","sources":["../src/toml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA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,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IAC5E,IAAI,mBAAmB,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAChE,CAAC;IACD,IAAI,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,GAAG,CAAC;IAC9C,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAa;IACxC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAChC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,IAAI;YAAE,OAAO,IAAI,CAAC;IACjD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5D,IAAI,OAAO,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IAClF,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IAC1E,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC"}
@@ -1,70 +0,0 @@
1
- /**
2
- * A small query DSL backing the read tools of the structured trackers
3
- * (`local_query` today). It is the composable, side-effect-free analog of `linear_graphql`'s
4
- * read power: a query can never mutate the backend, so it carries no trust-boundary or
5
- * atomicity risk and the agent can filter/project/sort/page freely.
6
- *
7
- * The DSL is intentionally total - no regex, no `eval`, no JSONPath - and is evaluated in
8
- * memory over already-parsed records (a board `Issue[]`).
9
- * Nesting depth and node count are bounded so a hostile or runaway filter cannot blow up.
10
- */
11
- type Scalar = string | number | boolean | null;
12
- type Predicate = {
13
- field: string;
14
- op: "eq" | "ne" | "lt" | "lte" | "gt" | "gte";
15
- value: Scalar;
16
- } | {
17
- field: string;
18
- op: "in" | "nin";
19
- value: Scalar[];
20
- } | {
21
- field: string;
22
- op: "contains";
23
- value: string;
24
- ci?: boolean;
25
- } | {
26
- field: string;
27
- op: "exists";
28
- value: boolean;
29
- };
30
- export type Filter = Predicate | {
31
- and: Filter[];
32
- } | {
33
- or: Filter[];
34
- } | {
35
- not: Filter;
36
- };
37
- interface OrderBy {
38
- field: string;
39
- dir: "asc" | "desc";
40
- }
41
- export interface QuerySpec {
42
- where?: Filter;
43
- orderBy: OrderBy[];
44
- limit: number;
45
- offset: number;
46
- }
47
- /**
48
- * Validate untrusted agent input into a typed {@link Filter}, reconstructing each node so no
49
- * stray properties survive. Throws a clear `Error` on malformed input or when the tree exceeds
50
- * the depth/node bounds.
51
- */
52
- export declare function parseFilter(input: unknown): Filter;
53
- /** Evaluate a validated {@link Filter} against a record. Side-effect free. */
54
- export declare function matchesFilter(record: Record<string, unknown>, filter: Filter): boolean;
55
- /**
56
- * Parse the shared query envelope (`where`, `order_by`, `limit`, `offset`) from raw tool args.
57
- * `select`, and any tracker-specific args, are parsed by the calling tool.
58
- */
59
- export declare function parseQuerySpec(args: Record<string, unknown>): QuerySpec;
60
- /** Filter, then (stably) sort, then page a record list. Returns the page plus the pre-page total. */
61
- export declare function applyQuery<T extends Record<string, unknown>>(records: T[], spec: QuerySpec): {
62
- rows: T[];
63
- total: number;
64
- };
65
- /** Validate an optional `select` projection: an array of field-name strings, or undefined. */
66
- export declare function parseSelect(input: unknown): string[] | undefined;
67
- /** Project a record down to the named fields, dropping any the record does not have. */
68
- export declare function pickFields(record: Record<string, unknown>, fields: string[]): Record<string, unknown>;
69
- export {};
70
- //# sourceMappingURL=filter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../src/filter.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,KAAK,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAE/C,KAAK,SAAS,GACV;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC/E;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,IAAI,GAAG,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,GACpD;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,OAAO,CAAA;CAAE,GAC9D;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAEpD,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG;IAAE,GAAG,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,UAAU,OAAO;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAUD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAElD;AAoED,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAKtF;AAuCD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAOvE;AAED,qGAAqG;AACrG,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1D,OAAO,EAAE,CAAC,EAAE,EACZ,IAAI,EAAE,SAAS,GACd;IAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAO9B;AAED,8FAA8F;AAC9F,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAMhE;AAED,wFAAwF;AACxF,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,MAAM,EAAE,MAAM,EAAE,GACf,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAMzB"}
@@ -1,231 +0,0 @@
1
- import { isRecord } from "@symphony/domain";
2
- const MAX_FILTER_DEPTH = 12;
3
- const MAX_FILTER_NODES = 200;
4
- const DEFAULT_LIMIT = 100;
5
- const MAX_LIMIT = 1000;
6
- const COMPARE_OPS = new Set(["eq", "ne", "lt", "lte", "gt", "gte"]);
7
- const SET_OPS = new Set(["in", "nin"]);
8
- /**
9
- * Validate untrusted agent input into a typed {@link Filter}, reconstructing each node so no
10
- * stray properties survive. Throws a clear `Error` on malformed input or when the tree exceeds
11
- * the depth/node bounds.
12
- */
13
- export function parseFilter(input) {
14
- return parseNode(input, 1, { nodes: 0 });
15
- }
16
- function parseNode(input, depth, state) {
17
- if (depth > MAX_FILTER_DEPTH) {
18
- throw new Error(`filter nesting exceeds ${MAX_FILTER_DEPTH} levels`);
19
- }
20
- if (++state.nodes > MAX_FILTER_NODES) {
21
- throw new Error(`filter has more than ${MAX_FILTER_NODES} nodes`);
22
- }
23
- if (!isRecord(input))
24
- throw new Error("filter: each node must be an object");
25
- const hasAnd = "and" in input;
26
- const hasOr = "or" in input;
27
- const hasNot = "not" in input;
28
- if (hasAnd || hasOr || hasNot) {
29
- if (Object.keys(input).length !== 1) {
30
- throw new Error("filter: a combinator node must have exactly one of 'and', 'or', or 'not'");
31
- }
32
- if (hasNot)
33
- return { not: parseNode(input.not, depth + 1, state) };
34
- const key = hasAnd ? "and" : "or";
35
- const arr = input[key];
36
- if (!Array.isArray(arr) || arr.length === 0) {
37
- throw new Error(`filter: '${key}' must be a non-empty array of filters`);
38
- }
39
- const parsed = arr.map((node) => parseNode(node, depth + 1, state));
40
- return hasAnd ? { and: parsed } : { or: parsed };
41
- }
42
- const field = input.field;
43
- const op = input.op;
44
- if (typeof field !== "string" || field === "") {
45
- throw new Error("filter: predicate 'field' must be a non-empty string");
46
- }
47
- if (typeof op !== "string")
48
- throw new Error("filter: predicate 'op' must be a string");
49
- if (COMPARE_OPS.has(op)) {
50
- if (!isScalar(input.value)) {
51
- throw new Error(`filter: '${op}' value must be a string, number, boolean, or null`);
52
- }
53
- return { field, op: op, value: input.value };
54
- }
55
- if (SET_OPS.has(op)) {
56
- const value = input.value;
57
- if (!Array.isArray(value) || !value.every(isScalar)) {
58
- throw new Error(`filter: '${op}' value must be an array of scalars`);
59
- }
60
- return { field, op: op, value: value };
61
- }
62
- if (op === "contains") {
63
- if (typeof input.value !== "string") {
64
- throw new Error("filter: 'contains' value must be a string");
65
- }
66
- if (input.ci !== undefined && typeof input.ci !== "boolean") {
67
- throw new Error("filter: 'contains' ci must be a boolean");
68
- }
69
- return input.ci === undefined
70
- ? { field, op: "contains", value: input.value }
71
- : { field, op: "contains", value: input.value, ci: input.ci };
72
- }
73
- if (op === "exists") {
74
- if (typeof input.value !== "boolean") {
75
- throw new Error("filter: 'exists' value must be a boolean");
76
- }
77
- return { field, op: "exists", value: input.value };
78
- }
79
- throw new Error(`filter: unknown op '${op}'`);
80
- }
81
- /** Evaluate a validated {@link Filter} against a record. Side-effect free. */
82
- export function matchesFilter(record, filter) {
83
- if ("and" in filter)
84
- return filter.and.every((f) => matchesFilter(record, f));
85
- if ("or" in filter)
86
- return filter.or.some((f) => matchesFilter(record, f));
87
- if ("not" in filter)
88
- return !matchesFilter(record, filter.not);
89
- return matchesPredicate(record, filter);
90
- }
91
- function matchesPredicate(record, p) {
92
- // An unknown/undefined field is "absent": every comparison is false, mirroring linear_graphql's
93
- // "ask for a field you do not have, get null" ergonomics. Only `exists:false` matches absence.
94
- const present = Object.prototype.hasOwnProperty.call(record, p.field) && record[p.field] !== undefined;
95
- if (!present)
96
- return p.op === "exists" && p.value === false;
97
- const raw = record[p.field];
98
- switch (p.op) {
99
- case "exists":
100
- return p.value === true;
101
- case "eq":
102
- return scalarEq(raw, p.value);
103
- case "ne":
104
- return !scalarEq(raw, p.value);
105
- case "lt":
106
- case "lte":
107
- case "gt":
108
- case "gte": {
109
- const c = compare(raw, p.value);
110
- if (c === null)
111
- return false;
112
- if (p.op === "lt")
113
- return c < 0;
114
- if (p.op === "lte")
115
- return c <= 0;
116
- if (p.op === "gt")
117
- return c > 0;
118
- return c >= 0;
119
- }
120
- case "in":
121
- return p.value.some((v) => scalarEq(raw, v));
122
- case "nin":
123
- return !p.value.some((v) => scalarEq(raw, v));
124
- case "contains":
125
- if (typeof raw === "string")
126
- return strIncludes(raw, p.value, p.ci);
127
- if (Array.isArray(raw))
128
- return raw.some((el) => strIncludes(String(el), p.value, p.ci));
129
- return false;
130
- }
131
- }
132
- /**
133
- * Parse the shared query envelope (`where`, `order_by`, `limit`, `offset`) from raw tool args.
134
- * `select`, and any tracker-specific args, are parsed by the calling tool.
135
- */
136
- export function parseQuerySpec(args) {
137
- const spec = { orderBy: [], limit: DEFAULT_LIMIT, offset: 0 };
138
- if (args.where !== undefined && args.where !== null)
139
- spec.where = parseFilter(args.where);
140
- if (args.order_by !== undefined)
141
- spec.orderBy = parseOrderBy(args.order_by);
142
- if (args.limit !== undefined)
143
- spec.limit = parseLimit(args.limit);
144
- if (args.offset !== undefined)
145
- spec.offset = parseOffset(args.offset);
146
- return spec;
147
- }
148
- /** Filter, then (stably) sort, then page a record list. Returns the page plus the pre-page total. */
149
- export function applyQuery(records, spec) {
150
- let filtered = spec.where
151
- ? records.filter((r) => matchesFilter(r, spec.where))
152
- : records.slice();
153
- if (spec.orderBy.length > 0)
154
- filtered = sortRecords(filtered, spec.orderBy);
155
- const total = filtered.length;
156
- return { rows: filtered.slice(spec.offset, spec.offset + spec.limit), total };
157
- }
158
- /** Validate an optional `select` projection: an array of field-name strings, or undefined. */
159
- export function parseSelect(input) {
160
- if (input === undefined || input === null)
161
- return undefined;
162
- if (!Array.isArray(input) || !input.every((s) => typeof s === "string")) {
163
- throw new Error("select must be an array of field-name strings");
164
- }
165
- return input;
166
- }
167
- /** Project a record down to the named fields, dropping any the record does not have. */
168
- export function pickFields(record, fields) {
169
- const out = {};
170
- for (const f of fields) {
171
- if (Object.prototype.hasOwnProperty.call(record, f))
172
- out[f] = record[f];
173
- }
174
- return out;
175
- }
176
- function parseOrderBy(input) {
177
- if (!Array.isArray(input))
178
- throw new Error("order_by must be an array");
179
- return input.map((item) => {
180
- if (!isRecord(item) || typeof item.field !== "string" || item.field === "") {
181
- throw new Error("order_by items must be { field: string, dir?: 'asc' | 'desc' }");
182
- }
183
- if (item.dir !== undefined && item.dir !== "asc" && item.dir !== "desc") {
184
- throw new Error("order_by dir must be 'asc' or 'desc'");
185
- }
186
- return { field: item.field, dir: item.dir === "desc" ? "desc" : "asc" };
187
- });
188
- }
189
- function parseLimit(input) {
190
- if (typeof input !== "number" || !Number.isInteger(input) || input < 1) {
191
- throw new Error("limit must be a positive integer");
192
- }
193
- return Math.min(input, MAX_LIMIT);
194
- }
195
- function parseOffset(input) {
196
- if (typeof input !== "number" || !Number.isInteger(input) || input < 0) {
197
- throw new Error("offset must be a non-negative integer");
198
- }
199
- return input;
200
- }
201
- function sortRecords(records, orderBy) {
202
- return [...records].sort((a, b) => {
203
- for (const { field, dir } of orderBy) {
204
- const c = compare(a[field], b[field]);
205
- if (c !== null && c !== 0)
206
- return dir === "desc" ? -c : c;
207
- }
208
- return 0;
209
- });
210
- }
211
- function scalarEq(a, b) {
212
- return a === b;
213
- }
214
- /** Compare two values when both are numbers or both are strings; otherwise incomparable (null). */
215
- function compare(a, b) {
216
- if (typeof a === "number" && typeof b === "number")
217
- return a - b;
218
- if (typeof a === "string" && typeof b === "string")
219
- return a < b ? -1 : a > b ? 1 : 0;
220
- return null;
221
- }
222
- function strIncludes(haystack, needle, ci) {
223
- return ci ? haystack.toLowerCase().includes(needle.toLowerCase()) : haystack.includes(needle);
224
- }
225
- function isScalar(value) {
226
- return (value === null ||
227
- typeof value === "string" ||
228
- typeof value === "number" ||
229
- typeof value === "boolean");
230
- }
231
- //# sourceMappingURL=filter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.js","sourceRoot":"","sources":["../src/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAmC5C,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,SAAS,GAAG,IAAI,CAAC;AAEvB,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AACpE,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AAEvC;;;;GAIG;AACH,MAAM,UAAU,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,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5D,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,QAAQ,CAAC,CAAU,EAAE,CAAS;IACrC,OAAO,CAAC,KAAK,CAAC,CAAC;AACjB,CAAC;AAED,mGAAmG;AACnG,SAAS,OAAO,CAAC,CAAU,EAAE,CAAU;IACrC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACjE,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtF,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,WAAW,CAAC,QAAgB,EAAE,MAAc,EAAE,EAAY;IACjE,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAChG,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,CACL,KAAK,KAAK,IAAI;QACd,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,KAAK,KAAK,SAAS,CAC3B,CAAC;AACJ,CAAC"}
@@ -1,5 +0,0 @@
1
- import { type Settings } from "@symphony/domain";
2
- import { type ToolResult, type ToolSpec } from "../tools.js";
3
- export declare function linearToolSpecs(): ToolSpec[];
4
- export declare function executeLinearTool(name: string, input: unknown, settings: Settings, fetchImpl?: typeof fetch): Promise<ToolResult>;
5
- //# sourceMappingURL=linear.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linear.d.ts","sourceRoot":"","sources":["../../src/tools/linear.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAiB7D,wBAAgB,eAAe,IAAI,QAAQ,EAAE,CAuB5C;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,QAAQ,EAClB,SAAS,GAAE,OAAO,KAAa,GAC9B,OAAO,CAAC,UAAU,CAAC,CA0DrB"}