@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 +29 -0
- package/README.md +29 -0
- package/bin/import-specifier.mjs +7 -0
- package/bin/openpuku +15 -0
- package/dist/cli.mjs +8826 -0
- package/dist/smart-context/configs/puku-cli/ROUTING-ONLY.md +27 -0
- package/dist/smart-context/hooks/core/formatters.mjs +1 -0
- package/dist/smart-context/hooks/core/mcp-ready.mjs +1 -0
- package/dist/smart-context/hooks/core/routing.mjs +1 -0
- package/dist/smart-context/hooks/core/stdin.mjs +1 -0
- package/dist/smart-context/hooks/core/tool-naming.mjs +1 -0
- package/dist/smart-context/hooks/ensure-deps.mjs +1 -0
- package/dist/smart-context/hooks/posttooluse.mjs +2 -0
- package/dist/smart-context/hooks/precompact.mjs +3 -0
- package/dist/smart-context/hooks/pretooluse.mjs +6 -0
- package/dist/smart-context/hooks/routing-block.mjs +85 -0
- package/dist/smart-context/hooks/session-db.bundle.mjs +57 -0
- package/dist/smart-context/hooks/session-directive.mjs +69 -0
- package/dist/smart-context/hooks/session-extract.bundle.mjs +1 -0
- package/dist/smart-context/hooks/session-helpers.mjs +1 -0
- package/dist/smart-context/hooks/session-loaders.mjs +1 -0
- package/dist/smart-context/hooks/session-snapshot.bundle.mjs +29 -0
- package/dist/smart-context/hooks/sessionstart.mjs +4 -0
- package/dist/smart-context/hooks/suppress-stderr.mjs +1 -0
- package/dist/smart-context/hooks/userpromptsubmit.mjs +2 -0
- package/dist/smart-context/server.bundle.mjs +555 -0
- package/dist/smart-context/start.mjs +7 -0
- package/package.json +148 -0
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
|
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
|
+
}
|