@hyperwindmill/caretaker-cli 0.12.1 → 0.13.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/dist/cli/web/scheduler/task_review.d.ts +6 -0
- package/dist/cli/web/scheduler/task_review.d.ts.map +1 -1
- package/dist/cli/web/scheduler/task_review.js +22 -5
- package/dist/cli/web/scheduler/task_roles.d.ts +6 -0
- package/dist/cli/web/scheduler/task_roles.d.ts.map +1 -1
- package/dist/cli/web/scheduler/task_roles.js +9 -0
- package/dist/cli/web/scheduler/task_strategy.d.ts.map +1 -1
- package/dist/cli/web/scheduler/task_strategy.js +121 -11
- package/dist/cli/web/server.d.ts.map +1 -1
- package/dist/cli/web/server.js +15 -1
- package/dist/harness/claude_code_runner.d.ts +5 -0
- package/dist/harness/claude_code_runner.d.ts.map +1 -1
- package/dist/harness/claude_code_runner.js +17 -0
- package/dist/harness/loop.d.ts +2 -0
- package/dist/harness/loop.d.ts.map +1 -1
- package/dist/harness/loop.js +1 -0
- package/dist/harness/tools/builtin/bash.d.ts.map +1 -1
- package/dist/harness/tools/builtin/bash.js +18 -9
- package/dist/harness/tools/builtin/task_tools.d.ts.map +1 -1
- package/dist/harness/tools/builtin/task_tools.js +13 -0
- package/dist/harness/tools/types.d.ts +4 -0
- package/dist/harness/tools/types.d.ts.map +1 -1
- package/dist/lib/docker.d.ts +43 -0
- package/dist/lib/docker.d.ts.map +1 -0
- package/dist/lib/docker.js +160 -0
- package/dist/lib/task_git.d.ts +9 -1
- package/dist/lib/task_git.d.ts.map +1 -1
- package/dist/lib/task_git.js +24 -1
- package/dist/store/db.d.ts +6 -0
- package/dist/store/db.d.ts.map +1 -1
- package/dist/webview/standalone.css +6 -2
- package/dist/webview/standalone.css.map +2 -2
- package/dist/webview/standalone.js +521 -450
- package/dist/webview/standalone.js.map +2 -2
- package/package.json +3 -3
|
@@ -15806,75 +15806,77 @@ ${text}</tr>
|
|
|
15806
15806
|
] }),
|
|
15807
15807
|
showForm ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "glass-form", children: [
|
|
15808
15808
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("h4", { children: isCreating ? "Add Provider" : `Edit Provider: ${editingProvider?.name}` }),
|
|
15809
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "
|
|
15810
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-type", children: "Type" }),
|
|
15811
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
15812
|
-
"select",
|
|
15813
|
-
{
|
|
15814
|
-
id: "provider-type",
|
|
15815
|
-
value: type,
|
|
15816
|
-
onChange: (e) => setType(e.target.value),
|
|
15817
|
-
disabled: editingProvider !== null,
|
|
15818
|
-
children: [
|
|
15819
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "openai", children: "OpenAI-compatible endpoint" }),
|
|
15820
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "claude-code", children: "Claude Code (local CLI)" })
|
|
15821
|
-
]
|
|
15822
|
-
}
|
|
15823
|
-
)
|
|
15824
|
-
] }),
|
|
15825
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-group", children: [
|
|
15826
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-name", children: "Name" }),
|
|
15827
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
15828
|
-
"input",
|
|
15829
|
-
{
|
|
15830
|
-
id: "provider-name",
|
|
15831
|
-
type: "text",
|
|
15832
|
-
placeholder: "e.g. Ollama, OpenRouter",
|
|
15833
|
-
value: name,
|
|
15834
|
-
onChange: (e) => setName(e.target.value),
|
|
15835
|
-
disabled: editingProvider !== null
|
|
15836
|
-
}
|
|
15837
|
-
)
|
|
15838
|
-
] }),
|
|
15839
|
-
type === "claude-code" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-group", children: [
|
|
15840
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-command", children: "Command (Optional)" }),
|
|
15841
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
15842
|
-
"input",
|
|
15843
|
-
{
|
|
15844
|
-
id: "provider-command",
|
|
15845
|
-
type: "text",
|
|
15846
|
-
placeholder: "claude",
|
|
15847
|
-
value: command,
|
|
15848
|
-
onChange: (e) => setCommand(e.target.value)
|
|
15849
|
-
}
|
|
15850
|
-
),
|
|
15851
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { style: { fontSize: "11px", color: "var(--vscode-descriptionForeground)", lineHeight: "1.4", margin: "4px 0 0" }, children: "Uses your local Claude Code session; Anthropic may bill programmatic use as extra usage." })
|
|
15852
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
15809
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "glass-form__body", children: [
|
|
15853
15810
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-group", children: [
|
|
15854
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-
|
|
15811
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-type", children: "Type" }),
|
|
15812
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
15813
|
+
"select",
|
|
15814
|
+
{
|
|
15815
|
+
id: "provider-type",
|
|
15816
|
+
value: type,
|
|
15817
|
+
onChange: (e) => setType(e.target.value),
|
|
15818
|
+
disabled: editingProvider !== null,
|
|
15819
|
+
children: [
|
|
15820
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "openai", children: "OpenAI-compatible endpoint" }),
|
|
15821
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: "claude-code", children: "Claude Code (local CLI)" })
|
|
15822
|
+
]
|
|
15823
|
+
}
|
|
15824
|
+
)
|
|
15825
|
+
] }),
|
|
15826
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-group", children: [
|
|
15827
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-name", children: "Name" }),
|
|
15855
15828
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
15856
15829
|
"input",
|
|
15857
15830
|
{
|
|
15858
|
-
id: "provider-
|
|
15831
|
+
id: "provider-name",
|
|
15859
15832
|
type: "text",
|
|
15860
|
-
placeholder: "e.g.
|
|
15861
|
-
value:
|
|
15862
|
-
onChange: (e) =>
|
|
15833
|
+
placeholder: "e.g. Ollama, OpenRouter",
|
|
15834
|
+
value: name,
|
|
15835
|
+
onChange: (e) => setName(e.target.value),
|
|
15836
|
+
disabled: editingProvider !== null
|
|
15863
15837
|
}
|
|
15864
15838
|
)
|
|
15865
15839
|
] }),
|
|
15866
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-group", children: [
|
|
15867
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-
|
|
15840
|
+
type === "claude-code" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-group", children: [
|
|
15841
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-command", children: "Command (Optional)" }),
|
|
15868
15842
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
15869
15843
|
"input",
|
|
15870
15844
|
{
|
|
15871
|
-
id: "provider-
|
|
15872
|
-
type: "
|
|
15873
|
-
placeholder:
|
|
15874
|
-
value:
|
|
15875
|
-
onChange: (e) =>
|
|
15845
|
+
id: "provider-command",
|
|
15846
|
+
type: "text",
|
|
15847
|
+
placeholder: "claude",
|
|
15848
|
+
value: command,
|
|
15849
|
+
onChange: (e) => setCommand(e.target.value)
|
|
15876
15850
|
}
|
|
15877
|
-
)
|
|
15851
|
+
),
|
|
15852
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { style: { fontSize: "11px", color: "var(--vscode-descriptionForeground)", lineHeight: "1.4", margin: "4px 0 0" }, children: "Uses your local Claude Code session; Anthropic may bill programmatic use as extra usage." })
|
|
15853
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
15854
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-group", children: [
|
|
15855
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-endpoint", children: "Endpoint URL" }),
|
|
15856
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
15857
|
+
"input",
|
|
15858
|
+
{
|
|
15859
|
+
id: "provider-endpoint",
|
|
15860
|
+
type: "text",
|
|
15861
|
+
placeholder: "e.g. http://localhost:11434/v1",
|
|
15862
|
+
value: endpoint,
|
|
15863
|
+
onChange: (e) => setEndpoint(e.target.value)
|
|
15864
|
+
}
|
|
15865
|
+
)
|
|
15866
|
+
] }),
|
|
15867
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-group", children: [
|
|
15868
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-key", children: "API Key (Optional)" }),
|
|
15869
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
15870
|
+
"input",
|
|
15871
|
+
{
|
|
15872
|
+
id: "provider-key",
|
|
15873
|
+
type: "password",
|
|
15874
|
+
placeholder: editingProvider?.apiKey ? "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022" : "Optional credentials",
|
|
15875
|
+
value: apiKey,
|
|
15876
|
+
onChange: (e) => setApiKey(e.target.value)
|
|
15877
|
+
}
|
|
15878
|
+
)
|
|
15879
|
+
] })
|
|
15878
15880
|
] })
|
|
15879
15881
|
] }),
|
|
15880
15882
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-actions", children: [
|
|
@@ -16149,6 +16151,7 @@ ${text}</tr>
|
|
|
16149
16151
|
const [sddEnabled, setSddEnabled] = (0, import_react7.useState)(null);
|
|
16150
16152
|
const [bootstrapText, setBootstrapText] = (0, import_react7.useState)("");
|
|
16151
16153
|
const [maxRunSecondsText, setMaxRunSecondsText] = (0, import_react7.useState)("");
|
|
16154
|
+
const [dockerImage, setDockerImage] = (0, import_react7.useState)("");
|
|
16152
16155
|
const [errorMsg, setErrorMsg] = (0, import_react7.useState)(null);
|
|
16153
16156
|
const projects = config.projects || [];
|
|
16154
16157
|
const startEdit = (proj) => {
|
|
@@ -16165,6 +16168,7 @@ ${text}</tr>
|
|
|
16165
16168
|
setSddEnabled(proj.sddEnabled !== void 0 ? proj.sddEnabled : null);
|
|
16166
16169
|
setBootstrapText((proj.bootstrapCommands || []).join("\n"));
|
|
16167
16170
|
setMaxRunSecondsText(proj.maxRunSeconds ? String(proj.maxRunSeconds) : "");
|
|
16171
|
+
setDockerImage(proj.dockerImage || "");
|
|
16168
16172
|
setErrorMsg(null);
|
|
16169
16173
|
};
|
|
16170
16174
|
const startCreate = () => {
|
|
@@ -16181,6 +16185,7 @@ ${text}</tr>
|
|
|
16181
16185
|
setSddEnabled(null);
|
|
16182
16186
|
setBootstrapText("");
|
|
16183
16187
|
setMaxRunSecondsText("");
|
|
16188
|
+
setDockerImage("");
|
|
16184
16189
|
setErrorMsg(null);
|
|
16185
16190
|
};
|
|
16186
16191
|
const cancelForm = () => {
|
|
@@ -16207,6 +16212,7 @@ ${text}</tr>
|
|
|
16207
16212
|
const bootstrapCommands = bootstrapText.split("\n").map((c) => c.trim()).filter(Boolean);
|
|
16208
16213
|
const parsedMaxRun = parseInt(maxRunSecondsText.trim(), 10);
|
|
16209
16214
|
const maxRunSeconds = Number.isFinite(parsedMaxRun) && parsedMaxRun > 0 ? parsedMaxRun : null;
|
|
16215
|
+
const trimmedDocker = dockerImage.trim();
|
|
16210
16216
|
const updatedProjects = [...projects];
|
|
16211
16217
|
if (isCreating) {
|
|
16212
16218
|
const nextId = projects.length > 0 ? Math.max(...projects.map((p) => p.id)) + 1 : 1;
|
|
@@ -16223,7 +16229,8 @@ ${text}</tr>
|
|
|
16223
16229
|
reviewEnabled,
|
|
16224
16230
|
sddEnabled,
|
|
16225
16231
|
bootstrapCommands,
|
|
16226
|
-
maxRunSeconds
|
|
16232
|
+
maxRunSeconds,
|
|
16233
|
+
dockerImage: trimmedDocker || null
|
|
16227
16234
|
};
|
|
16228
16235
|
updatedProjects.push(newProj);
|
|
16229
16236
|
} else if (editingProject) {
|
|
@@ -16241,7 +16248,8 @@ ${text}</tr>
|
|
|
16241
16248
|
reviewEnabled,
|
|
16242
16249
|
sddEnabled,
|
|
16243
16250
|
bootstrapCommands,
|
|
16244
|
-
maxRunSeconds
|
|
16251
|
+
maxRunSeconds,
|
|
16252
|
+
dockerImage: trimmedDocker || null
|
|
16245
16253
|
};
|
|
16246
16254
|
}
|
|
16247
16255
|
}
|
|
@@ -16283,174 +16291,221 @@ ${text}</tr>
|
|
|
16283
16291
|
] }),
|
|
16284
16292
|
showForm ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "glass-form", children: [
|
|
16285
16293
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h4", { children: isCreating ? "Register New Project" : `Edit Project: ${editingProject?.name}` }),
|
|
16286
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "
|
|
16287
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.
|
|
16288
|
-
|
|
16289
|
-
|
|
16290
|
-
|
|
16291
|
-
|
|
16292
|
-
|
|
16293
|
-
|
|
16294
|
-
|
|
16295
|
-
|
|
16296
|
-
|
|
16297
|
-
|
|
16298
|
-
|
|
16299
|
-
|
|
16300
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.
|
|
16301
|
-
|
|
16302
|
-
|
|
16303
|
-
|
|
16304
|
-
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
-
|
|
16308
|
-
|
|
16309
|
-
|
|
16310
|
-
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.
|
|
16326
|
-
|
|
16327
|
-
"select",
|
|
16328
|
-
{
|
|
16329
|
-
id: "project-agent",
|
|
16330
|
-
value: agentId,
|
|
16331
|
-
onChange: (e) => setAgentId(e.target.value),
|
|
16332
|
-
children: [
|
|
16333
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "", disabled: true, children: "-- Select Agent --" }),
|
|
16334
|
-
agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
|
|
16335
|
-
]
|
|
16336
|
-
}
|
|
16337
|
-
)
|
|
16338
|
-
] }),
|
|
16339
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16340
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-planner", children: "Planner Agent Override (optional)" }),
|
|
16341
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
16342
|
-
"select",
|
|
16343
|
-
{
|
|
16344
|
-
id: "project-planner",
|
|
16345
|
-
value: plannerAgentId,
|
|
16346
|
-
onChange: (e) => setPlannerAgentId(e.target.value),
|
|
16347
|
-
children: [
|
|
16348
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "", children: "Same as assigned agent" }),
|
|
16349
|
-
agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
|
|
16350
|
-
]
|
|
16351
|
-
}
|
|
16352
|
-
)
|
|
16353
|
-
] }),
|
|
16354
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16355
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-reviewer", children: "Reviewer Agent Override (optional)" }),
|
|
16356
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
16357
|
-
"select",
|
|
16358
|
-
{
|
|
16359
|
-
id: "project-reviewer",
|
|
16360
|
-
value: reviewerAgentId,
|
|
16361
|
-
onChange: (e) => setReviewerAgentId(e.target.value),
|
|
16362
|
-
children: [
|
|
16363
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "", children: "Same as assigned agent" }),
|
|
16364
|
-
agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
|
|
16365
|
-
]
|
|
16366
|
-
}
|
|
16367
|
-
)
|
|
16368
|
-
] }),
|
|
16369
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", style: { display: "flex", gap: "16px" }, children: [
|
|
16370
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: { flex: 1 }, children: [
|
|
16371
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-planning-enabled", children: "Planning Phase" }),
|
|
16294
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "glass-form__body", children: [
|
|
16295
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16296
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-name", children: "Project Name" }),
|
|
16297
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
16298
|
+
"input",
|
|
16299
|
+
{
|
|
16300
|
+
id: "project-name",
|
|
16301
|
+
type: "text",
|
|
16302
|
+
placeholder: "e.g. My Caretaker Agent Repo",
|
|
16303
|
+
value: name,
|
|
16304
|
+
onChange: (e) => setName(e.target.value)
|
|
16305
|
+
}
|
|
16306
|
+
)
|
|
16307
|
+
] }),
|
|
16308
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16309
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-description", children: "Description" }),
|
|
16310
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
16311
|
+
"textarea",
|
|
16312
|
+
{
|
|
16313
|
+
id: "project-description",
|
|
16314
|
+
placeholder: "What tasks will this agent perform on this repository?",
|
|
16315
|
+
value: description,
|
|
16316
|
+
onChange: (e) => setDescription(e.target.value),
|
|
16317
|
+
style: { minHeight: "60px", resize: "vertical" }
|
|
16318
|
+
}
|
|
16319
|
+
)
|
|
16320
|
+
] }),
|
|
16321
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16322
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-dir", children: "Local Directory Path (Absolute)" }),
|
|
16323
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
16324
|
+
FolderPicker,
|
|
16325
|
+
{
|
|
16326
|
+
id: "project-dir",
|
|
16327
|
+
placeholder: "e.g. /home/user/workspace/caretaker-cli",
|
|
16328
|
+
value: workingDir,
|
|
16329
|
+
onChange: setWorkingDir
|
|
16330
|
+
}
|
|
16331
|
+
)
|
|
16332
|
+
] }),
|
|
16333
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16334
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-agent", children: "Assigned Agent" }),
|
|
16372
16335
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
16373
16336
|
"select",
|
|
16374
16337
|
{
|
|
16375
|
-
id: "project-
|
|
16376
|
-
value:
|
|
16377
|
-
onChange: (e) =>
|
|
16338
|
+
id: "project-agent",
|
|
16339
|
+
value: agentId,
|
|
16340
|
+
onChange: (e) => setAgentId(e.target.value),
|
|
16378
16341
|
children: [
|
|
16379
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "
|
|
16380
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value:
|
|
16381
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
|
|
16342
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "", disabled: true, children: "-- Select Agent --" }),
|
|
16343
|
+
agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
|
|
16382
16344
|
]
|
|
16383
16345
|
}
|
|
16384
16346
|
)
|
|
16385
16347
|
] }),
|
|
16386
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", {
|
|
16387
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-
|
|
16348
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16349
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-planner", children: "Planner Agent Override (optional)" }),
|
|
16388
16350
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
16389
16351
|
"select",
|
|
16390
16352
|
{
|
|
16391
|
-
id: "project-
|
|
16392
|
-
value:
|
|
16393
|
-
onChange: (e) =>
|
|
16353
|
+
id: "project-planner",
|
|
16354
|
+
value: plannerAgentId,
|
|
16355
|
+
onChange: (e) => setPlannerAgentId(e.target.value),
|
|
16394
16356
|
children: [
|
|
16395
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "
|
|
16396
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value:
|
|
16397
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
|
|
16357
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "", children: "Same as assigned agent" }),
|
|
16358
|
+
agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
|
|
16398
16359
|
]
|
|
16399
16360
|
}
|
|
16400
16361
|
)
|
|
16401
16362
|
] }),
|
|
16402
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", {
|
|
16403
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-
|
|
16363
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16364
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-reviewer", children: "Reviewer Agent Override (optional)" }),
|
|
16404
16365
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
16405
16366
|
"select",
|
|
16406
16367
|
{
|
|
16407
|
-
id: "project-
|
|
16408
|
-
value:
|
|
16409
|
-
onChange: (e) =>
|
|
16368
|
+
id: "project-reviewer",
|
|
16369
|
+
value: reviewerAgentId,
|
|
16370
|
+
onChange: (e) => setReviewerAgentId(e.target.value),
|
|
16410
16371
|
children: [
|
|
16411
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "
|
|
16412
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value:
|
|
16413
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
|
|
16372
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "", children: "Same as assigned agent" }),
|
|
16373
|
+
agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
|
|
16414
16374
|
]
|
|
16415
16375
|
}
|
|
16416
16376
|
)
|
|
16377
|
+
] }),
|
|
16378
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", style: { display: "flex", gap: "16px" }, children: [
|
|
16379
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
16380
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-planning-enabled", children: "Planning Phase" }),
|
|
16381
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
16382
|
+
"select",
|
|
16383
|
+
{
|
|
16384
|
+
id: "project-planning-enabled",
|
|
16385
|
+
value: planningEnabled === true ? "on" : planningEnabled === false ? "off" : "default",
|
|
16386
|
+
onChange: (e) => setPlanningEnabled(e.target.value === "default" ? null : e.target.value === "on"),
|
|
16387
|
+
children: [
|
|
16388
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "default", children: "Default (On)" }),
|
|
16389
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "on", children: "On" }),
|
|
16390
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
|
|
16391
|
+
]
|
|
16392
|
+
}
|
|
16393
|
+
)
|
|
16394
|
+
] }),
|
|
16395
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
16396
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-review-enabled", children: "Review at DONE" }),
|
|
16397
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
16398
|
+
"select",
|
|
16399
|
+
{
|
|
16400
|
+
id: "project-review-enabled",
|
|
16401
|
+
value: reviewEnabled === true ? "on" : reviewEnabled === false ? "off" : "default",
|
|
16402
|
+
onChange: (e) => setReviewEnabled(e.target.value === "default" ? null : e.target.value === "on"),
|
|
16403
|
+
children: [
|
|
16404
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "default", children: "Default (On)" }),
|
|
16405
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "on", children: "On" }),
|
|
16406
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
|
|
16407
|
+
]
|
|
16408
|
+
}
|
|
16409
|
+
)
|
|
16410
|
+
] }),
|
|
16411
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
16412
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-sdd-enabled", children: "SDD Mode" }),
|
|
16413
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
16414
|
+
"select",
|
|
16415
|
+
{
|
|
16416
|
+
id: "project-sdd-enabled",
|
|
16417
|
+
value: sddEnabled === true ? "on" : sddEnabled === false ? "off" : "default",
|
|
16418
|
+
onChange: (e) => setSddEnabled(e.target.value === "default" ? null : e.target.value === "on"),
|
|
16419
|
+
children: [
|
|
16420
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "default", children: "Default (Off)" }),
|
|
16421
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "on", children: "On" }),
|
|
16422
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
|
|
16423
|
+
]
|
|
16424
|
+
}
|
|
16425
|
+
)
|
|
16426
|
+
] })
|
|
16427
|
+
] }),
|
|
16428
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { style: { fontSize: "11px", opacity: 0.65, margin: "6px 0 0 0" }, children: "SDD mode lets the planner write markdown documents (specs, plans) during the planning phase. How and where they are written is up to this project's own conventions (AGENTS.md, agent prompt \u2014 e.g. superpowers specs). Everything else stays read-only." }),
|
|
16429
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16430
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-bootstrap", children: "Bootstrap Commands (one per line)" }),
|
|
16431
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
16432
|
+
"textarea",
|
|
16433
|
+
{
|
|
16434
|
+
id: "project-bootstrap",
|
|
16435
|
+
value: bootstrapText,
|
|
16436
|
+
onChange: (e) => setBootstrapText(e.target.value),
|
|
16437
|
+
placeholder: "pnpm install\npnpm build",
|
|
16438
|
+
rows: 3,
|
|
16439
|
+
style: { fontFamily: "var(--font-mono)", fontSize: "11px" }
|
|
16440
|
+
}
|
|
16441
|
+
),
|
|
16442
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("p", { style: { fontSize: "11px", opacity: 0.65, margin: "6px 0 0 0", lineHeight: 1.5 }, children: [
|
|
16443
|
+
"Run once, in order, right after a task worktree is created (git projects only) \u2014 before the agent's first cycle, so it doesn't spend tokens on setup like ",
|
|
16444
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "pnpm install" }),
|
|
16445
|
+
". The run stops and the task is blocked if any command fails.",
|
|
16446
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("br", {}),
|
|
16447
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("strong", { children: "Heads up on how tasks work:" }),
|
|
16448
|
+
" each task runs on its own git worktree/branch, and every cycle commits ",
|
|
16449
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("em", { children: "all" }),
|
|
16450
|
+
" changes in that tree. So anything your bootstrap or the agent writes to the workspace that isn't in ",
|
|
16451
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: ".gitignore" }),
|
|
16452
|
+
" gets committed to the branch \u2014 e.g. a package manager that drops a local store or cache in the repo (pnpm's",
|
|
16453
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: ".pnpm-store/" }),
|
|
16454
|
+
" under a bind-mounted Docker worktree is a common one). Make sure build/dependency artifacts are gitignored so they don't bloat the task branch."
|
|
16455
|
+
] })
|
|
16456
|
+
] }),
|
|
16457
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16458
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-max-run", children: "Max run seconds per cycle (optional)" }),
|
|
16459
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
16460
|
+
"input",
|
|
16461
|
+
{
|
|
16462
|
+
id: "project-max-run",
|
|
16463
|
+
type: "number",
|
|
16464
|
+
min: 1,
|
|
16465
|
+
value: maxRunSecondsText,
|
|
16466
|
+
onChange: (e) => setMaxRunSecondsText(e.target.value),
|
|
16467
|
+
placeholder: "Default: 120 (native) / 900 (claude-code)"
|
|
16468
|
+
}
|
|
16469
|
+
),
|
|
16470
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { style: { fontSize: "11px", opacity: 0.65, margin: "6px 0 0 0" }, children: "Wall-clock budget for a single heartbeat cycle, enforced as an abort for every provider. Tasks inherit this and can override it. Leave empty for the default." })
|
|
16471
|
+
] }),
|
|
16472
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16473
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-docker-image", children: "Docker image (optional)" }),
|
|
16474
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
16475
|
+
"input",
|
|
16476
|
+
{
|
|
16477
|
+
id: "project-docker-image",
|
|
16478
|
+
type: "text",
|
|
16479
|
+
value: dockerImage,
|
|
16480
|
+
onChange: (e) => setDockerImage(e.target.value),
|
|
16481
|
+
placeholder: "e.g. node:22 or ./Dockerfile"
|
|
16482
|
+
}
|
|
16483
|
+
),
|
|
16484
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("p", { style: { fontSize: "11px", opacity: 0.65, margin: "6px 0 0 0", lineHeight: 1.5 }, children: [
|
|
16485
|
+
"Run this project's autonomous task agents (dev, planning & review) inside this image. Empty = run on the host.",
|
|
16486
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("br", {}),
|
|
16487
|
+
"A value starting with ",
|
|
16488
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "." }),
|
|
16489
|
+
", ",
|
|
16490
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "/" }),
|
|
16491
|
+
" or ",
|
|
16492
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "\\" }),
|
|
16493
|
+
" is treated as a path to a ",
|
|
16494
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("strong", { children: "Dockerfile" }),
|
|
16495
|
+
" (built per-project); anything else is a pullable image ref (e.g. ",
|
|
16496
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "node:22" }),
|
|
16497
|
+
").",
|
|
16498
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("br", {}),
|
|
16499
|
+
"The container runs as your user, so put the package manager ",
|
|
16500
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("em", { children: "in the image" }),
|
|
16501
|
+
" (e.g. ",
|
|
16502
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "corepack enable pnpm" }),
|
|
16503
|
+
") \u2014 ",
|
|
16504
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "npm i -g" }),
|
|
16505
|
+
" fails as non-root. Docker must be installed on the scheduler host."
|
|
16506
|
+
] })
|
|
16417
16507
|
] })
|
|
16418
16508
|
] }),
|
|
16419
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { style: { fontSize: "11px", opacity: 0.65, margin: "6px 0 0 0" }, children: "SDD mode lets the planner write markdown documents (specs, plans) during the planning phase. How and where they are written is up to this project's own conventions (AGENTS.md, agent prompt \u2014 e.g. superpowers specs). Everything else stays read-only." }),
|
|
16420
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16421
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-bootstrap", children: "Bootstrap Commands (one per line)" }),
|
|
16422
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
16423
|
-
"textarea",
|
|
16424
|
-
{
|
|
16425
|
-
id: "project-bootstrap",
|
|
16426
|
-
value: bootstrapText,
|
|
16427
|
-
onChange: (e) => setBootstrapText(e.target.value),
|
|
16428
|
-
placeholder: "pnpm install\npnpm build",
|
|
16429
|
-
rows: 3,
|
|
16430
|
-
style: { fontFamily: "var(--font-mono)", fontSize: "11px" }
|
|
16431
|
-
}
|
|
16432
|
-
),
|
|
16433
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("p", { style: { fontSize: "11px", opacity: 0.65, margin: "6px 0 0 0" }, children: [
|
|
16434
|
-
"Run once, in order, right after a task worktree is created (git projects only) \u2014 before the agent's first cycle, so it doesn't spend tokens on setup like ",
|
|
16435
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "pnpm install" }),
|
|
16436
|
-
". The run stops and the task is blocked if any command fails."
|
|
16437
|
-
] })
|
|
16438
|
-
] }),
|
|
16439
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
|
|
16440
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-max-run", children: "Max run seconds per cycle (optional)" }),
|
|
16441
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
16442
|
-
"input",
|
|
16443
|
-
{
|
|
16444
|
-
id: "project-max-run",
|
|
16445
|
-
type: "number",
|
|
16446
|
-
min: 1,
|
|
16447
|
-
value: maxRunSecondsText,
|
|
16448
|
-
onChange: (e) => setMaxRunSecondsText(e.target.value),
|
|
16449
|
-
placeholder: "Default: 120 (native) / 900 (claude-code)"
|
|
16450
|
-
}
|
|
16451
|
-
),
|
|
16452
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { style: { fontSize: "11px", opacity: 0.65, margin: "6px 0 0 0" }, children: "Wall-clock budget for a single heartbeat cycle, enforced as an abort for every provider. Tasks inherit this and can override it. Leave empty for the default." })
|
|
16453
|
-
] }),
|
|
16454
16509
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-actions", children: [
|
|
16455
16510
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: "btn btn--secondary", onClick: cancelForm, children: "Cancel" }),
|
|
16456
16511
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: "btn btn--primary", onClick: validateAndSave, children: "Save" })
|
|
@@ -16466,9 +16521,15 @@ ${text}</tr>
|
|
|
16466
16521
|
] }),
|
|
16467
16522
|
proj.description && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "settings-card__subtitle", style: { fontSize: "11px", opacity: 0.8, marginBottom: "4px" }, children: proj.description }),
|
|
16468
16523
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "settings-card__subtitle", style: { fontFamily: "var(--font-mono)", fontSize: "10px" }, children: proj.workingDir }),
|
|
16469
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", {
|
|
16470
|
-
"
|
|
16471
|
-
|
|
16524
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: { display: "flex", flexWrap: "wrap", gap: "6px", marginTop: "6px" }, children: [
|
|
16525
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "settings-card__badge", children: [
|
|
16526
|
+
"Agent: ",
|
|
16527
|
+
assignedAgent
|
|
16528
|
+
] }),
|
|
16529
|
+
proj.dockerImage && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "settings-card__badge", children: [
|
|
16530
|
+
"Docker: ",
|
|
16531
|
+
proj.dockerImage
|
|
16532
|
+
] })
|
|
16472
16533
|
] })
|
|
16473
16534
|
] }),
|
|
16474
16535
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "settings-card__actions", children: [
|
|
@@ -17123,95 +17184,97 @@ ${text}</tr>
|
|
|
17123
17184
|
] }),
|
|
17124
17185
|
showForm ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "glass-form", children: [
|
|
17125
17186
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h4", { children: isCreating ? "Register Plugin Source" : "Edit Plugin Source" }),
|
|
17126
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "
|
|
17127
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.
|
|
17128
|
-
|
|
17129
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("
|
|
17187
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "glass-form__body", children: [
|
|
17188
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
|
|
17189
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { children: "Source Type" }),
|
|
17190
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "radio-group", children: [
|
|
17191
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("label", { className: "radio-label", children: [
|
|
17192
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17193
|
+
"input",
|
|
17194
|
+
{
|
|
17195
|
+
type: "radio",
|
|
17196
|
+
name: "source-kind",
|
|
17197
|
+
checked: kind === "git",
|
|
17198
|
+
onChange: () => setKind("git")
|
|
17199
|
+
}
|
|
17200
|
+
),
|
|
17201
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Git Remote" })
|
|
17202
|
+
] }),
|
|
17203
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("label", { className: "radio-label", children: [
|
|
17204
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17205
|
+
"input",
|
|
17206
|
+
{
|
|
17207
|
+
type: "radio",
|
|
17208
|
+
name: "source-kind",
|
|
17209
|
+
checked: kind === "path",
|
|
17210
|
+
onChange: () => setKind("path")
|
|
17211
|
+
}
|
|
17212
|
+
),
|
|
17213
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Local Path" })
|
|
17214
|
+
] })
|
|
17215
|
+
] })
|
|
17216
|
+
] }),
|
|
17217
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
|
|
17218
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "source-url", children: kind === "git" ? "Git Repository URL" : "Absolute Filesystem Path" }),
|
|
17219
|
+
kind === "git" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17220
|
+
"input",
|
|
17221
|
+
{
|
|
17222
|
+
id: "source-url",
|
|
17223
|
+
type: "text",
|
|
17224
|
+
placeholder: "https://github.com/org/repo.git",
|
|
17225
|
+
value: url,
|
|
17226
|
+
onChange: (e) => setUrl(e.target.value)
|
|
17227
|
+
}
|
|
17228
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17229
|
+
FolderPicker,
|
|
17230
|
+
{
|
|
17231
|
+
id: "source-url",
|
|
17232
|
+
placeholder: "/absolute/path/to/plugins",
|
|
17233
|
+
value: url,
|
|
17234
|
+
onChange: setUrl
|
|
17235
|
+
}
|
|
17236
|
+
)
|
|
17237
|
+
] }),
|
|
17238
|
+
kind === "git" && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
17239
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
|
|
17240
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "source-ref", children: "Branch / Ref (Optional)" }),
|
|
17130
17241
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17131
17242
|
"input",
|
|
17132
17243
|
{
|
|
17133
|
-
|
|
17134
|
-
|
|
17135
|
-
|
|
17136
|
-
|
|
17244
|
+
id: "source-ref",
|
|
17245
|
+
type: "text",
|
|
17246
|
+
placeholder: "e.g. main, v1.0.0",
|
|
17247
|
+
value: ref,
|
|
17248
|
+
onChange: (e) => setRef(e.target.value)
|
|
17137
17249
|
}
|
|
17138
|
-
)
|
|
17139
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Git Remote" })
|
|
17250
|
+
)
|
|
17140
17251
|
] }),
|
|
17141
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("
|
|
17252
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
|
|
17253
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "source-token", children: "Auth Token (Optional - encrypted)" }),
|
|
17142
17254
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17143
17255
|
"input",
|
|
17144
17256
|
{
|
|
17145
|
-
|
|
17146
|
-
|
|
17147
|
-
|
|
17148
|
-
|
|
17257
|
+
id: "source-token",
|
|
17258
|
+
type: "password",
|
|
17259
|
+
placeholder: editingSource?.authToken ? "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022" : "Credentials for private repositories",
|
|
17260
|
+
value: authToken,
|
|
17261
|
+
onChange: (e) => setAuthToken(e.target.value)
|
|
17149
17262
|
}
|
|
17150
|
-
)
|
|
17151
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Local Path" })
|
|
17263
|
+
)
|
|
17152
17264
|
] })
|
|
17153
|
-
] })
|
|
17154
|
-
] }),
|
|
17155
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
|
|
17156
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "source-url", children: kind === "git" ? "Git Repository URL" : "Absolute Filesystem Path" }),
|
|
17157
|
-
kind === "git" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17158
|
-
"input",
|
|
17159
|
-
{
|
|
17160
|
-
id: "source-url",
|
|
17161
|
-
type: "text",
|
|
17162
|
-
placeholder: "https://github.com/org/repo.git",
|
|
17163
|
-
value: url,
|
|
17164
|
-
onChange: (e) => setUrl(e.target.value)
|
|
17165
|
-
}
|
|
17166
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17167
|
-
FolderPicker,
|
|
17168
|
-
{
|
|
17169
|
-
id: "source-url",
|
|
17170
|
-
placeholder: "/absolute/path/to/plugins",
|
|
17171
|
-
value: url,
|
|
17172
|
-
onChange: setUrl
|
|
17173
|
-
}
|
|
17174
|
-
)
|
|
17175
|
-
] }),
|
|
17176
|
-
kind === "git" && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
17177
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
|
|
17178
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "source-ref", children: "Branch / Ref (Optional)" }),
|
|
17179
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17180
|
-
"input",
|
|
17181
|
-
{
|
|
17182
|
-
id: "source-ref",
|
|
17183
|
-
type: "text",
|
|
17184
|
-
placeholder: "e.g. main, v1.0.0",
|
|
17185
|
-
value: ref,
|
|
17186
|
-
onChange: (e) => setRef(e.target.value)
|
|
17187
|
-
}
|
|
17188
|
-
)
|
|
17189
17265
|
] }),
|
|
17190
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.
|
|
17191
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "source-token", children: "Auth Token (Optional - encrypted)" }),
|
|
17266
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "form-group form-group--checkbox", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("label", { className: "checkbox-label", children: [
|
|
17192
17267
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17193
17268
|
"input",
|
|
17194
17269
|
{
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17198
|
-
value: authToken,
|
|
17199
|
-
onChange: (e) => setAuthToken(e.target.value)
|
|
17270
|
+
type: "checkbox",
|
|
17271
|
+
checked: refreshOnStart,
|
|
17272
|
+
onChange: (e) => setRefreshOnStart(e.target.checked)
|
|
17200
17273
|
}
|
|
17201
|
-
)
|
|
17202
|
-
|
|
17274
|
+
),
|
|
17275
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Automatically refresh on startup" })
|
|
17276
|
+
] }) })
|
|
17203
17277
|
] }),
|
|
17204
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "form-group form-group--checkbox", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("label", { className: "checkbox-label", children: [
|
|
17205
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
17206
|
-
"input",
|
|
17207
|
-
{
|
|
17208
|
-
type: "checkbox",
|
|
17209
|
-
checked: refreshOnStart,
|
|
17210
|
-
onChange: (e) => setRefreshOnStart(e.target.checked)
|
|
17211
|
-
}
|
|
17212
|
-
),
|
|
17213
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Automatically refresh on startup" })
|
|
17214
|
-
] }) }),
|
|
17215
17278
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-actions", children: [
|
|
17216
17279
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { className: "btn btn--secondary", onClick: cancelForm, children: "Cancel" }),
|
|
17217
17280
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { className: "btn btn--primary", onClick: validateAndSave, children: "Save" })
|
|
@@ -17923,201 +17986,203 @@ ${text}</tr>
|
|
|
17923
17986
|
] }),
|
|
17924
17987
|
showForm ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "glass-form", children: [
|
|
17925
17988
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("h4", { children: isCreating ? "Add Scheduled Task" : `Edit Task: ${editingTask?.name}` }),
|
|
17926
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "
|
|
17927
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-name", children: "Task Name" }),
|
|
17928
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
17929
|
-
"input",
|
|
17930
|
-
{
|
|
17931
|
-
id: "task-name",
|
|
17932
|
-
type: "text",
|
|
17933
|
-
placeholder: "e.g. Daily Workspace Clean, Morning Report",
|
|
17934
|
-
value: name,
|
|
17935
|
-
onChange: (e) => setName(e.target.value)
|
|
17936
|
-
}
|
|
17937
|
-
)
|
|
17938
|
-
] }),
|
|
17939
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
17940
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-type", children: "Task Type" }),
|
|
17941
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
17942
|
-
"select",
|
|
17943
|
-
{
|
|
17944
|
-
id: "task-type",
|
|
17945
|
-
value: type,
|
|
17946
|
-
onChange: (e) => setType(e.target.value),
|
|
17947
|
-
style: {
|
|
17948
|
-
width: "100%",
|
|
17949
|
-
padding: "6px 8px",
|
|
17950
|
-
borderRadius: "var(--radius-sm)",
|
|
17951
|
-
background: "var(--vscode-dropdown-background, #252526)",
|
|
17952
|
-
color: "var(--vscode-dropdown-foreground, #cccccc)",
|
|
17953
|
-
border: "1px solid var(--vscode-dropdown-border, #3c3c3c)",
|
|
17954
|
-
fontSize: "12px",
|
|
17955
|
-
cursor: "pointer"
|
|
17956
|
-
},
|
|
17957
|
-
children: [
|
|
17958
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "heartbeat", children: "Heartbeat (Recurring Agent Execution)" }),
|
|
17959
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "telegram", children: "Telegram Poller (Autonomous Telegram Agent)" })
|
|
17960
|
-
]
|
|
17961
|
-
}
|
|
17962
|
-
)
|
|
17963
|
-
] }),
|
|
17964
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", style: { display: "flex", alignItems: "center", gap: "8px", margin: "14px 0" }, children: [
|
|
17965
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
17966
|
-
"input",
|
|
17967
|
-
{
|
|
17968
|
-
id: "task-enabled",
|
|
17969
|
-
type: "checkbox",
|
|
17970
|
-
checked: enabled,
|
|
17971
|
-
onChange: (e) => setEnabled(e.target.checked),
|
|
17972
|
-
style: { width: "auto", cursor: "pointer" }
|
|
17973
|
-
}
|
|
17974
|
-
),
|
|
17975
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-enabled", style: { cursor: "pointer", fontWeight: 600, fontSize: "12px" }, children: "Active (Run scheduler for this task)" })
|
|
17976
|
-
] }),
|
|
17977
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
17978
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-agent", children: "Agent to Execute" }),
|
|
17979
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
17980
|
-
"select",
|
|
17981
|
-
{
|
|
17982
|
-
id: "task-agent",
|
|
17983
|
-
value: agentId,
|
|
17984
|
-
onChange: (e) => setAgentId(e.target.value),
|
|
17985
|
-
style: {
|
|
17986
|
-
width: "100%",
|
|
17987
|
-
padding: "6px 8px",
|
|
17988
|
-
borderRadius: "var(--radius-sm)",
|
|
17989
|
-
background: "var(--vscode-dropdown-background, #252526)",
|
|
17990
|
-
color: "var(--vscode-dropdown-foreground, #cccccc)",
|
|
17991
|
-
border: "1px solid var(--vscode-dropdown-border, #3c3c3c)",
|
|
17992
|
-
fontSize: "12px",
|
|
17993
|
-
cursor: "pointer"
|
|
17994
|
-
},
|
|
17995
|
-
children: [
|
|
17996
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "", disabled: true, children: "-- Select Agent --" }),
|
|
17997
|
-
agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
|
|
17998
|
-
]
|
|
17999
|
-
}
|
|
18000
|
-
)
|
|
18001
|
-
] }),
|
|
18002
|
-
type === "heartbeat" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
17989
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "glass-form__body", children: [
|
|
18003
17990
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
18004
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-
|
|
17991
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-name", children: "Task Name" }),
|
|
18005
17992
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
18006
17993
|
"input",
|
|
18007
17994
|
{
|
|
18008
|
-
id: "task-
|
|
17995
|
+
id: "task-name",
|
|
18009
17996
|
type: "text",
|
|
18010
|
-
placeholder: "e.g.
|
|
18011
|
-
value:
|
|
18012
|
-
onChange: (e) =>
|
|
18013
|
-
}
|
|
18014
|
-
)
|
|
18015
|
-
] }),
|
|
18016
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
18017
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-dir", children: "Working Directory (Absolute path, optional)" }),
|
|
18018
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
18019
|
-
"input",
|
|
18020
|
-
{
|
|
18021
|
-
id: "task-dir",
|
|
18022
|
-
type: "text",
|
|
18023
|
-
placeholder: "e.g. /home/user/project (default: process.cwd())",
|
|
18024
|
-
value: workingDir,
|
|
18025
|
-
onChange: (e) => setWorkingDir(e.target.value)
|
|
17997
|
+
placeholder: "e.g. Daily Workspace Clean, Morning Report",
|
|
17998
|
+
value: name,
|
|
17999
|
+
onChange: (e) => setName(e.target.value)
|
|
18026
18000
|
}
|
|
18027
18001
|
)
|
|
18028
18002
|
] }),
|
|
18029
18003
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
18030
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-
|
|
18031
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.
|
|
18032
|
-
"
|
|
18004
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-type", children: "Task Type" }),
|
|
18005
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
18006
|
+
"select",
|
|
18033
18007
|
{
|
|
18034
|
-
id: "task-
|
|
18035
|
-
|
|
18036
|
-
|
|
18037
|
-
onChange: (e) => setPrompt(e.target.value),
|
|
18038
|
-
rows: 4,
|
|
18008
|
+
id: "task-type",
|
|
18009
|
+
value: type,
|
|
18010
|
+
onChange: (e) => setType(e.target.value),
|
|
18039
18011
|
style: {
|
|
18040
18012
|
width: "100%",
|
|
18041
|
-
padding: "8px",
|
|
18013
|
+
padding: "6px 8px",
|
|
18042
18014
|
borderRadius: "var(--radius-sm)",
|
|
18043
|
-
background: "var(--vscode-
|
|
18044
|
-
color: "var(--vscode-
|
|
18045
|
-
border: "1px solid var(--vscode-
|
|
18046
|
-
fontFamily: "inherit",
|
|
18015
|
+
background: "var(--vscode-dropdown-background, #252526)",
|
|
18016
|
+
color: "var(--vscode-dropdown-foreground, #cccccc)",
|
|
18017
|
+
border: "1px solid var(--vscode-dropdown-border, #3c3c3c)",
|
|
18047
18018
|
fontSize: "12px",
|
|
18048
|
-
|
|
18049
|
-
}
|
|
18019
|
+
cursor: "pointer"
|
|
18020
|
+
},
|
|
18021
|
+
children: [
|
|
18022
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "heartbeat", children: "Heartbeat (Recurring Agent Execution)" }),
|
|
18023
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "telegram", children: "Telegram Poller (Autonomous Telegram Agent)" })
|
|
18024
|
+
]
|
|
18050
18025
|
}
|
|
18051
18026
|
)
|
|
18052
|
-
] })
|
|
18053
|
-
|
|
18054
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
18055
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "tg-token", children: "Telegram Bot Token" }),
|
|
18027
|
+
] }),
|
|
18028
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", style: { display: "flex", alignItems: "center", gap: "8px", margin: "14px 0" }, children: [
|
|
18056
18029
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
18057
18030
|
"input",
|
|
18058
18031
|
{
|
|
18059
|
-
id: "
|
|
18060
|
-
type: "
|
|
18061
|
-
|
|
18062
|
-
|
|
18063
|
-
|
|
18032
|
+
id: "task-enabled",
|
|
18033
|
+
type: "checkbox",
|
|
18034
|
+
checked: enabled,
|
|
18035
|
+
onChange: (e) => setEnabled(e.target.checked),
|
|
18036
|
+
style: { width: "auto", cursor: "pointer" }
|
|
18064
18037
|
}
|
|
18065
|
-
)
|
|
18038
|
+
),
|
|
18039
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-enabled", style: { cursor: "pointer", fontWeight: 600, fontSize: "12px" }, children: "Active (Run scheduler for this task)" })
|
|
18066
18040
|
] }),
|
|
18067
18041
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
18068
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "
|
|
18069
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.
|
|
18070
|
-
"
|
|
18042
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-agent", children: "Agent to Execute" }),
|
|
18043
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
18044
|
+
"select",
|
|
18071
18045
|
{
|
|
18072
|
-
id: "
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
|
|
18076
|
-
|
|
18046
|
+
id: "task-agent",
|
|
18047
|
+
value: agentId,
|
|
18048
|
+
onChange: (e) => setAgentId(e.target.value),
|
|
18049
|
+
style: {
|
|
18050
|
+
width: "100%",
|
|
18051
|
+
padding: "6px 8px",
|
|
18052
|
+
borderRadius: "var(--radius-sm)",
|
|
18053
|
+
background: "var(--vscode-dropdown-background, #252526)",
|
|
18054
|
+
color: "var(--vscode-dropdown-foreground, #cccccc)",
|
|
18055
|
+
border: "1px solid var(--vscode-dropdown-border, #3c3c3c)",
|
|
18056
|
+
fontSize: "12px",
|
|
18057
|
+
cursor: "pointer"
|
|
18058
|
+
},
|
|
18059
|
+
children: [
|
|
18060
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "", disabled: true, children: "-- Select Agent --" }),
|
|
18061
|
+
agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
|
|
18062
|
+
]
|
|
18077
18063
|
}
|
|
18078
|
-
)
|
|
18079
|
-
|
|
18080
|
-
|
|
18081
|
-
|
|
18064
|
+
)
|
|
18065
|
+
] }),
|
|
18066
|
+
type === "heartbeat" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
18067
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
18068
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-cron", children: "Cron Timing" }),
|
|
18069
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
18070
|
+
"input",
|
|
18071
|
+
{
|
|
18072
|
+
id: "task-cron",
|
|
18073
|
+
type: "text",
|
|
18074
|
+
placeholder: "e.g. */15 * * * * (every 15m), 0 9 * * * (every morning at 9)",
|
|
18075
|
+
value: cron,
|
|
18076
|
+
onChange: (e) => setCron(e.target.value)
|
|
18077
|
+
}
|
|
18078
|
+
)
|
|
18079
|
+
] }),
|
|
18080
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
18081
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-dir", children: "Working Directory (Absolute path, optional)" }),
|
|
18082
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
18083
|
+
"input",
|
|
18084
|
+
{
|
|
18085
|
+
id: "task-dir",
|
|
18086
|
+
type: "text",
|
|
18087
|
+
placeholder: "e.g. /home/user/project (default: process.cwd())",
|
|
18088
|
+
value: workingDir,
|
|
18089
|
+
onChange: (e) => setWorkingDir(e.target.value)
|
|
18090
|
+
}
|
|
18091
|
+
)
|
|
18092
|
+
] }),
|
|
18093
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
18094
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-prompt", children: "Periodic Prompt" }),
|
|
18095
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
18096
|
+
"textarea",
|
|
18097
|
+
{
|
|
18098
|
+
id: "task-prompt",
|
|
18099
|
+
placeholder: "What instructions should the agent execute on each run?",
|
|
18100
|
+
value: prompt,
|
|
18101
|
+
onChange: (e) => setPrompt(e.target.value),
|
|
18102
|
+
rows: 4,
|
|
18103
|
+
style: {
|
|
18104
|
+
width: "100%",
|
|
18105
|
+
padding: "8px",
|
|
18106
|
+
borderRadius: "var(--radius-sm)",
|
|
18107
|
+
background: "var(--vscode-input-background, #252526)",
|
|
18108
|
+
color: "var(--vscode-input-foreground, #cccccc)",
|
|
18109
|
+
border: "1px solid var(--vscode-input-border, #3c3c3c)",
|
|
18110
|
+
fontFamily: "inherit",
|
|
18111
|
+
fontSize: "12px",
|
|
18112
|
+
resize: "vertical"
|
|
18113
|
+
}
|
|
18114
|
+
}
|
|
18115
|
+
)
|
|
18116
|
+
] })
|
|
18117
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
18118
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
18119
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "tg-token", children: "Telegram Bot Token" }),
|
|
18120
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
18121
|
+
"input",
|
|
18122
|
+
{
|
|
18123
|
+
id: "tg-token",
|
|
18124
|
+
type: "password",
|
|
18125
|
+
placeholder: "e.g. 123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ",
|
|
18126
|
+
value: telegramBotToken,
|
|
18127
|
+
onChange: (e) => setTelegramBotToken(e.target.value)
|
|
18128
|
+
}
|
|
18129
|
+
)
|
|
18130
|
+
] }),
|
|
18131
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
|
|
18132
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "tg-chats", children: "Allowed Chat IDs (Comma-separated, optional)" }),
|
|
18133
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
18134
|
+
"input",
|
|
18135
|
+
{
|
|
18136
|
+
id: "tg-chats",
|
|
18137
|
+
type: "text",
|
|
18138
|
+
placeholder: "e.g. 987654321, 555666777 (Leave empty to ignore whitelist security)",
|
|
18139
|
+
value: telegramAllowedChats,
|
|
18140
|
+
onChange: (e) => setTelegramAllowedChats(e.target.value)
|
|
18141
|
+
}
|
|
18142
|
+
),
|
|
18143
|
+
telegramAllowedChats.trim() === "" && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: {
|
|
18144
|
+
background: "rgba(220, 150, 50, 0.10)",
|
|
18145
|
+
border: "1px solid rgba(220, 150, 50, 0.35)",
|
|
18146
|
+
borderRadius: "var(--radius-md)",
|
|
18147
|
+
padding: "8px 10px",
|
|
18148
|
+
fontSize: "11px",
|
|
18149
|
+
marginTop: "6px",
|
|
18150
|
+
lineHeight: "1.4",
|
|
18151
|
+
color: "var(--vscode-notificationsWarningIcon-foreground, #d49a32)"
|
|
18152
|
+
}, children: [
|
|
18153
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TriangleAlert, { size: 13 }),
|
|
18154
|
+
" ",
|
|
18155
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("strong", { children: "Security:" }),
|
|
18156
|
+
" with no whitelist, anyone who sends a message to this bot can execute every tool this agent has enabled \u2014 including shell commands and filesystem writes. Tool calls run with auto-approval; the chat ID whitelist is the only access boundary."
|
|
18157
|
+
] })
|
|
18158
|
+
] }),
|
|
18159
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "glass-form__help-card", style: {
|
|
18160
|
+
background: "rgba(255, 255, 255, 0.03)",
|
|
18161
|
+
border: "1px solid rgba(255, 255, 255, 0.05)",
|
|
18082
18162
|
borderRadius: "var(--radius-md)",
|
|
18083
|
-
padding: "
|
|
18163
|
+
padding: "10px 12px",
|
|
18084
18164
|
fontSize: "11px",
|
|
18085
|
-
marginTop: "
|
|
18165
|
+
marginTop: "12px",
|
|
18086
18166
|
lineHeight: "1.4",
|
|
18087
|
-
color: "var(--vscode-
|
|
18167
|
+
color: "var(--vscode-descriptionForeground)"
|
|
18088
18168
|
}, children: [
|
|
18089
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.
|
|
18090
|
-
|
|
18091
|
-
|
|
18092
|
-
" with no whitelist, anyone who sends a message to this bot can execute every tool this agent has enabled \u2014 including shell commands and filesystem writes. Tool calls run with auto-approval; the chat ID whitelist is the only access boundary."
|
|
18093
|
-
] })
|
|
18094
|
-
] }),
|
|
18095
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "glass-form__help-card", style: {
|
|
18096
|
-
background: "rgba(255, 255, 255, 0.03)",
|
|
18097
|
-
border: "1px solid rgba(255, 255, 255, 0.05)",
|
|
18098
|
-
borderRadius: "var(--radius-md)",
|
|
18099
|
-
padding: "10px 12px",
|
|
18100
|
-
fontSize: "11px",
|
|
18101
|
-
marginTop: "12px",
|
|
18102
|
-
lineHeight: "1.4",
|
|
18103
|
-
color: "var(--vscode-descriptionForeground)"
|
|
18104
|
-
}, children: [
|
|
18105
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("strong", { children: [
|
|
18106
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Lightbulb, { size: 14 }),
|
|
18107
|
-
" Quick Setup Guide:"
|
|
18108
|
-
] }),
|
|
18109
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("ol", { style: { margin: "6px 0 0 16px", padding: 0 }, children: [
|
|
18110
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("li", { children: [
|
|
18111
|
-
"Create a new bot via Telegram's ",
|
|
18112
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("strong", { children: "@BotFather" }),
|
|
18113
|
-
" to obtain your HTTP API token."
|
|
18169
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("strong", { children: [
|
|
18170
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Lightbulb, { size: 14 }),
|
|
18171
|
+
" Quick Setup Guide:"
|
|
18114
18172
|
] }),
|
|
18115
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("
|
|
18116
|
-
|
|
18117
|
-
|
|
18118
|
-
|
|
18119
|
-
|
|
18120
|
-
|
|
18173
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("ol", { style: { margin: "6px 0 0 16px", padding: 0 }, children: [
|
|
18174
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("li", { children: [
|
|
18175
|
+
"Create a new bot via Telegram's ",
|
|
18176
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("strong", { children: "@BotFather" }),
|
|
18177
|
+
" to obtain your HTTP API token."
|
|
18178
|
+
] }),
|
|
18179
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("li", { children: [
|
|
18180
|
+
"Obtain your chat ID by messaging ",
|
|
18181
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("strong", { children: "@userinfobot" }),
|
|
18182
|
+
" on Telegram."
|
|
18183
|
+
] }),
|
|
18184
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("li", { children: "Whitelist your chat ID above to prevent unauthorized users from using your local shell/tools!" })
|
|
18185
|
+
] })
|
|
18121
18186
|
] })
|
|
18122
18187
|
] })
|
|
18123
18188
|
] }),
|
|
@@ -18520,7 +18585,13 @@ ${text}</tr>
|
|
|
18520
18585
|
if (msg.messageType === "plan") {
|
|
18521
18586
|
items.push({ kind: "assistant", text: `**\u{1F4CB} Plan submitted**
|
|
18522
18587
|
|
|
18523
|
-
${msg.content}`, streaming: false, label: labels?.planner });
|
|
18588
|
+
${msg.content}`, streaming: false, label: msg.agentLabel || labels?.planner });
|
|
18589
|
+
continue;
|
|
18590
|
+
}
|
|
18591
|
+
if (msg.messageType === "review") {
|
|
18592
|
+
items.push({ kind: "assistant", text: `**\u{1F50E} Code review**
|
|
18593
|
+
|
|
18594
|
+
${msg.content}`, streaming: false, label: msg.agentLabel || labels?.reviewer });
|
|
18524
18595
|
continue;
|
|
18525
18596
|
}
|
|
18526
18597
|
if (msg.role === "user") {
|
|
@@ -18542,7 +18613,7 @@ ${msg.content}`, streaming: false, label: labels?.planner });
|
|
|
18542
18613
|
}
|
|
18543
18614
|
}
|
|
18544
18615
|
if (thinking) items.push({ kind: "thinking", text: thinking });
|
|
18545
|
-
items.push({ kind: "assistant", text, streaming: false, label: labels?.developer });
|
|
18616
|
+
items.push({ kind: "assistant", text, streaming: false, label: msg.agentLabel || labels?.developer });
|
|
18546
18617
|
}
|
|
18547
18618
|
return items;
|
|
18548
18619
|
}
|
|
@@ -18905,11 +18976,11 @@ ${msg.content}`, streaming: false, label: labels?.planner });
|
|
|
18905
18976
|
const a = agents.find((x) => x.id === agentId);
|
|
18906
18977
|
return a ? `${a.name} \xB7 ${a.model}` : void 0;
|
|
18907
18978
|
};
|
|
18979
|
+
const developerId = selectedTask?.agentId || selectedProject?.agentId || agents[0]?.id;
|
|
18908
18980
|
const taskAgentLabels = selectedTask ? {
|
|
18909
|
-
developer: agentLabelFor(
|
|
18910
|
-
planner: agentLabelFor(
|
|
18911
|
-
|
|
18912
|
-
)
|
|
18981
|
+
developer: agentLabelFor(developerId),
|
|
18982
|
+
planner: agentLabelFor(selectedTask.plannerAgentId || selectedProject?.plannerAgentId || developerId),
|
|
18983
|
+
reviewer: agentLabelFor(selectedTask.reviewerAgentId || selectedProject?.reviewerAgentId || developerId)
|
|
18913
18984
|
} : void 0;
|
|
18914
18985
|
const reviewRound = selectedTask ? taskMessages.filter((m) => m.messageType === "review").length + 1 : 1;
|
|
18915
18986
|
const isActiveLike = selectedTask ? selectedTask.status === "active" || selectedTask.status === "reviewing" || selectedTask.status === "planning" : false;
|