ai-growth 1.1.2 → 1.1.3
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/dist/device/deck.js +8 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/device/deck.js
CHANGED
|
@@ -37,7 +37,14 @@ export function buildCardState(ctx, opts = {}) {
|
|
|
37
37
|
const primary = goals[0];
|
|
38
38
|
const stages = primary ? listStages(ctx, primary.id) : [];
|
|
39
39
|
const current = primary ? getCurrentStage(ctx, primary.id) : null;
|
|
40
|
-
|
|
40
|
+
// 🔴 只有"用户今天还能动手做"的条目才进牌组。已终态、已取消、已跳过的都必须挡在外面:
|
|
41
|
+
// ① 它们不是今天要做的事,摆在屏幕上会让"今天几件事"看起来比实际多
|
|
42
|
+
// (真机上踩过:反复调整当天计划会留下 CANCELLED 的旧行,于是"应该有 2 件"变成"设备上 5 条");
|
|
43
|
+
// ② 卡片每个条目的提示都是「确定 = 完成」,而 CANCELLED/SKIPPED/EXPIRED 都**不能**转 COMPLETED,
|
|
44
|
+
// 状态机会拒绝 → 用户按下去只会拿到一个"操作失败"。宁可它压根不出现。
|
|
45
|
+
const HIDDEN_STATUSES = new Set(['CANCELLED', 'SKIPPED', 'EXPIRED']);
|
|
46
|
+
const visibleActions = actions.filter((a) => !HIDDEN_STATUSES.has(a.status));
|
|
47
|
+
const items = visibleActions.map((a) => ({
|
|
41
48
|
id: a.id,
|
|
42
49
|
kind: a.kind,
|
|
43
50
|
title: a.title,
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.lairey-ai/ai-growth",
|
|
4
4
|
"title": "AI Growth",
|
|
5
5
|
"description": "Agent-native 的个人成长执行系统:访谈定目标、动态生成每日少量任务、跨天自动作废旧任务、用真实证据积累成长记录,并同步为可迁移的 AI Passport。",
|
|
6
|
-
"version": "1.1.
|
|
6
|
+
"version": "1.1.3",
|
|
7
7
|
"websiteUrl": "https://github.com/lairey-ai/ai-growth",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/lairey-ai/ai-growth",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
16
16
|
"identifier": "ai-growth",
|
|
17
|
-
"version": "1.1.
|
|
17
|
+
"version": "1.1.3",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
},
|