lemma-agent 0.0.0-stage → 1.0.0
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/README.md +121 -2
- package/bin/lemma.mjs +42 -0
- package/dist/acceptance.js +63 -0
- package/dist/admin.js +1482 -0
- package/dist/agents.js +245 -0
- package/dist/api-member.js +537 -0
- package/dist/app.js +161 -0
- package/dist/board.js +185 -0
- package/dist/business-tools.js +153 -0
- package/dist/change-ops.js +91 -0
- package/dist/changes.js +46 -0
- package/dist/cli-runner.js +106 -0
- package/dist/code-tools.js +396 -0
- package/dist/coding-benchmark-fixtures.js +1049 -0
- package/dist/coding-benchmark-suite.js +1252 -0
- package/dist/collaboration-benchmark.js +349 -0
- package/dist/config.js +392 -0
- package/dist/context-benchmark.js +91 -0
- package/dist/conventions.js +282 -0
- package/dist/conversation.js +39 -0
- package/dist/credentials.js +44 -0
- package/dist/deliverables.js +43 -0
- package/dist/digest.js +129 -0
- package/dist/dispatch.js +801 -0
- package/dist/execution-settings.js +24 -0
- package/dist/git-workbench.js +800 -0
- package/dist/git.js +149 -0
- package/dist/integration-git.js +108 -0
- package/dist/integrations.js +557 -0
- package/dist/jobs.js +100 -0
- package/dist/lead.js +263 -0
- package/dist/learning.js +36 -0
- package/dist/main.js +1402 -0
- package/dist/mcp-settings.js +45 -0
- package/dist/mcp-tools.js +102 -0
- package/dist/member-settings.js +245 -0
- package/dist/model-selection.js +48 -0
- package/dist/models.js +145 -0
- package/dist/native-selectors.js +45 -0
- package/dist/native-terminal-components.js +100 -0
- package/dist/ood-benchmark.js +660 -0
- package/dist/operations.js +21 -0
- package/dist/printer.js +113 -0
- package/dist/repair.js +102 -0
- package/dist/resources.js +31 -0
- package/dist/result-summary.js +8 -0
- package/dist/results.js +41 -0
- package/dist/scope.js +114 -0
- package/dist/sessions.js +95 -0
- package/dist/settings.js +30 -0
- package/dist/task-commands.js +37 -0
- package/dist/task-lifecycle.js +49 -0
- package/dist/task-readiness.js +22 -0
- package/dist/task-recovery.js +116 -0
- package/dist/task-review.js +70 -0
- package/dist/task-workflow.js +424 -0
- package/dist/terminal-layout.js +27 -0
- package/dist/terminal-state.js +145 -0
- package/dist/terminal.js +800 -0
- package/dist/tool-settings.js +111 -0
- package/dist/tools.js +1043 -0
- package/dist/ux-telemetry.js +127 -0
- package/dist/view.js +114 -0
- package/package.json +79 -6
- package/web/index.html +136 -0
- package/web/js/conversations.js +312 -0
- package/web/js/dag.js +495 -0
- package/web/js/drawer.js +139 -0
- package/web/js/editors.js +424 -0
- package/web/js/gitlens.js +844 -0
- package/web/js/main.js +152 -0
- package/web/js/sankey.js +476 -0
- package/web/js/store.js +291 -0
- package/web/js/ticket.js +151 -0
- package/web/js/timeline.js +183 -0
- package/web/js/topology.js +454 -0
- package/web/js/util.js +232 -0
- package/web/js/views.js +1496 -0
- package/web/style.css +5299 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { editSettings } from "./settings.js";
|
|
2
|
+
import { applyLimitsDraft } from "./member-settings.js";
|
|
3
|
+
export const EXECUTION_HELP = "/limits 查看并发与预算;/limits edit 引导配置团队/成员/服务并发、每轮预算和每次派工预留";
|
|
4
|
+
export async function executionSettingsCommand(line, host) {
|
|
5
|
+
const current = host.config();
|
|
6
|
+
if (line.trim() === "/limits") {
|
|
7
|
+
host.log(JSON.stringify({ execution: { maxConcurrent: 8, perMember: 4, perService: 8, ...current.execution }, budget: current.budget, note: "预留是用户估计;未知价格与用量不能当作零成本,非账单硬上限。并发与预留作用于当前工作会话数据库。" }, null, 2));
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
if (line.trim() !== "/limits edit")
|
|
11
|
+
throw new Error(EXECUTION_HELP);
|
|
12
|
+
await host.assertIdle();
|
|
13
|
+
const draft = editSettings(host.path);
|
|
14
|
+
const askNumber = async (title, initial) => Number((await host.question({ title, value: String(initial) })).trim() || String(initial));
|
|
15
|
+
const maxConcurrent = await askNumber("团队同时执行上限(1–64)", current.execution?.maxConcurrent ?? 8);
|
|
16
|
+
const perMember = await askNumber("每个成员同时执行上限(1–64)", current.execution?.perMember ?? 4);
|
|
17
|
+
const perService = await askNumber("同一服务地址同时执行上限(1–64)", current.execution?.perService ?? 8);
|
|
18
|
+
const amount = (await host.question({ title: "每轮成员预算美元(unlimited 不限)", value: String(current.budget.perRunUsd ?? "unlimited") })).trim() || String(current.budget.perRunUsd ?? "unlimited");
|
|
19
|
+
const reservePerDispatchUsd = await askNumber("每次成员派工预留美元(估计值,0 关闭预留)", current.budget.reservePerDispatchUsd ?? 0);
|
|
20
|
+
const next = applyLimitsDraft(draft, current, { maxConcurrent, perMember, perService, perRunUsd: amount === "unlimited" ? null : Number(amount), reservePerDispatchUsd });
|
|
21
|
+
await host.commit(draft, next, false);
|
|
22
|
+
host.log("并发与预算配置已保存并生效;历史保持。");
|
|
23
|
+
return true;
|
|
24
|
+
}
|