@intentic/sandbox-contract 1.226.0 → 1.227.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 (194) hide show
  1. package/dist/contracts/activity.contract.d.ts.map +1 -1
  2. package/dist/contracts/activity.contract.js +17 -2
  3. package/dist/contracts/activity.contract.js.map +1 -1
  4. package/dist/contracts/agent.contract.d.ts +19 -2
  5. package/dist/contracts/agent.contract.d.ts.map +1 -1
  6. package/dist/contracts/agent.contract.js +71 -8
  7. package/dist/contracts/agent.contract.js.map +1 -1
  8. package/dist/contracts/agents.contract.d.ts +59 -0
  9. package/dist/contracts/agents.contract.d.ts.map +1 -1
  10. package/dist/contracts/agents.contract.js +164 -19
  11. package/dist/contracts/agents.contract.js.map +1 -1
  12. package/dist/contracts/automations.contract.d.ts.map +1 -1
  13. package/dist/contracts/automations.contract.js +78 -9
  14. package/dist/contracts/automations.contract.js.map +1 -1
  15. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  16. package/dist/contracts/capabilities.contract.js +98 -11
  17. package/dist/contracts/capabilities.contract.js.map +1 -1
  18. package/dist/contracts/chores.contract.d.ts.map +1 -1
  19. package/dist/contracts/chores.contract.js +26 -3
  20. package/dist/contracts/chores.contract.js.map +1 -1
  21. package/dist/contracts/ci.contract.d.ts.map +1 -1
  22. package/dist/contracts/ci.contract.js +52 -6
  23. package/dist/contracts/ci.contract.js.map +1 -1
  24. package/dist/contracts/claude.contract.d.ts.map +1 -1
  25. package/dist/contracts/claude.contract.js +44 -5
  26. package/dist/contracts/claude.contract.js.map +1 -1
  27. package/dist/contracts/drafts.contract.d.ts.map +1 -1
  28. package/dist/contracts/drafts.contract.js +26 -3
  29. package/dist/contracts/drafts.contract.js.map +1 -1
  30. package/dist/contracts/endpoints.contract.d.ts +1 -0
  31. package/dist/contracts/endpoints.contract.d.ts.map +1 -1
  32. package/dist/contracts/endpoints.contract.js +17 -2
  33. package/dist/contracts/endpoints.contract.js.map +1 -1
  34. package/dist/contracts/exit.contract.d.ts.map +1 -1
  35. package/dist/contracts/exit.contract.js +62 -7
  36. package/dist/contracts/exit.contract.js.map +1 -1
  37. package/dist/contracts/extensions.contract.d.ts +1 -0
  38. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  39. package/dist/contracts/extensions.contract.js +124 -15
  40. package/dist/contracts/extensions.contract.js.map +1 -1
  41. package/dist/contracts/git.contract.d.ts.map +1 -1
  42. package/dist/contracts/git.contract.js +384 -43
  43. package/dist/contracts/git.contract.js.map +1 -1
  44. package/dist/contracts/grok.contract.d.ts.map +1 -1
  45. package/dist/contracts/grok.contract.js +25 -3
  46. package/dist/contracts/grok.contract.js.map +1 -1
  47. package/dist/contracts/history.contract.d.ts.map +1 -1
  48. package/dist/contracts/history.contract.js +35 -4
  49. package/dist/contracts/history.contract.js.map +1 -1
  50. package/dist/contracts/intentic.contract.d.ts.map +1 -1
  51. package/dist/contracts/intentic.contract.js +25 -3
  52. package/dist/contracts/intentic.contract.js.map +1 -1
  53. package/dist/contracts/inventory.contract.d.ts.map +1 -1
  54. package/dist/contracts/inventory.contract.js +26 -3
  55. package/dist/contracts/inventory.contract.js.map +1 -1
  56. package/dist/contracts/logs.contract.d.ts +17 -0
  57. package/dist/contracts/logs.contract.d.ts.map +1 -1
  58. package/dist/contracts/logs.contract.js +27 -3
  59. package/dist/contracts/logs.contract.js.map +1 -1
  60. package/dist/contracts/loops.contract.d.ts.map +1 -1
  61. package/dist/contracts/loops.contract.js +52 -6
  62. package/dist/contracts/loops.contract.js.map +1 -1
  63. package/dist/contracts/panels.contract.d.ts.map +1 -1
  64. package/dist/contracts/panels.contract.js +26 -3
  65. package/dist/contracts/panels.contract.js.map +1 -1
  66. package/dist/contracts/personas.contract.d.ts.map +1 -1
  67. package/dist/contracts/personas.contract.js +71 -8
  68. package/dist/contracts/personas.contract.js.map +1 -1
  69. package/dist/contracts/ports.contract.d.ts.map +1 -1
  70. package/dist/contracts/ports.contract.js +26 -3
  71. package/dist/contracts/ports.contract.js.map +1 -1
  72. package/dist/contracts/prepush.contract.d.ts.map +1 -1
  73. package/dist/contracts/prepush.contract.js +24 -3
  74. package/dist/contracts/prepush.contract.js.map +1 -1
  75. package/dist/contracts/providers.contract.d.ts +1 -0
  76. package/dist/contracts/providers.contract.d.ts.map +1 -1
  77. package/dist/contracts/providers.contract.js +9 -1
  78. package/dist/contracts/providers.contract.js.map +1 -1
  79. package/dist/contracts/public.contract.d.ts.map +1 -1
  80. package/dist/contracts/public.contract.js +26 -3
  81. package/dist/contracts/public.contract.js.map +1 -1
  82. package/dist/contracts/push.contract.d.ts.map +1 -1
  83. package/dist/contracts/push.contract.js +35 -4
  84. package/dist/contracts/push.contract.js.map +1 -1
  85. package/dist/contracts/secrets.contract.d.ts.map +1 -1
  86. package/dist/contracts/secrets.contract.js +43 -5
  87. package/dist/contracts/secrets.contract.js.map +1 -1
  88. package/dist/contracts/sessions.contract.d.ts +3 -0
  89. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  90. package/dist/contracts/sessions.contract.js +15 -2
  91. package/dist/contracts/sessions.contract.js.map +1 -1
  92. package/dist/contracts/settings.contract.d.ts +19 -0
  93. package/dist/contracts/settings.contract.d.ts.map +1 -1
  94. package/dist/contracts/settings.contract.js +43 -5
  95. package/dist/contracts/settings.contract.js.map +1 -1
  96. package/dist/contracts/share.contract.d.ts.map +1 -1
  97. package/dist/contracts/share.contract.js +35 -4
  98. package/dist/contracts/share.contract.js.map +1 -1
  99. package/dist/contracts/skills.contract.d.ts.map +1 -1
  100. package/dist/contracts/skills.contract.js +35 -4
  101. package/dist/contracts/skills.contract.js.map +1 -1
  102. package/dist/contracts/system.contract.d.ts +7 -0
  103. package/dist/contracts/system.contract.d.ts.map +1 -1
  104. package/dist/contracts/system.contract.js +107 -14
  105. package/dist/contracts/system.contract.js.map +1 -1
  106. package/dist/contracts/translator.contract.d.ts.map +1 -1
  107. package/dist/contracts/translator.contract.js +29 -4
  108. package/dist/contracts/translator.contract.js.map +1 -1
  109. package/dist/contracts/usage.contract.d.ts.map +1 -1
  110. package/dist/contracts/usage.contract.js +9 -1
  111. package/dist/contracts/usage.contract.js.map +1 -1
  112. package/dist/contracts/vpn.contract.d.ts.map +1 -1
  113. package/dist/contracts/vpn.contract.js +32 -4
  114. package/dist/contracts/vpn.contract.js.map +1 -1
  115. package/dist/contracts/workflows.contract.d.ts.map +1 -1
  116. package/dist/contracts/workflows.contract.js +70 -8
  117. package/dist/contracts/workflows.contract.js.map +1 -1
  118. package/dist/contracts/workspace.contract.d.ts.map +1 -1
  119. package/dist/contracts/workspace.contract.js +216 -25
  120. package/dist/contracts/workspace.contract.js.map +1 -1
  121. package/dist/events.d.ts +46 -0
  122. package/dist/events.d.ts.map +1 -1
  123. package/dist/events.js +193 -88
  124. package/dist/events.js.map +1 -1
  125. package/dist/history-state.d.ts.map +1 -1
  126. package/dist/history-state.js +1 -0
  127. package/dist/history-state.js.map +1 -1
  128. package/dist/index.d.ts +197 -70
  129. package/dist/index.d.ts.map +1 -1
  130. package/dist/index.js +2 -0
  131. package/dist/index.js.map +1 -1
  132. package/dist/prompt-complexity.d.ts +9 -1
  133. package/dist/prompt-complexity.d.ts.map +1 -1
  134. package/dist/prompt-complexity.js +13 -5
  135. package/dist/prompt-complexity.js.map +1 -1
  136. package/dist/request-id.d.ts +3 -0
  137. package/dist/request-id.d.ts.map +1 -0
  138. package/dist/request-id.js +3 -0
  139. package/dist/request-id.js.map +1 -0
  140. package/dist/schemas.d.ts +89 -0
  141. package/dist/schemas.d.ts.map +1 -1
  142. package/dist/schemas.js +2912 -1276
  143. package/dist/schemas.js.map +1 -1
  144. package/dist/starter.d.ts +3 -0
  145. package/dist/starter.d.ts.map +1 -0
  146. package/dist/starter.js +3 -0
  147. package/dist/starter.js.map +1 -0
  148. package/package.json +5 -4
  149. package/src/contract-lock.test.ts +8 -2
  150. package/src/contracts/activity.contract.ts +18 -2
  151. package/src/contracts/agent.contract.ts +78 -8
  152. package/src/contracts/agents.contract.ts +180 -19
  153. package/src/contracts/automations.contract.ts +80 -9
  154. package/src/contracts/capabilities.contract.ts +106 -11
  155. package/src/contracts/chores.contract.ts +29 -3
  156. package/src/contracts/ci.contract.ts +55 -6
  157. package/src/contracts/claude.contract.ts +47 -5
  158. package/src/contracts/drafts.contract.ts +26 -3
  159. package/src/contracts/endpoints.contract.ts +19 -2
  160. package/src/contracts/exit.contract.ts +69 -7
  161. package/src/contracts/extensions.contract.ts +134 -15
  162. package/src/contracts/git.contract.ts +421 -43
  163. package/src/contracts/grok.contract.ts +26 -3
  164. package/src/contracts/history.contract.ts +37 -4
  165. package/src/contracts/intentic.contract.ts +28 -3
  166. package/src/contracts/inventory.contract.ts +27 -3
  167. package/src/contracts/logs.contract.ts +41 -4
  168. package/src/contracts/loops.contract.ts +58 -6
  169. package/src/contracts/panels.contract.ts +26 -3
  170. package/src/contracts/personas.contract.ts +77 -8
  171. package/src/contracts/ports.contract.ts +27 -3
  172. package/src/contracts/prepush.contract.ts +26 -3
  173. package/src/contracts/providers.contract.ts +10 -1
  174. package/src/contracts/public.contract.ts +29 -3
  175. package/src/contracts/push.contract.ts +37 -4
  176. package/src/contracts/secrets.contract.ts +46 -5
  177. package/src/contracts/sessions.contract.ts +16 -2
  178. package/src/contracts/settings.contract.ts +46 -5
  179. package/src/contracts/share.contract.ts +37 -4
  180. package/src/contracts/skills.contract.ts +39 -4
  181. package/src/contracts/system.contract.ts +119 -14
  182. package/src/contracts/translator.contract.ts +32 -4
  183. package/src/contracts/usage.contract.ts +10 -1
  184. package/src/contracts/vpn.contract.ts +35 -4
  185. package/src/contracts/workflows.contract.ts +77 -8
  186. package/src/contracts/workspace.contract.ts +231 -25
  187. package/src/events.ts +259 -89
  188. package/src/history-state.ts +6 -0
  189. package/src/index.ts +2 -0
  190. package/src/prompt-complexity.test.ts +69 -0
  191. package/src/prompt-complexity.ts +102 -39
  192. package/src/request-id.ts +41 -0
  193. package/src/schemas.ts +3700 -1260
  194. package/src/starter.ts +13 -0
@@ -1,48 +1,389 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { CommitResultSchema, CommitSchema, DiscardSchema, FileDiffSchema, GitActionResultSchema, GitBranchCreateAtSchema, GitBranchCreateSchema, GitBranchDeleteSchema, GitBranchesSchema, GitChangesSchema, GitCheckoutSchema, GitCommitActionSchema, GitCommitDiffQuerySchema, GitCommitDiffSchema, GitCommitFileDiffQuerySchema, GitFileDiffQuerySchema, GitFileQuerySchema, GitFileSchema, GitFilesSchema, GitFileWriteSchema, GitLogQuerySchema, GitLogSchema, GitOperationStateSchema, GitPublishFileResultSchema, GitPublishFileSchema, GitUndoSchema, GitUndoStateSchema, GitRemoteReposSchema, GitRemoteStateSchema, GitReposSchema, GitResetSchema, GitStageSchema, GitStatusSchema, GitTagCreateSchema, GitTagDeleteSchema, GitTagPushSchema, OkSchema, PushSchema, RepoParamSchema, StashApplySchema, StashDiffQuerySchema, StashListSchema, StashPushSchema, StashRefParamSchema, } from "../schemas.js";
3
3
  export const gitContract = {
4
- changes: oc.route({ method: "GET", path: "/git/changes" }).output(GitChangesSchema),
5
- repos: oc.route({ method: "GET", path: "/git/repos" }).output(GitReposSchema),
6
- remoteRepos: oc.route({ method: "GET", path: "/git/remote-repos" }).output(GitRemoteReposSchema),
7
- log: oc.route({ method: "GET", path: "/git/{repo}/log" }).input(GitLogQuerySchema).output(GitLogSchema),
8
- commitDiff: oc.route({ method: "GET", path: "/git/{repo}/commit-diff" }).input(GitCommitDiffQuerySchema).output(GitCommitDiffSchema),
9
- commitFileDiff: oc.route({ method: "GET", path: "/git/{repo}/commit-file-diff" }).input(GitCommitFileDiffQuerySchema).output(FileDiffSchema),
10
- operation: oc.route({ method: "GET", path: "/git/{repo}/operation" }).input(RepoParamSchema).output(GitOperationStateSchema),
11
- abort: oc.route({ method: "POST", path: "/git/{repo}/abort" }).input(RepoParamSchema).output(GitActionResultSchema),
12
- undoable: oc.route({ method: "GET", path: "/git/{repo}/undo" }).input(RepoParamSchema).output(GitUndoStateSchema),
13
- undo: oc.route({ method: "POST", path: "/git/{repo}/undo" }).input(GitUndoSchema).output(GitActionResultSchema),
14
- stashes: oc.route({ method: "GET", path: "/git/{repo}/stashes" }).input(RepoParamSchema).output(StashListSchema),
15
- stashDiff: oc.route({ method: "GET", path: "/git/{repo}/stash-diff" }).input(StashDiffQuerySchema).output(GitCommitDiffSchema),
16
- stashPush: oc.route({ method: "POST", path: "/git/{repo}/stash" }).input(StashPushSchema).output(GitActionResultSchema),
17
- stashApply: oc.route({ method: "POST", path: "/git/{repo}/stash/apply" }).input(StashApplySchema).output(GitActionResultSchema),
18
- stashDrop: oc.route({ method: "POST", path: "/git/{repo}/stash/drop" }).input(StashRefParamSchema).output(OkSchema),
19
- createBranch: oc.route({ method: "POST", path: "/git/{repo}/branch" }).input(GitBranchCreateSchema).output(OkSchema),
20
- createTag: oc.route({ method: "POST", path: "/git/{repo}/tag" }).input(GitTagCreateSchema).output(OkSchema),
21
- deleteTag: oc.route({ method: "POST", path: "/git/{repo}/tag/delete" }).input(GitTagDeleteSchema).output(OkSchema),
22
- pushTag: oc.route({ method: "POST", path: "/git/{repo}/tag/push" }).input(GitTagPushSchema).output(GitActionResultSchema),
23
- checkout: oc.route({ method: "POST", path: "/git/{repo}/checkout" }).input(GitCheckoutSchema).output(GitActionResultSchema),
24
- cherryPick: oc.route({ method: "POST", path: "/git/{repo}/cherry-pick" }).input(GitCommitActionSchema).output(GitActionResultSchema),
25
- revert: oc.route({ method: "POST", path: "/git/{repo}/revert" }).input(GitCommitActionSchema).output(GitActionResultSchema),
26
- drop: oc.route({ method: "POST", path: "/git/{repo}/drop" }).input(GitCommitActionSchema).output(GitActionResultSchema),
27
- merge: oc.route({ method: "POST", path: "/git/{repo}/merge" }).input(GitCommitActionSchema).output(GitActionResultSchema),
28
- rebase: oc.route({ method: "POST", path: "/git/{repo}/rebase" }).input(GitCommitActionSchema).output(GitActionResultSchema),
29
- reset: oc.route({ method: "POST", path: "/git/{repo}/reset" }).input(GitResetSchema).output(GitActionResultSchema),
30
- fileDiff: oc.route({ method: "GET", path: "/git/{repo}/file-diff" }).input(GitFileDiffQuerySchema).output(FileDiffSchema),
31
- status: oc.route({ method: "GET", path: "/git/{repo}/status" }).input(RepoParamSchema).output(GitStatusSchema),
32
- commit: oc.route({ method: "POST", path: "/git/{repo}/commit" }).input(CommitSchema).output(CommitResultSchema),
33
- discard: oc.route({ method: "POST", path: "/git/{repo}/discard" }).input(DiscardSchema).output(OkSchema),
34
- stage: oc.route({ method: "POST", path: "/git/{repo}/stage" }).input(GitStageSchema).output(OkSchema),
35
- unstage: oc.route({ method: "POST", path: "/git/{repo}/unstage" }).input(GitStageSchema).output(OkSchema),
36
- branches: oc.route({ method: "GET", path: "/git/{repo}/branches" }).input(RepoParamSchema).output(GitBranchesSchema),
37
- createBranchAt: oc.route({ method: "POST", path: "/git/{repo}/branches" }).input(GitBranchCreateAtSchema).output(OkSchema),
38
- deleteBranch: oc.route({ method: "POST", path: "/git/{repo}/branches/delete" }).input(GitBranchDeleteSchema).output(OkSchema),
39
- remote: oc.route({ method: "GET", path: "/git/{repo}/remote" }).input(RepoParamSchema).output(GitRemoteStateSchema),
40
- fetch: oc.route({ method: "POST", path: "/git/{repo}/fetch" }).input(RepoParamSchema).output(GitActionResultSchema),
41
- pull: oc.route({ method: "POST", path: "/git/{repo}/pull" }).input(RepoParamSchema).output(GitActionResultSchema),
42
- push: oc.route({ method: "POST", path: "/git/{repo}/push" }).input(PushSchema).output(GitActionResultSchema),
43
- files: oc.route({ method: "GET", path: "/git/{repo}/files" }).input(RepoParamSchema).output(GitFilesSchema),
44
- readFile: oc.route({ method: "GET", path: "/git/{repo}/file" }).input(GitFileQuerySchema).output(GitFileSchema),
45
- writeFile: oc.route({ method: "PUT", path: "/git/{repo}/file" }).input(GitFileWriteSchema).output(OkSchema),
46
- publishFile: oc.route({ method: "POST", path: "/git/{repo}/publish-file" }).input(GitPublishFileSchema).output(GitPublishFileResultSchema),
4
+ changes: oc
5
+ .route({
6
+ method: "GET",
7
+ path: "/git/changes",
8
+ summary: "Uncommitted work across every repo",
9
+ description: "The workspace's whole review set in one answer: every repo that has something uncommitted, and within it every changed file with its status and line counts. This is what the Changes panel draws, and it is the call to make when you want to know whether a workspace is clean without walking the repos yourself.",
10
+ })
11
+ .output(GitChangesSchema),
12
+ repos: oc
13
+ .route({
14
+ method: "GET",
15
+ path: "/git/repos",
16
+ summary: "Every git repo in the workspace",
17
+ description: "The repos the daemon found under the workspace root, each with the id every other call in this group expects as its `{repo}` segment. The workspace root itself is always present as `root`.",
18
+ })
19
+ .output(GitReposSchema),
20
+ remoteRepos: oc
21
+ .route({
22
+ method: "GET",
23
+ path: "/git/remote-repos",
24
+ summary: "Repos matched to their remotes",
25
+ description: "The same repo list, but with the forge host and `owner/name` each one's remote points at. Use it to recognise a workspace repo in a list of names that came from somewhere else, such as a set of pull requests. Costs a remote lookup per repo, which is why it is separate from the plain repo list.",
26
+ })
27
+ .output(GitRemoteReposSchema),
28
+ log: oc
29
+ .route({
30
+ method: "GET",
31
+ path: "/git/{repo}/log",
32
+ summary: "Commit history for one repo",
33
+ description: "A page of commits on the current branch, newest first, each with its author, subject, timestamp and the refs pointing at it. Paginate with the cursor the answer hands back rather than by offset, so a commit landing mid-scroll does not shift the page under you.",
34
+ })
35
+ .input(GitLogQuerySchema)
36
+ .output(GitLogSchema),
37
+ commitDiff: oc
38
+ .route({
39
+ method: "GET",
40
+ path: "/git/{repo}/commit-diff",
41
+ summary: "What one commit changed",
42
+ description: "The list of files a single commit touched, with per-file status and line counts but not the content. Fetch the content of any one of them with the commit file diff call, so a commit with a thousand files stays one cheap answer.",
43
+ })
44
+ .input(GitCommitDiffQuerySchema)
45
+ .output(GitCommitDiffSchema),
46
+ commitFileDiff: oc
47
+ .route({
48
+ method: "GET",
49
+ path: "/git/{repo}/commit-file-diff",
50
+ summary: "One file's before and after at a commit",
51
+ description: "Both sides of a single file as of one commit: the content its parent had and the content that commit left. The daemon returns whole sides rather than a patch, so a caller can render the comparison however it likes.",
52
+ })
53
+ .input(GitCommitFileDiffQuerySchema)
54
+ .output(FileDiffSchema),
55
+ operation: oc
56
+ .route({
57
+ method: "GET",
58
+ path: "/git/{repo}/operation",
59
+ summary: "Whether a merge or rebase is halted mid-flight",
60
+ description: "Names the git operation the worktree is stuck inside, if any: a conflicted merge, an interrupted rebase, a half-applied cherry-pick. Check this first when another call refuses, because a halted worktree is the usual reason and the abort call is the way out.",
61
+ })
62
+ .input(RepoParamSchema)
63
+ .output(GitOperationStateSchema),
64
+ abort: oc
65
+ .route({
66
+ method: "POST",
67
+ path: "/git/{repo}/abort",
68
+ summary: "Abandon a halted merge or rebase",
69
+ description: "Runs git's own abort for whichever operation has the worktree halted, putting the repo back where it stood before the operation started. Nothing else clears that state.",
70
+ })
71
+ .input(RepoParamSchema)
72
+ .output(GitActionResultSchema),
73
+ undoable: oc
74
+ .route({
75
+ method: "GET",
76
+ path: "/git/{repo}/undo",
77
+ summary: "What undoing the last action would do",
78
+ description: "Reads the branch's reflog to describe the move that undo would reverse, and hands back the commit it would land on. Pass that commit to the undo call as proof you looked, and an undo prepared against a view that has since moved is refused rather than landing somewhere unexamined.",
79
+ })
80
+ .input(RepoParamSchema)
81
+ .output(GitUndoStateSchema),
82
+ undo: oc
83
+ .route({
84
+ method: "POST",
85
+ path: "/git/{repo}/undo",
86
+ summary: "Move the branch back one step",
87
+ description: "Walks the current branch back to where it pointed before its last action. This moves the branch ref and leaves the working tree alone, which is the opposite of restoring a checkpoint. Requires the commit the matching read handed you.",
88
+ })
89
+ .input(GitUndoSchema)
90
+ .output(GitActionResultSchema),
91
+ stashes: oc
92
+ .route({
93
+ method: "GET",
94
+ path: "/git/{repo}/stashes",
95
+ summary: "Everything set aside in the stash",
96
+ description: "The repo's stash entries, newest first, each with the message and the commit behind it. A stash entry is a commit, so it reads the same way a log entry does and its contents come back from the stash diff call.",
97
+ })
98
+ .input(RepoParamSchema)
99
+ .output(StashListSchema),
100
+ stashDiff: oc
101
+ .route({
102
+ method: "GET",
103
+ path: "/git/{repo}/stash-diff",
104
+ summary: "What one stash entry holds",
105
+ description: "The files a single stash entry would bring back, with per-file status and line counts. The same shape a commit diff has, because a stash entry is a commit.",
106
+ })
107
+ .input(StashDiffQuerySchema)
108
+ .output(GitCommitDiffSchema),
109
+ stashPush: oc
110
+ .route({
111
+ method: "POST",
112
+ path: "/git/{repo}/stash",
113
+ summary: "Set the current changes aside",
114
+ description: "Moves the working tree's changes onto the stash and leaves a clean tree behind. Nothing is lost: the entry is a commit you can inspect, apply or drop afterwards.",
115
+ })
116
+ .input(StashPushSchema)
117
+ .output(GitActionResultSchema),
118
+ stashApply: oc
119
+ .route({
120
+ method: "POST",
121
+ path: "/git/{repo}/stash/apply",
122
+ summary: "Bring a stash entry back",
123
+ description: "Replays one stash entry onto the working tree. A conflict is reported in the answer rather than raised as a failure, because a conflicting apply is an ordinary outcome a screen has to render.",
124
+ })
125
+ .input(StashApplySchema)
126
+ .output(GitActionResultSchema),
127
+ stashDrop: oc
128
+ .route({
129
+ method: "POST",
130
+ path: "/git/{repo}/stash/drop",
131
+ summary: "Discard a stash entry",
132
+ description: "Deletes one stash entry. This is the only unrecoverable call in the stash set, so the daemon takes a checkpoint of the workspace first.",
133
+ })
134
+ .input(StashRefParamSchema)
135
+ .output(OkSchema),
136
+ createBranch: oc
137
+ .route({
138
+ method: "POST",
139
+ path: "/git/{repo}/branch",
140
+ summary: "Start a branch at a commit",
141
+ description: "Points a new branch name at any commit, without moving HEAD. Use the checkout call if you also want to switch to it.",
142
+ })
143
+ .input(GitBranchCreateSchema)
144
+ .output(OkSchema),
145
+ createTag: oc
146
+ .route({
147
+ method: "POST",
148
+ path: "/git/{repo}/tag",
149
+ summary: "Tag a commit",
150
+ description: "Puts a tag on any commit. Local only: pushing it to the remote is a separate call.",
151
+ })
152
+ .input(GitTagCreateSchema)
153
+ .output(OkSchema),
154
+ deleteTag: oc
155
+ .route({
156
+ method: "POST",
157
+ path: "/git/{repo}/tag/delete",
158
+ summary: "Remove a tag",
159
+ description: "Deletes a tag locally. A tag already pushed stays on the remote until it is deleted there too.",
160
+ })
161
+ .input(GitTagDeleteSchema)
162
+ .output(OkSchema),
163
+ pushTag: oc
164
+ .route({
165
+ method: "POST",
166
+ path: "/git/{repo}/tag/push",
167
+ summary: "Send a tag to the remote",
168
+ description: "Pushes one tag to the repo's remote. Reports the outcome rather than failing, since a missing remote or missing credentials are ordinary answers here.",
169
+ })
170
+ .input(GitTagPushSchema)
171
+ .output(GitActionResultSchema),
172
+ checkout: oc
173
+ .route({
174
+ method: "POST",
175
+ path: "/git/{repo}/checkout",
176
+ summary: "Switch to a branch or commit",
177
+ description: "Moves HEAD to a branch, tag or commit and reshapes the working tree to match. The daemon takes a checkpoint first, so an unexpected result is recoverable. Uncommitted work that would be overwritten is reported instead of being trampled.",
178
+ })
179
+ .input(GitCheckoutSchema)
180
+ .output(GitActionResultSchema),
181
+ cherryPick: oc
182
+ .route({
183
+ method: "POST",
184
+ path: "/git/{repo}/cherry-pick",
185
+ summary: "Replay one commit onto this branch",
186
+ description: "Applies a single commit's changes on top of the current branch as a new commit. A conflict comes back in the answer, with the halted state readable from the operation call.",
187
+ })
188
+ .input(GitCommitActionSchema)
189
+ .output(GitActionResultSchema),
190
+ revert: oc
191
+ .route({
192
+ method: "POST",
193
+ path: "/git/{repo}/revert",
194
+ summary: "Undo a commit with a new commit",
195
+ description: "Adds a commit that reverses an earlier one, leaving the history intact. This is the safe way to take something back on a branch other people have pulled.",
196
+ })
197
+ .input(GitCommitActionSchema)
198
+ .output(GitActionResultSchema),
199
+ drop: oc
200
+ .route({
201
+ method: "POST",
202
+ path: "/git/{repo}/drop",
203
+ summary: "Remove a commit from history",
204
+ description: "Rewrites the branch so one commit is no longer in it. History changes, so this is for branches nobody else has pulled. A checkpoint is taken first.",
205
+ })
206
+ .input(GitCommitActionSchema)
207
+ .output(GitActionResultSchema),
208
+ merge: oc
209
+ .route({
210
+ method: "POST",
211
+ path: "/git/{repo}/merge",
212
+ summary: "Merge another branch in",
213
+ description: "Merges a branch or commit into the current one. Conflicts are reported in the answer and leave the worktree halted, which the operation call explains and the abort call clears.",
214
+ })
215
+ .input(GitCommitActionSchema)
216
+ .output(GitActionResultSchema),
217
+ rebase: oc
218
+ .route({
219
+ method: "POST",
220
+ path: "/git/{repo}/rebase",
221
+ summary: "Replay this branch onto another",
222
+ description: "Moves the current branch's commits on top of a different base. History changes. Conflicts halt the rebase and are reported rather than raised, so the operation and abort calls are the way through.",
223
+ })
224
+ .input(GitCommitActionSchema)
225
+ .output(GitActionResultSchema),
226
+ reset: oc
227
+ .route({
228
+ method: "POST",
229
+ path: "/git/{repo}/reset",
230
+ summary: "Move the branch to a commit",
231
+ description: "Repoints the current branch at another commit, optionally reshaping the working tree to match. The destructive modes take a checkpoint first.",
232
+ })
233
+ .input(GitResetSchema)
234
+ .output(GitActionResultSchema),
235
+ fileDiff: oc
236
+ .route({
237
+ method: "GET",
238
+ path: "/git/{repo}/file-diff",
239
+ summary: "One file's committed and working copies",
240
+ description: "Both sides of a file as it stands right now: what the last commit holds and what is on disk. This is what a review pane shows for an uncommitted change.",
241
+ })
242
+ .input(GitFileDiffQuerySchema)
243
+ .output(FileDiffSchema),
244
+ status: oc
245
+ .route({
246
+ method: "GET",
247
+ path: "/git/{repo}/status",
248
+ summary: "One repo's branch and pending changes",
249
+ description: "The current branch, its sync position against the remote, and every staged, unstaged and untracked path. The single-repo counterpart to the workspace-wide changes call.",
250
+ })
251
+ .input(RepoParamSchema)
252
+ .output(GitStatusSchema),
253
+ commit: oc
254
+ .route({
255
+ method: "POST",
256
+ path: "/git/{repo}/commit",
257
+ summary: "Commit the pending changes",
258
+ description: "Records a commit with your message. Give it a list of paths to commit only those, or leave it out to commit everything pending. The answer carries the commit it created.",
259
+ })
260
+ .input(CommitSchema)
261
+ .output(CommitResultSchema),
262
+ discard: oc
263
+ .route({
264
+ method: "POST",
265
+ path: "/git/{repo}/discard",
266
+ summary: "Throw away pending changes",
267
+ description: "Restores files to their committed state and deletes untracked ones. Give it paths to discard only those. The daemon checkpoints the workspace first, so this is recoverable from the timeline.",
268
+ })
269
+ .input(DiscardSchema)
270
+ .output(OkSchema),
271
+ stage: oc
272
+ .route({
273
+ method: "POST",
274
+ path: "/git/{repo}/stage",
275
+ summary: "Mark paths for the next commit",
276
+ description: "Adds paths to the index. Nothing on disk changes, so this is always safe and always reversible with the unstage call.",
277
+ })
278
+ .input(GitStageSchema)
279
+ .output(OkSchema),
280
+ unstage: oc
281
+ .route({
282
+ method: "POST",
283
+ path: "/git/{repo}/unstage",
284
+ summary: "Take paths back out of the next commit",
285
+ description: "Removes paths from the index and leaves the file itself untouched. The exact reverse of staging.",
286
+ })
287
+ .input(GitStageSchema)
288
+ .output(OkSchema),
289
+ branches: oc
290
+ .route({
291
+ method: "GET",
292
+ path: "/git/{repo}/branches",
293
+ summary: "Local branches and how far each has drifted",
294
+ description: "Every local branch with how many commits it sits ahead of and behind its remote counterpart, so a branch switcher can show sync state without a call per branch.",
295
+ })
296
+ .input(RepoParamSchema)
297
+ .output(GitBranchesSchema),
298
+ createBranchAt: oc
299
+ .route({
300
+ method: "POST",
301
+ path: "/git/{repo}/branches",
302
+ summary: "Create a branch from a starting point",
303
+ description: "Makes a branch at a named start point and optionally switches to it. The branch-switcher counterpart to creating a branch at a specific commit.",
304
+ })
305
+ .input(GitBranchCreateAtSchema)
306
+ .output(OkSchema),
307
+ deleteBranch: oc
308
+ .route({
309
+ method: "POST",
310
+ path: "/git/{repo}/branches/delete",
311
+ summary: "Delete a local branch",
312
+ description: "Removes a branch from the repo. Unmerged work is refused unless you ask for it to be forced, and the remote branch is untouched either way.",
313
+ })
314
+ .input(GitBranchDeleteSchema)
315
+ .output(OkSchema),
316
+ remote: oc
317
+ .route({
318
+ method: "GET",
319
+ path: "/git/{repo}/remote",
320
+ summary: "Sync position against the remote",
321
+ description: "How far the current branch sits ahead of and behind its remote, as of the last fetch, plus whether a remote and working credentials exist at all. This is a read of what the daemon already knows, not a network call, which is why fetching is a separate button.",
322
+ })
323
+ .input(RepoParamSchema)
324
+ .output(GitRemoteStateSchema),
325
+ fetch: oc
326
+ .route({
327
+ method: "POST",
328
+ path: "/git/{repo}/fetch",
329
+ summary: "Refresh what the remote holds",
330
+ description: "Contacts the remote and updates the daemon's picture of it without touching your branch. Run this before trusting the sync position.",
331
+ })
332
+ .input(RepoParamSchema)
333
+ .output(GitActionResultSchema),
334
+ pull: oc
335
+ .route({
336
+ method: "POST",
337
+ path: "/git/{repo}/pull",
338
+ summary: "Bring remote commits down",
339
+ description: "Fetches and integrates the remote's commits into the current branch. A pull that cannot fast-forward is reported in the answer rather than raised, because that is an ordinary thing to be told.",
340
+ })
341
+ .input(RepoParamSchema)
342
+ .output(GitActionResultSchema),
343
+ push: oc
344
+ .route({
345
+ method: "POST",
346
+ path: "/git/{repo}/push",
347
+ summary: "Send commits to the remote",
348
+ description: "Pushes the current branch, setting its upstream on first push. A rejected push, a missing remote and missing credentials all come back as reported outcomes rather than failures.",
349
+ })
350
+ .input(PushSchema)
351
+ .output(GitActionResultSchema),
352
+ files: oc
353
+ .route({
354
+ method: "GET",
355
+ path: "/git/{repo}/files",
356
+ summary: "Every tracked path in the repo",
357
+ description: "The flat list of files git tracks, which is what a file picker or a search box wants. Ignored and untracked files are not in it.",
358
+ })
359
+ .input(RepoParamSchema)
360
+ .output(GitFilesSchema),
361
+ readFile: oc
362
+ .route({
363
+ method: "GET",
364
+ path: "/git/{repo}/file",
365
+ summary: "Read a file from the repo",
366
+ description: "The contents of one file as it stands on disk. A path that climbs out of the repo is refused.",
367
+ })
368
+ .input(GitFileQuerySchema)
369
+ .output(GitFileSchema),
370
+ writeFile: oc
371
+ .route({
372
+ method: "PUT",
373
+ path: "/git/{repo}/file",
374
+ summary: "Write a file into the repo",
375
+ description: "Replaces one file's contents, creating it and its parent folders if they are missing. Nothing is committed: the change shows up as pending work.",
376
+ })
377
+ .input(GitFileWriteSchema)
378
+ .output(OkSchema),
379
+ publishFile: oc
380
+ .route({
381
+ method: "POST",
382
+ path: "/git/{repo}/publish-file",
383
+ summary: "Write, commit and push one file",
384
+ description: "The three steps as a single call with a single answer, committing only the path you named and leaving any other pending work alone. Being on a side branch, having no remote and having no credentials are all reported rather than raised.",
385
+ })
386
+ .input(GitPublishFileSchema)
387
+ .output(GitPublishFileResultSchema),
47
388
  };
48
389
  //# sourceMappingURL=git.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"git.contract.js","sourceRoot":"","sources":["../../src/contracts/git.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACH,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,mBAAmB,GACtB,MAAM,eAAe,CAAC;AAMvB,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAInF,KAAK,EAAE,E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AM,EAAE,MAAM;QACd,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EACP,mLAAmL;KAC1L,CAAC;SACD,KAAK,CAAC,UAAU,CAAC;SACjB,MAAM,CAAC,qBAAqB,CAAC;IAClC,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,gCAAgC;QACzC,WAAW,EACP,kIAAkI;KACzI,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,cAAc,CAAC;IAC3B,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,+FAA+F;KAC/G,CAAC;SACD,KAAK,CAAC,kBAAkB,CAAC;SACzB,MAAM,CAAC,aAAa,CAAC;IAC1B,SAAS,EAAE,EAAE;SACR,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EACP,kJAAkJ;KACzJ,CAAC;SACD,KAAK,CAAC,kBAAkB,CAAC;SACzB,MAAM,CAAC,QAAQ,CAAC;IAIrB,WAAW,EAAE,EAAE;SACV,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,0BAA0B;QAChC,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EACP,6OAA6O;KACpP,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,0BAA0B,CAAC;CAC1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"grok.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/grok.contract.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY;IACrB,KAAK;;;;IACL,QAAQ;;;;;;;;;;;;;;;;;;;;;IACR,UAAU;;;;;CACb,CAAC"}
1
+ {"version":3,"file":"grok.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/grok.contract.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY;IACrB,KAAK;;;;IASL,QAAQ;;;;;;;;;;;;;;;;;;;;;IAQR,UAAU;;;;;CASb,CAAC"}
@@ -1,8 +1,30 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { AccountIdSchema, DeviceStartSchema, OauthAccountListSchema, OkSchema } from "../schemas.js";
3
3
  export const grokContract = {
4
- start: oc.route({ method: "POST", path: "/grok/oauth/start" }).output(DeviceStartSchema),
5
- accounts: oc.route({ method: "GET", path: "/grok/accounts" }).output(OauthAccountListSchema),
6
- disconnect: oc.route({ method: "POST", path: "/grok/account/disconnect" }).input(AccountIdSchema).output(OkSchema),
4
+ start: oc
5
+ .route({
6
+ method: "POST",
7
+ path: "/grok/oauth/start",
8
+ summary: "Begin connecting a Grok account",
9
+ description: "Hands back the page to open and the one-time code to type there. Nothing is pasted back afterwards: the sandbox waits for the sign-in to complete on its own, so poll the accounts call until it appears.",
10
+ })
11
+ .output(DeviceStartSchema),
12
+ accounts: oc
13
+ .route({
14
+ method: "GET",
15
+ path: "/grok/accounts",
16
+ summary: "Connected Grok account",
17
+ description: "What is signed in. A list for consistency with the other providers, though there is at most one.",
18
+ })
19
+ .output(OauthAccountListSchema),
20
+ disconnect: oc
21
+ .route({
22
+ method: "POST",
23
+ path: "/grok/account/disconnect",
24
+ summary: "Disconnect the Grok account",
25
+ description: "Clears the stored tokens.",
26
+ })
27
+ .input(AccountIdSchema)
28
+ .output(OkSchema),
7
29
  };
8
30
  //# sourceMappingURL=grok.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grok.contract.js","sourceRoot":"","sources":["../../src/contracts/grok.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,s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QACd,IAAI,EAAE,0BAA0B;QAChC,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,2BAA2B;KAC3C,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"history.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/history.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;IACxB,IAAI;;;;;;;;;;;;;;IACJ,IAAI;;;;;;;;;;;;;;IACJ,QAAQ;;;;;;;;;;IACR,OAAO;;;;;CACV,CAAC"}
1
+ {"version":3,"file":"history.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/history.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;IACxB,IAAI;;;;;;;;;;;;;;IASJ,IAAI;;;;;;;;;;;;;;IASJ,QAAQ;;;;;;;;;;IASR,OAAO;;;;;CAUV,CAAC"}
@@ -1,9 +1,40 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import { FileDiffSchema, OkSchema, SnapshotDiffSchema, SnapshotFileDiffQuerySchema, SnapshotIdSchema, SnapshotsListSchema } from "../schemas.js";
3
3
  export const historyContract = {
4
- list: oc.route({ method: "GET", path: "/history/snapshots" }).output(SnapshotsListSchema),
5
- diff: oc.route({ method: "GET", path: "/history/diff" }).input(SnapshotIdSchema).output(SnapshotDiffSchema),
6
- fileDiff: oc.route({ method: "GET", path: "/history/file-diff" }).input(SnapshotFileDiffQuerySchema).output(FileDiffSchema),
7
- restore: oc.route({ method: "POST", path: "/history/restore" }).input(SnapshotIdSchema).output(OkSchema),
4
+ list: oc
5
+ .route({
6
+ method: "GET",
7
+ path: "/history/snapshots",
8
+ summary: "Points you can go back to",
9
+ description: "The saved states of the whole workspace, taken automatically as work happens. This is the timeline behind undoing a change that was never committed.",
10
+ })
11
+ .output(SnapshotsListSchema),
12
+ diff: oc
13
+ .route({
14
+ method: "GET",
15
+ path: "/history/diff",
16
+ summary: "What changed since a saved point",
17
+ description: "The files that differ between one saved point and the one before it, taking in everything that happened in between.",
18
+ })
19
+ .input(SnapshotIdSchema)
20
+ .output(SnapshotDiffSchema),
21
+ fileDiff: oc
22
+ .route({
23
+ method: "GET",
24
+ path: "/history/file-diff",
25
+ summary: "One file's before and after across a saved point",
26
+ description: "Both sides of a single file at one point in the timeline.",
27
+ })
28
+ .input(SnapshotFileDiffQuerySchema)
29
+ .output(FileDiffSchema),
30
+ restore: oc
31
+ .route({
32
+ method: "POST",
33
+ path: "/history/restore",
34
+ summary: "Put the workspace back",
35
+ description: "Returns every file to how it stood at a saved point. This restores the files; moving a branch is a different thing and lives with the git calls.",
36
+ })
37
+ .input(SnapshotIdSchema)
38
+ .output(OkSchema),
8
39
  };
9
40
  //# sourceMappingURL=history.contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"history.contract.js","sourceRoot":"","sources":["../../src/contracts/history.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKjJ,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;IACzF,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC;IAC3G,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,K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kBAAkB;QACxB,OAAO,EAAE,wBAAwB;QACjC,WAAW,EACP,kJAAkJ;KACzJ,CAAC;SACD,KAAK,CAAC,gBAAgB,CAAC;SACvB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"intentic.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/intentic.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;IACzB,GAAG;;;;;;;;;IAGH,KAAK;;;IAKL,WAAW;;;;;;;CACd,CAAC"}
1
+ {"version":3,"file":"intentic.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/intentic.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;IACzB,GAAG;;;;;;;;;IAYH,KAAK;;;IAaL,WAAW;;;;;;;CASd,CAAC"}