codebee 0.1.6 → 0.1.7
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/CHANGELOG.md +8 -0
- package/README.md +431 -421
- package/app/core/automation.py +30 -5
- package/app/core/catalog.py +23 -0
- package/app/core/health.py +7 -50
- package/app/core/manager.py +80 -11
- package/app/core/modelhub.py +2883 -2896
- package/app/core/pipeline.py +9 -15
- package/app/core/remote.py +310 -303
- package/app/core/runner.py +26 -3
- package/app/core/selfupdate.py +47 -16
- package/app/core/store.py +138 -47
- package/app/core/usage.py +51 -1
- package/app/main.py +219 -23
- package/app/ui/app.js +519 -156
- package/app/ui/i18n.js +30 -1
- package/app/ui/index.html +57 -45
- package/app/ui/style.css +1056 -2
- package/package.json +1 -1
package/app/core/pipeline.py
CHANGED
|
@@ -286,26 +286,20 @@ def _binding_dead_msg(agent):
|
|
|
286
286
|
def _run_step(run_id, role, agent, prompt, workdir, readonly, ev, timeout=runner.DEFAULT_TIMEOUT, note="", resume=None, images=None, require_tools=False):
|
|
287
287
|
"""执行一个智能体步骤并记录。返回 runner 统一结果。"""
|
|
288
288
|
_wait_gate(run_id, ev)
|
|
289
|
-
#
|
|
290
|
-
#
|
|
291
|
-
#
|
|
292
|
-
#
|
|
289
|
+
# 绑定解析为空分两种(2026-09-18 起 区分对待):
|
|
290
|
+
# · 从没配过链(binding_configured=False):回落 CLI 本机默认照跑——
|
|
291
|
+
# 用户根本没在 CodeBee 里配供应商,谈不到「烧自己配的配额」;判失败
|
|
292
|
+
# 反而把用本地登录的普通用户全挡在门外(0.1.6 真实装机误伤案例)。
|
|
293
|
+
# · 配过链但全死(binding_configured=True):本步判失败不静默降级——
|
|
294
|
+
# 宁可失败不偷跑本机默认;auto 流程实现步的既有换将会接手健康 CLI。
|
|
295
|
+
# 只记在步骤备注/错误里,不再产生全局健康告警胶囊(同上案例:红胶囊
|
|
296
|
+
# 吓不到也帮不到普通用户,2026-09-18 用户拍板移除)。
|
|
293
297
|
dead_binding = (agent.get("mode") == "real"
|
|
298
|
+
and agent.get("binding_configured")
|
|
294
299
|
and not (agent.get("call_chain") or agent.get("env")))
|
|
295
300
|
dead_msg = _binding_dead_msg(agent) if dead_binding else ""
|
|
296
301
|
if dead_binding:
|
|
297
|
-
try:
|
|
298
|
-
from . import health
|
|
299
|
-
health.report_binding_dead(agent["id"], dead_msg)
|
|
300
|
-
except Exception:
|
|
301
|
-
pass
|
|
302
302
|
note = ((note + ";") if note else "") + "⚠ " + dead_msg
|
|
303
|
-
elif agent.get("mode") == "real":
|
|
304
|
-
try: # 绑定恢复:自动解除该 CLI 的静态死链告警
|
|
305
|
-
from . import health
|
|
306
|
-
health.report_binding_ok(agent["id"])
|
|
307
|
-
except Exception:
|
|
308
|
-
pass
|
|
309
303
|
step, log_abs = store.add_step(run_id, role, agent["id"],
|
|
310
304
|
agent.get("label", agent["id"]), note=note)
|
|
311
305
|
start = time.time()
|