issy 0.1.9 → 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/bin/issy +23 -3
- package/dist/cli.js +3 -0
- package/package.json +4 -3
package/bin/issy
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { dirname } from 'node:path'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
existsSync,
|
|
5
|
+
mkdirSync,
|
|
6
|
+
readdirSync,
|
|
7
|
+
writeFileSync,
|
|
8
|
+
readFileSync
|
|
9
|
+
} from 'node:fs'
|
|
4
10
|
import { join, resolve } from 'node:path'
|
|
5
11
|
import { fileURLToPath } from 'node:url'
|
|
12
|
+
import updateNotifier from 'update-notifier'
|
|
6
13
|
|
|
7
14
|
const args = process.argv.slice(2)
|
|
15
|
+
|
|
16
|
+
// Check for updates (non-blocking, cached, shows on next run)
|
|
17
|
+
const here = resolve(fileURLToPath(import.meta.url), '..')
|
|
18
|
+
const pkgPath = resolve(here, '..', 'package.json')
|
|
19
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'))
|
|
20
|
+
updateNotifier({ pkg, updateCheckInterval: 1000 * 60 * 60 }).notify() // 1 hour
|
|
21
|
+
|
|
8
22
|
const cliCommands = new Set([
|
|
9
23
|
'list',
|
|
10
24
|
'search',
|
|
@@ -17,6 +31,12 @@ const cliCommands = new Set([
|
|
|
17
31
|
'-h'
|
|
18
32
|
])
|
|
19
33
|
|
|
34
|
+
// Handle --version / -v flag
|
|
35
|
+
if (args[0] === '--version' || args[0] === '-v') {
|
|
36
|
+
console.log(`issy v${pkg.version}`)
|
|
37
|
+
process.exit(0)
|
|
38
|
+
}
|
|
39
|
+
|
|
20
40
|
/**
|
|
21
41
|
* Find .issues directory by walking up from the given path.
|
|
22
42
|
* Returns the path if found, or null if not found.
|
|
@@ -111,7 +131,7 @@ if (shouldInitOnly) {
|
|
|
111
131
|
if (!existsSync(issuesDir)) {
|
|
112
132
|
mkdirSync(issuesDir, { recursive: true })
|
|
113
133
|
}
|
|
114
|
-
|
|
134
|
+
|
|
115
135
|
// Only seed with welcome issue if --seed flag is passed
|
|
116
136
|
if (shouldSeed) {
|
|
117
137
|
const hasIssues =
|
|
@@ -133,7 +153,7 @@ if (shouldInitOnly) {
|
|
|
133
153
|
writeFileSync(join(issuesDir, '0001-welcome-to-issy.md'), welcome)
|
|
134
154
|
}
|
|
135
155
|
}
|
|
136
|
-
|
|
156
|
+
|
|
137
157
|
console.log(`Initialized ${issuesDir}`)
|
|
138
158
|
process.exit(0)
|
|
139
159
|
}
|
package/dist/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "issy",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "AI-native issue tracking. Markdown files in .issues/, managed by your coding assistant.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"lint": "biome check src bin"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@miketromba/issy-app": "^0.1
|
|
38
|
-
"@miketromba/issy-core": "^0.1
|
|
37
|
+
"@miketromba/issy-app": "^0.2.1",
|
|
38
|
+
"@miketromba/issy-core": "^0.2.1",
|
|
39
|
+
"update-notifier": "^7.3.1"
|
|
39
40
|
}
|
|
40
41
|
}
|