@serviceme/devtools-cli 0.0.3
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.md +46 -0
- package/README.md +52 -0
- package/dist/bridgeServer.js +10311 -0
- package/dist/cli.js +12426 -0
- package/package.json +58 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
SERVICEME CLI — Commercial License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Medalsoft Technology Co., Ltd. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software and associated documentation files (the "Software") are proprietary
|
|
6
|
+
and confidential to Medalsoft Technology Co., Ltd. ("Medalsoft").
|
|
7
|
+
|
|
8
|
+
GRANT OF LICENSE
|
|
9
|
+
Medalsoft grants authorized users a non-exclusive, non-transferable, limited license
|
|
10
|
+
to use the Software solely for internal business purposes in connection with
|
|
11
|
+
Medalsoft's SERVICEME platform.
|
|
12
|
+
|
|
13
|
+
RESTRICTIONS
|
|
14
|
+
You may not, and may not permit others to:
|
|
15
|
+
1. Copy, modify, merge, publish, distribute, sublicense, or sell copies of the Software;
|
|
16
|
+
2. Reverse engineer, decompile, disassemble, or attempt to derive the source code;
|
|
17
|
+
3. Remove or alter any proprietary notices, labels, or marks on the Software;
|
|
18
|
+
4. Use the Software for any purpose other than as expressly authorized above;
|
|
19
|
+
5. Transfer, assign, or sublicense your rights under this license to any third party.
|
|
20
|
+
|
|
21
|
+
INTELLECTUAL PROPERTY
|
|
22
|
+
The Software is protected by copyright laws and international treaties. Medalsoft
|
|
23
|
+
retains all intellectual property rights in and to the Software, including all
|
|
24
|
+
copyright, patent, trade secret, and other proprietary rights.
|
|
25
|
+
|
|
26
|
+
NO WARRANTY
|
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
28
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
29
|
+
PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
|
30
|
+
|
|
31
|
+
LIMITATION OF LIABILITY
|
|
32
|
+
IN NO EVENT SHALL MEDALSOFT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
|
|
33
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR IN CONNECTION WITH THIS
|
|
34
|
+
LICENSE OR THE USE OF THE SOFTWARE.
|
|
35
|
+
|
|
36
|
+
TERMINATION
|
|
37
|
+
This license is effective until terminated. It will terminate automatically if you
|
|
38
|
+
fail to comply with any term or condition. Upon termination, you must destroy all
|
|
39
|
+
copies of the Software in your possession.
|
|
40
|
+
|
|
41
|
+
GOVERNING LAW
|
|
42
|
+
This license shall be governed by and construed in accordance with the laws of
|
|
43
|
+
the People's Republic of China.
|
|
44
|
+
|
|
45
|
+
CONTACT
|
|
46
|
+
For licensing inquiries, contact: marketing@medalsoft.com
|
package/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# @serviceme/devtools-cli
|
|
2
|
+
|
|
3
|
+
Unified SERVICEME CLI for automation, project scaffolding, JSON and image helpers, environment checks, and bridge-based integrations.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @serviceme/devtools-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Requirements
|
|
12
|
+
|
|
13
|
+
- Node.js 18 or newer
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
serviceme version
|
|
19
|
+
serviceme env check --json
|
|
20
|
+
serviceme bridge --stdio
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Commands
|
|
24
|
+
|
|
25
|
+
- `serviceme version --json`
|
|
26
|
+
- `serviceme env check --json`
|
|
27
|
+
- `serviceme json <sort|format|minify|validate> --stdin --json`
|
|
28
|
+
- `serviceme image <validate|info|compress> --file <path> --json`
|
|
29
|
+
- `serviceme project extract-template --workspacePath <path> --zipPath <zip> --tempExtractDir <dir> --extractedDirName <name> --projectFilePattern <pattern> --json`
|
|
30
|
+
- `serviceme project scaffold-prune --workspacePath <path> --preset <id> --json`
|
|
31
|
+
- `serviceme project git-init --workspacePath <path> --json`
|
|
32
|
+
- `serviceme project make-scripts-executable --workspacePath <path> --json`
|
|
33
|
+
- `serviceme project install-deps --workspacePath <path> --command <cmd> --json`
|
|
34
|
+
- `serviceme opencode doctor --json`
|
|
35
|
+
- `serviceme bridge --stdio`
|
|
36
|
+
|
|
37
|
+
## Output Contract
|
|
38
|
+
|
|
39
|
+
One-shot commands write machine-readable JSON envelopes to stdout. The bridge mode uses NDJSON over stdio and reserves stderr for diagnostics.
|
|
40
|
+
|
|
41
|
+
## Development
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pnpm -F @serviceme/devtools-cli run build
|
|
45
|
+
pnpm -F @serviceme/devtools-cli run test
|
|
46
|
+
pnpm -F @serviceme/devtools-cli run version:update -- patch
|
|
47
|
+
pnpm -F @serviceme/devtools-cli run release:check
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Publishing
|
|
51
|
+
|
|
52
|
+
The package is published as a public scoped npm package. Use the root-level CLI release commands documented in docs/guides/deployment/cli-release.md for versioning, validation, packing, and publishing.
|