weekly-cockpit 0.3.11 → 0.3.12

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.
Files changed (2) hide show
  1. package/commands.js +4 -0
  2. package/package.json +1 -1
package/commands.js CHANGED
@@ -82,6 +82,10 @@ export const COMMANDS = {
82
82
  catch (e) { throw Object.assign(new Error(`--file 读取/解析失败:${e.message}`), { exit: 2 }); }
83
83
  return callApi({ method: 'POST', path: '/api/v1/reports/import', body, env });
84
84
  } },
85
+ // 3c 会议:folotoy 订阅自动入库,CLI 查看与人工确认
86
+ 'meeting list': { run: ({ env }) => callApi({ method: 'GET', path: '/api/v1/meetings', env }) },
87
+ 'meeting show': { run: ({ p, env }) => callApi({ method: 'GET', path: `/api/v1/meetings/${p[0]}`, env }) },
88
+ 'meeting edit': { run: ({ p, flags, env }) => callApi({ method: 'PATCH', path: `/api/v1/meetings/${p[0]}`, body: { title: str(flags.title), status: str(flags.status), heldAt: str(flags.heldAt), baseVersion: num(flags.baseVersion) }, env }) },
85
89
  'trash list': { run: ({ env }) => callApi({ method: 'GET', path: '/api/v1/ledger/trash', env }) },
86
90
  'trash restore': { run: ({ p, env }) => callApi({ method: 'POST', path: `/api/v1/ledger/trash/${p[0]}/${p[1]}/restore`, env }) },
87
91
  'trash clear': { l2: true, run: ({ env }) => callApi({ method: 'DELETE', path: '/api/v1/ledger/trash', body: { confirm: true }, env }) },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weekly-cockpit",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "部门周报驾驶舱 CLI:读写台账(板块/方向/项目/目标)、垃圾箱与撤销,供 Agent 通过 /api/v1 安全编辑",
5
5
  "license": "GPL-3.0-only",
6
6
  "type": "module",