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.
- package/dist/auth/index.js +8 -1
- package/dist/autofix/index.d.ts +0 -4
- package/dist/autofix/index.js +0 -21
- package/dist/capture/browser.d.ts +11 -0
- package/dist/capture/browser.js +173 -0
- package/dist/capture/diff.d.ts +23 -0
- package/dist/capture/diff.js +52 -0
- package/dist/capture/index.d.ts +23 -0
- package/dist/capture/index.js +210 -0
- package/dist/capture/naming.d.ts +17 -0
- package/dist/capture/naming.js +45 -0
- package/dist/capture/parser.d.ts +15 -0
- package/dist/capture/parser.js +80 -0
- package/dist/capture/types.d.ts +57 -0
- package/dist/capture/types.js +1 -0
- package/dist/cli.js +4 -0
- package/dist/commands/autofix.js +136 -120
- package/dist/commands/cron.js +58 -47
- package/dist/commands/deploy.js +123 -102
- package/dist/commands/generate.js +88 -6
- package/dist/commands/heal.d.ts +10 -0
- package/dist/commands/heal.js +201 -0
- package/dist/commands/i18n.js +146 -111
- package/dist/commands/lint.js +50 -44
- package/dist/commands/llms-txt.js +59 -49
- package/dist/commands/login.js +61 -43
- package/dist/commands/mcp.js +6 -0
- package/dist/commands/monitor.js +13 -8
- package/dist/commands/qa.d.ts +2 -0
- package/dist/commands/qa.js +43 -0
- package/dist/commands/review-pr.js +108 -102
- package/dist/commands/sdk.js +128 -122
- package/dist/commands/security.js +86 -80
- package/dist/commands/test.js +91 -92
- package/dist/commands/version.js +104 -75
- package/dist/commands/watch.js +130 -114
- package/dist/config/types.js +2 -2
- package/dist/context-hub/index.d.ts +23 -0
- package/dist/context-hub/index.js +179 -0
- package/dist/context-hub/mappings.d.ts +8 -0
- package/dist/context-hub/mappings.js +55 -0
- package/dist/context-hub/types.d.ts +33 -0
- package/dist/context-hub/types.js +1 -0
- package/dist/generator/generator.js +39 -6
- package/dist/generator/types.d.ts +7 -0
- package/dist/generator/writer.d.ts +3 -1
- package/dist/generator/writer.js +24 -4
- package/dist/llm/anthropic-client.d.ts +1 -0
- package/dist/llm/anthropic-client.js +3 -1
- package/dist/llm/index.d.ts +6 -4
- package/dist/llm/index.js +76 -261
- package/dist/llm/openai-client.d.ts +1 -0
- package/dist/llm/openai-client.js +7 -2
- package/dist/qa/checks.d.ts +10 -0
- package/dist/qa/checks.js +492 -0
- package/dist/qa/fixes.d.ts +30 -0
- package/dist/qa/fixes.js +277 -0
- package/dist/qa/index.d.ts +29 -0
- package/dist/qa/index.js +187 -0
- package/dist/qa/types.d.ts +24 -0
- package/dist/qa/types.js +1 -0
- package/dist/scanner/csharp.d.ts +23 -0
- package/dist/scanner/csharp.js +421 -0
- package/dist/scanner/index.js +16 -2
- package/dist/scanner/java.d.ts +39 -0
- package/dist/scanner/java.js +318 -0
- package/dist/scanner/kotlin.d.ts +23 -0
- package/dist/scanner/kotlin.js +389 -0
- package/dist/scanner/php.d.ts +57 -0
- package/dist/scanner/php.js +351 -0
- package/dist/scanner/ruby.d.ts +36 -0
- package/dist/scanner/ruby.js +431 -0
- package/dist/scanner/swift.d.ts +25 -0
- package/dist/scanner/swift.js +392 -0
- package/dist/scanner/types.d.ts +1 -1
- package/dist/template/content/docs/_navigation.json +46 -0
- package/dist/template/content/docs/_sidebars.json +684 -0
- package/dist/template/content/docs/core.md +4544 -0
- package/dist/template/content/docs/index.mdx +89 -0
- package/dist/template/content/docs/integrations.md +1158 -0
- package/dist/template/content/docs/llms-full.md +403 -0
- package/dist/template/content/docs/llms.txt +4588 -0
- package/dist/template/content/docs/other.md +10379 -0
- package/dist/template/content/docs/tools.md +746 -0
- package/dist/template/content/docs/types.md +531 -0
- package/dist/template/docs.json +13 -11
- package/dist/template/mdx-components.tsx +27 -2
- package/dist/template/package.json +6 -0
- package/dist/template/public/search-index.json +1 -1
- package/dist/template/scripts/build-search-index.mjs +84 -6
- package/dist/template/src/app/api/chat/route.ts +83 -128
- package/dist/template/src/app/docs/[...slug]/page.tsx +75 -20
- package/dist/template/src/app/docs/llms-full.md +151 -4
- package/dist/template/src/app/docs/llms.txt +2464 -847
- package/dist/template/src/app/docs/page.mdx +48 -38
- package/dist/template/src/app/layout.tsx +3 -1
- package/dist/template/src/app/page.tsx +22 -8
- package/dist/template/src/components/ai-chat.tsx +73 -64
- package/dist/template/src/components/breadcrumbs.tsx +21 -23
- package/dist/template/src/components/copy-button.tsx +13 -9
- package/dist/template/src/components/copy-page-button.tsx +54 -0
- package/dist/template/src/components/docs-layout.tsx +37 -25
- package/dist/template/src/components/header.tsx +51 -10
- package/dist/template/src/components/mdx/card.tsx +17 -3
- package/dist/template/src/components/mdx/code-block.tsx +13 -9
- package/dist/template/src/components/mdx/code-group.tsx +13 -8
- package/dist/template/src/components/mdx/heading.tsx +15 -2
- package/dist/template/src/components/mdx/highlighted-code.tsx +13 -8
- package/dist/template/src/components/mdx/index.tsx +2 -0
- package/dist/template/src/components/mdx/mermaid.tsx +110 -0
- package/dist/template/src/components/mdx/screenshot.tsx +150 -0
- package/dist/template/src/components/scroll-to-hash.tsx +48 -0
- package/dist/template/src/components/sidebar.tsx +12 -18
- package/dist/template/src/components/table-of-contents.tsx +9 -0
- package/dist/template/src/lib/highlight.ts +3 -88
- package/dist/template/src/lib/navigation.ts +159 -0
- package/dist/template/src/styles/globals.css +17 -6
- package/dist/utils/validation.d.ts +0 -3
- package/dist/utils/validation.js +0 -26
- 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
|
-
##
|
|
21
|
-
function
|
|
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
|
+
|