@trydecember/cli 0.3.19 → 0.3.21
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/december.js +2081 -1679
- package/package.json +1 -3
- package/scripts/postinstall.js +0 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trydecember/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
4
4
|
"description": "AI coding agent for terminal and cloud.",
|
|
5
5
|
"homepage": "https://trydecember.com",
|
|
6
6
|
"repository": {
|
|
@@ -33,13 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|
|
36
|
-
"scripts",
|
|
37
36
|
"README.md",
|
|
38
37
|
"LICENSE"
|
|
39
38
|
],
|
|
40
39
|
"scripts": {
|
|
41
40
|
"build": "bun build ./src/index.ts --target=node --outfile=./dist/december.js",
|
|
42
|
-
"postinstall": "node scripts/postinstall.js",
|
|
43
41
|
"prepublishOnly": "bun run build",
|
|
44
42
|
"typecheck": "tsc --noEmit",
|
|
45
43
|
"test": "bun test",
|
package/scripts/postinstall.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import fs from 'node:fs'
|
|
3
|
-
|
|
4
|
-
// Skip in CI or monorepo development builds
|
|
5
|
-
if (process.env.CI || process.env.NODE_ENV === 'development') {
|
|
6
|
-
process.exit(0)
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const BLUE = '\x1b[38;2;137;180;248m'
|
|
10
|
-
const WHITE = '\x1b[38;2;244;244;245m'
|
|
11
|
-
const TRUNK = '\x1b[38;2;63;63;70m'
|
|
12
|
-
const RESET = '\x1b[0m'
|
|
13
|
-
|
|
14
|
-
const message = `\n${BLUE}✱${RESET} ${WHITE}december successfully installed${RESET}\n${TRUNK}│${RESET}\n${BLUE}✱${RESET} run ${BLUE}december${RESET} to start your session\n\n`
|
|
15
|
-
|
|
16
|
-
try {
|
|
17
|
-
if (process.platform !== 'win32' && fs.existsSync('/dev/tty')) {
|
|
18
|
-
const tty = fs.createWriteStream('/dev/tty')
|
|
19
|
-
tty.write(message)
|
|
20
|
-
tty.end()
|
|
21
|
-
process.exit(0)
|
|
22
|
-
}
|
|
23
|
-
} catch {
|
|
24
|
-
// Intentionally swallowed: fallback to stderr if /dev/tty is unavailable
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
try {
|
|
28
|
-
process.stderr.write(message)
|
|
29
|
-
} catch {
|
|
30
|
-
// Intentionally swallowed: ignore write failure if streams are closed
|
|
31
|
-
}
|