openyida 2026.11.8 → 2026.11.10
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.
|
@@ -13,33 +13,33 @@
|
|
|
13
13
|
"platform": "darwin",
|
|
14
14
|
"arch": "arm64",
|
|
15
15
|
"packageName": "@openyida/local-agent-runtime-darwin-arm64",
|
|
16
|
-
"packageVersion": "0.1.
|
|
17
|
-
"runtimeVersion": "0.1.
|
|
18
|
-
"manifestSha256": "
|
|
16
|
+
"packageVersion": "0.1.5",
|
|
17
|
+
"runtimeVersion": "0.1.5",
|
|
18
|
+
"manifestSha256": "820b97039ecd0c48d503e8bdd7918ae40b2f15775968eee55736ea01292a1c46"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"platform": "darwin",
|
|
22
22
|
"arch": "x64",
|
|
23
23
|
"packageName": "@openyida/local-agent-runtime-darwin-x64",
|
|
24
|
-
"packageVersion": "0.1.
|
|
25
|
-
"runtimeVersion": "0.1.
|
|
26
|
-
"manifestSha256": "
|
|
24
|
+
"packageVersion": "0.1.5",
|
|
25
|
+
"runtimeVersion": "0.1.5",
|
|
26
|
+
"manifestSha256": "972e637071d28a7ca5923a4999e342d9bf12e87c4d6641566a62b13e1944560a"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"platform": "win32",
|
|
30
30
|
"arch": "x64",
|
|
31
31
|
"packageName": "@openyida/local-agent-runtime-win32-x64",
|
|
32
|
-
"packageVersion": "0.1.
|
|
33
|
-
"runtimeVersion": "0.1.
|
|
34
|
-
"manifestSha256": "
|
|
32
|
+
"packageVersion": "0.1.5",
|
|
33
|
+
"runtimeVersion": "0.1.5",
|
|
34
|
+
"manifestSha256": "d1aea848cf9785dd82030f3f5aa58b896af6dee2472b462e5e36625e276e0631"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"platform": "win32",
|
|
38
38
|
"arch": "arm64",
|
|
39
39
|
"packageName": "@openyida/local-agent-runtime-win32-arm64",
|
|
40
|
-
"packageVersion": "0.1.
|
|
41
|
-
"runtimeVersion": "0.1.
|
|
42
|
-
"manifestSha256": "
|
|
40
|
+
"packageVersion": "0.1.5",
|
|
41
|
+
"runtimeVersion": "0.1.5",
|
|
42
|
+
"manifestSha256": "c13e9eb03e6e77091d275884708446eef1581a07d7c714a34a4b6779bc3f344c"
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openyida",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.10",
|
|
4
4
|
"description": "OpenYida CLI - AI 宜搭应用开发工具(安装即用,零配置)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"openyida": "bin/yida.js",
|
|
@@ -123,9 +123,9 @@
|
|
|
123
123
|
"endpoint": "https://www.aliwork.com/openyida/agent-api"
|
|
124
124
|
},
|
|
125
125
|
"optionalDependencies": {
|
|
126
|
-
"@openyida/local-agent-runtime-darwin-arm64": "0.1.
|
|
127
|
-
"@openyida/local-agent-runtime-darwin-x64": "0.1.
|
|
128
|
-
"@openyida/local-agent-runtime-win32-x64": "0.1.
|
|
129
|
-
"@openyida/local-agent-runtime-win32-arm64": "0.1.
|
|
126
|
+
"@openyida/local-agent-runtime-darwin-arm64": "0.1.5",
|
|
127
|
+
"@openyida/local-agent-runtime-darwin-x64": "0.1.5",
|
|
128
|
+
"@openyida/local-agent-runtime-win32-x64": "0.1.5",
|
|
129
|
+
"@openyida/local-agent-runtime-win32-arm64": "0.1.5"
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -52,7 +52,9 @@ openyida agent diagnose --session "<URL>" --output <用户明确指定的目录>
|
|
|
52
52
|
| `DEVICE_NOT_PAIRED` | 当前组织还没有这台电脑的有效 Connection | 从宜搭网页生成接入命令,或运行浏览器接入流程 |
|
|
53
53
|
| `DEVICE_ACCESS_TOKEN_EXPIRED` | 短期设备 AccessToken 已过期,但 RefreshToken 仍有效 | 启动或恢复该组织的 Runtime,让它按正常链路自动刷新 |
|
|
54
54
|
| `DEVICE_CREDENTIAL_EXPIRED` | Connection 存在但设备凭据已经过期 | 为当前组织重新连接,不影响其他组织 Connection |
|
|
55
|
-
| `SESSION_NOT_SEEN_LOCALLY` | 本机最近 Journal 中没有该 Session | 继续看 `server.matched
|
|
55
|
+
| `SESSION_NOT_SEEN_LOCALLY` | 本机最近 Journal 中没有该 Session;不证明命令从未到达 | 继续看 `server.matched`、`latestRun` 和 `recentCommandFailures` |
|
|
56
|
+
| `LOCAL_DISPATCH_DELAYED` | 服务端已受理,超过 60 秒仍未确认启动 | 查看命令接收诊断;不要重复发送或重放任务 |
|
|
57
|
+
| `RECENT_COMMAND_CLAIM_FAILURE` | 该连接历史上出现命令拉取或解析错误,不代表当前会话必然失败 | 查看 `recentCommandFailures` 的阶段、时间与错误码,并结合服务端当前状态 |
|
|
56
58
|
| `SESSION_NOT_ASSIGNED_TO_CONNECTION` | 会话不属于当前电脑的组织 Connection | 在网页核对组织、电脑和 CLI 选择,不重新配对其他组织 |
|
|
57
59
|
| `SERVER_DIAGNOSTIC_UNAVAILABLE` | 本机状态可读,但设备鉴权的服务端关联查询失败 | 检查控制域名网络、设备是否过期;保留诊断 ID |
|
|
58
60
|
| `RECENT_DEVICE_CREDENTIAL_REJECTION` | 最近两小时出现过连接/换证响应校验失败,不代表当前仍失败 | 查看 `recentConnectionFailures` 的时间、阶段和原因,再结合当前 Connection 判断 |
|
|
@@ -76,6 +78,8 @@ access/refresh 剩余秒数,不包含 Token。它不是当前连接在线状
|
|
|
76
78
|
若旧版本在刚连接时报告有效期过长而稍后重试成功,应更新 OpenYida/Runtime,
|
|
77
79
|
不要让用户通过等待、反复重连或修改本机时间解决。
|
|
78
80
|
|
|
81
|
+
命令通过 HTTPS 周期性拉取,WebSocket 只唤醒轮询;不能从断连记录推断命令丢失。`authorize_start` 是 Runtime 收到启动命令后的请求。无新任务 Journal 时仍需查看连接级 `recentCommandFailures`;它不能单独归因到目标会话。同一电脑的 Qoder/Codex 对应不同 Runtime,一方正常不能证明另一方正常。
|
|
82
|
+
|
|
79
83
|
`server.matched=true` 后再看 `runtimeStatus`、`sessionActive` 和 `latestRun`:
|
|
80
84
|
|
|
81
85
|
- `runtimeStatus=offline`:连接/心跳问题;
|
|
@@ -7,6 +7,17 @@ description: 查询和维护宜搭表单、流程、任务和子表数据;data
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
仅调整数据管理页外观、换风格或突出操作时,转 `use_skill("yida-data-manage-ui")`,不执行本技能的数据写入。
|
|
10
|
+
|
|
11
|
+
## 历史记录补新增字段
|
|
12
|
+
|
|
13
|
+
给已有普通表单记录填写后来新增的字段时,第一次更新就使用 `--use-latest-version y --verify-write --json`,保留原实例 ID,只提交本次修改字段;关联、日期、文本等字段均适用。仅修改既有字段时不一律升级实例版本。
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
openyida data update form <appType> --inst-id <原formInstId> --form-uuid <formUuid> --expect-form-name <真实名称> --expect-form-type receipt --data-file <patch.json> --use-latest-version y --verify-write --json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
`y` 请求按当前表单版本更新实例,不只是切换字段格式;先核对当前定义的字段行为、校验和业务规则。接口受理不代表字段已写入,必须回读核对。已带 `y` 仍缺字段时,不能把补参当作已验证修复:按回执只读核查原实例版本和字段,保留命令、payload、错误及 traceId,报告未完成;不自动重放、改走其他接口或删旧建新。字段格式见[格式指南](references/data-format-guide.md#保存--更新格式)。
|
|
20
|
+
|
|
10
21
|
## CLI 查询隐藏字段
|
|
11
22
|
|
|
12
23
|
- 启用 CLI 隐藏字段过滤时,查询结果不返回表单配置或当前账号字段权限中隐藏的字段,字段 key 可能直接缺失;这属于正常行为,不代表原数据为空或写入失败。
|
|
@@ -147,8 +158,8 @@ openyida data get form <appType> --inst-id <formInstId>
|
|
|
147
158
|
openyida data seed form <appType> <formUuid> --expect-form-name <name> --records-file <绝对路径>/records.json [--timezone +08:00] [--resolve-aliases] [--check] --json
|
|
148
159
|
openyida data create form <appType> <formUuid> --expect-form-name <name> --expect-form-type receipt --data-json '<json>' [--resolve-aliases]
|
|
149
160
|
openyida data create form <appType> <formUuid> --expect-form-name <name> --expect-form-type receipt --data-file .cache/openyida/<项目名或任务名>/data-import/record.json [--resolve-aliases]
|
|
150
|
-
openyida data update form <appType> --inst-id <formInstId> --form-uuid <formUuid> --expect-form-name <name> --expect-form-type receipt --data-json '<json>' [--resolve-aliases]
|
|
151
|
-
openyida data update form <appType> --inst-id <formInstId> --form-uuid <formUuid> --expect-form-name <name> --expect-form-type receipt --data-file .cache/openyida/<项目名或任务名>/data-import/patch.json [--resolve-aliases]
|
|
161
|
+
openyida data update form <appType> --inst-id <formInstId> --form-uuid <formUuid> --expect-form-name <name> --expect-form-type receipt --data-json '<json>' [--use-latest-version y] [--resolve-aliases] [--verify-write]
|
|
162
|
+
openyida data update form <appType> --inst-id <formInstId> --form-uuid <formUuid> --expect-form-name <name> --expect-form-type receipt --data-file .cache/openyida/<项目名或任务名>/data-import/patch.json [--use-latest-version y] [--resolve-aliases] [--verify-write]
|
|
152
163
|
openyida data delete form <appType> <formUuid> --inst-id <formInstId> --expect-form-name <name> --expect-form-type receipt --confirm --json
|
|
153
164
|
openyida data query subform <appType> <formUuid> --inst-id <formInstId> --table-field-id <fieldId|alias> [--page 1 --size 100] [--resolve-aliases]
|
|
154
165
|
```
|
|
@@ -280,6 +291,7 @@ openyida data transfer task <appType> --process-inst-id <processInstanceId> --fo
|
|
|
280
291
|
| 回执或现象 | 下一步 |
|
|
281
292
|
| --- | --- |
|
|
282
293
|
| 参数或字段不匹配 | 按 details 与真实 Schema 修正,复用当前目标和已确认资源 |
|
|
294
|
+
| 更新已受理但后加字段回读缺失 | 按[历史记录补新增字段](#历史记录补新增字段)核对版本、实际参数和原实例;已带版本参数仍失败时保留证据排查,不重复写入 |
|
|
283
295
|
| 查询为空 | 核对环境、身份、目标、筛选和分页;隐藏字段按上方规则记录范围 |
|
|
284
296
|
| 子表恰好 50 行 | 按“子表超过 50 行”使用专用分页读取 |
|
|
285
297
|
| 401 或认证异常 | 交给 `yida-login` 恢复当前身份 |
|
|
@@ -91,6 +91,8 @@
|
|
|
91
91
|
|
|
92
92
|
## 保存 / 更新格式
|
|
93
93
|
|
|
94
|
+
已有记录补后来新增的字段时,先按[历史记录补新增字段](../SKILL.md#历史记录补新增字段)处理实例版本,并核验本次写入;这条规则适用于所有字段类型。
|
|
95
|
+
|
|
94
96
|
```json
|
|
95
97
|
{
|
|
96
98
|
"textField_xxx": "文本",
|
|
@@ -171,12 +173,14 @@ openyida data query form APP_xxx FORM-xxx --search-json '[{"key":"dateField_xxx"
|
|
|
171
173
|
new Date('2026-10-18T00:00:00+08:00').getTime() // 1792252800000
|
|
172
174
|
```
|
|
173
175
|
|
|
174
|
-
时间统一按业务时区转换为毫秒。空值查询使用 `is` / `is_not`;区间按 `.start` / `.end` 查询,完整写法见[查询条件指南](../../../references/query-condition-guide.md)
|
|
176
|
+
时间统一按业务时区转换为毫秒。空值查询使用 `is` / `is_not`;区间按 `.start` / `.end` 查询,完整写法见[查询条件指南](../../../references/query-condition-guide.md)。历史记录补后加日期字段时,遵循[通用更新规则](../SKILL.md#历史记录补新增字段)。
|
|
175
177
|
|
|
176
178
|
## 关联表单字段(AssociationFormField)
|
|
177
179
|
|
|
178
180
|
关联表单字段用于引用其他表单的数据记录,数据格式较为特殊。
|
|
179
181
|
|
|
182
|
+
给已有记录补后来新增的关联字段时,先遵循[历史记录补新增字段](../SKILL.md#历史记录补新增字段),再按下方数组格式写入;回读缺失时结合实例版本核查,不直接归因为关联格式错误。
|
|
183
|
+
|
|
180
184
|
### 保存格式
|
|
181
185
|
|
|
182
186
|
必须传入**数组对象**,每个对象包含五个必填字段;`subTitle` 可选,省略时 CLI 会补为空字符串:
|