@deepraxis/cli 0.0.0-stage → 0.1.0-dev.244cd7e

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.
Files changed (4) hide show
  1. package/LICENSE +67 -0
  2. package/README.md +55 -2
  3. package/dist/praxis.js +22643 -0
  4. package/package.json +24 -4
package/LICENSE ADDED
@@ -0,0 +1,67 @@
1
+ Deepractice Commercial Proprietary License
2
+
3
+ Copyright (c) 2026 南京深度实践人工智能科技有限公司.
4
+ Unified Social Credit Code: 91430104MAEDATJ09G.
5
+ All rights reserved.
6
+
7
+ IMPORTANT: THIS IS NOT AN OPEN SOURCE LICENSE.
8
+
9
+ This repository and its source code, documentation, architecture, tests,
10
+ scripts, configuration, prompts, agent designs, protocols, workflows, and other
11
+ accompanying materials are proprietary commercial assets owned by 南京深度实践
12
+ 人工智能科技有限公司 (the "Copyright Holder").
13
+ The Copyright Holder's Unified Social Credit Code is 91430104MAEDATJ09G.
14
+
15
+ The purpose of this license is to bind this repository and the project code to
16
+ the Copyright Holder as closed-source commercial intellectual property.
17
+
18
+ No rights are granted by default. Access to this repository, possession of a
19
+ copy of the source code, visibility into commit history, participation in
20
+ business discussions, employment, consulting, shareholder status, investment,
21
+ or cooperation with any related entity does not grant any ownership interest,
22
+ copyright license, patent license, trademark license, trade secret license, or
23
+ other intellectual property right.
24
+
25
+ Without a separate written commercial agreement signed by the Copyright Holder,
26
+ no person or entity may, directly or indirectly:
27
+
28
+ 1. use, run, deploy, host, or provide the software as a service;
29
+ 2. copy, modify, merge, adapt, translate, or create derivative works;
30
+ 3. publish, distribute, sublicense, lease, sell, transfer, or disclose the
31
+ software or any substantial part of it;
32
+ 4. reverse engineer, decompile, disassemble, or otherwise attempt to derive
33
+ source, structure, architecture, protocols, prompts, trade secrets, or
34
+ implementation details;
35
+ 5. use the software, code, documentation, architecture, protocols, prompts, or
36
+ repository history to train, fine-tune, evaluate, or improve any AI model,
37
+ coding agent, software-generation system, or competing product;
38
+ 6. remove, obscure, or alter copyright, license, ownership, confidentiality, or
39
+ attribution notices.
40
+
41
+ All commercial use, internal business use, customer delivery, private
42
+ deployment, SaaS operation, resale, redistribution, integration into another
43
+ product, or access by third parties requires prior written authorization from
44
+ the Copyright Holder.
45
+
46
+ Contributions are accepted only on the basis that the contributor has the right
47
+ to contribute them and assigns, or agrees to assign, all applicable rights in
48
+ those contributions to the Copyright Holder unless a separate written agreement
49
+ signed by the Copyright Holder states otherwise.
50
+
51
+ This license applies to this repository as a whole. No part of this repository
52
+ may be treated as public domain, community property, jointly owned project
53
+ property, or an implied asset of any company, shareholder, collaborator,
54
+ customer, investor, or business partner other than the Copyright Holder without
55
+ a separate written agreement signed by the Copyright Holder.
56
+
57
+ The Chinese legal name "南京深度实践人工智能科技有限公司" is the authoritative
58
+ identity of the Copyright Holder. Any English rendering of that name is for
59
+ identification convenience only and does not create a separate legal entity or
60
+ alter ownership.
61
+
62
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
64
+ FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
65
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING
66
+ FROM OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF OTHER DEALINGS IN THE
67
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,56 @@
1
- # Temporary Holding Version
1
+ # @deepraxis/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Praxis commands for the Deepraxis public API. Requires Node.js 20 or newer.
4
+
5
+ ```sh
6
+ npm i -g @deepraxis/cli@dev
7
+ praxis --help
8
+ praxis login
9
+ praxis model list
10
+ ```
11
+
12
+ The dev package defaults to Develop. Set `PRAXIS_ENV=develop|production` to
13
+ select an environment; the stable package defaults to production. For scripts,
14
+ set `PRAXIS_API_KEY` in the environment instead of using `praxis login`.
15
+
16
+ Output modes:
17
+
18
+ - `--format human`: tables and readable details.
19
+ - `--format agent`: compact text for agents.
20
+ - `--json` (or `--format json`): JSON for scripts.
21
+
22
+ ```sh
23
+ praxis model list --json
24
+ praxis model list --format agent
25
+ praxis model list --limit 8
26
+ ```
27
+
28
+ `--limit` uses the API's page-size parameter only for SDK-paginated operations.
29
+ For other lists, human and agent modes show the first N items and the original
30
+ total without sending the global limit to the API. The operation's own
31
+ `--param-limit` still sends its API parameter when available.
32
+ JSON output remains complete. `--all` follows supported pagination and cannot
33
+ be combined with `--limit`.
34
+
35
+ Generate instructions for an AI agent:
36
+
37
+ ```sh
38
+ praxis skill > SKILL.md
39
+ praxis skill --install ./skills
40
+ ```
41
+
42
+ The install command creates `./skills/praxis-cli/SKILL.md`, or overwrites it
43
+ with a notice. The command reference uses OpenAPI summaries; when absent, it
44
+ uses the first sentence of the description or a description from command words.
45
+
46
+ Login records are stored in the macOS Keychain or, on Linux, through
47
+ `secret-tool`. If the system keychain is unavailable, login reports file storage
48
+ at `~/.praxis/cli/<env>.json` (mode 0600). Existing files migrate automatically
49
+ when keychain storage succeeds. `praxis whoami` shows the storage location;
50
+ `praxis logout` removes both copies. On macOS, writes use `security -i` with
51
+ the secret on stdin, never in process arguments. Records exceeding the tool's
52
+ 4096-byte interactive command limit also use the file fallback.
53
+
54
+ From this repository, use `bun run praxis`. Run `bun run commands` in `apps/cli`
55
+ to regenerate `COMMANDS.md` and the sample `SKILL.md`; `bun run commands:check`
56
+ checks both. OpenAPI sync regenerates these documents after the SDK manifest.