@stalfh233/omc-cli 0.4.33 → 0.4.34

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.
@@ -319,7 +319,9 @@ export function registerReportLane(tools) {
319
319
  };
320
320
  });
321
321
  writeTool(tools, "report.create", LANE, TOOLS["report.create"].scope, TOOLS["report.create"].description, {
322
- code: z.string().min(1),
322
+ // r33: the platform refuses report codes longer than 28 chars (errcode
323
+ // 10005) — enforce offline so the shape never costs a wire round trip.
324
+ code: z.string().min(1).max(28).describe("报表 code;平台上限 28 字符(10005 实证 r33)——超长在提交前直接被拒"),
323
325
  name: z.string().min(1).max(60),
324
326
  appCode: z.string().min(1),
325
327
  parentId: z.string().min(1),
@@ -1657,7 +1657,10 @@ export function registerWorkflowLane(tools) {
1657
1657
  .describe("exact-match client-side filter on the returned items' instanceId (the server filterWorkflowInstanceId field is a NOT-equal exclusion, so it is not used)"),
1658
1658
  workflowCode: z.string().optional(),
1659
1659
  schemaCode: z.string().optional(),
1660
- page: z.number().int().min(0).optional(),
1660
+ // r35: an agent sent page:1 expecting the first page and read
1661
+ // `total:1 / count:0` as a contradiction — the page index is ZERO-based
1662
+ // (like data.list). Say so at the parameter itself.
1663
+ page: z.number().int().min(0).optional().describe("页号,0 基(与 data.list 一致);默认 0"),
1661
1664
  size: z
1662
1665
  .number()
1663
1666
  .int()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stalfh233/omc-cli",
3
- "version": "0.4.33",
3
+ "version": "0.4.34",
4
4
  "description": "CloudPivot 8.6 configuration capability CLI — governed, fail-closed, coverage-manifest bounded.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "commander": "14.0.3",
54
- "omc-core": "0.4.33",
54
+ "omc-core": "0.4.34",
55
55
  "proper-lockfile": "4.1.2",
56
56
  "write-file-atomic": "6.0.0",
57
57
  "zod": "^3.23.8",