syluno 0.0.0-stage → 0.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 +21 -0
- package/README.md +36 -2
- package/dist/locales.json +1 -0
- package/dist/syluno.mjs +4766 -0
- package/package.json +29 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 syluno contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# syluno 命令行
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
在终端里开发 syluno 的叶、树、季,用法和 git 相近:在平台上新建或拉取仓库,本地写代码,推送回平台,按平台规则检查通过后发布、上架到林。
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
npm i -g syluno # 需要 Node.js 18 及以上;装好后命令是 syl
|
|
7
|
+
syl login
|
|
8
|
+
|
|
9
|
+
syl create my-timer --kind leaf # 新建一片叶并拉取到 my-timer/,自带 RULES.md
|
|
10
|
+
cd my-timer
|
|
11
|
+
syl check # 按发布规则逐条检查
|
|
12
|
+
syl push -m "第一版"
|
|
13
|
+
syl publish 0.1.0 -m "首个版本" --scenes time --styles figure
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
全部命令见 `syl help`,完整说明见 https://www.syluno.com/#/help/cli 。
|
|
17
|
+
|
|
18
|
+
## 开发
|
|
19
|
+
|
|
20
|
+
源码在 `src/`,规则、模板与文案直接用网页的 `app/src/data/`,三处(网页、命令行、服务端)用同一份规则代码。
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
cd app
|
|
24
|
+
node scripts/build-cli.mjs # 构建 cli/dist/syluno.mjs 和 cli/dist/locales.json
|
|
25
|
+
node scripts/build-cli.mjs --pack # 再打成 cli/syluno-<版本>.tgz
|
|
26
|
+
npx tsc --noEmit -p ../cli/tsconfig.json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
本地联调:`SYLUNO_SERVER=http://localhost:8787 node ../cli/dist/syluno.mjs …`;`SYLUNO_HOME` 可以把配置放到别的目录。
|
|
30
|
+
|
|
31
|
+
## English
|
|
32
|
+
|
|
33
|
+
`syluno` is the command-line tool for [syluno](https://www.syluno.com), an open-source edge AI orchestration platform. It works like git: create or clone a repository on the platform, edit locally, push back, then publish once the platform rules pass. Every new repository ships with a `RULES.md` describing those rules, and `syl check` runs the same rule code the platform uses. Output follows your terminal language (17 languages). Run `syl help` for all commands.
|
|
34
|
+
|
|
35
|
+
## 许可证
|
|
36
|
+
|
|
37
|
+
MIT
|