@agentxm/workspace-state 0.28.4-bootstrap.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 (215) hide show
  1. package/LICENSE +110 -0
  2. package/README.md +11 -0
  3. package/dist/src/index.d.ts +72 -0
  4. package/dist/src/index.js +88 -0
  5. package/dist/src/knowledge/discovery-config.d.ts +12 -0
  6. package/dist/src/knowledge/discovery-config.js +9 -0
  7. package/dist/src/lockfile/accepted-registry-version.d.ts +12 -0
  8. package/dist/src/lockfile/accepted-registry-version.js +13 -0
  9. package/dist/src/lockfile/entry-fields.d.ts +189 -0
  10. package/dist/src/lockfile/entry-fields.js +89 -0
  11. package/dist/src/lockfile/errors.d.ts +48 -0
  12. package/dist/src/lockfile/errors.js +27 -0
  13. package/dist/src/lockfile/index.d.ts +18 -0
  14. package/dist/src/lockfile/index.js +16 -0
  15. package/dist/src/lockfile/lockfile.d.ts +2255 -0
  16. package/dist/src/lockfile/lockfile.js +235 -0
  17. package/dist/src/lockfile/resolved-version.d.ts +4 -0
  18. package/dist/src/lockfile/resolved-version.js +7 -0
  19. package/dist/src/lockfile/schema.d.ts +3062 -0
  20. package/dist/src/lockfile/schema.js +406 -0
  21. package/dist/src/schema/index.d.ts +3 -0
  22. package/dist/src/schema/index.js +2 -0
  23. package/dist/src/schema/read-and-validate-json-file.d.ts +20 -0
  24. package/dist/src/schema/read-and-validate-json-file.js +85 -0
  25. package/dist/src/schema/types.d.ts +26 -0
  26. package/dist/src/schema/types.js +2 -0
  27. package/dist/src/settings/errors.d.ts +22 -0
  28. package/dist/src/settings/errors.js +15 -0
  29. package/dist/src/settings/format-preserving-json.d.ts +40 -0
  30. package/dist/src/settings/format-preserving-json.js +80 -0
  31. package/dist/src/settings/index.d.ts +15 -0
  32. package/dist/src/settings/index.js +14 -0
  33. package/dist/src/settings/schema.d.ts +687 -0
  34. package/dist/src/settings/schema.js +977 -0
  35. package/dist/src/settings/settings.d.ts +38 -0
  36. package/dist/src/settings/settings.js +213 -0
  37. package/dist/src/testing.d.ts +17 -0
  38. package/dist/src/testing.js +17 -0
  39. package/dist/src/utils/atomic-write.d.ts +67 -0
  40. package/dist/src/utils/atomic-write.js +71 -0
  41. package/dist/src/utils/environment.d.ts +16 -0
  42. package/dist/src/utils/environment.js +19 -0
  43. package/dist/src/utils/path-safety.d.ts +25 -0
  44. package/dist/src/utils/path-safety.js +34 -0
  45. package/dist/src/utils/resolve-parent-symlinks.d.ts +16 -0
  46. package/dist/src/utils/resolve-parent-symlinks.js +36 -0
  47. package/dist/src/workspace/accepted-canonical-ref.d.ts +58 -0
  48. package/dist/src/workspace/accepted-canonical-ref.js +229 -0
  49. package/dist/src/workspace/artifact-change.d.ts +14 -0
  50. package/dist/src/workspace/artifact-change.js +18 -0
  51. package/dist/src/workspace/canonical-observation.d.ts +39 -0
  52. package/dist/src/workspace/canonical-observation.js +307 -0
  53. package/dist/src/workspace/configured-agent-outcome.d.ts +22 -0
  54. package/dist/src/workspace/configured-agent-outcome.js +33 -0
  55. package/dist/src/workspace/configured-agent-outcomes-provider.d.ts +50 -0
  56. package/dist/src/workspace/configured-agent-outcomes-provider.js +26 -0
  57. package/dist/src/workspace/configured-agent-outcomes.d.ts +48 -0
  58. package/dist/src/workspace/configured-agent-outcomes.js +113 -0
  59. package/dist/src/workspace/configured-entry-resolution/types.d.ts +32 -0
  60. package/dist/src/workspace/configured-entry-resolution/types.js +2 -0
  61. package/dist/src/workspace/configured-entry-resolution/workspace-ref.d.ts +32 -0
  62. package/dist/src/workspace/configured-entry-resolution/workspace-ref.js +176 -0
  63. package/dist/src/workspace/constants.d.ts +6 -0
  64. package/dist/src/workspace/constants.js +6 -0
  65. package/dist/src/workspace/create-symlink.d.ts +26 -0
  66. package/dist/src/workspace/create-symlink.js +87 -0
  67. package/dist/src/workspace/desired-pack-lock.d.ts +18 -0
  68. package/dist/src/workspace/desired-pack-lock.js +132 -0
  69. package/dist/src/workspace/desired-state-enabled.d.ts +18 -0
  70. package/dist/src/workspace/desired-state-enabled.js +16 -0
  71. package/dist/src/workspace/desired-state-graph.d.ts +114 -0
  72. package/dist/src/workspace/desired-state-graph.js +384 -0
  73. package/dist/src/workspace/desired-state-problem-text.d.ts +6 -0
  74. package/dist/src/workspace/desired-state-problem-text.js +27 -0
  75. package/dist/src/workspace/errors.d.ts +184 -0
  76. package/dist/src/workspace/errors.js +79 -0
  77. package/dist/src/workspace/extension-name.d.ts +28 -0
  78. package/dist/src/workspace/extension-name.js +66 -0
  79. package/dist/src/workspace/extension-paths.d.ts +82 -0
  80. package/dist/src/workspace/extension-paths.js +172 -0
  81. package/dist/src/workspace/footprint-recorder.d.ts +30 -0
  82. package/dist/src/workspace/footprint-recorder.js +32 -0
  83. package/dist/src/workspace/layout.d.ts +43 -0
  84. package/dist/src/workspace/layout.js +164 -0
  85. package/dist/src/workspace/lock-entry-to-ref.d.ts +40 -0
  86. package/dist/src/workspace/lock-entry-to-ref.js +433 -0
  87. package/dist/src/workspace/lock-entry-to-source-params.d.ts +26 -0
  88. package/dist/src/workspace/lock-entry-to-source-params.js +81 -0
  89. package/dist/src/workspace/locked-entries.d.ts +30 -0
  90. package/dist/src/workspace/locked-entries.js +34 -0
  91. package/dist/src/workspace/materialized-file-target.d.ts +14 -0
  92. package/dist/src/workspace/materialized-file-target.js +14 -0
  93. package/dist/src/workspace/materialized-tree.d.ts +23 -0
  94. package/dist/src/workspace/materialized-tree.js +90 -0
  95. package/dist/src/workspace/mcp-entry-semantics.d.ts +31 -0
  96. package/dist/src/workspace/mcp-entry-semantics.js +60 -0
  97. package/dist/src/workspace/observed-installed.d.ts +9 -0
  98. package/dist/src/workspace/observed-installed.js +9 -0
  99. package/dist/src/workspace/pack-manifest-content-identity.d.ts +12 -0
  100. package/dist/src/workspace/pack-manifest-content-identity.js +20 -0
  101. package/dist/src/workspace/pack-paths.d.ts +24 -0
  102. package/dist/src/workspace/pack-paths.js +16 -0
  103. package/dist/src/workspace/package-hash.d.ts +25 -0
  104. package/dist/src/workspace/package-hash.js +45 -0
  105. package/dist/src/workspace/paths.d.ts +24 -0
  106. package/dist/src/workspace/paths.js +52 -0
  107. package/dist/src/workspace/read-model/__fixtures__/builder.d.ts +199 -0
  108. package/dist/src/workspace/read-model/__fixtures__/builder.js +588 -0
  109. package/dist/src/workspace/read-model/__fixtures__/decoders.d.ts +15 -0
  110. package/dist/src/workspace/read-model/__fixtures__/decoders.js +15 -0
  111. package/dist/src/workspace/read-model/__fixtures__/occurrences.d.ts +72 -0
  112. package/dist/src/workspace/read-model/__fixtures__/occurrences.js +134 -0
  113. package/dist/src/workspace/read-model/__fixtures__/scenario-harness.d.ts +99 -0
  114. package/dist/src/workspace/read-model/__fixtures__/scenario-harness.js +142 -0
  115. package/dist/src/workspace/read-model/__fixtures__/test-layer.d.ts +60 -0
  116. package/dist/src/workspace/read-model/__fixtures__/test-layer.js +57 -0
  117. package/dist/src/workspace/read-model/agent-presence.d.ts +32 -0
  118. package/dist/src/workspace/read-model/agent-presence.js +21 -0
  119. package/dist/src/workspace/read-model/agent-root-resolver.d.ts +38 -0
  120. package/dist/src/workspace/read-model/agent-root-resolver.js +35 -0
  121. package/dist/src/workspace/read-model/agents/index.d.ts +38 -0
  122. package/dist/src/workspace/read-model/agents/index.js +45 -0
  123. package/dist/src/workspace/read-model/agents/shared.d.ts +27 -0
  124. package/dist/src/workspace/read-model/agents/shared.js +63 -0
  125. package/dist/src/workspace/read-model/agents/types.d.ts +133 -0
  126. package/dist/src/workspace/read-model/agents/types.js +51 -0
  127. package/dist/src/workspace/read-model/diagnostics.d.ts +18 -0
  128. package/dist/src/workspace/read-model/diagnostics.js +14 -0
  129. package/dist/src/workspace/read-model/discovery/index.d.ts +5 -0
  130. package/dist/src/workspace/read-model/discovery/index.js +5 -0
  131. package/dist/src/workspace/read-model/discovery/plugin-manifests.d.ts +16 -0
  132. package/dist/src/workspace/read-model/discovery/plugin-manifests.js +168 -0
  133. package/dist/src/workspace/read-model/discovery/skills.d.ts +58 -0
  134. package/dist/src/workspace/read-model/discovery/skills.js +263 -0
  135. package/dist/src/workspace/read-model/discovery/subagents.d.ts +37 -0
  136. package/dist/src/workspace/read-model/discovery/subagents.js +48 -0
  137. package/dist/src/workspace/read-model/errors.d.ts +93 -0
  138. package/dist/src/workspace/read-model/errors.js +30 -0
  139. package/dist/src/workspace/read-model/extensions/actual-helpers.d.ts +4 -0
  140. package/dist/src/workspace/read-model/extensions/actual-helpers.js +4 -0
  141. package/dist/src/workspace/read-model/extensions/hook.d.ts +104 -0
  142. package/dist/src/workspace/read-model/extensions/hook.js +119 -0
  143. package/dist/src/workspace/read-model/extensions/index.d.ts +19 -0
  144. package/dist/src/workspace/read-model/extensions/index.js +43 -0
  145. package/dist/src/workspace/read-model/extensions/indexByName.d.ts +31 -0
  146. package/dist/src/workspace/read-model/extensions/indexByName.js +30 -0
  147. package/dist/src/workspace/read-model/extensions/inventory.d.ts +99 -0
  148. package/dist/src/workspace/read-model/extensions/inventory.js +111 -0
  149. package/dist/src/workspace/read-model/extensions/knowledge.d.ts +101 -0
  150. package/dist/src/workspace/read-model/extensions/knowledge.js +121 -0
  151. package/dist/src/workspace/read-model/extensions/mcp-server.d.ts +106 -0
  152. package/dist/src/workspace/read-model/extensions/mcp-server.js +122 -0
  153. package/dist/src/workspace/read-model/extensions/pack.d.ts +104 -0
  154. package/dist/src/workspace/read-model/extensions/pack.js +123 -0
  155. package/dist/src/workspace/read-model/extensions/package-root.d.ts +39 -0
  156. package/dist/src/workspace/read-model/extensions/package-root.js +48 -0
  157. package/dist/src/workspace/read-model/extensions/projection.d.ts +137 -0
  158. package/dist/src/workspace/read-model/extensions/projection.js +180 -0
  159. package/dist/src/workspace/read-model/extensions/rule.d.ts +104 -0
  160. package/dist/src/workspace/read-model/extensions/rule.js +113 -0
  161. package/dist/src/workspace/read-model/extensions/skill.d.ts +170 -0
  162. package/dist/src/workspace/read-model/extensions/skill.js +148 -0
  163. package/dist/src/workspace/read-model/extensions/subagent.d.ts +97 -0
  164. package/dist/src/workspace/read-model/extensions/subagent.js +120 -0
  165. package/dist/src/workspace/read-model/scanners/agent-dir.d.ts +49 -0
  166. package/dist/src/workspace/read-model/scanners/agent-dir.js +180 -0
  167. package/dist/src/workspace/read-model/scanners/agent-root.d.ts +73 -0
  168. package/dist/src/workspace/read-model/scanners/agent-root.js +148 -0
  169. package/dist/src/workspace/read-model/scanners/agent-settings.d.ts +43 -0
  170. package/dist/src/workspace/read-model/scanners/agent-settings.js +54 -0
  171. package/dist/src/workspace/read-model/scanners/canonical-extensions.d.ts +48 -0
  172. package/dist/src/workspace/read-model/scanners/canonical-extensions.js +237 -0
  173. package/dist/src/workspace/read-model/scanners/fs-helpers.d.ts +63 -0
  174. package/dist/src/workspace/read-model/scanners/fs-helpers.js +106 -0
  175. package/dist/src/workspace/read-model/scanners/index.d.ts +15 -0
  176. package/dist/src/workspace/read-model/scanners/index.js +34 -0
  177. package/dist/src/workspace/read-model/scanners/mcp-config.d.ts +47 -0
  178. package/dist/src/workspace/read-model/scanners/mcp-config.js +212 -0
  179. package/dist/src/workspace/read-model/scanners/types.d.ts +170 -0
  180. package/dist/src/workspace/read-model/scanners/types.js +86 -0
  181. package/dist/src/workspace/read-model/service.d.ts +103 -0
  182. package/dist/src/workspace/read-model/service.js +391 -0
  183. package/dist/src/workspace/read-model/state.d.ts +35 -0
  184. package/dist/src/workspace/read-model/state.js +97 -0
  185. package/dist/src/workspace/read-model/types.d.ts +75 -0
  186. package/dist/src/workspace/read-model/types.js +26 -0
  187. package/dist/src/workspace/read-model-record-readers.d.ts +34 -0
  188. package/dist/src/workspace/read-model-record-readers.js +467 -0
  189. package/dist/src/workspace/read-model-record-rows.d.ts +45 -0
  190. package/dist/src/workspace/read-model-record-rows.js +33 -0
  191. package/dist/src/workspace/read-model-record-types.d.ts +45 -0
  192. package/dist/src/workspace/read-model-record-types.js +13 -0
  193. package/dist/src/workspace/remove-if-exists.d.ts +13 -0
  194. package/dist/src/workspace/remove-if-exists.js +26 -0
  195. package/dist/src/workspace/rendered-files.d.ts +53 -0
  196. package/dist/src/workspace/rendered-files.js +50 -0
  197. package/dist/src/workspace/scope-refusal.d.ts +26 -0
  198. package/dist/src/workspace/scope-refusal.js +29 -0
  199. package/dist/src/workspace/service-interface.d.ts +479 -0
  200. package/dist/src/workspace/service-interface.js +27 -0
  201. package/dist/src/workspace/service.d.ts +1665 -0
  202. package/dist/src/workspace/service.js +1263 -0
  203. package/dist/src/workspace/setup-scope-support.d.ts +27 -0
  204. package/dist/src/workspace/setup-scope-support.js +299 -0
  205. package/dist/src/workspace/skill-paths.d.ts +33 -0
  206. package/dist/src/workspace/skill-paths.js +14 -0
  207. package/dist/src/workspace/source-metadata.d.ts +7 -0
  208. package/dist/src/workspace/source-metadata.js +10 -0
  209. package/dist/src/workspace/source-to-lock-entry.d.ts +32 -0
  210. package/dist/src/workspace/source-to-lock-entry.js +68 -0
  211. package/dist/src/workspace/test-stubs.d.ts +144 -0
  212. package/dist/src/workspace/test-stubs.js +412 -0
  213. package/dist/src/workspace/transaction.d.ts +218 -0
  214. package/dist/src/workspace/transaction.js +177 -0
  215. package/package.json +57 -0
@@ -0,0 +1,687 @@
1
+ /**
2
+ * Schema definitions for AXM settings configuration.
3
+ *
4
+ * Settings define workspace configuration including sources, agents, and extensions.
5
+ *
6
+ * @experimental This API is unstable and may change without notice.
7
+ */
8
+ import * as Schema from "effect/Schema";
9
+ import { ReleaseAgeExcludePatternSchema } from "@agentxm/extension-model/unstable/extensions/fqn-pattern";
10
+ /**
11
+ * GitHub source host configuration.
12
+ *
13
+ * @experimental This API is unstable and may change without notice.
14
+ */
15
+ declare const GitHubSourceHostConfigSchema: Schema.Struct<{
16
+ readonly name: Schema.String;
17
+ readonly type: Schema.Literal<"github">;
18
+ readonly url: Schema.URLFromString;
19
+ }>;
20
+ /**
21
+ * GitLab source host configuration.
22
+ *
23
+ * @experimental This API is unstable and may change without notice.
24
+ */
25
+ declare const GitLabSourceHostConfigSchema: Schema.Struct<{
26
+ readonly name: Schema.String;
27
+ readonly type: Schema.Literal<"gitlab">;
28
+ readonly url: Schema.URLFromString;
29
+ }>;
30
+ /**
31
+ * Bitbucket source host configuration.
32
+ *
33
+ * @experimental This API is unstable and may change without notice.
34
+ */
35
+ declare const BitbucketSourceHostConfigSchema: Schema.Struct<{
36
+ readonly name: Schema.String;
37
+ readonly type: Schema.Literal<"bitbucket">;
38
+ readonly url: Schema.URLFromString;
39
+ }>;
40
+ /**
41
+ * Azure Repos source host configuration.
42
+ *
43
+ * @experimental This API is unstable and may change without notice.
44
+ */
45
+ declare const AzureReposSourceHostConfigSchema: Schema.Struct<{
46
+ readonly name: Schema.String;
47
+ readonly type: Schema.Literal<"azurerepos">;
48
+ readonly url: Schema.URLFromString;
49
+ }>;
50
+ /**
51
+ * Registry source host configuration.
52
+ *
53
+ * @experimental This API is unstable and may change without notice.
54
+ */
55
+ declare const RegistrySourceHostConfigSchema: Schema.Struct<{
56
+ readonly name: Schema.String;
57
+ readonly type: Schema.Literal<"registry">;
58
+ readonly location: Schema.URLFromString;
59
+ }>;
60
+ /**
61
+ * Discriminated union of source host configurations on the `type` field.
62
+ *
63
+ * Variants: github, gitlab, bitbucket, azurerepos, registry.
64
+ *
65
+ * @experimental This API is unstable and may change without notice.
66
+ */
67
+ export declare const SourceHostConfigSchema: Schema.Union<readonly [Schema.Struct<{
68
+ readonly name: Schema.String;
69
+ readonly type: Schema.Literal<"github">;
70
+ readonly url: Schema.URLFromString;
71
+ }>, Schema.Struct<{
72
+ readonly name: Schema.String;
73
+ readonly type: Schema.Literal<"gitlab">;
74
+ readonly url: Schema.URLFromString;
75
+ }>, Schema.Struct<{
76
+ readonly name: Schema.String;
77
+ readonly type: Schema.Literal<"bitbucket">;
78
+ readonly url: Schema.URLFromString;
79
+ }>, Schema.Struct<{
80
+ readonly name: Schema.String;
81
+ readonly type: Schema.Literal<"azurerepos">;
82
+ readonly url: Schema.URLFromString;
83
+ }>, Schema.Struct<{
84
+ readonly name: Schema.String;
85
+ readonly type: Schema.Literal<"registry">;
86
+ readonly location: Schema.URLFromString;
87
+ }>]>;
88
+ /**
89
+ * Inferred type for SourceHostConfig schema.
90
+ *
91
+ * @experimental This API is unstable and may change without notice.
92
+ */
93
+ export type SourceHostConfig = Schema.Schema.Type<typeof SourceHostConfigSchema>;
94
+ /** @experimental */
95
+ export type GitHubSourceHostConfig = Schema.Schema.Type<typeof GitHubSourceHostConfigSchema>;
96
+ /** @experimental */
97
+ export type GitLabSourceHostConfig = Schema.Schema.Type<typeof GitLabSourceHostConfigSchema>;
98
+ /** @experimental */
99
+ export type BitbucketSourceHostConfig = Schema.Schema.Type<typeof BitbucketSourceHostConfigSchema>;
100
+ /** @experimental */
101
+ export type AzureReposSourceHostConfig = Schema.Schema.Type<typeof AzureReposSourceHostConfigSchema>;
102
+ /** @experimental */
103
+ export type RegistrySourceHostConfig = Schema.Schema.Type<typeof RegistrySourceHostConfigSchema>;
104
+ type SourceEntryObject = {
105
+ readonly source: string;
106
+ };
107
+ type EnabledEntryObject = SourceEntryObject & {
108
+ readonly enabled?: boolean | undefined;
109
+ };
110
+ export declare const MinimumReleaseAgeSchema: Schema.String;
111
+ /** @experimental */
112
+ export type MinimumReleaseAge = Schema.Schema.Type<typeof MinimumReleaseAgeSchema>;
113
+ /** @experimental */
114
+ export type MinimumReleaseAgeExclude = ReadonlyArray<typeof ReleaseAgeExcludePatternSchema.Type>;
115
+ /**
116
+ * Managed skill with source and optional config flags.
117
+ *
118
+ * @experimental This API is unstable and may change without notice.
119
+ */
120
+ export declare const SkillEntryObjectSchema: Schema.Struct<{
121
+ readonly source: Schema.NonEmptyString;
122
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
123
+ readonly origin: Schema.optionalKey<Schema.Literal<"bundled">>;
124
+ }>;
125
+ /**
126
+ * Union of skill entry forms: plain source string or object with source + enabled.
127
+ *
128
+ * Decodes to canonical `{ source, enabled }` form; encodes back to the most
129
+ * compact JSON representation.
130
+ *
131
+ * @experimental This API is unstable and may change without notice.
132
+ */
133
+ export declare const SkillEntrySchema: Schema.decodeTo<Schema.Struct<{
134
+ readonly source: Schema.String;
135
+ readonly enabled: Schema.Boolean;
136
+ readonly origin: Schema.optionalKey<Schema.Literal<"bundled">>;
137
+ }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
138
+ readonly source: Schema.NonEmptyString;
139
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
140
+ readonly origin: Schema.optionalKey<Schema.Literal<"bundled">>;
141
+ }>]>, never, never>;
142
+ /**
143
+ * Inferred type for SkillEntry schema.
144
+ *
145
+ * @experimental This API is unstable and may change without notice.
146
+ */
147
+ export type SkillEntry = Schema.Schema.Type<typeof SkillEntrySchema>;
148
+ /**
149
+ * Skills map - maps skill names to skill entries.
150
+ *
151
+ * Keys must be valid skill names per agentskills.io specification:
152
+ * - Max 64 characters
153
+ * - Lowercase letters, numbers, and hyphens only
154
+ * - Must not start or end with a hyphen
155
+ *
156
+ * Values are skill entries: plain source strings or objects with source + enabled.
157
+ *
158
+ * @experimental This API is unstable and may change without notice.
159
+ */
160
+ export declare const SkillsMapSchema: Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
161
+ readonly source: Schema.String;
162
+ readonly enabled: Schema.Boolean;
163
+ readonly origin: Schema.optionalKey<Schema.Literal<"bundled">>;
164
+ }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
165
+ readonly source: Schema.NonEmptyString;
166
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
167
+ readonly origin: Schema.optionalKey<Schema.Literal<"bundled">>;
168
+ }>]>, never, never>>;
169
+ /**
170
+ * Inferred type for SkillsMap schema.
171
+ *
172
+ * @experimental This API is unstable and may change without notice.
173
+ */
174
+ export type SkillsMap = Schema.Schema.Type<typeof SkillsMapSchema>;
175
+ /**
176
+ * Managed rule with source and optional config flags.
177
+ *
178
+ * @experimental This API is unstable and may change without notice.
179
+ */
180
+ export declare const RuleEntryObjectSchema: Schema.Struct<{
181
+ readonly source: Schema.NonEmptyString;
182
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
183
+ }>;
184
+ /**
185
+ * Union of rule entry forms: plain source string or object with source + enabled.
186
+ *
187
+ * @experimental This API is unstable and may change without notice.
188
+ */
189
+ export declare const RuleEntrySchema: Schema.decodeTo<Schema.Struct<{
190
+ readonly source: Schema.String;
191
+ readonly enabled: Schema.Boolean;
192
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>;
193
+ /** @experimental */
194
+ export type RuleEntry = Schema.Schema.Type<typeof RuleEntrySchema>;
195
+ /**
196
+ * Rules map - maps rule names to rule entries.
197
+ *
198
+ * @experimental This API is unstable and may change without notice.
199
+ */
200
+ export declare const RulesMapSchema: Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
201
+ readonly source: Schema.String;
202
+ readonly enabled: Schema.Boolean;
203
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>>;
204
+ /** @experimental */
205
+ export type RulesMap = Schema.Schema.Type<typeof RulesMapSchema>;
206
+ /**
207
+ * Managed hook with source and optional config flags.
208
+ *
209
+ * @experimental This API is unstable and may change without notice.
210
+ */
211
+ export declare const HookEntryObjectSchema: Schema.Struct<{
212
+ readonly source: Schema.NonEmptyString;
213
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
214
+ }>;
215
+ /**
216
+ * Union of hook entry forms: plain source string or object with source + enabled.
217
+ *
218
+ * @experimental This API is unstable and may change without notice.
219
+ */
220
+ export declare const HookEntrySchema: Schema.decodeTo<Schema.Struct<{
221
+ readonly source: Schema.String;
222
+ readonly enabled: Schema.Boolean;
223
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>;
224
+ /** @experimental */
225
+ export type HookEntry = Schema.Schema.Type<typeof HookEntrySchema>;
226
+ /**
227
+ * Hooks map - maps hook names to hook entries.
228
+ *
229
+ * @experimental This API is unstable and may change without notice.
230
+ */
231
+ export declare const HooksMapSchema: Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
232
+ readonly source: Schema.String;
233
+ readonly enabled: Schema.Boolean;
234
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>>;
235
+ /** @experimental */
236
+ export type HooksMap = Schema.Schema.Type<typeof HooksMapSchema>;
237
+ export declare const KnowledgeEntryObjectSchema: Schema.Struct<{
238
+ readonly source: Schema.NonEmptyString;
239
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
240
+ readonly instructionEntry: Schema.optionalKey<Schema.Boolean>;
241
+ }>;
242
+ export declare const KnowledgeEntrySchema: Schema.decodeTo<Schema.Struct<{
243
+ readonly source: Schema.String;
244
+ readonly enabled: Schema.Boolean;
245
+ readonly instructionEntry: Schema.optionalKey<Schema.Boolean>;
246
+ }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
247
+ readonly source: Schema.NonEmptyString;
248
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
249
+ readonly instructionEntry: Schema.optionalKey<Schema.Boolean>;
250
+ }>]>, never, never>;
251
+ export type KnowledgeEntry = Schema.Schema.Type<typeof KnowledgeEntrySchema>;
252
+ export declare const KnowledgeMapSchema: Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
253
+ readonly source: Schema.String;
254
+ readonly enabled: Schema.Boolean;
255
+ readonly instructionEntry: Schema.optionalKey<Schema.Boolean>;
256
+ }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
257
+ readonly source: Schema.NonEmptyString;
258
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
259
+ readonly instructionEntry: Schema.optionalKey<Schema.Boolean>;
260
+ }>]>, never, never>>;
261
+ export type KnowledgeMap = Schema.Schema.Type<typeof KnowledgeMapSchema>;
262
+ /**
263
+ * MCP server entry object with source.
264
+ *
265
+ * @experimental This API is unstable and may change without notice.
266
+ */
267
+ export declare const McpServerEntryObjectSchema: Schema.Struct<{
268
+ readonly source: Schema.NonEmptyString;
269
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
270
+ readonly env: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.$Array<Schema.String>]>>;
271
+ readonly agents: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
272
+ }>;
273
+ /**
274
+ * Union of MCP server entry forms: plain source string or object with source + enabled + env.
275
+ *
276
+ * Decodes to canonical `{ source, enabled, env }` form; encodes back to the most
277
+ * compact JSON representation.
278
+ *
279
+ * @experimental This API is unstable and may change without notice.
280
+ */
281
+ export declare const McpServerEntrySchema: Schema.decodeTo<Schema.Union<readonly [Schema.Struct<{
282
+ readonly kind: Schema.optional<Schema.Literal<"sourced">>;
283
+ readonly source: Schema.String;
284
+ readonly command: Schema.optional<Schema.String>;
285
+ readonly args: Schema.optional<Schema.$Array<Schema.String>>;
286
+ readonly url: Schema.optional<Schema.String>;
287
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
288
+ readonly enabled: Schema.Boolean;
289
+ readonly env: Schema.$Record<Schema.String, Schema.String>;
290
+ readonly agents: Schema.optional<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
291
+ }>, Schema.Struct<{
292
+ readonly kind: Schema.Literal<"inline">;
293
+ readonly source: Schema.optional<Schema.Never>;
294
+ readonly command: Schema.optional<Schema.String>;
295
+ readonly args: Schema.optional<Schema.$Array<Schema.String>>;
296
+ readonly url: Schema.optional<Schema.String>;
297
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
298
+ readonly enabled: Schema.Boolean;
299
+ readonly env: Schema.$Record<Schema.String, Schema.String>;
300
+ readonly agents: Schema.optional<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
301
+ }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
302
+ readonly source: Schema.optionalKey<Schema.NonEmptyString>;
303
+ readonly command: Schema.optionalKey<Schema.NonEmptyString>;
304
+ readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
305
+ readonly url: Schema.optionalKey<Schema.NonEmptyString>;
306
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
307
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
308
+ readonly env: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.$Array<Schema.String>]>>;
309
+ readonly agents: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
310
+ }>]>, never, never>;
311
+ /**
312
+ * Inferred type for McpServerEntry schema.
313
+ *
314
+ * @experimental This API is unstable and may change without notice.
315
+ */
316
+ export type McpServerEntry = Schema.Schema.Type<typeof McpServerEntrySchema>;
317
+ export declare const isSourcedMcpServerEntry: (entry: McpServerEntry) => entry is McpServerEntry & {
318
+ readonly source: string;
319
+ };
320
+ export declare const isInlineMcpServerEntry: (entry: McpServerEntry) => entry is Extract<McpServerEntry, {
321
+ readonly kind: "inline";
322
+ }>;
323
+ /**
324
+ * MCP servers map - maps MCP server names to MCP server entries.
325
+ *
326
+ * Keys use the canonical MCP server name schema from the shared kernel.
327
+ *
328
+ * @experimental This API is unstable and may change without notice.
329
+ */
330
+ export declare const McpServersMapSchema: Schema.$Record<Schema.String, Schema.decodeTo<Schema.Union<readonly [Schema.Struct<{
331
+ readonly kind: Schema.optional<Schema.Literal<"sourced">>;
332
+ readonly source: Schema.String;
333
+ readonly command: Schema.optional<Schema.String>;
334
+ readonly args: Schema.optional<Schema.$Array<Schema.String>>;
335
+ readonly url: Schema.optional<Schema.String>;
336
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
337
+ readonly enabled: Schema.Boolean;
338
+ readonly env: Schema.$Record<Schema.String, Schema.String>;
339
+ readonly agents: Schema.optional<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
340
+ }>, Schema.Struct<{
341
+ readonly kind: Schema.Literal<"inline">;
342
+ readonly source: Schema.optional<Schema.Never>;
343
+ readonly command: Schema.optional<Schema.String>;
344
+ readonly args: Schema.optional<Schema.$Array<Schema.String>>;
345
+ readonly url: Schema.optional<Schema.String>;
346
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
347
+ readonly enabled: Schema.Boolean;
348
+ readonly env: Schema.$Record<Schema.String, Schema.String>;
349
+ readonly agents: Schema.optional<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
350
+ }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
351
+ readonly source: Schema.optionalKey<Schema.NonEmptyString>;
352
+ readonly command: Schema.optionalKey<Schema.NonEmptyString>;
353
+ readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
354
+ readonly url: Schema.optionalKey<Schema.NonEmptyString>;
355
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
356
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
357
+ readonly env: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.$Array<Schema.String>]>>;
358
+ readonly agents: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
359
+ }>]>, never, never>>;
360
+ /**
361
+ * Inferred type for McpServersMap schema.
362
+ *
363
+ * @experimental This API is unstable and may change without notice.
364
+ */
365
+ export type McpServersMap = Schema.Schema.Type<typeof McpServersMapSchema>;
366
+ /**
367
+ * Managed subagent with source and optional config flags.
368
+ *
369
+ * @experimental This API is unstable and may change without notice.
370
+ */
371
+ export declare const SubagentEntryObjectSchema: Schema.Struct<{
372
+ readonly source: Schema.NonEmptyString;
373
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
374
+ }>;
375
+ /**
376
+ * Union of subagent entry forms: plain source string or object with source + enabled.
377
+ *
378
+ * Decodes to canonical `{ source, enabled }` form; encodes back to the most
379
+ * compact JSON representation.
380
+ *
381
+ * @experimental This API is unstable and may change without notice.
382
+ */
383
+ export declare const SubagentEntrySchema: Schema.decodeTo<Schema.Struct<{
384
+ readonly source: Schema.String;
385
+ readonly enabled: Schema.Boolean;
386
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>;
387
+ /**
388
+ * Inferred type for SubagentEntry schema.
389
+ *
390
+ * @experimental This API is unstable and may change without notice.
391
+ */
392
+ export type SubagentEntry = Schema.Schema.Type<typeof SubagentEntrySchema>;
393
+ /**
394
+ * Subagents map - maps subagent names to subagent entries.
395
+ *
396
+ * Keys must be valid extension names per agentskills.io specification:
397
+ * - Max 64 characters
398
+ * - Lowercase letters, numbers, and hyphens only
399
+ * - Must not start or end with a hyphen
400
+ *
401
+ * Values are subagent entries: plain source strings or objects with source + enabled.
402
+ *
403
+ * @experimental This API is unstable and may change without notice.
404
+ */
405
+ export declare const SubagentsMapSchema: Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
406
+ readonly source: Schema.String;
407
+ readonly enabled: Schema.Boolean;
408
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>>;
409
+ /**
410
+ * Inferred type for SubagentsMap schema.
411
+ *
412
+ * @experimental This API is unstable and may change without notice.
413
+ */
414
+ export type SubagentsMap = Schema.Schema.Type<typeof SubagentsMapSchema>;
415
+ /**
416
+ * Pack entry object with source.
417
+ *
418
+ * @experimental This API is unstable and may change without notice.
419
+ */
420
+ export declare const PackEntryObjectSchema: Schema.Struct<{
421
+ readonly source: Schema.NonEmptyString;
422
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
423
+ }>;
424
+ /**
425
+ * Union of pack entry forms: plain source string or object with source.
426
+ *
427
+ * Decodes to canonical `{ source }` form and encodes back to a source string.
428
+ *
429
+ * @experimental This API is unstable and may change without notice.
430
+ */
431
+ export declare const PackEntrySchema: Schema.decodeTo<Schema.Struct<{
432
+ readonly source: Schema.String;
433
+ readonly enabled: Schema.Boolean;
434
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>;
435
+ /**
436
+ * Inferred type for PackEntry schema.
437
+ *
438
+ * @experimental This API is unstable and may change without notice.
439
+ */
440
+ export type PackEntry = Schema.Schema.Type<typeof PackEntrySchema>;
441
+ /**
442
+ * Packs map - maps pack names to pack entries.
443
+ *
444
+ * Keys must be valid extension names per agentskills.io specification:
445
+ * - Max 64 characters
446
+ * - Lowercase letters, numbers, and hyphens only
447
+ * - Must not start or end with a hyphen
448
+ *
449
+ * Values are pack entries: plain source strings or objects with source + enabled.
450
+ *
451
+ * @experimental This API is unstable and may change without notice.
452
+ */
453
+ export declare const PacksMapSchema: Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
454
+ readonly source: Schema.String;
455
+ readonly enabled: Schema.Boolean;
456
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>>;
457
+ /**
458
+ * Inferred type for PacksMap schema.
459
+ *
460
+ * @experimental This API is unstable and may change without notice.
461
+ */
462
+ export type PacksMap = Schema.Schema.Type<typeof PacksMapSchema>;
463
+ /**
464
+ * Workspace instruction-file propagation settings.
465
+ *
466
+ * @experimental This API is unstable and may change without notice.
467
+ */
468
+ export declare const InstructionsConfigSchema: Schema.Struct<{
469
+ readonly fileName: Schema.optionalKey<Schema.String>;
470
+ readonly gitignoreAliases: Schema.optionalKey<Schema.Boolean>;
471
+ }>;
472
+ /** @experimental */
473
+ export type InstructionsConfig = Schema.Schema.Type<typeof InstructionsConfigSchema>;
474
+ /** @experimental */
475
+ export type InstructionsConfigValue = false | InstructionsConfig;
476
+ export declare const SkillsConfigSchema: Schema.Struct<{
477
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
478
+ }>;
479
+ export declare const RulesConfigSchema: Schema.Struct<{
480
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
481
+ }>;
482
+ export declare const HooksConfigSchema: Schema.Struct<{
483
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
484
+ }>;
485
+ export declare const SubagentsConfigSchema: Schema.Struct<{
486
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
487
+ }>;
488
+ export declare const McpServersConfigSchema: Schema.Struct<{
489
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
490
+ }>;
491
+ export declare const PacksConfigSchema: Schema.Struct<{
492
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
493
+ }>;
494
+ export declare const KnowledgeConfigSchema: Schema.Struct<{
495
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
496
+ readonly instructions: Schema.optionalKey<Schema.Boolean>;
497
+ }>;
498
+ /** @experimental */
499
+ export type KnowledgeConfig = Schema.Schema.Type<typeof KnowledgeConfigSchema>;
500
+ /** Workspace-level publication defaults. */
501
+ export declare const WorkspacePublishOptionsSchema: Schema.Struct<{
502
+ readonly defaultVisibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
503
+ }>;
504
+ /** @experimental This API is unstable and may change without notice. */
505
+ export type WorkspacePublishOptions = Schema.Schema.Type<typeof WorkspacePublishOptionsSchema>;
506
+ /**
507
+ * Each catalog extension type's feature-level config schema, or `null` where
508
+ * none exists yet.
509
+ *
510
+ * Total by construction: a new extension type fails compile here until its
511
+ * settings coverage is decided. The parity conformance suite reads this map,
512
+ * and every `null` must be matched by a ledger row.
513
+ *
514
+ * @experimental This API is unstable and may change without notice.
515
+ */
516
+ export declare const SETTINGS_CONFIG_SCHEMA_BY_TYPE: {
517
+ readonly skill: Schema.Struct<{
518
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
519
+ }>;
520
+ readonly "mcp-server": Schema.Struct<{
521
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
522
+ }>;
523
+ readonly subagent: Schema.Struct<{
524
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
525
+ }>;
526
+ readonly rule: Schema.Struct<{
527
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
528
+ }>;
529
+ readonly hook: Schema.Struct<{
530
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
531
+ }>;
532
+ readonly knowledge: Schema.Struct<{
533
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
534
+ readonly instructions: Schema.optionalKey<Schema.Boolean>;
535
+ }>;
536
+ };
537
+ /**
538
+ * Canonical key order for settings properties.
539
+ *
540
+ * Used by `writeSettingsAtPath` for new files and to place new top-level keys in
541
+ * existing files whose recognized keys already follow this order.
542
+ *
543
+ * @experimental This API is unstable and may change without notice.
544
+ */
545
+ export declare const SETTINGS_KEY_ORDER: ReadonlyArray<string>;
546
+ export declare const SettingsSchema: Schema.StructWithRest<Schema.Struct<{
547
+ readonly $schema: Schema.optionalKey<Schema.String>;
548
+ readonly owner: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "Handle">]>>;
549
+ readonly publish: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
550
+ readonly defaultVisibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
551
+ }>]>>;
552
+ readonly minimumReleaseAge: Schema.optionalKey<Schema.Union<readonly [Schema.String]>>;
553
+ readonly minimumReleaseAgeExclude: Schema.optionalKey<Schema.$Array<Schema.decodeTo<Schema.toType<Schema.Struct<{
554
+ readonly owner: Schema.brand<Schema.String, "Handle">;
555
+ readonly type: Schema.Union<readonly [Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack")[]>, Schema.Literal<"*">]>;
556
+ readonly name: Schema.Union<readonly [Schema.brand<Schema.NonEmptyString, "ExtensionName">, Schema.Literal<"*">]>;
557
+ }>>, Schema.String, never, never>>>;
558
+ readonly agents: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
559
+ readonly instructionFiles: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<false>, Schema.Struct<{
560
+ readonly fileName: Schema.optionalKey<Schema.String>;
561
+ readonly gitignoreAliases: Schema.optionalKey<Schema.Boolean>;
562
+ }>]>>;
563
+ readonly sources: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
564
+ readonly name: Schema.String;
565
+ readonly type: Schema.Literal<"github">;
566
+ readonly url: Schema.URLFromString;
567
+ }>, Schema.Struct<{
568
+ readonly name: Schema.String;
569
+ readonly type: Schema.Literal<"gitlab">;
570
+ readonly url: Schema.URLFromString;
571
+ }>, Schema.Struct<{
572
+ readonly name: Schema.String;
573
+ readonly type: Schema.Literal<"bitbucket">;
574
+ readonly url: Schema.URLFromString;
575
+ }>, Schema.Struct<{
576
+ readonly name: Schema.String;
577
+ readonly type: Schema.Literal<"azurerepos">;
578
+ readonly url: Schema.URLFromString;
579
+ }>, Schema.Struct<{
580
+ readonly name: Schema.String;
581
+ readonly type: Schema.Literal<"registry">;
582
+ readonly location: Schema.URLFromString;
583
+ }>]>>>;
584
+ readonly skills: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
585
+ readonly source: Schema.String;
586
+ readonly enabled: Schema.Boolean;
587
+ readonly origin: Schema.optionalKey<Schema.Literal<"bundled">>;
588
+ }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
589
+ readonly source: Schema.NonEmptyString;
590
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
591
+ readonly origin: Schema.optionalKey<Schema.Literal<"bundled">>;
592
+ }>]>, never, never>>]>>;
593
+ readonly skillsConfig: Schema.optionalKey<Schema.Struct<{
594
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
595
+ }>>;
596
+ readonly rules: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
597
+ readonly source: Schema.String;
598
+ readonly enabled: Schema.Boolean;
599
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>>]>>;
600
+ readonly rulesConfig: Schema.optionalKey<Schema.Struct<{
601
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
602
+ }>>;
603
+ readonly hooks: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
604
+ readonly source: Schema.String;
605
+ readonly enabled: Schema.Boolean;
606
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>>]>>;
607
+ readonly hooksConfig: Schema.optionalKey<Schema.Struct<{
608
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
609
+ }>>;
610
+ readonly knowledge: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
611
+ readonly source: Schema.String;
612
+ readonly enabled: Schema.Boolean;
613
+ readonly instructionEntry: Schema.optionalKey<Schema.Boolean>;
614
+ }>, Schema.Union<readonly [Schema.String, Schema.Struct<{
615
+ readonly source: Schema.NonEmptyString;
616
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
617
+ readonly instructionEntry: Schema.optionalKey<Schema.Boolean>;
618
+ }>]>, never, never>>]>>;
619
+ readonly knowledgeConfig: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
620
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
621
+ readonly instructions: Schema.optionalKey<Schema.Boolean>;
622
+ }>]>>;
623
+ readonly subagents: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
624
+ readonly source: Schema.String;
625
+ readonly enabled: Schema.Boolean;
626
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>>]>>;
627
+ readonly subagentsConfig: Schema.optionalKey<Schema.Struct<{
628
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
629
+ }>>;
630
+ readonly packs: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.decodeTo<Schema.Struct<{
631
+ readonly source: Schema.String;
632
+ readonly enabled: Schema.Boolean;
633
+ }>, Schema.Union<readonly [Schema.String, Schema.Codec<EnabledEntryObject, EnabledEntryObject, never, never>]>, never, never>>]>>;
634
+ readonly packsConfig: Schema.optionalKey<Schema.Struct<{
635
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
636
+ }>>;
637
+ readonly mcpServers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.decodeTo<Schema.Union<readonly [Schema.Struct<{
638
+ readonly kind: Schema.optional<Schema.Literal<"sourced">>;
639
+ readonly source: Schema.String;
640
+ readonly command: Schema.optional<Schema.String>;
641
+ readonly args: Schema.optional<Schema.$Array<Schema.String>>;
642
+ readonly url: Schema.optional<Schema.String>;
643
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
644
+ readonly enabled: Schema.Boolean;
645
+ readonly env: Schema.$Record<Schema.String, Schema.String>;
646
+ readonly agents: Schema.optional<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
647
+ }>, Schema.Struct<{
648
+ readonly kind: Schema.Literal<"inline">;
649
+ readonly source: Schema.optional<Schema.Never>;
650
+ readonly command: Schema.optional<Schema.String>;
651
+ readonly args: Schema.optional<Schema.$Array<Schema.String>>;
652
+ readonly url: Schema.optional<Schema.String>;
653
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
654
+ readonly enabled: Schema.Boolean;
655
+ readonly env: Schema.$Record<Schema.String, Schema.String>;
656
+ readonly agents: Schema.optional<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
657
+ }>]>, Schema.Union<readonly [Schema.String, Schema.Struct<{
658
+ readonly source: Schema.optionalKey<Schema.NonEmptyString>;
659
+ readonly command: Schema.optionalKey<Schema.NonEmptyString>;
660
+ readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
661
+ readonly url: Schema.optionalKey<Schema.NonEmptyString>;
662
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
663
+ readonly enabled: Schema.optionalKey<Schema.Boolean>;
664
+ readonly env: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.$Array<Schema.String>]>>;
665
+ readonly agents: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["adal", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>>>;
666
+ }>]>, never, never>>]>>;
667
+ readonly mcpServersConfig: Schema.optionalKey<Schema.Struct<{
668
+ readonly dir: Schema.optionalKey<Schema.NonEmptyString>;
669
+ }>>;
670
+ readonly lint: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
671
+ readonly rules: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Literals<readonly ["off", "info", "warn", "error"]>>>;
672
+ }>]>>;
673
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
674
+ /**
675
+ * Inferred type for Settings schema.
676
+ *
677
+ * @experimental This API is unstable and may change without notice.
678
+ */
679
+ export type Settings = Schema.Schema.Type<typeof SettingsSchema>;
680
+ /**
681
+ * The recognized top-level settings keys, derived from the schema.
682
+ *
683
+ * @experimental This API is unstable and may change without notice.
684
+ */
685
+ export declare const SETTINGS_KNOWN_KEYS: ReadonlySet<string>;
686
+ export {};
687
+ //# sourceMappingURL=schema.d.ts.map