@vibesdotdev/integrations-grok 0.0.0-stage → 1.0.0-rc.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 (201) hide show
  1. package/LICENSE +126 -0
  2. package/README.md +43 -2
  3. package/dist/ai/index.d.ts +5 -0
  4. package/dist/ai/index.d.ts.map +1 -0
  5. package/dist/ai/index.js +5 -0
  6. package/dist/ai/index.js.map +1 -0
  7. package/dist/ai/metadata/provider-models/grok/grok-grok-3-mini.json +18 -0
  8. package/dist/ai/metadata/provider-models/grok/grok-grok-3.json +18 -0
  9. package/dist/ai/metadata/provider-models/grok/grok-grok-4-5.json +18 -0
  10. package/dist/ai/metadata/provider-models/grok/grok-grok-4-6.json +18 -0
  11. package/dist/ai/metadata/provider-models/grok/grok-grok-4-7.json +18 -0
  12. package/dist/ai/metadata/provider-models/grok/grok-grok-4-fast.json +18 -0
  13. package/dist/ai/metadata/provider-models/grok/grok-grok-4.json +18 -0
  14. package/dist/ai/metadata/provider-models/grok/grok-grok-code-fast.json +18 -0
  15. package/dist/ai/metadata/provider-models/grok/grok-grok-composer-2-5-fast.json +18 -0
  16. package/dist/ai/metadata/providers/grok.json +8 -0
  17. package/dist/ai/provider.consumer.plugin.d.ts +6 -0
  18. package/dist/ai/provider.consumer.plugin.d.ts.map +1 -0
  19. package/dist/ai/provider.consumer.plugin.js +28 -0
  20. package/dist/ai/provider.consumer.plugin.js.map +1 -0
  21. package/dist/ai/provider.plugin.d.ts +3 -0
  22. package/dist/ai/provider.plugin.d.ts.map +1 -0
  23. package/dist/ai/provider.plugin.js +3 -0
  24. package/dist/ai/provider.plugin.js.map +1 -0
  25. package/dist/ai/provider.shared.plugin.d.ts +6 -0
  26. package/dist/ai/provider.shared.plugin.d.ts.map +1 -0
  27. package/dist/ai/provider.shared.plugin.js +128 -0
  28. package/dist/ai/provider.shared.plugin.js.map +1 -0
  29. package/dist/ai/providers/cloud/frontier/grok/config/config.grok.descriptor.d.ts +4194 -0
  30. package/dist/ai/providers/cloud/frontier/grok/config/config.grok.descriptor.d.ts.map +1 -0
  31. package/dist/ai/providers/cloud/frontier/grok/config/config.grok.descriptor.js +15 -0
  32. package/dist/ai/providers/cloud/frontier/grok/config/config.grok.descriptor.js.map +1 -0
  33. package/dist/ai/providers/cloud/frontier/grok/config/schemas/index.d.ts +67 -0
  34. package/dist/ai/providers/cloud/frontier/grok/config/schemas/index.d.ts.map +1 -0
  35. package/dist/ai/providers/cloud/frontier/grok/config/schemas/index.js +70 -0
  36. package/dist/ai/providers/cloud/frontier/grok/config/schemas/index.js.map +1 -0
  37. package/dist/ai/providers/cloud/frontier/grok/index.d.ts +5 -0
  38. package/dist/ai/providers/cloud/frontier/grok/index.d.ts.map +1 -0
  39. package/dist/ai/providers/cloud/frontier/grok/index.js +4 -0
  40. package/dist/ai/providers/cloud/frontier/grok/index.js.map +1 -0
  41. package/dist/ai/providers/cloud/frontier/grok/provider.grok.descriptor.d.ts +183 -0
  42. package/dist/ai/providers/cloud/frontier/grok/provider.grok.descriptor.d.ts.map +1 -0
  43. package/dist/ai/providers/cloud/frontier/grok/provider.grok.descriptor.js +114 -0
  44. package/dist/ai/providers/cloud/frontier/grok/provider.grok.descriptor.js.map +1 -0
  45. package/dist/ai/providers/grok/detection/index.d.ts +2 -0
  46. package/dist/ai/providers/grok/detection/index.d.ts.map +1 -0
  47. package/dist/ai/providers/grok/detection/index.js +2 -0
  48. package/dist/ai/providers/grok/detection/index.js.map +1 -0
  49. package/dist/ai/providers/grok/detection/system.d.ts +11 -0
  50. package/dist/ai/providers/grok/detection/system.d.ts.map +1 -0
  51. package/dist/ai/providers/grok/detection/system.js +78 -0
  52. package/dist/ai/providers/grok/detection/system.js.map +1 -0
  53. package/dist/ai/providers/grok/docs/ai.providers.grok.docs.descriptor.d.ts +4 -0
  54. package/dist/ai/providers/grok/docs/ai.providers.grok.docs.descriptor.d.ts.map +1 -0
  55. package/dist/ai/providers/grok/docs/ai.providers.grok.docs.descriptor.js +21 -0
  56. package/dist/ai/providers/grok/docs/ai.providers.grok.docs.descriptor.js.map +1 -0
  57. package/dist/ai/providers/grok/grok-agent/budget.d.ts +14 -0
  58. package/dist/ai/providers/grok/grok-agent/budget.d.ts.map +1 -0
  59. package/dist/ai/providers/grok/grok-agent/budget.js +23 -0
  60. package/dist/ai/providers/grok/grok-agent/budget.js.map +1 -0
  61. package/dist/ai/providers/grok/grok-agent/connection.d.ts +36 -0
  62. package/dist/ai/providers/grok/grok-agent/connection.d.ts.map +1 -0
  63. package/dist/ai/providers/grok/grok-agent/connection.js +137 -0
  64. package/dist/ai/providers/grok/grok-agent/connection.js.map +1 -0
  65. package/dist/ai/providers/grok/grok-agent/failures.d.ts +12 -0
  66. package/dist/ai/providers/grok/grok-agent/failures.d.ts.map +1 -0
  67. package/dist/ai/providers/grok/grok-agent/failures.js +47 -0
  68. package/dist/ai/providers/grok/grok-agent/failures.js.map +1 -0
  69. package/dist/ai/providers/grok/grok-agent/grok-agent.spec.descriptor.d.ts +29 -0
  70. package/dist/ai/providers/grok/grok-agent/grok-agent.spec.descriptor.d.ts.map +1 -0
  71. package/dist/ai/providers/grok/grok-agent/grok-agent.spec.descriptor.js +18 -0
  72. package/dist/ai/providers/grok/grok-agent/grok-agent.spec.descriptor.js.map +1 -0
  73. package/dist/ai/providers/grok/grok-agent/grok-agent.spec.impl.d.ts +32 -0
  74. package/dist/ai/providers/grok/grok-agent/grok-agent.spec.impl.d.ts.map +1 -0
  75. package/dist/ai/providers/grok/grok-agent/grok-agent.spec.impl.js +113 -0
  76. package/dist/ai/providers/grok/grok-agent/grok-agent.spec.impl.js.map +1 -0
  77. package/dist/ai/providers/grok/grok-agent/grok-agent.transport.descriptor.d.ts +13 -0
  78. package/dist/ai/providers/grok/grok-agent/grok-agent.transport.descriptor.d.ts.map +1 -0
  79. package/dist/ai/providers/grok/grok-agent/grok-agent.transport.descriptor.js +11 -0
  80. package/dist/ai/providers/grok/grok-agent/grok-agent.transport.descriptor.js.map +1 -0
  81. package/dist/ai/providers/grok/grok-agent/grok-agent.transport.impl.consumer.d.ts +39 -0
  82. package/dist/ai/providers/grok/grok-agent/grok-agent.transport.impl.consumer.d.ts.map +1 -0
  83. package/dist/ai/providers/grok/grok-agent/grok-agent.transport.impl.consumer.js +79 -0
  84. package/dist/ai/providers/grok/grok-agent/grok-agent.transport.impl.consumer.js.map +1 -0
  85. package/dist/ai/providers/grok/grok-agent/protocol.d.ts +117 -0
  86. package/dist/ai/providers/grok/grok-agent/protocol.d.ts.map +1 -0
  87. package/dist/ai/providers/grok/grok-agent/protocol.js +84 -0
  88. package/dist/ai/providers/grok/grok-agent/protocol.js.map +1 -0
  89. package/dist/ai/providers/grok/grok-agent/runtime-execution.d.ts +14 -0
  90. package/dist/ai/providers/grok/grok-agent/runtime-execution.d.ts.map +1 -0
  91. package/dist/ai/providers/grok/grok-agent/runtime-execution.js +42 -0
  92. package/dist/ai/providers/grok/grok-agent/runtime-execution.js.map +1 -0
  93. package/dist/ai/providers/grok/grok-agent/session.d.ts +12 -0
  94. package/dist/ai/providers/grok/grok-agent/session.d.ts.map +1 -0
  95. package/dist/ai/providers/grok/grok-agent/session.js +140 -0
  96. package/dist/ai/providers/grok/grok-agent/session.js.map +1 -0
  97. package/dist/ai/providers/grok/grok-build.request.d.ts +7 -0
  98. package/dist/ai/providers/grok/grok-build.request.d.ts.map +1 -0
  99. package/dist/ai/providers/grok/grok-build.request.js +11 -0
  100. package/dist/ai/providers/grok/grok-build.request.js.map +1 -0
  101. package/dist/ai/providers/grok/grok-build.transport.descriptor.d.ts +13 -0
  102. package/dist/ai/providers/grok/grok-build.transport.descriptor.d.ts.map +1 -0
  103. package/dist/ai/providers/grok/grok-build.transport.descriptor.js +11 -0
  104. package/dist/ai/providers/grok/grok-build.transport.descriptor.js.map +1 -0
  105. package/dist/ai/providers/grok/grok-build.transport.impl.consumer.d.ts +23 -0
  106. package/dist/ai/providers/grok/grok-build.transport.impl.consumer.d.ts.map +1 -0
  107. package/dist/ai/providers/grok/grok-build.transport.impl.consumer.js +115 -0
  108. package/dist/ai/providers/grok/grok-build.transport.impl.consumer.js.map +1 -0
  109. package/dist/ai/providers/grok/grok-prompt-file.d.ts +16 -0
  110. package/dist/ai/providers/grok/grok-prompt-file.d.ts.map +1 -0
  111. package/dist/ai/providers/grok/grok-prompt-file.js +43 -0
  112. package/dist/ai/providers/grok/grok-prompt-file.js.map +1 -0
  113. package/dist/ai/providers/grok/grok-refusals.d.ts +149 -0
  114. package/dist/ai/providers/grok/grok-refusals.d.ts.map +1 -0
  115. package/dist/ai/providers/grok/grok-refusals.js +159 -0
  116. package/dist/ai/providers/grok/grok-refusals.js.map +1 -0
  117. package/dist/ai/providers/grok/grok-sandbox-signal.d.ts +30 -0
  118. package/dist/ai/providers/grok/grok-sandbox-signal.d.ts.map +1 -0
  119. package/dist/ai/providers/grok/grok-sandbox-signal.js +46 -0
  120. package/dist/ai/providers/grok/grok-sandbox-signal.js.map +1 -0
  121. package/dist/ai/providers/grok/grok-subscription.d.ts +116 -0
  122. package/dist/ai/providers/grok/grok-subscription.d.ts.map +1 -0
  123. package/dist/ai/providers/grok/grok-subscription.js +473 -0
  124. package/dist/ai/providers/grok/grok-subscription.js.map +1 -0
  125. package/dist/ai/providers/grok/grok.provider.impl.d.ts +47 -0
  126. package/dist/ai/providers/grok/grok.provider.impl.d.ts.map +1 -0
  127. package/dist/ai/providers/grok/grok.provider.impl.js +202 -0
  128. package/dist/ai/providers/grok/grok.provider.impl.js.map +1 -0
  129. package/dist/ai/providers/grok/index.d.ts +3 -0
  130. package/dist/ai/providers/grok/index.d.ts.map +1 -0
  131. package/dist/ai/providers/grok/index.js +3 -0
  132. package/dist/ai/providers/grok/index.js.map +1 -0
  133. package/dist/ai/providers/grok/recommendations.d.ts +23 -0
  134. package/dist/ai/providers/grok/recommendations.d.ts.map +1 -0
  135. package/dist/ai/providers/grok/recommendations.js +21 -0
  136. package/dist/ai/providers/grok/recommendations.js.map +1 -0
  137. package/dist/ai/specs/grok-build-exec/grok-build-exec.spec.descriptor.d.ts +32 -0
  138. package/dist/ai/specs/grok-build-exec/grok-build-exec.spec.descriptor.d.ts.map +1 -0
  139. package/dist/ai/specs/grok-build-exec/grok-build-exec.spec.descriptor.js +21 -0
  140. package/dist/ai/specs/grok-build-exec/grok-build-exec.spec.descriptor.js.map +1 -0
  141. package/dist/ai/specs/grok-build-exec/grok-build-exec.spec.impl.d.ts +36 -0
  142. package/dist/ai/specs/grok-build-exec/grok-build-exec.spec.impl.d.ts.map +1 -0
  143. package/dist/ai/specs/grok-build-exec/grok-build-exec.spec.impl.js +78 -0
  144. package/dist/ai/specs/grok-build-exec/grok-build-exec.spec.impl.js.map +1 -0
  145. package/dist/ai/specs/grok-messages.d.ts +20 -0
  146. package/dist/ai/specs/grok-messages.d.ts.map +1 -0
  147. package/dist/ai/specs/grok-messages.js +79 -0
  148. package/dist/ai/specs/grok-messages.js.map +1 -0
  149. package/dist/external/external.plugin.d.ts +3 -0
  150. package/dist/external/external.plugin.d.ts.map +1 -0
  151. package/dist/external/external.plugin.js +23 -0
  152. package/dist/external/external.plugin.js.map +1 -0
  153. package/dist/external/grok-build/index.d.ts +162 -0
  154. package/dist/external/grok-build/index.d.ts.map +1 -0
  155. package/dist/external/grok-build/index.js +7 -0
  156. package/dist/external/grok-build/index.js.map +1 -0
  157. package/dist/external/grok-build/manifest.d.ts +6 -0
  158. package/dist/external/grok-build/manifest.d.ts.map +1 -0
  159. package/dist/external/grok-build/manifest.js +91 -0
  160. package/dist/external/grok-build/manifest.js.map +1 -0
  161. package/dist/external/grok-build-presets.d.ts +210 -0
  162. package/dist/external/grok-build-presets.d.ts.map +1 -0
  163. package/dist/external/grok-build-presets.js +46 -0
  164. package/dist/external/grok-build-presets.js.map +1 -0
  165. package/dist/external/grok-subscription.operation.descriptors.d.ts +57 -0
  166. package/dist/external/grok-subscription.operation.descriptors.d.ts.map +1 -0
  167. package/dist/external/grok-subscription.operation.descriptors.js +22 -0
  168. package/dist/external/grok-subscription.operation.descriptors.js.map +1 -0
  169. package/dist/external/grok-subscription.operations.d.ts +4 -0
  170. package/dist/external/grok-subscription.operations.d.ts.map +1 -0
  171. package/dist/external/grok-subscription.operations.js +73 -0
  172. package/dist/external/grok-subscription.operations.js.map +1 -0
  173. package/dist/external/index.d.ts +3 -0
  174. package/dist/external/index.d.ts.map +1 -0
  175. package/dist/external/index.js +3 -0
  176. package/dist/external/index.js.map +1 -0
  177. package/dist/index.d.ts +2 -0
  178. package/dist/index.d.ts.map +1 -0
  179. package/dist/index.js +2 -0
  180. package/dist/index.js.map +1 -0
  181. package/dist/outcome.d.ts +9 -0
  182. package/dist/outcome.d.ts.map +1 -0
  183. package/dist/outcome.js +8 -0
  184. package/dist/outcome.js.map +1 -0
  185. package/dist/schemas/health.d.ts +20 -0
  186. package/dist/schemas/health.d.ts.map +1 -0
  187. package/dist/schemas/health.js +17 -0
  188. package/dist/schemas/health.js.map +1 -0
  189. package/dist/schemas/output.d.ts +8 -0
  190. package/dist/schemas/output.d.ts.map +1 -0
  191. package/dist/schemas/output.js +10 -0
  192. package/dist/schemas/output.js.map +1 -0
  193. package/dist/schemas/refusal.d.ts +6 -0
  194. package/dist/schemas/refusal.d.ts.map +1 -0
  195. package/dist/schemas/refusal.js +6 -0
  196. package/dist/schemas/refusal.js.map +1 -0
  197. package/dist/schemas/subscription.d.ts +42 -0
  198. package/dist/schemas/subscription.d.ts.map +1 -0
  199. package/dist/schemas/subscription.js +36 -0
  200. package/dist/schemas/subscription.js.map +1 -0
  201. package/package.json +104 -4
@@ -0,0 +1,46 @@
1
+ /**
2
+ * xAI-owned Grok Build `external/preset` descriptors.
3
+ *
4
+ * Profile: `mcp` (agent-pack minimal MCP). The MCP serve identity for
5
+ * `grok-build` is the `grok` harness.
6
+ */
7
+ import { externalPresetDescriptor } from '@vibesdotdev/external';
8
+ const grokBuildVibesMcpMinimal = {
9
+ id: 'grok-build-vibes-mcp-minimal',
10
+ name: 'Vibes MCP Minimal',
11
+ description: 'MCP-only vibes integration for Grok Build (agent-pack minimal tier)',
12
+ target: 'grok-build',
13
+ category: 'integration',
14
+ tags: ['mcp', 'minimal', 'agent-pack'],
15
+ features: {
16
+ mcpServer: true,
17
+ hooks: [],
18
+ aliases: [],
19
+ modelConfig: false,
20
+ workflowConfig: false,
21
+ disableInternalTools: false
22
+ },
23
+ recipe: {
24
+ id: 'grok-build-vibes-mcp-minimal',
25
+ name: 'Vibes MCP Minimal',
26
+ description: 'Install MCP server via agent pack',
27
+ variables: {},
28
+ steps: [
29
+ {
30
+ type: 'mcp-configure',
31
+ target: 'grok-build',
32
+ serverName: 'vibes',
33
+ command: 'vibes',
34
+ args: ['dev', 'mcp', 'serve', '--preset', 'minimal', '--harness', 'grok', '--agent', 'grok'],
35
+ global: false,
36
+ tier: 'minimal'
37
+ }
38
+ ]
39
+ },
40
+ version: '1.0.0'
41
+ };
42
+ export const grokBuildMcpMinimalPresetDescriptor = externalPresetDescriptor({
43
+ preset: grokBuildVibesMcpMinimal,
44
+ profiles: [{ id: 'mcp', presetId: grokBuildVibesMcpMinimal.id }]
45
+ });
46
+ //# sourceMappingURL=grok-build-presets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grok-build-presets.js","sourceRoot":"","sources":["../../src/external/grok-build-presets.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,wBAAwB,EAAe,MAAM,uBAAuB,CAAC;AAE9E,MAAM,wBAAwB,GAAW;IACxC,EAAE,EAAE,8BAA8B;IAClC,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,qEAAqE;IAClF,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,aAAa;IACvB,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,YAAY,CAAC;IACtC,QAAQ,EAAE;QACT,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,KAAK;QACrB,oBAAoB,EAAE,KAAK;KAC3B;IACD,MAAM,EAAE;QACP,EAAE,EAAE,8BAA8B;QAClC,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,mCAAmC;QAChD,SAAS,EAAE,EAAE;QACb,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,eAAe;gBACrB,MAAM,EAAE,YAAY;gBACpB,UAAU,EAAE,OAAO;gBACnB,OAAO,EAAE,OAAO;gBAChB,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC;gBAC5F,MAAM,EAAE,KAAK;gBACb,IAAI,EAAE,SAAS;aACf;SACD;KACD;IACD,OAAO,EAAE,OAAO;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,wBAAwB,CAAC;IAC3E,MAAM,EAAE,wBAAwB;IAChC,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,wBAAwB,CAAC,EAAE,EAAE,CAAC;CAChE,CAAC,CAAC"}
@@ -0,0 +1,57 @@
1
+ /** `vibes dev external grok login` — Grok's own device-code sign-in. */
2
+ export declare const grokLoginOperationDescriptor: {
3
+ id: string;
4
+ kind: "external/operation";
5
+ hostId: string;
6
+ operation: string;
7
+ effect: "read" | "write" | "process";
8
+ name?: string | undefined;
9
+ description?: string | undefined;
10
+ tags?: string[] | undefined;
11
+ hardware?: string[] | undefined;
12
+ enabled?: boolean | undefined;
13
+ priority?: number | undefined;
14
+ capabilityId?: string | undefined;
15
+ requiredContext?: string[] | undefined;
16
+ optionalContext?: string[] | undefined;
17
+ config?: unknown;
18
+ retention?: string | {
19
+ reason: string;
20
+ maxAgeDays?: number | undefined;
21
+ maxEntries?: number | undefined;
22
+ maxBytes?: number | undefined;
23
+ cascadeFrom?: string | undefined;
24
+ ageField?: string | undefined;
25
+ enforcedBy?: string | undefined;
26
+ } | undefined;
27
+ cli?: false | Record<string, unknown> | undefined;
28
+ };
29
+ /** `vibes dev external grok status` — the profile's own signed-in check. */
30
+ export declare const grokStatusOperationDescriptor: {
31
+ id: string;
32
+ kind: "external/operation";
33
+ hostId: string;
34
+ operation: string;
35
+ effect: "read" | "write" | "process";
36
+ name?: string | undefined;
37
+ description?: string | undefined;
38
+ tags?: string[] | undefined;
39
+ hardware?: string[] | undefined;
40
+ enabled?: boolean | undefined;
41
+ priority?: number | undefined;
42
+ capabilityId?: string | undefined;
43
+ requiredContext?: string[] | undefined;
44
+ optionalContext?: string[] | undefined;
45
+ config?: unknown;
46
+ retention?: string | {
47
+ reason: string;
48
+ maxAgeDays?: number | undefined;
49
+ maxEntries?: number | undefined;
50
+ maxBytes?: number | undefined;
51
+ cascadeFrom?: string | undefined;
52
+ ageField?: string | undefined;
53
+ enforcedBy?: string | undefined;
54
+ } | undefined;
55
+ cli?: false | Record<string, unknown> | undefined;
56
+ };
57
+ //# sourceMappingURL=grok-subscription.operation.descriptors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grok-subscription.operation.descriptors.d.ts","sourceRoot":"","sources":["../../src/external/grok-subscription.operation.descriptors.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;CASvC,CAAC;AAEH,4EAA4E;AAC5E,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;CAQxC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { createExternalOperationDescriptor } from '@vibesdotdev/external';
2
+ /** `vibes dev external grok login` — Grok's own device-code sign-in. */
3
+ export const grokLoginOperationDescriptor = createExternalOperationDescriptor({
4
+ id: 'grok-build/login',
5
+ hostId: 'grok-build',
6
+ operation: 'login',
7
+ name: 'Grok subscription login',
8
+ description: 'Sign the dedicated Grok Build profile in with grok login --device-auth. Grok keeps the session.',
9
+ effect: 'process',
10
+ cli: { nonTtyBehavior: 'interactive' }
11
+ });
12
+ /** `vibes dev external grok status` — the profile's own signed-in check. */
13
+ export const grokStatusOperationDescriptor = createExternalOperationDescriptor({
14
+ id: 'grok-build/status',
15
+ hostId: 'grok-build',
16
+ operation: 'status',
17
+ name: 'Grok subscription status',
18
+ description: 'Check whether the dedicated Grok Build profile is signed in',
19
+ effect: 'read',
20
+ cli: {}
21
+ });
22
+ //# sourceMappingURL=grok-subscription.operation.descriptors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grok-subscription.operation.descriptors.js","sourceRoot":"","sources":["../../src/external/grok-subscription.operation.descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAE1E,wEAAwE;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,iCAAiC,CAAC;IAC7E,EAAE,EAAE,kBAAkB;IACtB,MAAM,EAAE,YAAY;IACpB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACV,iGAAiG;IAClG,MAAM,EAAE,SAAS;IACjB,GAAG,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE;CACtC,CAAC,CAAC;AAEH,4EAA4E;AAC5E,MAAM,CAAC,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;IAC9E,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,YAAY;IACpB,SAAS,EAAE,QAAQ;IACnB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,6DAA6D;IAC1E,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,EAAE;CACP,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ExternalOperation } from '@vibesdotdev/external';
2
+ export declare const grokLoginOperation: ExternalOperation;
3
+ export declare const grokStatusOperation: ExternalOperation;
4
+ //# sourceMappingURL=grok-subscription.operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grok-subscription.operations.d.ts","sourceRoot":"","sources":["../../src/external/grok-subscription.operations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,iBAAiB,EAGjB,MAAM,uBAAuB,CAAC;AA6D/B,eAAO,MAAM,kBAAkB,EAAE,iBAgBhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,iBAKjC,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { checkGrokSubscription, describeGrokSubscriptionFailure, loginGrokSubscription, prepareGrokSubscription } from "../ai/providers/grok/grok-subscription.js";
2
+ import { settle } from "../outcome.js";
3
+ /** The runtime's `cli/ui` port, or `undefined` when this host composes none. */
4
+ async function readUi(runtime) {
5
+ return runtime.hasContext('cli/ui') ? runtime.context('cli/ui') : undefined;
6
+ }
7
+ function failed(message, details) {
8
+ return details.length > 0 ? { status: 'failed', message, details } : { status: 'failed', message };
9
+ }
10
+ /**
11
+ * The operation's report of a failure: the owner's own refusal in its own
12
+ * words; anything else is the operation's fixed sentence, because the
13
+ * underlying diagnostic can carry configuration values.
14
+ */
15
+ function describeFailure(failure, fallback, details) {
16
+ const described = describeGrokSubscriptionFailure(failure);
17
+ return failed(described.error === failure.cause ? described.error.message : fallback, details);
18
+ }
19
+ async function signIn(services, lines) {
20
+ const session = await prepareGrokSubscription(services.runtime);
21
+ const ui = await readUi(services.runtime);
22
+ const login = await loginGrokSubscription(session, {
23
+ // The runtime's own end of life stops the sign-in: it never outlives the host that asked for it.
24
+ signal: services.runtime.lifecycle.signal,
25
+ // The prompt reaches the user through the UI port, in order, before the login returns; a host with no
26
+ // port gets the same lines in the result, so a device code is never printed nowhere.
27
+ onMessage: (message) => {
28
+ if (ui)
29
+ ui.info(message);
30
+ else
31
+ lines.push(message);
32
+ }
33
+ });
34
+ if (login.timedOut)
35
+ return failed('Grok subscription login timed out', lines);
36
+ if (login.exitCode !== 0)
37
+ return failed('Grok subscription login failed', lines);
38
+ if (!(await checkGrokSubscription(session, 5_000)))
39
+ return failed('Grok subscription sign-in has not completed', lines);
40
+ const authenticated = { status: 'ok', message: 'Grok subscription is authenticated' };
41
+ return lines.length > 0 ? { ...authenticated, details: lines } : authenticated;
42
+ }
43
+ async function checkStatus(services) {
44
+ const session = await prepareGrokSubscription(services.runtime);
45
+ const signedIn = await checkGrokSubscription(session, 5_000);
46
+ return signedIn
47
+ ? { status: 'ok', message: 'Grok subscription is authenticated' }
48
+ : failed('Grok subscription profile is not signed in on this device', []);
49
+ }
50
+ export const grokLoginOperation = {
51
+ async execute(_input, context, services) {
52
+ // A dry run changes nothing: it says what would run and starts no process.
53
+ if (context.dryRun) {
54
+ return {
55
+ status: 'ok',
56
+ changed: false,
57
+ message: 'Dry run: would sign the dedicated Grok Build profile in with grok login (no process was started)'
58
+ };
59
+ }
60
+ const lines = [];
61
+ const outcome = await settle(() => signIn(services, lines));
62
+ return !outcome.ok
63
+ ? describeFailure(outcome, 'Grok subscription login failed', lines)
64
+ : outcome.value;
65
+ }
66
+ };
67
+ export const grokStatusOperation = {
68
+ async execute(_input, _context, services) {
69
+ const outcome = await settle(() => checkStatus(services));
70
+ return !outcome.ok ? describeFailure(outcome, 'Grok subscription is unavailable', []) : outcome.value;
71
+ }
72
+ };
73
+ //# sourceMappingURL=grok-subscription.operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grok-subscription.operations.js","sourceRoot":"","sources":["../../src/external/grok-subscription.operations.ts"],"names":[],"mappings":"AAMA,OAAO,EACN,qBAAqB,EACrB,+BAA+B,EAC/B,qBAAqB,EACrB,uBAAuB,EACvB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,MAAM,EAAgB,MAAM,eAAe,CAAC;AAOrD,gFAAgF;AAChF,KAAK,UAAU,MAAM,CAAC,OAAmB;IACxC,OAAO,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAS,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACrF,CAAC;AAED,SAAS,MAAM,CAAC,OAA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C,OAAO,EAAE,gCAAgC,EAAE,KAAK,CAAC;YACnE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAClB,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACrD,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ;QACvC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1D,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,EAAE,kCAAkC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACvG,CAAC;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as grokBuildDescriptor } from './grok-build/index.ts';
2
+ export { grokBuildMcpMinimalPresetDescriptor } from './grok-build-presets.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/external/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as grokBuildDescriptor } from "./grok-build/index.js";
2
+ export { grokBuildMcpMinimalPresetDescriptor } from "./grok-build-presets.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/external/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ai/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./ai/index.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { CaughtFailure, Settled } from '@vibesdotdev/kernel';
2
+ export { settle, settleNow as attempt } from '@vibesdotdev/kernel';
3
+ export type { Settled as Outcome } from '@vibesdotdev/kernel';
4
+ export type Failure = Extract<Settled<never>, {
5
+ ok: false;
6
+ }>;
7
+ /** Project a caught value for APIs that require an Error. */
8
+ export declare function asError(failure: CaughtFailure): Error;
9
+ //# sourceMappingURL=outcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outcome.d.ts","sourceRoot":"","sources":["../src/outcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnE,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE7D,6DAA6D;AAC7D,wBAAgB,OAAO,CAAC,OAAO,EAAE,aAAa,GAAG,KAAK,CAGrD"}
@@ -0,0 +1,8 @@
1
+ export { settle, settleNow as attempt } from '@vibesdotdev/kernel';
2
+ /** Project a caught value for APIs that require an Error. */
3
+ export function asError(failure) {
4
+ if (failure instanceof Error)
5
+ return failure;
6
+ return new TypeError('A non-Error value was thrown.', { cause: failure.value });
7
+ }
8
+ //# sourceMappingURL=outcome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outcome.js","sourceRoot":"","sources":["../src/outcome.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAInE,6DAA6D;AAC7D,MAAM,UAAU,OAAO,CAAC,OAAsB;IAC7C,IAAI,OAAO,YAAY,KAAK;QAAE,OAAO,OAAO,CAAC;IAC7C,OAAO,IAAI,SAAS,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;AACjF,CAAC"}
@@ -0,0 +1,20 @@
1
+ import * as z from 'zod/v4';
2
+ /** The health probe's accepted timeout bounds. */
3
+ export declare const ProbeTimeoutSchema: z.ZodInt;
4
+ export declare const BaseUrlSchema: z.ZodString;
5
+ /**
6
+ * What health and authentication read of a connection, read once. `authMethod`
7
+ * is the connection schema's own field, so a connection that names none is a
8
+ * subscription connection here exactly as it is in the connection form.
9
+ */
10
+ export declare const HealthConfigSchema: z.ZodObject<{
11
+ authMethod: z.ZodDefault<z.ZodEnum<{
12
+ "grok-cli": "grok-cli";
13
+ "api-key": "api-key";
14
+ }>>;
15
+ apiKey: z.ZodOptional<z.ZodUnknown>;
16
+ baseUrl: z.ZodOptional<z.ZodUnknown>;
17
+ timeout: z.ZodOptional<z.ZodUnknown>;
18
+ }, z.core.$strip>;
19
+ export type HealthConfig = z.infer<typeof HealthConfigSchema>;
20
+ //# sourceMappingURL=health.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../src/schemas/health.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,kDAAkD;AAClD,eAAO,MAAM,kBAAkB,UAA8B,CAAC;AAE9D,eAAO,MAAM,aAAa,aAAa,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import * as z from 'zod/v4';
2
+ import { grokAuthMethodSchema } from "../ai/providers/cloud/frontier/grok/config/schemas/index.js";
3
+ /** The health probe's accepted timeout bounds. */
4
+ export const ProbeTimeoutSchema = z.int().min(1).max(600_000);
5
+ export const BaseUrlSchema = z.string();
6
+ /**
7
+ * What health and authentication read of a connection, read once. `authMethod`
8
+ * is the connection schema's own field, so a connection that names none is a
9
+ * subscription connection here exactly as it is in the connection form.
10
+ */
11
+ export const HealthConfigSchema = z.object({
12
+ authMethod: grokAuthMethodSchema,
13
+ apiKey: z.unknown().optional(),
14
+ baseUrl: z.unknown().optional(),
15
+ timeout: z.unknown().optional()
16
+ });
17
+ //# sourceMappingURL=health.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"health.js","sourceRoot":"","sources":["../../src/schemas/health.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AACnG,kDAAkD;AAClD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAE9D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,oBAAoB;IAChC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as z from 'zod/v4';
2
+ export declare const GrokBuildOutputSchema: z.ZodObject<{
3
+ type: z.ZodOptional<z.ZodUnknown>;
4
+ is_error: z.ZodOptional<z.ZodUnknown>;
5
+ stopReason: z.ZodString;
6
+ text: z.ZodString;
7
+ }, z.core.$loose>;
8
+ //# sourceMappingURL=output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/schemas/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,eAAO,MAAM,qBAAqB;;;;;iBAOuC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as z from 'zod/v4';
2
+ export const GrokBuildOutputSchema = z
3
+ .looseObject({
4
+ type: z.unknown().optional(),
5
+ is_error: z.unknown().optional(),
6
+ stopReason: z.string().regex(/^[a-z][a-z0-9_]{0,63}$/),
7
+ text: z.string().trim().min(1)
8
+ })
9
+ .refine((output) => output.type !== 'error' && output.is_error !== true);
10
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/schemas/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACpC,WAAW,CAAC;IACZ,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC;IACtD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B,CAAC;KACD,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as z from 'zod/v4';
2
+ export declare const StructuredRefusalSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"error">;
4
+ message: z.ZodString;
5
+ }, z.core.$loose>;
6
+ //# sourceMappingURL=refusal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refusal.d.ts","sourceRoot":"","sources":["../../src/schemas/refusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as z from 'zod/v4';
2
+ export const StructuredRefusalSchema = z.looseObject({
3
+ type: z.literal('error'),
4
+ message: z.string().trim().min(1)
5
+ });
6
+ //# sourceMappingURL=refusal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refusal.js","sourceRoot":"","sources":["../../src/schemas/refusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC;IACpD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACjC,CAAC,CAAC"}
@@ -0,0 +1,42 @@
1
+ import * as z from 'zod/v4';
2
+ export declare const inspectionSchema: z.ZodObject<{
3
+ loginPolicy: z.ZodObject<{
4
+ apiKeyAuthDisabled: z.ZodLiteral<true>;
5
+ }, z.core.$strip>;
6
+ configSources: z.ZodObject<{
7
+ layers: z.ZodArray<z.ZodObject<{
8
+ role: z.ZodString;
9
+ path: z.ZodString;
10
+ note: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ configWarnings: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
14
+ }, z.core.$strip>;
15
+ /** Admit vendor marketplace bookkeeping; model, endpoint, credential and hook overrides remain forbidden. */
16
+ export declare const nativeBookkeepingSchema: z.ZodObject<{
17
+ marketplace: z.ZodOptional<z.ZodObject<{
18
+ default_skills_installs_purged: z.ZodOptional<z.ZodBoolean>;
19
+ official_marketplace_auto_installed: z.ZodOptional<z.ZodBoolean>;
20
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
+ name: z.ZodString;
22
+ git: z.ZodString;
23
+ }, z.core.$strict>>>;
24
+ }, z.core.$strict>>;
25
+ }, z.core.$strict>;
26
+ export declare const SubscriptionDetailsSchema: z.ZodObject<{
27
+ subscription: z.ZodEnum<{
28
+ CONSUMER_RUNTIME_REQUIRED: "CONSUMER_RUNTIME_REQUIRED";
29
+ CLI_UNAVAILABLE: "CLI_UNAVAILABLE";
30
+ SUBSCRIPTION_ROUTE_UNVERIFIED: "SUBSCRIPTION_ROUTE_UNVERIFIED";
31
+ SUBSCRIPTION_REQUIRED: "SUBSCRIPTION_REQUIRED";
32
+ AUTH_TIMEOUT: "AUTH_TIMEOUT";
33
+ GENERATION_TIMEOUT: "GENERATION_TIMEOUT";
34
+ AUTH_CANCELLED: "AUTH_CANCELLED";
35
+ INVALID_REQUEST: "INVALID_REQUEST";
36
+ GENERATION_FAILED: "GENERATION_FAILED";
37
+ STATUS_CHECK_FAILED: "STATUS_CHECK_FAILED";
38
+ SUBSCRIPTION_UNAVAILABLE: "SUBSCRIPTION_UNAVAILABLE";
39
+ }>;
40
+ }, z.core.$strip>;
41
+ export type GrokSubscriptionCode = z.infer<typeof SubscriptionDetailsSchema>['subscription'];
42
+ //# sourceMappingURL=subscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/schemas/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;iBAQ3B,CAAC;AAEH,6GAA6G;AAC7G,eAAO,MAAM,uBAAuB;;;;;;;;;kBAUlC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;iBAcpC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC,cAAc,CAAC,CAAC"}
@@ -0,0 +1,36 @@
1
+ import * as z from 'zod/v4';
2
+ export const inspectionSchema = z.object({
3
+ loginPolicy: z.object({ apiKeyAuthDisabled: z.literal(true) }),
4
+ configSources: z.object({
5
+ layers: z.array(z.object({ role: z.string(), path: z.string(), note: z.string().optional() }))
6
+ }),
7
+ configWarnings: z.array(z.unknown()).length(0).optional()
8
+ });
9
+ /** Admit vendor marketplace bookkeeping; model, endpoint, credential and hook overrides remain forbidden. */
10
+ export const nativeBookkeepingSchema = z.strictObject({
11
+ marketplace: z
12
+ .strictObject({
13
+ default_skills_installs_purged: z.boolean().optional(),
14
+ official_marketplace_auto_installed: z.boolean().optional(),
15
+ sources: z
16
+ .array(z.strictObject({ name: z.string(), git: z.string() }))
17
+ .optional()
18
+ })
19
+ .optional()
20
+ });
21
+ export const SubscriptionDetailsSchema = z.object({
22
+ subscription: z.enum([
23
+ 'CONSUMER_RUNTIME_REQUIRED',
24
+ 'CLI_UNAVAILABLE',
25
+ 'SUBSCRIPTION_ROUTE_UNVERIFIED',
26
+ 'SUBSCRIPTION_REQUIRED',
27
+ 'AUTH_TIMEOUT',
28
+ 'GENERATION_TIMEOUT',
29
+ 'AUTH_CANCELLED',
30
+ 'INVALID_REQUEST',
31
+ 'GENERATION_FAILED',
32
+ 'STATUS_CHECK_FAILED',
33
+ 'SUBSCRIPTION_UNAVAILABLE'
34
+ ])
35
+ });
36
+ //# sourceMappingURL=subscription.js.map
@@ -0,0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AyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC;QACpB,2BAA2B;QAC3B,iBAAiB;QACjB,+BAA+B;QAC/B,uBAAuB;QACvB,cAAc;QACd,oBAAoB;QACpB,gBAAgB;QAChB,iBAAiB;QACjB,mBAAmB;QACnB,qBAAqB;QACrB,0BAA0B;KAC1B,CAAC;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,106 @@
1
1
  {
2
2
  "name": "@vibesdotdev/integrations-grok",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0-rc.0",
4
+ "dependencies": {
5
+ "@vibesdotdev/filesystem": "^1.0.0-rc.2",
6
+ "smol-toml": "^1.9.1",
7
+ "@vibesdotdev/paths": "^1.0.0-rc.3",
8
+ "@vibesdotdev/ai": "^1.0.0-rc.2",
9
+ "@vibesdotdev/docs-contracts": "^1.0.0-rc.4",
10
+ "zod": "^4.6.7",
11
+ "@vibesdotdev/logging": "^1.0.0-rc.3",
12
+ "@vibesdotdev/kernel": "^1.0.0-rc.5",
13
+ "@vibesdotdev/external": "^1.0.0-rc.0"
14
+ },
15
+ "main": "./dist/index.js",
16
+ "exports": {
17
+ ".": {
18
+ "bun": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js",
21
+ "default": "./dist/index.js"
22
+ },
23
+ "./ai": {
24
+ "bun": "./dist/ai/index.js",
25
+ "types": "./dist/ai/index.d.ts",
26
+ "import": "./dist/ai/index.js",
27
+ "default": "./dist/ai/index.js"
28
+ },
29
+ "./ai/*": {
30
+ "bun": "./dist/ai/*.js",
31
+ "types": "./dist/ai/*.d.ts",
32
+ "import": "./dist/ai/*.js",
33
+ "default": "./dist/ai/*.js"
34
+ },
35
+ "./ai/plugin": {
36
+ "bun": "./dist/ai/provider.plugin.js",
37
+ "types": "./dist/ai/provider.plugin.d.ts",
38
+ "import": "./dist/ai/provider.plugin.js",
39
+ "default": "./dist/ai/provider.plugin.js"
40
+ },
41
+ "./external": {
42
+ "bun": "./dist/external/index.js",
43
+ "types": "./dist/external/index.d.ts",
44
+ "import": "./dist/external/index.js",
45
+ "default": "./dist/external/index.js"
46
+ },
47
+ "./external/plugin": {
48
+ "bun": "./dist/external/external.plugin.js",
49
+ "types": "./dist/external/external.plugin.d.ts",
50
+ "import": "./dist/external/external.plugin.js",
51
+ "default": "./dist/external/external.plugin.js"
52
+ },
53
+ "./ai/shared.plugin": {
54
+ "bun": "./dist/ai/provider.shared.plugin.js",
55
+ "types": "./dist/ai/provider.shared.plugin.d.ts",
56
+ "import": "./dist/ai/provider.shared.plugin.js",
57
+ "default": "./dist/ai/provider.shared.plugin.js"
58
+ },
59
+ "./ai/consumer.plugin": {
60
+ "bun": "./dist/ai/provider.consumer.plugin.js",
61
+ "types": "./dist/ai/provider.consumer.plugin.d.ts",
62
+ "import": "./dist/ai/provider.consumer.plugin.js",
63
+ "default": "./dist/ai/provider.consumer.plugin.js"
64
+ }
65
+ },
66
+ "files": [
67
+ "dist",
68
+ "README.md",
69
+ "LICENSE"
70
+ ],
71
+ "scripts": {
72
+ "lint": "node ../../node_modules/@vibesdotdev/internal-oxlint-toolchain/ratchet.mjs .",
73
+ "check": "bun --bun tsc -p tsconfig.json",
74
+ "test": "bun test src && bun run test:node",
75
+ "test:node": "rm -rf .cache/node-run && bun build --target=node --conditions=bun --splitting --format=esm --outdir .cache/node-run/bundle/node-run src/__tests__/node-run/grok-agent.node-run.ts && bun build --target=node --conditions=bun --splitting --format=esm --outdir .cache/node-run/bundle/node-run src/__tests__/node-run/fake-acp-agent.child.ts && node --test --test-timeout=60000 .cache/node-run/bundle/node-run/grok-agent.node-run.js",
76
+ "build": "rm -rf dist && tsc -p tsconfig.build.json && mkdir -p dist/ai/metadata && cp -R src/ai/metadata dist/ai/"
77
+ },
78
+ "repository": {
79
+ "type": "git",
80
+ "url": "ssh://git@git.vibes.dev/vibesdotdev/integrations.git",
81
+ "directory": "integrations/grok"
82
+ },
83
+ "publishConfig": {
84
+ "registry": "https://packages.vibes.dev",
85
+ "access": "public"
86
+ },
87
+ "vibes": {
88
+ "visibility": "public",
89
+ "compositionRoots": [
90
+ "src/__tests__/node-run/grok-agent.node-run.ts"
91
+ ],
92
+ "registry": {
93
+ "repositoryId": "70be51c9-5ab7-4d7e-9f47-801cb17720d8",
94
+ "directory": "integrations/grok"
95
+ }
96
+ },
97
+ "type": "module",
98
+ "types": "./dist/index.d.ts",
99
+ "license": "BUSL-1.1",
100
+ "gitHead": "494ddfcab4c073eef61acb182042223d7e4da2e5",
101
+ "_vibes_source": {
102
+ "repo": "ssh://git@git.vibes.dev/vibesdotdev/integrations.git",
103
+ "sha": "494ddfcab4c073eef61acb182042223d7e4da2e5",
104
+ "workspaceDigest": "sha256:dc356dfc85af22f48c7db5a8e4216611107b14715b0b165fe3673efb82c280d7"
105
+ }
106
+ }