skrypt-ai 0.3.1 → 0.3.2

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/cli.js CHANGED
@@ -18,7 +18,7 @@ import { loginCommand, logoutCommand, whoamiCommand } from './commands/login.js'
18
18
  import { cronCommand } from './commands/cron.js';
19
19
  import { deployCommand } from './commands/deploy.js';
20
20
  import { testCommand } from './commands/test.js';
21
- const VERSION = '0.3.1';
21
+ const VERSION = '0.3.2';
22
22
  async function checkForUpdates() {
23
23
  try {
24
24
  const res = await fetch('https://registry.npmjs.org/skrypt-ai/latest', {
@@ -1,7 +1,16 @@
1
1
  import Link from 'next/link'
2
- import docsConfig from '../../docs.json'
2
+ import { readFileSync } from 'fs'
3
+ import { join } from 'path'
4
+
5
+ function getDocsConfig() {
6
+ const configPath = join(process.cwd(), 'docs.json')
7
+ const content = readFileSync(configPath, 'utf-8')
8
+ return JSON.parse(content)
9
+ }
3
10
 
4
11
  export default function Home() {
12
+ const docsConfig = getDocsConfig()
13
+
5
14
  return (
6
15
  <main className="min-h-screen flex flex-col items-center justify-center p-8">
7
16
  <h1 className="text-4xl font-bold mb-4">{docsConfig.name} Documentation</h1>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skrypt-ai",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "AI-powered documentation generator with code examples",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",