@whyshu/argent-engine 0.14.4 → 0.14.5

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/MANIFEST.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "schema": 1,
3
3
  "package": "@whyshu/argent-engine",
4
4
  "files": {
5
- "VERSION": "c78c310b641231eb31cf7f005d8defa7d36327d421e9b20903fec67a0de982bc",
5
+ "VERSION": "475bb4c68d135a249416c4ad975cf4ad4fb5d970ba2696c827df0d8dbfc00118",
6
6
  "agents/catalog.json": "5356a812f2554dfd3115370363d4c3f787a82c9e5928a85d05b2a07c9e4b324d",
7
7
  "configs/_aliases.proposed.json": "3a59edf80563bcc20d410d488decad6fd787bd3de9489321367b0783904cd3e5",
8
8
  "configs/_migration-plan.proposed.json": "dd9f90b0b9b2f217dd23367a618402e57997d44f7fddcfa88a7cadf52e056c0d",
@@ -14,7 +14,7 @@
14
14
  "configs/mcp-tools.snapshot.json": "cfa94a6ba64a7ae9d133a4a878ce3d5e0e85e554ccd3e3ebaf0d51ad750acf6a",
15
15
  "configs/notify.json": "cb9ef11c1c498fcf99af99ec50271b8a2598061b77ed73a6099032e837474ef0",
16
16
  "core/cli/argent.mjs": "9a8977324c238ca4e20435f9817eb7ec76157da32b1d510977dc03e0feb416a9",
17
- "core/contracts/argent.contracts.json": "5ab37d2cb1c6b0a6760fe2e99950e66beabb7924aa77a5ea1804bc169780e357",
17
+ "core/contracts/argent.contracts.json": "b8e27587d2cb8e4c6aff2a0b8d7e76667a237d1317dac3d004e06b061261b61d",
18
18
  "core/contracts/verbs.schema.json": "54d726181c11536eb30bd25090584a7af103e4c0462f8ef078053c8177e19dcb",
19
19
  "core/lib/account-token.mjs": "35faad2c34e67755c1867f74a74885f0f268d5daabe01d339cf30dc747f86501",
20
20
  "core/lib/argent-datadir.mjs": "1fdd799c933382c4f9e36bd4af33d51b8ac4a466a9d67a8f2296bb267b5251ac",
@@ -58,7 +58,7 @@
58
58
  "scripts/appointment-stop.mjs": "2e0a965346d33ef8683da5473c48df7f4e66ee8a3167526ee6b568e1adf5c91d",
59
59
  "scripts/appointment-worker.mjs": "9d705a59b1056c4527d44c57552e156e6d365fd49a7856e86ce92a598fec455b",
60
60
  "scripts/appointment_grab.py": "cb03f0b2533c7640719a145952ae01f3c6e12e7a96ccf21bd32adea495ea1d55",
61
- "scripts/appointment_rules.py": "2449d1c46160eca4df6a67af6b6cec681e33556039d9cc0407b3ef105970c859",
61
+ "scripts/appointment_rules.py": "0c2b8f40af3ae711b005c0852d630194c2737a7ef040490d3cf1ec22de6c1c13",
62
62
  "scripts/archive/feishu-bridge.js": "e6714c72022892d0c527d1fc9ae0f8ff99f9ab3bd0363329979b423246684885",
63
63
  "scripts/argent-agents.mjs": "73f4a058df2cd6d62b285ea48a5e32881db678b63007d1ac2f218005cb28c18d",
64
64
  "scripts/argent-capabilities.mjs": "7186d7c19f733d987a7afe2355dd7d788333a15c0f80811c4cde4e7a32584c4e",
package/engine/VERSION CHANGED
@@ -1 +1 @@
1
- 0.14.4
1
+ 0.14.5
@@ -1,6 +1,6 @@
1
1
  {
2
- "argentVersion": "0.14.4",
3
- "_syncNote": "argentVersion 必须与仓库根 VERSION 同批更新:发布前置校验 scripts/check-version-consistency.mjs;2026-11-24 按 VERSION=0.14.4 校正。",
2
+ "argentVersion": "0.14.5",
3
+ "_syncNote": "argentVersion 必须与仓库根 VERSION 同批更新:发布前置校验 scripts/check-version-consistency.mjs;2026-11-24 按 VERSION=0.14.5 校正。",
4
4
  "principle": "宿主无关:宿主只依赖 `argent <verb>`;确定性逻辑在 CLI/MCP,不在提示词里。",
5
5
  "verbs": {
6
6
  "version": {
@@ -36,8 +36,17 @@ def _minutes(hhmm: str) -> int | None:
36
36
  return None
37
37
 
38
38
 
39
- def _is_workday(d: date, skip: set[str]) -> bool:
40
- return d.isoweekday() <= 5 and d.isoformat() not in skip
39
+ def _is_workday(d: date, skip: set[str], windows: dict | None = None) -> bool:
40
+ """工作日:周一至周五;周末只有配置了可约时段才算工作日(旧工具口径)。"""
41
+ if d.isoformat() in skip:
42
+ return False
43
+ wd = d.isoweekday()
44
+ if wd <= 5:
45
+ return True
46
+ if not windows:
47
+ return False
48
+ segs = windows.get(wd) or windows.get(str(wd)) or []
49
+ return bool(segs)
41
50
 
42
51
 
43
52
  def compile_rule(spec: dict | None, today: date, *, now: datetime | None = None) -> dict[str, list[dict]]:
@@ -62,7 +71,7 @@ def compile_rule(spec: dict | None, today: date, *, now: datetime | None = None)
62
71
  counted = 0
63
72
  while counted < lead:
64
73
  start = start + timedelta(days=1)
65
- if _is_workday(start, skip):
74
+ if _is_workday(start, skip, windows):
66
75
  counted += 1
67
76
  if advance is not None and (clock.hour * 60 + clock.minute) >= advance:
68
77
  start = start + timedelta(days=1)
@@ -1 +1 @@
1
- export const VERSION = "0.14.4"
1
+ export const VERSION = "0.14.5"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyshu/argent-engine",
3
- "version": "0.14.4",
3
+ "version": "0.14.5",
4
4
  "description": "Argent 引擎(L1):流程/台账/重试/守卫/审计/浏览器自动化 —— 逐字节来自 argent-dsh 仓库",
5
5
  "type": "module",
6
6
  "engines": {