skrypt-ai 0.5.0 → 0.6.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 (120) hide show
  1. package/dist/auth/index.js +8 -1
  2. package/dist/autofix/index.d.ts +0 -4
  3. package/dist/autofix/index.js +0 -21
  4. package/dist/capture/browser.d.ts +11 -0
  5. package/dist/capture/browser.js +173 -0
  6. package/dist/capture/diff.d.ts +23 -0
  7. package/dist/capture/diff.js +52 -0
  8. package/dist/capture/index.d.ts +23 -0
  9. package/dist/capture/index.js +210 -0
  10. package/dist/capture/naming.d.ts +17 -0
  11. package/dist/capture/naming.js +45 -0
  12. package/dist/capture/parser.d.ts +15 -0
  13. package/dist/capture/parser.js +80 -0
  14. package/dist/capture/types.d.ts +57 -0
  15. package/dist/capture/types.js +1 -0
  16. package/dist/cli.js +4 -0
  17. package/dist/commands/autofix.js +136 -120
  18. package/dist/commands/cron.js +58 -47
  19. package/dist/commands/deploy.js +123 -102
  20. package/dist/commands/generate.js +88 -6
  21. package/dist/commands/heal.d.ts +10 -0
  22. package/dist/commands/heal.js +201 -0
  23. package/dist/commands/i18n.js +146 -111
  24. package/dist/commands/lint.js +50 -44
  25. package/dist/commands/llms-txt.js +59 -49
  26. package/dist/commands/login.js +61 -43
  27. package/dist/commands/mcp.js +6 -0
  28. package/dist/commands/monitor.js +13 -8
  29. package/dist/commands/qa.d.ts +2 -0
  30. package/dist/commands/qa.js +43 -0
  31. package/dist/commands/review-pr.js +108 -102
  32. package/dist/commands/sdk.js +128 -122
  33. package/dist/commands/security.js +86 -80
  34. package/dist/commands/test.js +91 -92
  35. package/dist/commands/version.js +104 -75
  36. package/dist/commands/watch.js +130 -114
  37. package/dist/config/types.js +2 -2
  38. package/dist/context-hub/index.d.ts +23 -0
  39. package/dist/context-hub/index.js +179 -0
  40. package/dist/context-hub/mappings.d.ts +8 -0
  41. package/dist/context-hub/mappings.js +55 -0
  42. package/dist/context-hub/types.d.ts +33 -0
  43. package/dist/context-hub/types.js +1 -0
  44. package/dist/generator/generator.js +39 -6
  45. package/dist/generator/types.d.ts +7 -0
  46. package/dist/generator/writer.d.ts +3 -1
  47. package/dist/generator/writer.js +24 -4
  48. package/dist/llm/anthropic-client.d.ts +1 -0
  49. package/dist/llm/anthropic-client.js +3 -1
  50. package/dist/llm/index.d.ts +6 -4
  51. package/dist/llm/index.js +76 -261
  52. package/dist/llm/openai-client.d.ts +1 -0
  53. package/dist/llm/openai-client.js +7 -2
  54. package/dist/qa/checks.d.ts +10 -0
  55. package/dist/qa/checks.js +492 -0
  56. package/dist/qa/fixes.d.ts +30 -0
  57. package/dist/qa/fixes.js +277 -0
  58. package/dist/qa/index.d.ts +29 -0
  59. package/dist/qa/index.js +187 -0
  60. package/dist/qa/types.d.ts +24 -0
  61. package/dist/qa/types.js +1 -0
  62. package/dist/scanner/csharp.d.ts +23 -0
  63. package/dist/scanner/csharp.js +421 -0
  64. package/dist/scanner/index.js +16 -2
  65. package/dist/scanner/java.d.ts +39 -0
  66. package/dist/scanner/java.js +318 -0
  67. package/dist/scanner/kotlin.d.ts +23 -0
  68. package/dist/scanner/kotlin.js +389 -0
  69. package/dist/scanner/php.d.ts +57 -0
  70. package/dist/scanner/php.js +351 -0
  71. package/dist/scanner/ruby.d.ts +36 -0
  72. package/dist/scanner/ruby.js +431 -0
  73. package/dist/scanner/swift.d.ts +25 -0
  74. package/dist/scanner/swift.js +392 -0
  75. package/dist/scanner/types.d.ts +1 -1
  76. package/dist/template/content/docs/_navigation.json +46 -0
  77. package/dist/template/content/docs/_sidebars.json +684 -0
  78. package/dist/template/content/docs/core.md +4544 -0
  79. package/dist/template/content/docs/index.mdx +89 -0
  80. package/dist/template/content/docs/integrations.md +1158 -0
  81. package/dist/template/content/docs/llms-full.md +403 -0
  82. package/dist/template/content/docs/llms.txt +4588 -0
  83. package/dist/template/content/docs/other.md +10379 -0
  84. package/dist/template/content/docs/tools.md +746 -0
  85. package/dist/template/content/docs/types.md +531 -0
  86. package/dist/template/docs.json +13 -11
  87. package/dist/template/mdx-components.tsx +27 -2
  88. package/dist/template/package.json +6 -0
  89. package/dist/template/public/search-index.json +1 -1
  90. package/dist/template/scripts/build-search-index.mjs +84 -6
  91. package/dist/template/src/app/api/chat/route.ts +83 -128
  92. package/dist/template/src/app/docs/[...slug]/page.tsx +75 -20
  93. package/dist/template/src/app/docs/llms-full.md +151 -4
  94. package/dist/template/src/app/docs/llms.txt +2464 -847
  95. package/dist/template/src/app/docs/page.mdx +48 -38
  96. package/dist/template/src/app/layout.tsx +3 -1
  97. package/dist/template/src/app/page.tsx +22 -8
  98. package/dist/template/src/components/ai-chat.tsx +73 -64
  99. package/dist/template/src/components/breadcrumbs.tsx +21 -23
  100. package/dist/template/src/components/copy-button.tsx +13 -9
  101. package/dist/template/src/components/copy-page-button.tsx +54 -0
  102. package/dist/template/src/components/docs-layout.tsx +37 -25
  103. package/dist/template/src/components/header.tsx +51 -10
  104. package/dist/template/src/components/mdx/card.tsx +17 -3
  105. package/dist/template/src/components/mdx/code-block.tsx +13 -9
  106. package/dist/template/src/components/mdx/code-group.tsx +13 -8
  107. package/dist/template/src/components/mdx/heading.tsx +15 -2
  108. package/dist/template/src/components/mdx/highlighted-code.tsx +13 -8
  109. package/dist/template/src/components/mdx/index.tsx +2 -0
  110. package/dist/template/src/components/mdx/mermaid.tsx +110 -0
  111. package/dist/template/src/components/mdx/screenshot.tsx +150 -0
  112. package/dist/template/src/components/scroll-to-hash.tsx +48 -0
  113. package/dist/template/src/components/sidebar.tsx +12 -18
  114. package/dist/template/src/components/table-of-contents.tsx +9 -0
  115. package/dist/template/src/lib/highlight.ts +3 -88
  116. package/dist/template/src/lib/navigation.ts +159 -0
  117. package/dist/template/src/styles/globals.css +17 -6
  118. package/dist/utils/validation.d.ts +0 -3
  119. package/dist/utils/validation.js +0 -26
  120. package/package.json +3 -2
@@ -5,11 +5,17 @@
5
5
  ## getAuthConfig
6
6
  function getAuthConfig(): AuthConfig
7
7
 
8
+ ## getAuthConfigAsync
9
+ async function getAuthConfigAsync(): Promise<AuthConfig>
10
+
8
11
  ## saveAuthConfig
9
- function saveAuthConfig(config: AuthConfig): void
12
+ async function saveAuthConfig(config: AuthConfig): Promise<void>
10
13
 
11
14
  ## clearAuth
12
- function clearAuth(): void
15
+ async function clearAuth(): Promise<void>
16
+
17
+ ## getKeyStorageMethod
18
+ async function getKeyStorageMethod(): Promise<'keychain' | 'file' | 'env' | 'none'>
13
19
 
14
20
  ## checkPlan
15
21
  async function checkPlan(apiKey: string): Promise<PlanCheckResponse>
@@ -17,8 +23,29 @@ async function checkPlan(apiKey: string): Promise<PlanCheckResponse>
17
23
  ## requirePro
18
24
  async function requirePro(commandName: string): Promise<boolean>
19
25
 
20
- ## isProCommand
21
- function isProCommand(command: string): boolean
26
+ ## keychainAvailable
27
+ async function keychainAvailable(): Promise<boolean>
28
+
29
+ ## keychainStore
30
+ async function keychainStore(key: string): Promise<boolean>
31
+
32
+ ## keychainRetrieve
33
+ async function keychainRetrieve(): Promise<string | null>
34
+
35
+ ## keychainDelete
36
+ async function keychainDelete(): Promise<boolean>
37
+
38
+ ## getKeychainPlatformName
39
+ function getKeychainPlatformName(): string
40
+
41
+ ## hasSeenNotice
42
+ function hasSeenNotice(id: string): boolean
43
+
44
+ ## markNoticeSeen
45
+ function markNoticeSeen(id: string): void
46
+
47
+ ## showSecurityNotice
48
+ function showSecurityNotice(): void
22
49
 
23
50
  ## autoFixExample
24
51
  async function autoFixExample(example: CodeExample, client: LLMClient, options: AutoFixOptions = {}): Promise<FixResult>
@@ -92,6 +119,105 @@ async function postInlineComments(config: PRCommentConfig, issues: Documentation
92
119
  ## analyzePRForDocs
93
120
  async function analyzePRForDocs(config: PRCommentConfig, _options: { checkExamples?: boolean } = {}): Promise<DocumentationIssue[]>
94
121
 
122
+ ## importConfluence
123
+ function importConfluence(dir: string, name?: string): ImportResult
124
+
125
+ ## detectFormat
126
+ function detectFormat(dir: string): ImportFormat
127
+
128
+ ## isGitHubUrl
129
+ function isGitHubUrl(input: string): boolean
130
+
131
+ ## parseGitHubUrl
132
+ function parseGitHubUrl(url: string): { owner: string; repo: string; path: string; ref: string }
133
+
134
+ ## importDocusaurus
135
+ function importDocusaurus(dir: string, name?: string): ImportResult
136
+
137
+ ## importGitBook
138
+ function importGitBook(dir: string, name?: string): ImportResult
139
+
140
+ ## importFromGitHub
141
+ async function importFromGitHub(owner: string, repo: string, path: string, ref: string, options?: { format?: ImportFormat; name?: string }): Promise<ImportResult>
142
+
143
+ ## runImport
144
+ function runImport(dir: string, format: ImportFormat, name?: string): ImportResult
145
+
146
+ ## importMarkdown
147
+ function importMarkdown(dir: string, name?: string): ImportResult
148
+
149
+ ## importMintlify
150
+ function importMintlify(dir: string, name?: string): ImportResult
151
+
152
+ ## importNotion
153
+ function importNotion(dir: string, name?: string): ImportResult
154
+
155
+ ## importReadme
156
+ function importReadme(dir: string, name?: string): ImportResult
157
+
158
+ ## transformMintlifyCallouts
159
+ function transformMintlifyCallouts(content: string): string
160
+
161
+ ## transformDocusaurusAdmonitions
162
+ function transformDocusaurusAdmonitions(content: string): string
163
+
164
+ ## transformGitBookHints
165
+ function transformGitBookHints(content: string): string
166
+
167
+ ## transformReadmeCallouts
168
+ function transformReadmeCallouts(content: string): string
169
+
170
+ ## transformNotionCallouts
171
+ function transformNotionCallouts(content: string): string
172
+
173
+ ## transformConfluenceCallouts
174
+ function transformConfluenceCallouts(content: string): string
175
+
176
+ ## transformMintlifyTabs
177
+ function transformMintlifyTabs(content: string): string
178
+
179
+ ## transformDocusaurusTabs
180
+ function transformDocusaurusTabs(content: string): string
181
+
182
+ ## transformGitBookTabs
183
+ function transformGitBookTabs(content: string): string
184
+
185
+ ## transformReadmeCodeBlocks
186
+ function transformReadmeCodeBlocks(content: string): string
187
+
188
+ ## transformGitBookSteps
189
+ function transformGitBookSteps(content: string): string
190
+
191
+ ## transformGitBookExpandable
192
+ function transformGitBookExpandable(content: string): string
193
+
194
+ ## transformGitBookContentRef
195
+ function transformGitBookContentRef(content: string): string
196
+
197
+ ## transformGitBookEmbed
198
+ function transformGitBookEmbed(content: string): string
199
+
200
+ ## transformNotionToggles
201
+ function transformNotionToggles(content: string): string
202
+
203
+ ## transformConfluenceHtml
204
+ function transformConfluenceHtml(content: string): string
205
+
206
+ ## stripDocusaurusImports
207
+ function stripDocusaurusImports(content: string): string
208
+
209
+ ## normalizeFrontmatter
210
+ function normalizeFrontmatter(content: string, defaults?: FrontmatterDefaults): string
211
+
212
+ ## rewriteImagePaths
213
+ function rewriteImagePaths(content: string, mapping: Map<string, string>): string
214
+
215
+ ## stripNotionUUIDs
216
+ function stripNotionUUIDs(filename: string): string
217
+
218
+ ## getSortWeight
219
+ function getSortWeight(content: string): number
220
+
95
221
  ## AnthropicClient
96
222
  class AnthropicClient implements LLMClient
97
223
 
@@ -254,3 +380,24 @@ canHandle(filePath: string): boolean
254
380
  ## scanFile
255
381
  async scanFile(filePath: string): Promise<ScanResult>
256
382
 
383
+ ## findMdxFiles
384
+ function findMdxFiles(dir: string): string[]
385
+
386
+ ## slugify
387
+ function slugify(str: string): string
388
+
389
+ ## parseFrontmatter
390
+ function parseFrontmatter(content: string): { data: Record<string, unknown>; content: string }
391
+
392
+ ## validatePath
393
+ function validatePath(input: string, mustExist = true): string
394
+
395
+ ## validateUrl
396
+ function validateUrl(input: string): string
397
+
398
+ ## validateSlug
399
+ function validateSlug(input: string): string
400
+
401
+ ## sanitizeForShell
402
+ function sanitizeForShell(input: string): string
403
+