@puku/puku-cli 1.2.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/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ NOTICE
2
+
3
+ This repository contains code derived from Anthropic's Claude Code CLI.
4
+
5
+ The original Claude Code source is proprietary software:
6
+ Copyright (c) Anthropic PBC. All rights reserved.
7
+ Subject to Anthropic's Commercial Terms of Service.
8
+
9
+ Modifications and additions by puku-cli contributors are offered under
10
+ the MIT License where legally permissible:
11
+
12
+ MIT License
13
+ Copyright (c) 2026 puku-cli contributors (modifications only)
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining
16
+ a copy of the modifications made by puku-cli contributors, to deal
17
+ in those modifications without restriction, including without limitation
18
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
19
+ and/or sell copies, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included
22
+ in all copies or substantial portions of the modifications.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
25
+
26
+ The underlying derived code remains subject to Anthropic's copyright.
27
+ This project does not have Anthropic's authorization to distribute
28
+ their proprietary source. Users and contributors should evaluate their
29
+ own legal position.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Puku CLI
2
+
3
+ AI coding assistant powered by **Puku AI**.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @puku/puku-cli
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ puku-cli
15
+ ```
16
+
17
+ That's it. Start typing your coding task and Puku AI will help you get it done.
18
+
19
+ ## Requirements
20
+
21
+ - Node.js 20 or higher
22
+
23
+ ## Support
24
+
25
+ For help and support, contact the Puku AI team.
26
+
27
+ ## License
28
+
29
+ SEE LICENSE FILE
@@ -0,0 +1,7 @@
1
+ import { join } from 'path'
2
+ import { pathToFileURL } from 'url'
3
+
4
+ export function getDistImportSpecifier(baseDir) {
5
+ const distPath = join(baseDir, '..', 'dist', 'cli.mjs')
6
+ return pathToFileURL(distPath).href
7
+ }
package/bin/openpuku ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { existsSync } from 'fs'
4
+ import { join, dirname } from 'path'
5
+ import { fileURLToPath, pathToFileURL } from 'url'
6
+
7
+ const __dirname = dirname(fileURLToPath(import.meta.url))
8
+ const distPath = join(__dirname, '..', 'dist', 'cli.mjs')
9
+
10
+ if (existsSync(distPath)) {
11
+ await import(pathToFileURL(distPath).href)
12
+ } else {
13
+ console.error('puku-cli: build not found. Please reinstall the package.')
14
+ process.exit(1)
15
+ }