@shotik/cli 0.2.0 → 0.2.1

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/audit/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { existsSync, readFileSync } from 'node:fs'
2
- import { dirname, join, resolve } from 'node:path'
1
+ import { readFileSync } from 'node:fs'
2
+ import { dirname, join } from 'node:path'
3
3
  import { fileURLToPath } from 'node:url'
4
4
 
5
5
  const here = dirname(fileURLToPath(import.meta.url))
@@ -14,8 +14,7 @@ const CODE_RE = /^[A-Za-z0-9]{6,8}$/
14
14
  export const base = () => (process.env.SHOTIK_WEB || 'https://shotik.app').replace(/\/+$/, '')
15
15
 
16
16
  export function loadChecklist() {
17
- const found = [join(here, '..', 'data', 'brain', 'audit', 'checklist.json'), resolve(here, '..', '..', '..', 'brain', 'audit', 'checklist.json'), join(here, 'checklist.json')].find(existsSync)
18
- return JSON.parse(readFileSync(found, 'utf8'))
17
+ return JSON.parse(readFileSync(join(here, 'checklist.json'), 'utf8'))
19
18
  }
20
19
 
21
20
  const stackKey = (s) => String(s).toLowerCase().replace(/[\s_]+/g, '-').replace(/^(rn|reactnative)$/, 'react-native').replace(/^jetpack-compose$|^android$/, 'kotlin').replace(/^ios$/, 'swift')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotik/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Set up Shotik in your app with your coding agent",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.mjs CHANGED
@@ -5,7 +5,7 @@ import { homedir, hostname } from 'node:os'
5
5
  import { basename, dirname, join, resolve } from 'node:path'
6
6
  import { fileURLToPath, pathToFileURL } from 'node:url'
7
7
 
8
- const SWIFT_URL = 'https://github.com/rahimwws/shotik-app'
8
+ const SWIFT_URL = 'https://github.com/rahimwws/shotik-swift'
9
9
 
10
10
  class CliError extends Error {
11
11
  constructor(message, exitCode = 1) {
@@ -180,7 +180,7 @@ async function setup(info, target, out) {
180
180
  }
181
181
  } else {
182
182
  out.say('Add the package in Xcode: File > Add Package Dependencies.')
183
- out.say(`Package URL: ${SWIFT_URL} (from 0.1.0)`)
183
+ out.say(`Package URL: ${SWIFT_URL} (from 0.2.0)`)
184
184
  }
185
185
  mkdirSync(join(dir, '.shotik'), { recursive: true })
186
186
  writeFileSync(