zero-ai 1.0.48 → 1.0.49
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/README.md
CHANGED
|
@@ -29,10 +29,12 @@ npm install -g zero-ai
|
|
|
29
29
|
|
|
30
30
|
```
|
|
31
31
|
/usr/local/bin/ai -> /usr/local/lib/node_modules/vertx-ai/src/ai.js
|
|
32
|
-
+ zero-ai@
|
|
32
|
+
+ zero-ai@x.x.xx
|
|
33
33
|
added 77 packages from 119 contributors in 8.417s
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
版本跟随 `R2MO / MOMO` 版本同步更新,所以最新版是 `1.0.48`
|
|
37
|
+
|
|
36
38
|
## 2. 常用命令说明
|
|
37
39
|
|
|
38
40
|
```bash
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# 1. 检查是否有参数
|
|
4
|
+
CACHE_NAME="$1"
|
|
5
|
+
|
|
6
|
+
if [ -z "$CACHE_NAME" ]; then
|
|
7
|
+
echo "❌ 错误:请提供一个名称参数"
|
|
8
|
+
echo "👉 用法: ./zrun-ram.sh my-project-v1"
|
|
9
|
+
exit 1
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
# 2. 定义 RAMDisk 目标位置
|
|
13
|
+
TARGET_DIR="/Volumes/RAMJava/WebStorm/tmp/$CACHE_NAME"
|
|
14
|
+
|
|
15
|
+
# 3. 在 RAMDisk 创建目录
|
|
16
|
+
mkdir -p "$TARGET_DIR"
|
|
17
|
+
|
|
18
|
+
# 4. 准备 node_modules 并清理旧缓存
|
|
19
|
+
mkdir -p node_modules
|
|
20
|
+
rm -rf node_modules/.cache
|
|
21
|
+
|
|
22
|
+
# 5. 建立软链接
|
|
23
|
+
ln -s "$TARGET_DIR" node_modules/.cache
|
|
24
|
+
|
|
25
|
+
echo "✅ 成功映射: node_modules/.cache -> $TARGET_DIR"
|
package/src/_template/version
CHANGED
|
@@ -100,6 +100,12 @@ const ioZeroSource = async (source, configuration = {}) => {
|
|
|
100
100
|
await fs.writeFile(fileDest, fileContent.toString(), null);
|
|
101
101
|
Ec.execute("生成文件:" + fileDest.green);
|
|
102
102
|
|
|
103
|
+
fileSrc = `${source}/source-provider/vertx-generate.yml.ejs`;
|
|
104
|
+
fileContent = await IoUt.ioEJS(fileSrc, configuration);
|
|
105
|
+
fileDest = IoUt.withProvider(configuration, `src/main/resources/vertx-generate.yml`);
|
|
106
|
+
await fs.writeFile(fileDest, fileContent.toString(), null);
|
|
107
|
+
Ec.execute("生成文件:" + fileDest.green);
|
|
108
|
+
|
|
103
109
|
// AppDev
|
|
104
110
|
pathPackage = await IoUt.ioPackage(null, configuration, IoUt.withApi);
|
|
105
111
|
fileSrc = `${source}/source-api/AppDev.java.ejs`;
|