skein-cli 0.1.0-alpha.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 (250) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +180 -0
  3. package/bin/skein.mjs +7 -0
  4. package/dist/adapters/aider/conv-reader.d.ts +7 -0
  5. package/dist/adapters/aider/conv-reader.js +203 -0
  6. package/dist/adapters/aider/conv-reader.js.map +1 -0
  7. package/dist/adapters/aider/index.d.ts +2 -0
  8. package/dist/adapters/aider/index.js +123 -0
  9. package/dist/adapters/aider/index.js.map +1 -0
  10. package/dist/adapters/base.d.ts +71 -0
  11. package/dist/adapters/base.js +38 -0
  12. package/dist/adapters/base.js.map +1 -0
  13. package/dist/adapters/claude-code/conv-reader.d.ts +2 -0
  14. package/dist/adapters/claude-code/conv-reader.js +155 -0
  15. package/dist/adapters/claude-code/conv-reader.js.map +1 -0
  16. package/dist/adapters/claude-code/index.d.ts +3 -0
  17. package/dist/adapters/claude-code/index.js +517 -0
  18. package/dist/adapters/claude-code/index.js.map +1 -0
  19. package/dist/adapters/claude-desktop/index.d.ts +2 -0
  20. package/dist/adapters/claude-desktop/index.js +95 -0
  21. package/dist/adapters/claude-desktop/index.js.map +1 -0
  22. package/dist/adapters/codex/index.d.ts +2 -0
  23. package/dist/adapters/codex/index.js +472 -0
  24. package/dist/adapters/codex/index.js.map +1 -0
  25. package/dist/adapters/cursor/index.d.ts +2 -0
  26. package/dist/adapters/cursor/index.js +255 -0
  27. package/dist/adapters/cursor/index.js.map +1 -0
  28. package/dist/adapters/opencode/conv-reader.d.ts +3 -0
  29. package/dist/adapters/opencode/conv-reader.js +190 -0
  30. package/dist/adapters/opencode/conv-reader.js.map +1 -0
  31. package/dist/adapters/opencode/index.d.ts +2 -0
  32. package/dist/adapters/opencode/index.js +349 -0
  33. package/dist/adapters/opencode/index.js.map +1 -0
  34. package/dist/adapters/registry.d.ts +4 -0
  35. package/dist/adapters/registry.js +26 -0
  36. package/dist/adapters/registry.js.map +1 -0
  37. package/dist/cli.d.ts +3 -0
  38. package/dist/cli.js +54 -0
  39. package/dist/cli.js.map +1 -0
  40. package/dist/commands/conv.d.ts +2 -0
  41. package/dist/commands/conv.js +261 -0
  42. package/dist/commands/conv.js.map +1 -0
  43. package/dist/commands/doctor.d.ts +2 -0
  44. package/dist/commands/doctor.js +85 -0
  45. package/dist/commands/doctor.js.map +1 -0
  46. package/dist/commands/init.d.ts +2 -0
  47. package/dist/commands/init.js +38 -0
  48. package/dist/commands/init.js.map +1 -0
  49. package/dist/commands/memory.d.ts +2 -0
  50. package/dist/commands/memory.js +197 -0
  51. package/dist/commands/memory.js.map +1 -0
  52. package/dist/commands/migrate.d.ts +2 -0
  53. package/dist/commands/migrate.js +102 -0
  54. package/dist/commands/migrate.js.map +1 -0
  55. package/dist/commands/profile.d.ts +2 -0
  56. package/dist/commands/profile.js +183 -0
  57. package/dist/commands/profile.js.map +1 -0
  58. package/dist/commands/redact.d.ts +2 -0
  59. package/dist/commands/redact.js +73 -0
  60. package/dist/commands/redact.js.map +1 -0
  61. package/dist/commands/trace.d.ts +2 -0
  62. package/dist/commands/trace.js +181 -0
  63. package/dist/commands/trace.js.map +1 -0
  64. package/dist/commands/view.d.ts +13 -0
  65. package/dist/commands/view.js +184 -0
  66. package/dist/commands/view.js.map +1 -0
  67. package/dist/commands/watch.d.ts +6 -0
  68. package/dist/commands/watch.js +61 -0
  69. package/dist/commands/watch.js.map +1 -0
  70. package/dist/commands/wrap.d.ts +2 -0
  71. package/dist/commands/wrap.js +131 -0
  72. package/dist/commands/wrap.js.map +1 -0
  73. package/dist/conv/chatgpt-import.d.ts +33 -0
  74. package/dist/conv/chatgpt-import.js +145 -0
  75. package/dist/conv/chatgpt-import.js.map +1 -0
  76. package/dist/conv/cursor.d.ts +12 -0
  77. package/dist/conv/cursor.js +55 -0
  78. package/dist/conv/cursor.js.map +1 -0
  79. package/dist/conv/export.d.ts +40 -0
  80. package/dist/conv/export.js +215 -0
  81. package/dist/conv/export.js.map +1 -0
  82. package/dist/conv/replay/aider.d.ts +24 -0
  83. package/dist/conv/replay/aider.js +56 -0
  84. package/dist/conv/replay/aider.js.map +1 -0
  85. package/dist/conv/replay/claude-code.d.ts +38 -0
  86. package/dist/conv/replay/claude-code.js +80 -0
  87. package/dist/conv/replay/claude-code.js.map +1 -0
  88. package/dist/conv/replay/context.d.ts +25 -0
  89. package/dist/conv/replay/context.js +63 -0
  90. package/dist/conv/replay/context.js.map +1 -0
  91. package/dist/conv/replay/index.d.ts +22 -0
  92. package/dist/conv/replay/index.js +84 -0
  93. package/dist/conv/replay/index.js.map +1 -0
  94. package/dist/conv/search.d.ts +67 -0
  95. package/dist/conv/search.js +379 -0
  96. package/dist/conv/search.js.map +1 -0
  97. package/dist/conv/sink.d.ts +26 -0
  98. package/dist/conv/sink.js +76 -0
  99. package/dist/conv/sink.js.map +1 -0
  100. package/dist/conv/sources/aider.d.ts +13 -0
  101. package/dist/conv/sources/aider.js +95 -0
  102. package/dist/conv/sources/aider.js.map +1 -0
  103. package/dist/conv/sources/claude-code.d.ts +13 -0
  104. package/dist/conv/sources/claude-code.js +189 -0
  105. package/dist/conv/sources/claude-code.js.map +1 -0
  106. package/dist/conv/sources/codex.d.ts +15 -0
  107. package/dist/conv/sources/codex.js +175 -0
  108. package/dist/conv/sources/codex.js.map +1 -0
  109. package/dist/conv/sources/opencode.d.ts +12 -0
  110. package/dist/conv/sources/opencode.js +92 -0
  111. package/dist/conv/sources/opencode.js.map +1 -0
  112. package/dist/conv/store.d.ts +10 -0
  113. package/dist/conv/store.js +75 -0
  114. package/dist/conv/store.js.map +1 -0
  115. package/dist/conv/title.d.ts +9 -0
  116. package/dist/conv/title.js +74 -0
  117. package/dist/conv/title.js.map +1 -0
  118. package/dist/conv/watcher.d.ts +28 -0
  119. package/dist/conv/watcher.js +75 -0
  120. package/dist/conv/watcher.js.map +1 -0
  121. package/dist/conv/zip.d.ts +11 -0
  122. package/dist/conv/zip.js +82 -0
  123. package/dist/conv/zip.js.map +1 -0
  124. package/dist/hf/client.d.ts +41 -0
  125. package/dist/hf/client.js +87 -0
  126. package/dist/hf/client.js.map +1 -0
  127. package/dist/index.d.ts +5 -0
  128. package/dist/index.js +6 -0
  129. package/dist/index.js.map +1 -0
  130. package/dist/ir/index.d.ts +24 -0
  131. package/dist/ir/index.js +23 -0
  132. package/dist/ir/index.js.map +1 -0
  133. package/dist/ir/profile.d.ts +55 -0
  134. package/dist/ir/profile.js +177 -0
  135. package/dist/ir/profile.js.map +1 -0
  136. package/dist/memory/index.d.ts +41 -0
  137. package/dist/memory/index.js +109 -0
  138. package/dist/memory/index.js.map +1 -0
  139. package/dist/memory/search.d.ts +24 -0
  140. package/dist/memory/search.js +114 -0
  141. package/dist/memory/search.js.map +1 -0
  142. package/dist/memory/sinks/claude-mem.d.ts +13 -0
  143. package/dist/memory/sinks/claude-mem.js +100 -0
  144. package/dist/memory/sinks/claude-mem.js.map +1 -0
  145. package/dist/memory/sinks/codex.d.ts +12 -0
  146. package/dist/memory/sinks/codex.js +82 -0
  147. package/dist/memory/sinks/codex.js.map +1 -0
  148. package/dist/memory/sinks/context.d.ts +21 -0
  149. package/dist/memory/sinks/context.js +42 -0
  150. package/dist/memory/sinks/context.js.map +1 -0
  151. package/dist/memory/sources/chatgpt.d.ts +22 -0
  152. package/dist/memory/sources/chatgpt.js +98 -0
  153. package/dist/memory/sources/chatgpt.js.map +1 -0
  154. package/dist/memory/sources/claude-mem.d.ts +8 -0
  155. package/dist/memory/sources/claude-mem.js +104 -0
  156. package/dist/memory/sources/claude-mem.js.map +1 -0
  157. package/dist/memory/sources/codex.d.ts +8 -0
  158. package/dist/memory/sources/codex.js +77 -0
  159. package/dist/memory/sources/codex.js.map +1 -0
  160. package/dist/memory/store.d.ts +19 -0
  161. package/dist/memory/store.js +82 -0
  162. package/dist/memory/store.js.map +1 -0
  163. package/dist/proxy/http.d.ts +21 -0
  164. package/dist/proxy/http.js +205 -0
  165. package/dist/proxy/http.js.map +1 -0
  166. package/dist/proxy/recorder.d.ts +35 -0
  167. package/dist/proxy/recorder.js +221 -0
  168. package/dist/proxy/recorder.js.map +1 -0
  169. package/dist/proxy/streaming.d.ts +33 -0
  170. package/dist/proxy/streaming.js +185 -0
  171. package/dist/proxy/streaming.js.map +1 -0
  172. package/dist/redactor/entropy.d.ts +29 -0
  173. package/dist/redactor/entropy.js +98 -0
  174. package/dist/redactor/entropy.js.map +1 -0
  175. package/dist/redactor/index.d.ts +52 -0
  176. package/dist/redactor/index.js +152 -0
  177. package/dist/redactor/index.js.map +1 -0
  178. package/dist/redactor/ner.d.ts +53 -0
  179. package/dist/redactor/ner.js +97 -0
  180. package/dist/redactor/ner.js.map +1 -0
  181. package/dist/redactor/pii-patterns.d.ts +22 -0
  182. package/dist/redactor/pii-patterns.js +187 -0
  183. package/dist/redactor/pii-patterns.js.map +1 -0
  184. package/dist/redactor/secret-patterns.d.ts +27 -0
  185. package/dist/redactor/secret-patterns.js +475 -0
  186. package/dist/redactor/secret-patterns.js.map +1 -0
  187. package/dist/schema/conv.d.ts +698 -0
  188. package/dist/schema/conv.js +85 -0
  189. package/dist/schema/conv.js.map +1 -0
  190. package/dist/schema/index.d.ts +2 -0
  191. package/dist/schema/index.js +3 -0
  192. package/dist/schema/index.js.map +1 -0
  193. package/dist/schema/manifest.d.ts +1531 -0
  194. package/dist/schema/manifest.js +179 -0
  195. package/dist/schema/manifest.js.map +1 -0
  196. package/dist/schema/memory.d.ts +107 -0
  197. package/dist/schema/memory.js +45 -0
  198. package/dist/schema/memory.js.map +1 -0
  199. package/dist/schema/trace.d.ts +164 -0
  200. package/dist/schema/trace.js +89 -0
  201. package/dist/schema/trace.js.map +1 -0
  202. package/dist/trace/consent.d.ts +30 -0
  203. package/dist/trace/consent.js +60 -0
  204. package/dist/trace/consent.js.map +1 -0
  205. package/dist/trace/extract.d.ts +22 -0
  206. package/dist/trace/extract.js +168 -0
  207. package/dist/trace/extract.js.map +1 -0
  208. package/dist/trace/ml-pii.d.ts +33 -0
  209. package/dist/trace/ml-pii.js +35 -0
  210. package/dist/trace/ml-pii.js.map +1 -0
  211. package/dist/trace/push.d.ts +59 -0
  212. package/dist/trace/push.js +141 -0
  213. package/dist/trace/push.js.map +1 -0
  214. package/dist/trace/serialize.d.ts +23 -0
  215. package/dist/trace/serialize.js +67 -0
  216. package/dist/trace/serialize.js.map +1 -0
  217. package/dist/ui/banner.d.ts +2 -0
  218. package/dist/ui/banner.js +17 -0
  219. package/dist/ui/banner.js.map +1 -0
  220. package/dist/ui/box.d.ts +4 -0
  221. package/dist/ui/box.js +38 -0
  222. package/dist/ui/box.js.map +1 -0
  223. package/dist/ui/index.d.ts +5 -0
  224. package/dist/ui/index.js +5 -0
  225. package/dist/ui/index.js.map +1 -0
  226. package/dist/ui/spinner.d.ts +10 -0
  227. package/dist/ui/spinner.js +44 -0
  228. package/dist/ui/spinner.js.map +1 -0
  229. package/dist/ui/table.d.ts +9 -0
  230. package/dist/ui/table.js +55 -0
  231. package/dist/ui/table.js.map +1 -0
  232. package/dist/util/frontmatter.d.ts +6 -0
  233. package/dist/util/frontmatter.js +20 -0
  234. package/dist/util/frontmatter.js.map +1 -0
  235. package/dist/util/fs.d.ts +5 -0
  236. package/dist/util/fs.js +41 -0
  237. package/dist/util/fs.js.map +1 -0
  238. package/dist/util/ids.d.ts +3 -0
  239. package/dist/util/ids.js +16 -0
  240. package/dist/util/ids.js.map +1 -0
  241. package/dist/util/log.d.ts +13 -0
  242. package/dist/util/log.js +33 -0
  243. package/dist/util/log.js.map +1 -0
  244. package/dist/util/paths.d.ts +18 -0
  245. package/dist/util/paths.js +36 -0
  246. package/dist/util/paths.js.map +1 -0
  247. package/dist/version.d.ts +5 -0
  248. package/dist/version.js +32 -0
  249. package/dist/version.js.map +1 -0
  250. package/package.json +86 -0
@@ -0,0 +1,1531 @@
1
+ import { z } from 'zod';
2
+ export declare const ProvenanceSchema: z.ZodObject<{
3
+ sourceTool: z.ZodString;
4
+ sourcePath: z.ZodOptional<z.ZodString>;
5
+ sourceKey: z.ZodOptional<z.ZodString>;
6
+ capturedAt: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ sourceTool: string;
9
+ sourcePath?: string | undefined;
10
+ sourceKey?: string | undefined;
11
+ capturedAt?: string | undefined;
12
+ }, {
13
+ sourceTool: string;
14
+ sourcePath?: string | undefined;
15
+ sourceKey?: string | undefined;
16
+ capturedAt?: string | undefined;
17
+ }>;
18
+ export type Provenance = z.infer<typeof ProvenanceSchema>;
19
+ export declare const IdentitySchema: z.ZodObject<{
20
+ name: z.ZodOptional<z.ZodString>;
21
+ email: z.ZodOptional<z.ZodString>;
22
+ pronouns: z.ZodOptional<z.ZodString>;
23
+ timezone: z.ZodOptional<z.ZodString>;
24
+ language: z.ZodOptional<z.ZodString>;
25
+ bio: z.ZodOptional<z.ZodString>;
26
+ preferences: z.ZodOptional<z.ZodString>;
27
+ provenance: z.ZodOptional<z.ZodObject<{
28
+ sourceTool: z.ZodString;
29
+ sourcePath: z.ZodOptional<z.ZodString>;
30
+ sourceKey: z.ZodOptional<z.ZodString>;
31
+ capturedAt: z.ZodOptional<z.ZodString>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ sourceTool: string;
34
+ sourcePath?: string | undefined;
35
+ sourceKey?: string | undefined;
36
+ capturedAt?: string | undefined;
37
+ }, {
38
+ sourceTool: string;
39
+ sourcePath?: string | undefined;
40
+ sourceKey?: string | undefined;
41
+ capturedAt?: string | undefined;
42
+ }>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ name?: string | undefined;
45
+ email?: string | undefined;
46
+ pronouns?: string | undefined;
47
+ timezone?: string | undefined;
48
+ language?: string | undefined;
49
+ bio?: string | undefined;
50
+ preferences?: string | undefined;
51
+ provenance?: {
52
+ sourceTool: string;
53
+ sourcePath?: string | undefined;
54
+ sourceKey?: string | undefined;
55
+ capturedAt?: string | undefined;
56
+ } | undefined;
57
+ }, {
58
+ name?: string | undefined;
59
+ email?: string | undefined;
60
+ pronouns?: string | undefined;
61
+ timezone?: string | undefined;
62
+ language?: string | undefined;
63
+ bio?: string | undefined;
64
+ preferences?: string | undefined;
65
+ provenance?: {
66
+ sourceTool: string;
67
+ sourcePath?: string | undefined;
68
+ sourceKey?: string | undefined;
69
+ capturedAt?: string | undefined;
70
+ } | undefined;
71
+ }>;
72
+ export type Identity = z.infer<typeof IdentitySchema>;
73
+ export declare const RuleScopeSchema: z.ZodEnum<["global", "project"]>;
74
+ export declare const RuleActivationSchema: z.ZodEnum<["always", "auto", "agent", "manual"]>;
75
+ export declare const RuleSchema: z.ZodObject<{
76
+ id: z.ZodString;
77
+ scope: z.ZodEnum<["global", "project"]>;
78
+ activation: z.ZodDefault<z.ZodEnum<["always", "auto", "agent", "manual"]>>;
79
+ description: z.ZodOptional<z.ZodString>;
80
+ globs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
81
+ body: z.ZodString;
82
+ sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
+ provenance: z.ZodOptional<z.ZodObject<{
84
+ sourceTool: z.ZodString;
85
+ sourcePath: z.ZodOptional<z.ZodString>;
86
+ sourceKey: z.ZodOptional<z.ZodString>;
87
+ capturedAt: z.ZodOptional<z.ZodString>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ sourceTool: string;
90
+ sourcePath?: string | undefined;
91
+ sourceKey?: string | undefined;
92
+ capturedAt?: string | undefined;
93
+ }, {
94
+ sourceTool: string;
95
+ sourcePath?: string | undefined;
96
+ sourceKey?: string | undefined;
97
+ capturedAt?: string | undefined;
98
+ }>>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ id: string;
101
+ scope: "global" | "project";
102
+ activation: "always" | "auto" | "agent" | "manual";
103
+ body: string;
104
+ provenance?: {
105
+ sourceTool: string;
106
+ sourcePath?: string | undefined;
107
+ sourceKey?: string | undefined;
108
+ capturedAt?: string | undefined;
109
+ } | undefined;
110
+ description?: string | undefined;
111
+ globs?: string[] | undefined;
112
+ sources?: string[] | undefined;
113
+ }, {
114
+ id: string;
115
+ scope: "global" | "project";
116
+ body: string;
117
+ provenance?: {
118
+ sourceTool: string;
119
+ sourcePath?: string | undefined;
120
+ sourceKey?: string | undefined;
121
+ capturedAt?: string | undefined;
122
+ } | undefined;
123
+ activation?: "always" | "auto" | "agent" | "manual" | undefined;
124
+ description?: string | undefined;
125
+ globs?: string[] | undefined;
126
+ sources?: string[] | undefined;
127
+ }>;
128
+ export type Rule = z.infer<typeof RuleSchema>;
129
+ export declare const ToolPermissionSchema: z.ZodObject<{
130
+ allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
131
+ deny: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
132
+ ask: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ allow?: string[] | undefined;
135
+ deny?: string[] | undefined;
136
+ ask?: string[] | undefined;
137
+ }, {
138
+ allow?: string[] | undefined;
139
+ deny?: string[] | undefined;
140
+ ask?: string[] | undefined;
141
+ }>;
142
+ export declare const AgentRoleSchema: z.ZodEnum<["primary", "subagent", "both"]>;
143
+ export declare const AgentSchema: z.ZodObject<{
144
+ id: z.ZodString;
145
+ name: z.ZodString;
146
+ description: z.ZodString;
147
+ role: z.ZodDefault<z.ZodEnum<["primary", "subagent", "both"]>>;
148
+ model: z.ZodOptional<z.ZodString>;
149
+ temperature: z.ZodOptional<z.ZodNumber>;
150
+ systemPrompt: z.ZodString;
151
+ tools: z.ZodOptional<z.ZodObject<{
152
+ allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
153
+ deny: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
154
+ ask: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ allow?: string[] | undefined;
157
+ deny?: string[] | undefined;
158
+ ask?: string[] | undefined;
159
+ }, {
160
+ allow?: string[] | undefined;
161
+ deny?: string[] | undefined;
162
+ ask?: string[] | undefined;
163
+ }>>;
164
+ isolation: z.ZodOptional<z.ZodEnum<["none", "worktree"]>>;
165
+ color: z.ZodOptional<z.ZodString>;
166
+ provenance: z.ZodOptional<z.ZodObject<{
167
+ sourceTool: z.ZodString;
168
+ sourcePath: z.ZodOptional<z.ZodString>;
169
+ sourceKey: z.ZodOptional<z.ZodString>;
170
+ capturedAt: z.ZodOptional<z.ZodString>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ sourceTool: string;
173
+ sourcePath?: string | undefined;
174
+ sourceKey?: string | undefined;
175
+ capturedAt?: string | undefined;
176
+ }, {
177
+ sourceTool: string;
178
+ sourcePath?: string | undefined;
179
+ sourceKey?: string | undefined;
180
+ capturedAt?: string | undefined;
181
+ }>>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ name: string;
184
+ id: string;
185
+ description: string;
186
+ role: "primary" | "subagent" | "both";
187
+ systemPrompt: string;
188
+ provenance?: {
189
+ sourceTool: string;
190
+ sourcePath?: string | undefined;
191
+ sourceKey?: string | undefined;
192
+ capturedAt?: string | undefined;
193
+ } | undefined;
194
+ model?: string | undefined;
195
+ temperature?: number | undefined;
196
+ tools?: {
197
+ allow?: string[] | undefined;
198
+ deny?: string[] | undefined;
199
+ ask?: string[] | undefined;
200
+ } | undefined;
201
+ isolation?: "none" | "worktree" | undefined;
202
+ color?: string | undefined;
203
+ }, {
204
+ name: string;
205
+ id: string;
206
+ description: string;
207
+ systemPrompt: string;
208
+ provenance?: {
209
+ sourceTool: string;
210
+ sourcePath?: string | undefined;
211
+ sourceKey?: string | undefined;
212
+ capturedAt?: string | undefined;
213
+ } | undefined;
214
+ role?: "primary" | "subagent" | "both" | undefined;
215
+ model?: string | undefined;
216
+ temperature?: number | undefined;
217
+ tools?: {
218
+ allow?: string[] | undefined;
219
+ deny?: string[] | undefined;
220
+ ask?: string[] | undefined;
221
+ } | undefined;
222
+ isolation?: "none" | "worktree" | undefined;
223
+ color?: string | undefined;
224
+ }>;
225
+ export type Agent = z.infer<typeof AgentSchema>;
226
+ export declare const CommandSchema: z.ZodObject<{
227
+ id: z.ZodString;
228
+ name: z.ZodString;
229
+ description: z.ZodOptional<z.ZodString>;
230
+ argumentHint: z.ZodOptional<z.ZodString>;
231
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
232
+ model: z.ZodOptional<z.ZodString>;
233
+ body: z.ZodString;
234
+ provenance: z.ZodOptional<z.ZodObject<{
235
+ sourceTool: z.ZodString;
236
+ sourcePath: z.ZodOptional<z.ZodString>;
237
+ sourceKey: z.ZodOptional<z.ZodString>;
238
+ capturedAt: z.ZodOptional<z.ZodString>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ sourceTool: string;
241
+ sourcePath?: string | undefined;
242
+ sourceKey?: string | undefined;
243
+ capturedAt?: string | undefined;
244
+ }, {
245
+ sourceTool: string;
246
+ sourcePath?: string | undefined;
247
+ sourceKey?: string | undefined;
248
+ capturedAt?: string | undefined;
249
+ }>>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ name: string;
252
+ id: string;
253
+ body: string;
254
+ provenance?: {
255
+ sourceTool: string;
256
+ sourcePath?: string | undefined;
257
+ sourceKey?: string | undefined;
258
+ capturedAt?: string | undefined;
259
+ } | undefined;
260
+ description?: string | undefined;
261
+ model?: string | undefined;
262
+ argumentHint?: string | undefined;
263
+ allowedTools?: string[] | undefined;
264
+ }, {
265
+ name: string;
266
+ id: string;
267
+ body: string;
268
+ provenance?: {
269
+ sourceTool: string;
270
+ sourcePath?: string | undefined;
271
+ sourceKey?: string | undefined;
272
+ capturedAt?: string | undefined;
273
+ } | undefined;
274
+ description?: string | undefined;
275
+ model?: string | undefined;
276
+ argumentHint?: string | undefined;
277
+ allowedTools?: string[] | undefined;
278
+ }>;
279
+ export type Command = z.infer<typeof CommandSchema>;
280
+ export declare const SkillTriggerSchema: z.ZodEnum<["model", "user", "both"]>;
281
+ export declare const SkillSchema: z.ZodObject<{
282
+ id: z.ZodString;
283
+ name: z.ZodString;
284
+ description: z.ZodString;
285
+ whenToUse: z.ZodOptional<z.ZodString>;
286
+ trigger: z.ZodDefault<z.ZodEnum<["model", "user", "both"]>>;
287
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
288
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
289
+ model: z.ZodOptional<z.ZodString>;
290
+ argumentHint: z.ZodOptional<z.ZodString>;
291
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
292
+ body: z.ZodString;
293
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
294
+ ui: z.ZodOptional<z.ZodObject<{
295
+ displayName: z.ZodOptional<z.ZodString>;
296
+ shortDescription: z.ZodOptional<z.ZodString>;
297
+ iconSmall: z.ZodOptional<z.ZodString>;
298
+ iconLarge: z.ZodOptional<z.ZodString>;
299
+ brandColor: z.ZodOptional<z.ZodString>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ displayName?: string | undefined;
302
+ shortDescription?: string | undefined;
303
+ iconSmall?: string | undefined;
304
+ iconLarge?: string | undefined;
305
+ brandColor?: string | undefined;
306
+ }, {
307
+ displayName?: string | undefined;
308
+ shortDescription?: string | undefined;
309
+ iconSmall?: string | undefined;
310
+ iconLarge?: string | undefined;
311
+ brandColor?: string | undefined;
312
+ }>>;
313
+ provenance: z.ZodOptional<z.ZodObject<{
314
+ sourceTool: z.ZodString;
315
+ sourcePath: z.ZodOptional<z.ZodString>;
316
+ sourceKey: z.ZodOptional<z.ZodString>;
317
+ capturedAt: z.ZodOptional<z.ZodString>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ sourceTool: string;
320
+ sourcePath?: string | undefined;
321
+ sourceKey?: string | undefined;
322
+ capturedAt?: string | undefined;
323
+ }, {
324
+ sourceTool: string;
325
+ sourcePath?: string | undefined;
326
+ sourceKey?: string | undefined;
327
+ capturedAt?: string | undefined;
328
+ }>>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ name: string;
331
+ id: string;
332
+ description: string;
333
+ body: string;
334
+ trigger: "both" | "model" | "user";
335
+ provenance?: {
336
+ sourceTool: string;
337
+ sourcePath?: string | undefined;
338
+ sourceKey?: string | undefined;
339
+ capturedAt?: string | undefined;
340
+ } | undefined;
341
+ model?: string | undefined;
342
+ argumentHint?: string | undefined;
343
+ allowedTools?: string[] | undefined;
344
+ whenToUse?: string | undefined;
345
+ disallowedTools?: string[] | undefined;
346
+ paths?: string[] | undefined;
347
+ files?: Record<string, string> | undefined;
348
+ ui?: {
349
+ displayName?: string | undefined;
350
+ shortDescription?: string | undefined;
351
+ iconSmall?: string | undefined;
352
+ iconLarge?: string | undefined;
353
+ brandColor?: string | undefined;
354
+ } | undefined;
355
+ }, {
356
+ name: string;
357
+ id: string;
358
+ description: string;
359
+ body: string;
360
+ provenance?: {
361
+ sourceTool: string;
362
+ sourcePath?: string | undefined;
363
+ sourceKey?: string | undefined;
364
+ capturedAt?: string | undefined;
365
+ } | undefined;
366
+ model?: string | undefined;
367
+ argumentHint?: string | undefined;
368
+ allowedTools?: string[] | undefined;
369
+ whenToUse?: string | undefined;
370
+ trigger?: "both" | "model" | "user" | undefined;
371
+ disallowedTools?: string[] | undefined;
372
+ paths?: string[] | undefined;
373
+ files?: Record<string, string> | undefined;
374
+ ui?: {
375
+ displayName?: string | undefined;
376
+ shortDescription?: string | undefined;
377
+ iconSmall?: string | undefined;
378
+ iconLarge?: string | undefined;
379
+ brandColor?: string | undefined;
380
+ } | undefined;
381
+ }>;
382
+ export type Skill = z.infer<typeof SkillSchema>;
383
+ export declare const McpTransportSchema: z.ZodEnum<["stdio", "http", "sse", "ws"]>;
384
+ export declare const McpServerSchema: z.ZodObject<{
385
+ id: z.ZodString;
386
+ scope: z.ZodDefault<z.ZodEnum<["global", "project"]>>;
387
+ transport: z.ZodEnum<["stdio", "http", "sse", "ws"]>;
388
+ command: z.ZodOptional<z.ZodString>;
389
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
390
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
391
+ url: z.ZodOptional<z.ZodString>;
392
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
393
+ enabled: z.ZodDefault<z.ZodBoolean>;
394
+ startupTimeoutSec: z.ZodOptional<z.ZodNumber>;
395
+ provenance: z.ZodOptional<z.ZodObject<{
396
+ sourceTool: z.ZodString;
397
+ sourcePath: z.ZodOptional<z.ZodString>;
398
+ sourceKey: z.ZodOptional<z.ZodString>;
399
+ capturedAt: z.ZodOptional<z.ZodString>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ sourceTool: string;
402
+ sourcePath?: string | undefined;
403
+ sourceKey?: string | undefined;
404
+ capturedAt?: string | undefined;
405
+ }, {
406
+ sourceTool: string;
407
+ sourcePath?: string | undefined;
408
+ sourceKey?: string | undefined;
409
+ capturedAt?: string | undefined;
410
+ }>>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ id: string;
413
+ scope: "global" | "project";
414
+ transport: "stdio" | "http" | "sse" | "ws";
415
+ enabled: boolean;
416
+ provenance?: {
417
+ sourceTool: string;
418
+ sourcePath?: string | undefined;
419
+ sourceKey?: string | undefined;
420
+ capturedAt?: string | undefined;
421
+ } | undefined;
422
+ url?: string | undefined;
423
+ command?: string | undefined;
424
+ args?: string[] | undefined;
425
+ env?: Record<string, string> | undefined;
426
+ headers?: Record<string, string> | undefined;
427
+ startupTimeoutSec?: number | undefined;
428
+ }, {
429
+ id: string;
430
+ transport: "stdio" | "http" | "sse" | "ws";
431
+ provenance?: {
432
+ sourceTool: string;
433
+ sourcePath?: string | undefined;
434
+ sourceKey?: string | undefined;
435
+ capturedAt?: string | undefined;
436
+ } | undefined;
437
+ scope?: "global" | "project" | undefined;
438
+ url?: string | undefined;
439
+ command?: string | undefined;
440
+ args?: string[] | undefined;
441
+ env?: Record<string, string> | undefined;
442
+ headers?: Record<string, string> | undefined;
443
+ enabled?: boolean | undefined;
444
+ startupTimeoutSec?: number | undefined;
445
+ }>;
446
+ export type McpServer = z.infer<typeof McpServerSchema>;
447
+ export declare const HookEventSchema: z.ZodEnum<["PreToolUse", "PostToolUse", "PostToolUseFailure", "UserPromptSubmit", "SessionStart", "SessionEnd", "Stop", "StopFailure", "Notification", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact"]>;
448
+ export declare const HookActionSchema: z.ZodObject<{
449
+ type: z.ZodDefault<z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>>;
450
+ command: z.ZodOptional<z.ZodString>;
451
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
452
+ url: z.ZodOptional<z.ZodString>;
453
+ server: z.ZodOptional<z.ZodString>;
454
+ prompt: z.ZodOptional<z.ZodString>;
455
+ timeout: z.ZodOptional<z.ZodNumber>;
456
+ shell: z.ZodOptional<z.ZodString>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ type: "agent" | "http" | "command" | "mcp_tool" | "prompt";
459
+ url?: string | undefined;
460
+ command?: string | undefined;
461
+ args?: string[] | undefined;
462
+ prompt?: string | undefined;
463
+ server?: string | undefined;
464
+ timeout?: number | undefined;
465
+ shell?: string | undefined;
466
+ }, {
467
+ type?: "agent" | "http" | "command" | "mcp_tool" | "prompt" | undefined;
468
+ url?: string | undefined;
469
+ command?: string | undefined;
470
+ args?: string[] | undefined;
471
+ prompt?: string | undefined;
472
+ server?: string | undefined;
473
+ timeout?: number | undefined;
474
+ shell?: string | undefined;
475
+ }>;
476
+ export declare const HookSchema: z.ZodObject<{
477
+ event: z.ZodEnum<["PreToolUse", "PostToolUse", "PostToolUseFailure", "UserPromptSubmit", "SessionStart", "SessionEnd", "Stop", "StopFailure", "Notification", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact"]>;
478
+ matcher: z.ZodOptional<z.ZodString>;
479
+ actions: z.ZodArray<z.ZodObject<{
480
+ type: z.ZodDefault<z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>>;
481
+ command: z.ZodOptional<z.ZodString>;
482
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
483
+ url: z.ZodOptional<z.ZodString>;
484
+ server: z.ZodOptional<z.ZodString>;
485
+ prompt: z.ZodOptional<z.ZodString>;
486
+ timeout: z.ZodOptional<z.ZodNumber>;
487
+ shell: z.ZodOptional<z.ZodString>;
488
+ }, "strip", z.ZodTypeAny, {
489
+ type: "agent" | "http" | "command" | "mcp_tool" | "prompt";
490
+ url?: string | undefined;
491
+ command?: string | undefined;
492
+ args?: string[] | undefined;
493
+ prompt?: string | undefined;
494
+ server?: string | undefined;
495
+ timeout?: number | undefined;
496
+ shell?: string | undefined;
497
+ }, {
498
+ type?: "agent" | "http" | "command" | "mcp_tool" | "prompt" | undefined;
499
+ url?: string | undefined;
500
+ command?: string | undefined;
501
+ args?: string[] | undefined;
502
+ prompt?: string | undefined;
503
+ server?: string | undefined;
504
+ timeout?: number | undefined;
505
+ shell?: string | undefined;
506
+ }>, "many">;
507
+ description: z.ZodOptional<z.ZodString>;
508
+ provenance: z.ZodOptional<z.ZodObject<{
509
+ sourceTool: z.ZodString;
510
+ sourcePath: z.ZodOptional<z.ZodString>;
511
+ sourceKey: z.ZodOptional<z.ZodString>;
512
+ capturedAt: z.ZodOptional<z.ZodString>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ sourceTool: string;
515
+ sourcePath?: string | undefined;
516
+ sourceKey?: string | undefined;
517
+ capturedAt?: string | undefined;
518
+ }, {
519
+ sourceTool: string;
520
+ sourcePath?: string | undefined;
521
+ sourceKey?: string | undefined;
522
+ capturedAt?: string | undefined;
523
+ }>>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ event: "PreToolUse" | "PostToolUse" | "PostToolUseFailure" | "UserPromptSubmit" | "SessionStart" | "SessionEnd" | "Stop" | "StopFailure" | "Notification" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PostCompact";
526
+ actions: {
527
+ type: "agent" | "http" | "command" | "mcp_tool" | "prompt";
528
+ url?: string | undefined;
529
+ command?: string | undefined;
530
+ args?: string[] | undefined;
531
+ prompt?: string | undefined;
532
+ server?: string | undefined;
533
+ timeout?: number | undefined;
534
+ shell?: string | undefined;
535
+ }[];
536
+ provenance?: {
537
+ sourceTool: string;
538
+ sourcePath?: string | undefined;
539
+ sourceKey?: string | undefined;
540
+ capturedAt?: string | undefined;
541
+ } | undefined;
542
+ description?: string | undefined;
543
+ matcher?: string | undefined;
544
+ }, {
545
+ event: "PreToolUse" | "PostToolUse" | "PostToolUseFailure" | "UserPromptSubmit" | "SessionStart" | "SessionEnd" | "Stop" | "StopFailure" | "Notification" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PostCompact";
546
+ actions: {
547
+ type?: "agent" | "http" | "command" | "mcp_tool" | "prompt" | undefined;
548
+ url?: string | undefined;
549
+ command?: string | undefined;
550
+ args?: string[] | undefined;
551
+ prompt?: string | undefined;
552
+ server?: string | undefined;
553
+ timeout?: number | undefined;
554
+ shell?: string | undefined;
555
+ }[];
556
+ provenance?: {
557
+ sourceTool: string;
558
+ sourcePath?: string | undefined;
559
+ sourceKey?: string | undefined;
560
+ capturedAt?: string | undefined;
561
+ } | undefined;
562
+ description?: string | undefined;
563
+ matcher?: string | undefined;
564
+ }>;
565
+ export type Hook = z.infer<typeof HookSchema>;
566
+ export declare const PermissionSchema: z.ZodObject<{
567
+ allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
568
+ deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
569
+ ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
570
+ defaultMode: z.ZodOptional<z.ZodEnum<["default", "auto", "acceptEdits", "plan"]>>;
571
+ additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
572
+ }, "strip", z.ZodTypeAny, {
573
+ allow: string[];
574
+ deny: string[];
575
+ ask: string[];
576
+ defaultMode?: "auto" | "default" | "acceptEdits" | "plan" | undefined;
577
+ additionalDirectories?: string[] | undefined;
578
+ }, {
579
+ allow?: string[] | undefined;
580
+ deny?: string[] | undefined;
581
+ ask?: string[] | undefined;
582
+ defaultMode?: "auto" | "default" | "acceptEdits" | "plan" | undefined;
583
+ additionalDirectories?: string[] | undefined;
584
+ }>;
585
+ export type Permission = z.infer<typeof PermissionSchema>;
586
+ export declare const ProviderConfigSchema: z.ZodObject<{
587
+ npm: z.ZodOptional<z.ZodString>;
588
+ baseUrl: z.ZodOptional<z.ZodString>;
589
+ envKey: z.ZodOptional<z.ZodString>;
590
+ wireApi: z.ZodOptional<z.ZodEnum<["responses", "chat"]>>;
591
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ options?: Record<string, unknown> | undefined;
594
+ npm?: string | undefined;
595
+ baseUrl?: string | undefined;
596
+ envKey?: string | undefined;
597
+ wireApi?: "responses" | "chat" | undefined;
598
+ }, {
599
+ options?: Record<string, unknown> | undefined;
600
+ npm?: string | undefined;
601
+ baseUrl?: string | undefined;
602
+ envKey?: string | undefined;
603
+ wireApi?: "responses" | "chat" | undefined;
604
+ }>;
605
+ export declare const ModelConfigSchema: z.ZodObject<{
606
+ defaultModel: z.ZodOptional<z.ZodString>;
607
+ smallModel: z.ZodOptional<z.ZodString>;
608
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high", "xhigh"]>>;
609
+ providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
610
+ npm: z.ZodOptional<z.ZodString>;
611
+ baseUrl: z.ZodOptional<z.ZodString>;
612
+ envKey: z.ZodOptional<z.ZodString>;
613
+ wireApi: z.ZodOptional<z.ZodEnum<["responses", "chat"]>>;
614
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ options?: Record<string, unknown> | undefined;
617
+ npm?: string | undefined;
618
+ baseUrl?: string | undefined;
619
+ envKey?: string | undefined;
620
+ wireApi?: "responses" | "chat" | undefined;
621
+ }, {
622
+ options?: Record<string, unknown> | undefined;
623
+ npm?: string | undefined;
624
+ baseUrl?: string | undefined;
625
+ envKey?: string | undefined;
626
+ wireApi?: "responses" | "chat" | undefined;
627
+ }>>>;
628
+ }, "strip", z.ZodTypeAny, {
629
+ defaultModel?: string | undefined;
630
+ smallModel?: string | undefined;
631
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
632
+ providers?: Record<string, {
633
+ options?: Record<string, unknown> | undefined;
634
+ npm?: string | undefined;
635
+ baseUrl?: string | undefined;
636
+ envKey?: string | undefined;
637
+ wireApi?: "responses" | "chat" | undefined;
638
+ }> | undefined;
639
+ }, {
640
+ defaultModel?: string | undefined;
641
+ smallModel?: string | undefined;
642
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
643
+ providers?: Record<string, {
644
+ options?: Record<string, unknown> | undefined;
645
+ npm?: string | undefined;
646
+ baseUrl?: string | undefined;
647
+ envKey?: string | undefined;
648
+ wireApi?: "responses" | "chat" | undefined;
649
+ }> | undefined;
650
+ }>;
651
+ export type ModelConfig = z.infer<typeof ModelConfigSchema>;
652
+ export declare const ProfileManifestSchema: z.ZodObject<{
653
+ schema: z.ZodLiteral<"skein-profile/1">;
654
+ createdAt: z.ZodString;
655
+ sourceTool: z.ZodString;
656
+ sourceVersion: z.ZodOptional<z.ZodString>;
657
+ identity: z.ZodOptional<z.ZodObject<{
658
+ name: z.ZodOptional<z.ZodString>;
659
+ email: z.ZodOptional<z.ZodString>;
660
+ pronouns: z.ZodOptional<z.ZodString>;
661
+ timezone: z.ZodOptional<z.ZodString>;
662
+ language: z.ZodOptional<z.ZodString>;
663
+ bio: z.ZodOptional<z.ZodString>;
664
+ preferences: z.ZodOptional<z.ZodString>;
665
+ provenance: z.ZodOptional<z.ZodObject<{
666
+ sourceTool: z.ZodString;
667
+ sourcePath: z.ZodOptional<z.ZodString>;
668
+ sourceKey: z.ZodOptional<z.ZodString>;
669
+ capturedAt: z.ZodOptional<z.ZodString>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ sourceTool: string;
672
+ sourcePath?: string | undefined;
673
+ sourceKey?: string | undefined;
674
+ capturedAt?: string | undefined;
675
+ }, {
676
+ sourceTool: string;
677
+ sourcePath?: string | undefined;
678
+ sourceKey?: string | undefined;
679
+ capturedAt?: string | undefined;
680
+ }>>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ name?: string | undefined;
683
+ email?: string | undefined;
684
+ pronouns?: string | undefined;
685
+ timezone?: string | undefined;
686
+ language?: string | undefined;
687
+ bio?: string | undefined;
688
+ preferences?: string | undefined;
689
+ provenance?: {
690
+ sourceTool: string;
691
+ sourcePath?: string | undefined;
692
+ sourceKey?: string | undefined;
693
+ capturedAt?: string | undefined;
694
+ } | undefined;
695
+ }, {
696
+ name?: string | undefined;
697
+ email?: string | undefined;
698
+ pronouns?: string | undefined;
699
+ timezone?: string | undefined;
700
+ language?: string | undefined;
701
+ bio?: string | undefined;
702
+ preferences?: string | undefined;
703
+ provenance?: {
704
+ sourceTool: string;
705
+ sourcePath?: string | undefined;
706
+ sourceKey?: string | undefined;
707
+ capturedAt?: string | undefined;
708
+ } | undefined;
709
+ }>>;
710
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
711
+ id: z.ZodString;
712
+ scope: z.ZodEnum<["global", "project"]>;
713
+ activation: z.ZodDefault<z.ZodEnum<["always", "auto", "agent", "manual"]>>;
714
+ description: z.ZodOptional<z.ZodString>;
715
+ globs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
716
+ body: z.ZodString;
717
+ sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
718
+ provenance: z.ZodOptional<z.ZodObject<{
719
+ sourceTool: z.ZodString;
720
+ sourcePath: z.ZodOptional<z.ZodString>;
721
+ sourceKey: z.ZodOptional<z.ZodString>;
722
+ capturedAt: z.ZodOptional<z.ZodString>;
723
+ }, "strip", z.ZodTypeAny, {
724
+ sourceTool: string;
725
+ sourcePath?: string | undefined;
726
+ sourceKey?: string | undefined;
727
+ capturedAt?: string | undefined;
728
+ }, {
729
+ sourceTool: string;
730
+ sourcePath?: string | undefined;
731
+ sourceKey?: string | undefined;
732
+ capturedAt?: string | undefined;
733
+ }>>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ id: string;
736
+ scope: "global" | "project";
737
+ activation: "always" | "auto" | "agent" | "manual";
738
+ body: string;
739
+ provenance?: {
740
+ sourceTool: string;
741
+ sourcePath?: string | undefined;
742
+ sourceKey?: string | undefined;
743
+ capturedAt?: string | undefined;
744
+ } | undefined;
745
+ description?: string | undefined;
746
+ globs?: string[] | undefined;
747
+ sources?: string[] | undefined;
748
+ }, {
749
+ id: string;
750
+ scope: "global" | "project";
751
+ body: string;
752
+ provenance?: {
753
+ sourceTool: string;
754
+ sourcePath?: string | undefined;
755
+ sourceKey?: string | undefined;
756
+ capturedAt?: string | undefined;
757
+ } | undefined;
758
+ activation?: "always" | "auto" | "agent" | "manual" | undefined;
759
+ description?: string | undefined;
760
+ globs?: string[] | undefined;
761
+ sources?: string[] | undefined;
762
+ }>, "many">>;
763
+ agents: z.ZodDefault<z.ZodArray<z.ZodObject<{
764
+ id: z.ZodString;
765
+ name: z.ZodString;
766
+ description: z.ZodString;
767
+ role: z.ZodDefault<z.ZodEnum<["primary", "subagent", "both"]>>;
768
+ model: z.ZodOptional<z.ZodString>;
769
+ temperature: z.ZodOptional<z.ZodNumber>;
770
+ systemPrompt: z.ZodString;
771
+ tools: z.ZodOptional<z.ZodObject<{
772
+ allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
773
+ deny: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
774
+ ask: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
775
+ }, "strip", z.ZodTypeAny, {
776
+ allow?: string[] | undefined;
777
+ deny?: string[] | undefined;
778
+ ask?: string[] | undefined;
779
+ }, {
780
+ allow?: string[] | undefined;
781
+ deny?: string[] | undefined;
782
+ ask?: string[] | undefined;
783
+ }>>;
784
+ isolation: z.ZodOptional<z.ZodEnum<["none", "worktree"]>>;
785
+ color: z.ZodOptional<z.ZodString>;
786
+ provenance: z.ZodOptional<z.ZodObject<{
787
+ sourceTool: z.ZodString;
788
+ sourcePath: z.ZodOptional<z.ZodString>;
789
+ sourceKey: z.ZodOptional<z.ZodString>;
790
+ capturedAt: z.ZodOptional<z.ZodString>;
791
+ }, "strip", z.ZodTypeAny, {
792
+ sourceTool: string;
793
+ sourcePath?: string | undefined;
794
+ sourceKey?: string | undefined;
795
+ capturedAt?: string | undefined;
796
+ }, {
797
+ sourceTool: string;
798
+ sourcePath?: string | undefined;
799
+ sourceKey?: string | undefined;
800
+ capturedAt?: string | undefined;
801
+ }>>;
802
+ }, "strip", z.ZodTypeAny, {
803
+ name: string;
804
+ id: string;
805
+ description: string;
806
+ role: "primary" | "subagent" | "both";
807
+ systemPrompt: string;
808
+ provenance?: {
809
+ sourceTool: string;
810
+ sourcePath?: string | undefined;
811
+ sourceKey?: string | undefined;
812
+ capturedAt?: string | undefined;
813
+ } | undefined;
814
+ model?: string | undefined;
815
+ temperature?: number | undefined;
816
+ tools?: {
817
+ allow?: string[] | undefined;
818
+ deny?: string[] | undefined;
819
+ ask?: string[] | undefined;
820
+ } | undefined;
821
+ isolation?: "none" | "worktree" | undefined;
822
+ color?: string | undefined;
823
+ }, {
824
+ name: string;
825
+ id: string;
826
+ description: string;
827
+ systemPrompt: string;
828
+ provenance?: {
829
+ sourceTool: string;
830
+ sourcePath?: string | undefined;
831
+ sourceKey?: string | undefined;
832
+ capturedAt?: string | undefined;
833
+ } | undefined;
834
+ role?: "primary" | "subagent" | "both" | undefined;
835
+ model?: string | undefined;
836
+ temperature?: number | undefined;
837
+ tools?: {
838
+ allow?: string[] | undefined;
839
+ deny?: string[] | undefined;
840
+ ask?: string[] | undefined;
841
+ } | undefined;
842
+ isolation?: "none" | "worktree" | undefined;
843
+ color?: string | undefined;
844
+ }>, "many">>;
845
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
846
+ id: z.ZodString;
847
+ name: z.ZodString;
848
+ description: z.ZodOptional<z.ZodString>;
849
+ argumentHint: z.ZodOptional<z.ZodString>;
850
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
851
+ model: z.ZodOptional<z.ZodString>;
852
+ body: z.ZodString;
853
+ provenance: z.ZodOptional<z.ZodObject<{
854
+ sourceTool: z.ZodString;
855
+ sourcePath: z.ZodOptional<z.ZodString>;
856
+ sourceKey: z.ZodOptional<z.ZodString>;
857
+ capturedAt: z.ZodOptional<z.ZodString>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ sourceTool: string;
860
+ sourcePath?: string | undefined;
861
+ sourceKey?: string | undefined;
862
+ capturedAt?: string | undefined;
863
+ }, {
864
+ sourceTool: string;
865
+ sourcePath?: string | undefined;
866
+ sourceKey?: string | undefined;
867
+ capturedAt?: string | undefined;
868
+ }>>;
869
+ }, "strip", z.ZodTypeAny, {
870
+ name: string;
871
+ id: string;
872
+ body: string;
873
+ provenance?: {
874
+ sourceTool: string;
875
+ sourcePath?: string | undefined;
876
+ sourceKey?: string | undefined;
877
+ capturedAt?: string | undefined;
878
+ } | undefined;
879
+ description?: string | undefined;
880
+ model?: string | undefined;
881
+ argumentHint?: string | undefined;
882
+ allowedTools?: string[] | undefined;
883
+ }, {
884
+ name: string;
885
+ id: string;
886
+ body: string;
887
+ provenance?: {
888
+ sourceTool: string;
889
+ sourcePath?: string | undefined;
890
+ sourceKey?: string | undefined;
891
+ capturedAt?: string | undefined;
892
+ } | undefined;
893
+ description?: string | undefined;
894
+ model?: string | undefined;
895
+ argumentHint?: string | undefined;
896
+ allowedTools?: string[] | undefined;
897
+ }>, "many">>;
898
+ skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
899
+ id: z.ZodString;
900
+ name: z.ZodString;
901
+ description: z.ZodString;
902
+ whenToUse: z.ZodOptional<z.ZodString>;
903
+ trigger: z.ZodDefault<z.ZodEnum<["model", "user", "both"]>>;
904
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
905
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
906
+ model: z.ZodOptional<z.ZodString>;
907
+ argumentHint: z.ZodOptional<z.ZodString>;
908
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
909
+ body: z.ZodString;
910
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
911
+ ui: z.ZodOptional<z.ZodObject<{
912
+ displayName: z.ZodOptional<z.ZodString>;
913
+ shortDescription: z.ZodOptional<z.ZodString>;
914
+ iconSmall: z.ZodOptional<z.ZodString>;
915
+ iconLarge: z.ZodOptional<z.ZodString>;
916
+ brandColor: z.ZodOptional<z.ZodString>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ displayName?: string | undefined;
919
+ shortDescription?: string | undefined;
920
+ iconSmall?: string | undefined;
921
+ iconLarge?: string | undefined;
922
+ brandColor?: string | undefined;
923
+ }, {
924
+ displayName?: string | undefined;
925
+ shortDescription?: string | undefined;
926
+ iconSmall?: string | undefined;
927
+ iconLarge?: string | undefined;
928
+ brandColor?: string | undefined;
929
+ }>>;
930
+ provenance: z.ZodOptional<z.ZodObject<{
931
+ sourceTool: z.ZodString;
932
+ sourcePath: z.ZodOptional<z.ZodString>;
933
+ sourceKey: z.ZodOptional<z.ZodString>;
934
+ capturedAt: z.ZodOptional<z.ZodString>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ sourceTool: string;
937
+ sourcePath?: string | undefined;
938
+ sourceKey?: string | undefined;
939
+ capturedAt?: string | undefined;
940
+ }, {
941
+ sourceTool: string;
942
+ sourcePath?: string | undefined;
943
+ sourceKey?: string | undefined;
944
+ capturedAt?: string | undefined;
945
+ }>>;
946
+ }, "strip", z.ZodTypeAny, {
947
+ name: string;
948
+ id: string;
949
+ description: string;
950
+ body: string;
951
+ trigger: "both" | "model" | "user";
952
+ provenance?: {
953
+ sourceTool: string;
954
+ sourcePath?: string | undefined;
955
+ sourceKey?: string | undefined;
956
+ capturedAt?: string | undefined;
957
+ } | undefined;
958
+ model?: string | undefined;
959
+ argumentHint?: string | undefined;
960
+ allowedTools?: string[] | undefined;
961
+ whenToUse?: string | undefined;
962
+ disallowedTools?: string[] | undefined;
963
+ paths?: string[] | undefined;
964
+ files?: Record<string, string> | undefined;
965
+ ui?: {
966
+ displayName?: string | undefined;
967
+ shortDescription?: string | undefined;
968
+ iconSmall?: string | undefined;
969
+ iconLarge?: string | undefined;
970
+ brandColor?: string | undefined;
971
+ } | undefined;
972
+ }, {
973
+ name: string;
974
+ id: string;
975
+ description: string;
976
+ body: string;
977
+ provenance?: {
978
+ sourceTool: string;
979
+ sourcePath?: string | undefined;
980
+ sourceKey?: string | undefined;
981
+ capturedAt?: string | undefined;
982
+ } | undefined;
983
+ model?: string | undefined;
984
+ argumentHint?: string | undefined;
985
+ allowedTools?: string[] | undefined;
986
+ whenToUse?: string | undefined;
987
+ trigger?: "both" | "model" | "user" | undefined;
988
+ disallowedTools?: string[] | undefined;
989
+ paths?: string[] | undefined;
990
+ files?: Record<string, string> | undefined;
991
+ ui?: {
992
+ displayName?: string | undefined;
993
+ shortDescription?: string | undefined;
994
+ iconSmall?: string | undefined;
995
+ iconLarge?: string | undefined;
996
+ brandColor?: string | undefined;
997
+ } | undefined;
998
+ }>, "many">>;
999
+ mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
1000
+ id: z.ZodString;
1001
+ scope: z.ZodDefault<z.ZodEnum<["global", "project"]>>;
1002
+ transport: z.ZodEnum<["stdio", "http", "sse", "ws"]>;
1003
+ command: z.ZodOptional<z.ZodString>;
1004
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1005
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1006
+ url: z.ZodOptional<z.ZodString>;
1007
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1008
+ enabled: z.ZodDefault<z.ZodBoolean>;
1009
+ startupTimeoutSec: z.ZodOptional<z.ZodNumber>;
1010
+ provenance: z.ZodOptional<z.ZodObject<{
1011
+ sourceTool: z.ZodString;
1012
+ sourcePath: z.ZodOptional<z.ZodString>;
1013
+ sourceKey: z.ZodOptional<z.ZodString>;
1014
+ capturedAt: z.ZodOptional<z.ZodString>;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ sourceTool: string;
1017
+ sourcePath?: string | undefined;
1018
+ sourceKey?: string | undefined;
1019
+ capturedAt?: string | undefined;
1020
+ }, {
1021
+ sourceTool: string;
1022
+ sourcePath?: string | undefined;
1023
+ sourceKey?: string | undefined;
1024
+ capturedAt?: string | undefined;
1025
+ }>>;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ id: string;
1028
+ scope: "global" | "project";
1029
+ transport: "stdio" | "http" | "sse" | "ws";
1030
+ enabled: boolean;
1031
+ provenance?: {
1032
+ sourceTool: string;
1033
+ sourcePath?: string | undefined;
1034
+ sourceKey?: string | undefined;
1035
+ capturedAt?: string | undefined;
1036
+ } | undefined;
1037
+ url?: string | undefined;
1038
+ command?: string | undefined;
1039
+ args?: string[] | undefined;
1040
+ env?: Record<string, string> | undefined;
1041
+ headers?: Record<string, string> | undefined;
1042
+ startupTimeoutSec?: number | undefined;
1043
+ }, {
1044
+ id: string;
1045
+ transport: "stdio" | "http" | "sse" | "ws";
1046
+ provenance?: {
1047
+ sourceTool: string;
1048
+ sourcePath?: string | undefined;
1049
+ sourceKey?: string | undefined;
1050
+ capturedAt?: string | undefined;
1051
+ } | undefined;
1052
+ scope?: "global" | "project" | undefined;
1053
+ url?: string | undefined;
1054
+ command?: string | undefined;
1055
+ args?: string[] | undefined;
1056
+ env?: Record<string, string> | undefined;
1057
+ headers?: Record<string, string> | undefined;
1058
+ enabled?: boolean | undefined;
1059
+ startupTimeoutSec?: number | undefined;
1060
+ }>, "many">>;
1061
+ hooks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1062
+ event: z.ZodEnum<["PreToolUse", "PostToolUse", "PostToolUseFailure", "UserPromptSubmit", "SessionStart", "SessionEnd", "Stop", "StopFailure", "Notification", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact"]>;
1063
+ matcher: z.ZodOptional<z.ZodString>;
1064
+ actions: z.ZodArray<z.ZodObject<{
1065
+ type: z.ZodDefault<z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>>;
1066
+ command: z.ZodOptional<z.ZodString>;
1067
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1068
+ url: z.ZodOptional<z.ZodString>;
1069
+ server: z.ZodOptional<z.ZodString>;
1070
+ prompt: z.ZodOptional<z.ZodString>;
1071
+ timeout: z.ZodOptional<z.ZodNumber>;
1072
+ shell: z.ZodOptional<z.ZodString>;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ type: "agent" | "http" | "command" | "mcp_tool" | "prompt";
1075
+ url?: string | undefined;
1076
+ command?: string | undefined;
1077
+ args?: string[] | undefined;
1078
+ prompt?: string | undefined;
1079
+ server?: string | undefined;
1080
+ timeout?: number | undefined;
1081
+ shell?: string | undefined;
1082
+ }, {
1083
+ type?: "agent" | "http" | "command" | "mcp_tool" | "prompt" | undefined;
1084
+ url?: string | undefined;
1085
+ command?: string | undefined;
1086
+ args?: string[] | undefined;
1087
+ prompt?: string | undefined;
1088
+ server?: string | undefined;
1089
+ timeout?: number | undefined;
1090
+ shell?: string | undefined;
1091
+ }>, "many">;
1092
+ description: z.ZodOptional<z.ZodString>;
1093
+ provenance: z.ZodOptional<z.ZodObject<{
1094
+ sourceTool: z.ZodString;
1095
+ sourcePath: z.ZodOptional<z.ZodString>;
1096
+ sourceKey: z.ZodOptional<z.ZodString>;
1097
+ capturedAt: z.ZodOptional<z.ZodString>;
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ sourceTool: string;
1100
+ sourcePath?: string | undefined;
1101
+ sourceKey?: string | undefined;
1102
+ capturedAt?: string | undefined;
1103
+ }, {
1104
+ sourceTool: string;
1105
+ sourcePath?: string | undefined;
1106
+ sourceKey?: string | undefined;
1107
+ capturedAt?: string | undefined;
1108
+ }>>;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ event: "PreToolUse" | "PostToolUse" | "PostToolUseFailure" | "UserPromptSubmit" | "SessionStart" | "SessionEnd" | "Stop" | "StopFailure" | "Notification" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PostCompact";
1111
+ actions: {
1112
+ type: "agent" | "http" | "command" | "mcp_tool" | "prompt";
1113
+ url?: string | undefined;
1114
+ command?: string | undefined;
1115
+ args?: string[] | undefined;
1116
+ prompt?: string | undefined;
1117
+ server?: string | undefined;
1118
+ timeout?: number | undefined;
1119
+ shell?: string | undefined;
1120
+ }[];
1121
+ provenance?: {
1122
+ sourceTool: string;
1123
+ sourcePath?: string | undefined;
1124
+ sourceKey?: string | undefined;
1125
+ capturedAt?: string | undefined;
1126
+ } | undefined;
1127
+ description?: string | undefined;
1128
+ matcher?: string | undefined;
1129
+ }, {
1130
+ event: "PreToolUse" | "PostToolUse" | "PostToolUseFailure" | "UserPromptSubmit" | "SessionStart" | "SessionEnd" | "Stop" | "StopFailure" | "Notification" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PostCompact";
1131
+ actions: {
1132
+ type?: "agent" | "http" | "command" | "mcp_tool" | "prompt" | undefined;
1133
+ url?: string | undefined;
1134
+ command?: string | undefined;
1135
+ args?: string[] | undefined;
1136
+ prompt?: string | undefined;
1137
+ server?: string | undefined;
1138
+ timeout?: number | undefined;
1139
+ shell?: string | undefined;
1140
+ }[];
1141
+ provenance?: {
1142
+ sourceTool: string;
1143
+ sourcePath?: string | undefined;
1144
+ sourceKey?: string | undefined;
1145
+ capturedAt?: string | undefined;
1146
+ } | undefined;
1147
+ description?: string | undefined;
1148
+ matcher?: string | undefined;
1149
+ }>, "many">>;
1150
+ permissions: z.ZodOptional<z.ZodObject<{
1151
+ allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1152
+ deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1153
+ ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1154
+ defaultMode: z.ZodOptional<z.ZodEnum<["default", "auto", "acceptEdits", "plan"]>>;
1155
+ additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ allow: string[];
1158
+ deny: string[];
1159
+ ask: string[];
1160
+ defaultMode?: "auto" | "default" | "acceptEdits" | "plan" | undefined;
1161
+ additionalDirectories?: string[] | undefined;
1162
+ }, {
1163
+ allow?: string[] | undefined;
1164
+ deny?: string[] | undefined;
1165
+ ask?: string[] | undefined;
1166
+ defaultMode?: "auto" | "default" | "acceptEdits" | "plan" | undefined;
1167
+ additionalDirectories?: string[] | undefined;
1168
+ }>>;
1169
+ models: z.ZodOptional<z.ZodObject<{
1170
+ defaultModel: z.ZodOptional<z.ZodString>;
1171
+ smallModel: z.ZodOptional<z.ZodString>;
1172
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high", "xhigh"]>>;
1173
+ providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1174
+ npm: z.ZodOptional<z.ZodString>;
1175
+ baseUrl: z.ZodOptional<z.ZodString>;
1176
+ envKey: z.ZodOptional<z.ZodString>;
1177
+ wireApi: z.ZodOptional<z.ZodEnum<["responses", "chat"]>>;
1178
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1179
+ }, "strip", z.ZodTypeAny, {
1180
+ options?: Record<string, unknown> | undefined;
1181
+ npm?: string | undefined;
1182
+ baseUrl?: string | undefined;
1183
+ envKey?: string | undefined;
1184
+ wireApi?: "responses" | "chat" | undefined;
1185
+ }, {
1186
+ options?: Record<string, unknown> | undefined;
1187
+ npm?: string | undefined;
1188
+ baseUrl?: string | undefined;
1189
+ envKey?: string | undefined;
1190
+ wireApi?: "responses" | "chat" | undefined;
1191
+ }>>>;
1192
+ }, "strip", z.ZodTypeAny, {
1193
+ defaultModel?: string | undefined;
1194
+ smallModel?: string | undefined;
1195
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1196
+ providers?: Record<string, {
1197
+ options?: Record<string, unknown> | undefined;
1198
+ npm?: string | undefined;
1199
+ baseUrl?: string | undefined;
1200
+ envKey?: string | undefined;
1201
+ wireApi?: "responses" | "chat" | undefined;
1202
+ }> | undefined;
1203
+ }, {
1204
+ defaultModel?: string | undefined;
1205
+ smallModel?: string | undefined;
1206
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1207
+ providers?: Record<string, {
1208
+ options?: Record<string, unknown> | undefined;
1209
+ npm?: string | undefined;
1210
+ baseUrl?: string | undefined;
1211
+ envKey?: string | undefined;
1212
+ wireApi?: "responses" | "chat" | undefined;
1213
+ }> | undefined;
1214
+ }>>;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ sourceTool: string;
1217
+ schema: "skein-profile/1";
1218
+ createdAt: string;
1219
+ rules: {
1220
+ id: string;
1221
+ scope: "global" | "project";
1222
+ activation: "always" | "auto" | "agent" | "manual";
1223
+ body: string;
1224
+ provenance?: {
1225
+ sourceTool: string;
1226
+ sourcePath?: string | undefined;
1227
+ sourceKey?: string | undefined;
1228
+ capturedAt?: string | undefined;
1229
+ } | undefined;
1230
+ description?: string | undefined;
1231
+ globs?: string[] | undefined;
1232
+ sources?: string[] | undefined;
1233
+ }[];
1234
+ agents: {
1235
+ name: string;
1236
+ id: string;
1237
+ description: string;
1238
+ role: "primary" | "subagent" | "both";
1239
+ systemPrompt: string;
1240
+ provenance?: {
1241
+ sourceTool: string;
1242
+ sourcePath?: string | undefined;
1243
+ sourceKey?: string | undefined;
1244
+ capturedAt?: string | undefined;
1245
+ } | undefined;
1246
+ model?: string | undefined;
1247
+ temperature?: number | undefined;
1248
+ tools?: {
1249
+ allow?: string[] | undefined;
1250
+ deny?: string[] | undefined;
1251
+ ask?: string[] | undefined;
1252
+ } | undefined;
1253
+ isolation?: "none" | "worktree" | undefined;
1254
+ color?: string | undefined;
1255
+ }[];
1256
+ commands: {
1257
+ name: string;
1258
+ id: string;
1259
+ body: string;
1260
+ provenance?: {
1261
+ sourceTool: string;
1262
+ sourcePath?: string | undefined;
1263
+ sourceKey?: string | undefined;
1264
+ capturedAt?: string | undefined;
1265
+ } | undefined;
1266
+ description?: string | undefined;
1267
+ model?: string | undefined;
1268
+ argumentHint?: string | undefined;
1269
+ allowedTools?: string[] | undefined;
1270
+ }[];
1271
+ skills: {
1272
+ name: string;
1273
+ id: string;
1274
+ description: string;
1275
+ body: string;
1276
+ trigger: "both" | "model" | "user";
1277
+ provenance?: {
1278
+ sourceTool: string;
1279
+ sourcePath?: string | undefined;
1280
+ sourceKey?: string | undefined;
1281
+ capturedAt?: string | undefined;
1282
+ } | undefined;
1283
+ model?: string | undefined;
1284
+ argumentHint?: string | undefined;
1285
+ allowedTools?: string[] | undefined;
1286
+ whenToUse?: string | undefined;
1287
+ disallowedTools?: string[] | undefined;
1288
+ paths?: string[] | undefined;
1289
+ files?: Record<string, string> | undefined;
1290
+ ui?: {
1291
+ displayName?: string | undefined;
1292
+ shortDescription?: string | undefined;
1293
+ iconSmall?: string | undefined;
1294
+ iconLarge?: string | undefined;
1295
+ brandColor?: string | undefined;
1296
+ } | undefined;
1297
+ }[];
1298
+ mcpServers: {
1299
+ id: string;
1300
+ scope: "global" | "project";
1301
+ transport: "stdio" | "http" | "sse" | "ws";
1302
+ enabled: boolean;
1303
+ provenance?: {
1304
+ sourceTool: string;
1305
+ sourcePath?: string | undefined;
1306
+ sourceKey?: string | undefined;
1307
+ capturedAt?: string | undefined;
1308
+ } | undefined;
1309
+ url?: string | undefined;
1310
+ command?: string | undefined;
1311
+ args?: string[] | undefined;
1312
+ env?: Record<string, string> | undefined;
1313
+ headers?: Record<string, string> | undefined;
1314
+ startupTimeoutSec?: number | undefined;
1315
+ }[];
1316
+ hooks: {
1317
+ event: "PreToolUse" | "PostToolUse" | "PostToolUseFailure" | "UserPromptSubmit" | "SessionStart" | "SessionEnd" | "Stop" | "StopFailure" | "Notification" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PostCompact";
1318
+ actions: {
1319
+ type: "agent" | "http" | "command" | "mcp_tool" | "prompt";
1320
+ url?: string | undefined;
1321
+ command?: string | undefined;
1322
+ args?: string[] | undefined;
1323
+ prompt?: string | undefined;
1324
+ server?: string | undefined;
1325
+ timeout?: number | undefined;
1326
+ shell?: string | undefined;
1327
+ }[];
1328
+ provenance?: {
1329
+ sourceTool: string;
1330
+ sourcePath?: string | undefined;
1331
+ sourceKey?: string | undefined;
1332
+ capturedAt?: string | undefined;
1333
+ } | undefined;
1334
+ description?: string | undefined;
1335
+ matcher?: string | undefined;
1336
+ }[];
1337
+ sourceVersion?: string | undefined;
1338
+ identity?: {
1339
+ name?: string | undefined;
1340
+ email?: string | undefined;
1341
+ pronouns?: string | undefined;
1342
+ timezone?: string | undefined;
1343
+ language?: string | undefined;
1344
+ bio?: string | undefined;
1345
+ preferences?: string | undefined;
1346
+ provenance?: {
1347
+ sourceTool: string;
1348
+ sourcePath?: string | undefined;
1349
+ sourceKey?: string | undefined;
1350
+ capturedAt?: string | undefined;
1351
+ } | undefined;
1352
+ } | undefined;
1353
+ permissions?: {
1354
+ allow: string[];
1355
+ deny: string[];
1356
+ ask: string[];
1357
+ defaultMode?: "auto" | "default" | "acceptEdits" | "plan" | undefined;
1358
+ additionalDirectories?: string[] | undefined;
1359
+ } | undefined;
1360
+ models?: {
1361
+ defaultModel?: string | undefined;
1362
+ smallModel?: string | undefined;
1363
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1364
+ providers?: Record<string, {
1365
+ options?: Record<string, unknown> | undefined;
1366
+ npm?: string | undefined;
1367
+ baseUrl?: string | undefined;
1368
+ envKey?: string | undefined;
1369
+ wireApi?: "responses" | "chat" | undefined;
1370
+ }> | undefined;
1371
+ } | undefined;
1372
+ }, {
1373
+ sourceTool: string;
1374
+ schema: "skein-profile/1";
1375
+ createdAt: string;
1376
+ sourceVersion?: string | undefined;
1377
+ identity?: {
1378
+ name?: string | undefined;
1379
+ email?: string | undefined;
1380
+ pronouns?: string | undefined;
1381
+ timezone?: string | undefined;
1382
+ language?: string | undefined;
1383
+ bio?: string | undefined;
1384
+ preferences?: string | undefined;
1385
+ provenance?: {
1386
+ sourceTool: string;
1387
+ sourcePath?: string | undefined;
1388
+ sourceKey?: string | undefined;
1389
+ capturedAt?: string | undefined;
1390
+ } | undefined;
1391
+ } | undefined;
1392
+ rules?: {
1393
+ id: string;
1394
+ scope: "global" | "project";
1395
+ body: string;
1396
+ provenance?: {
1397
+ sourceTool: string;
1398
+ sourcePath?: string | undefined;
1399
+ sourceKey?: string | undefined;
1400
+ capturedAt?: string | undefined;
1401
+ } | undefined;
1402
+ activation?: "always" | "auto" | "agent" | "manual" | undefined;
1403
+ description?: string | undefined;
1404
+ globs?: string[] | undefined;
1405
+ sources?: string[] | undefined;
1406
+ }[] | undefined;
1407
+ agents?: {
1408
+ name: string;
1409
+ id: string;
1410
+ description: string;
1411
+ systemPrompt: string;
1412
+ provenance?: {
1413
+ sourceTool: string;
1414
+ sourcePath?: string | undefined;
1415
+ sourceKey?: string | undefined;
1416
+ capturedAt?: string | undefined;
1417
+ } | undefined;
1418
+ role?: "primary" | "subagent" | "both" | undefined;
1419
+ model?: string | undefined;
1420
+ temperature?: number | undefined;
1421
+ tools?: {
1422
+ allow?: string[] | undefined;
1423
+ deny?: string[] | undefined;
1424
+ ask?: string[] | undefined;
1425
+ } | undefined;
1426
+ isolation?: "none" | "worktree" | undefined;
1427
+ color?: string | undefined;
1428
+ }[] | undefined;
1429
+ commands?: {
1430
+ name: string;
1431
+ id: string;
1432
+ body: string;
1433
+ provenance?: {
1434
+ sourceTool: string;
1435
+ sourcePath?: string | undefined;
1436
+ sourceKey?: string | undefined;
1437
+ capturedAt?: string | undefined;
1438
+ } | undefined;
1439
+ description?: string | undefined;
1440
+ model?: string | undefined;
1441
+ argumentHint?: string | undefined;
1442
+ allowedTools?: string[] | undefined;
1443
+ }[] | undefined;
1444
+ skills?: {
1445
+ name: string;
1446
+ id: string;
1447
+ description: string;
1448
+ body: string;
1449
+ provenance?: {
1450
+ sourceTool: string;
1451
+ sourcePath?: string | undefined;
1452
+ sourceKey?: string | undefined;
1453
+ capturedAt?: string | undefined;
1454
+ } | undefined;
1455
+ model?: string | undefined;
1456
+ argumentHint?: string | undefined;
1457
+ allowedTools?: string[] | undefined;
1458
+ whenToUse?: string | undefined;
1459
+ trigger?: "both" | "model" | "user" | undefined;
1460
+ disallowedTools?: string[] | undefined;
1461
+ paths?: string[] | undefined;
1462
+ files?: Record<string, string> | undefined;
1463
+ ui?: {
1464
+ displayName?: string | undefined;
1465
+ shortDescription?: string | undefined;
1466
+ iconSmall?: string | undefined;
1467
+ iconLarge?: string | undefined;
1468
+ brandColor?: string | undefined;
1469
+ } | undefined;
1470
+ }[] | undefined;
1471
+ mcpServers?: {
1472
+ id: string;
1473
+ transport: "stdio" | "http" | "sse" | "ws";
1474
+ provenance?: {
1475
+ sourceTool: string;
1476
+ sourcePath?: string | undefined;
1477
+ sourceKey?: string | undefined;
1478
+ capturedAt?: string | undefined;
1479
+ } | undefined;
1480
+ scope?: "global" | "project" | undefined;
1481
+ url?: string | undefined;
1482
+ command?: string | undefined;
1483
+ args?: string[] | undefined;
1484
+ env?: Record<string, string> | undefined;
1485
+ headers?: Record<string, string> | undefined;
1486
+ enabled?: boolean | undefined;
1487
+ startupTimeoutSec?: number | undefined;
1488
+ }[] | undefined;
1489
+ hooks?: {
1490
+ event: "PreToolUse" | "PostToolUse" | "PostToolUseFailure" | "UserPromptSubmit" | "SessionStart" | "SessionEnd" | "Stop" | "StopFailure" | "Notification" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PostCompact";
1491
+ actions: {
1492
+ type?: "agent" | "http" | "command" | "mcp_tool" | "prompt" | undefined;
1493
+ url?: string | undefined;
1494
+ command?: string | undefined;
1495
+ args?: string[] | undefined;
1496
+ prompt?: string | undefined;
1497
+ server?: string | undefined;
1498
+ timeout?: number | undefined;
1499
+ shell?: string | undefined;
1500
+ }[];
1501
+ provenance?: {
1502
+ sourceTool: string;
1503
+ sourcePath?: string | undefined;
1504
+ sourceKey?: string | undefined;
1505
+ capturedAt?: string | undefined;
1506
+ } | undefined;
1507
+ description?: string | undefined;
1508
+ matcher?: string | undefined;
1509
+ }[] | undefined;
1510
+ permissions?: {
1511
+ allow?: string[] | undefined;
1512
+ deny?: string[] | undefined;
1513
+ ask?: string[] | undefined;
1514
+ defaultMode?: "auto" | "default" | "acceptEdits" | "plan" | undefined;
1515
+ additionalDirectories?: string[] | undefined;
1516
+ } | undefined;
1517
+ models?: {
1518
+ defaultModel?: string | undefined;
1519
+ smallModel?: string | undefined;
1520
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1521
+ providers?: Record<string, {
1522
+ options?: Record<string, unknown> | undefined;
1523
+ npm?: string | undefined;
1524
+ baseUrl?: string | undefined;
1525
+ envKey?: string | undefined;
1526
+ wireApi?: "responses" | "chat" | undefined;
1527
+ }> | undefined;
1528
+ } | undefined;
1529
+ }>;
1530
+ export type ProfileManifest = z.infer<typeof ProfileManifestSchema>;
1531
+ export declare function emptyProfile(sourceTool: string): ProfileManifest;