@hyperwindmill/caretaker-cli 0.12.1 → 0.12.2

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.
@@ -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: "form-group", children: [
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: [
15810
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-group", children: [
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
+ ] }),
15853
15826
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "form-group", children: [
15854
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: "provider-endpoint", children: "Endpoint URL" }),
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-endpoint",
15831
+ id: "provider-name",
15859
15832
  type: "text",
15860
- placeholder: "e.g. http://localhost:11434/v1",
15861
- value: endpoint,
15862
- onChange: (e) => setEndpoint(e.target.value)
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-key", children: "API Key (Optional)" }),
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-key",
15872
- type: "password",
15873
- placeholder: editingProvider?.apiKey ? "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022" : "Optional credentials",
15874
- value: apiKey,
15875
- onChange: (e) => setApiKey(e.target.value)
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: [
@@ -16283,174 +16285,176 @@ ${text}</tr>
16283
16285
  ] }),
16284
16286
  showForm ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "glass-form", children: [
16285
16287
  /* @__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: "form-group", children: [
16287
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-name", children: "Project Name" }),
16288
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
16289
- "input",
16290
- {
16291
- id: "project-name",
16292
- type: "text",
16293
- placeholder: "e.g. My Caretaker Agent Repo",
16294
- value: name,
16295
- onChange: (e) => setName(e.target.value)
16296
- }
16297
- )
16298
- ] }),
16299
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16300
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-description", children: "Description" }),
16301
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
16302
- "textarea",
16303
- {
16304
- id: "project-description",
16305
- placeholder: "What tasks will this agent perform on this repository?",
16306
- value: description,
16307
- onChange: (e) => setDescription(e.target.value),
16308
- style: { minHeight: "60px", resize: "vertical" }
16309
- }
16310
- )
16311
- ] }),
16312
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16313
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-dir", children: "Local Directory Path (Absolute)" }),
16314
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
16315
- FolderPicker,
16316
- {
16317
- id: "project-dir",
16318
- placeholder: "e.g. /home/user/workspace/caretaker-cli",
16319
- value: workingDir,
16320
- onChange: setWorkingDir
16321
- }
16322
- )
16323
- ] }),
16324
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16325
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-agent", children: "Assigned Agent" }),
16326
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
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" }),
16288
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "glass-form__body", children: [
16289
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16290
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-name", children: "Project Name" }),
16291
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
16292
+ "input",
16293
+ {
16294
+ id: "project-name",
16295
+ type: "text",
16296
+ placeholder: "e.g. My Caretaker Agent Repo",
16297
+ value: name,
16298
+ onChange: (e) => setName(e.target.value)
16299
+ }
16300
+ )
16301
+ ] }),
16302
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16303
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-description", children: "Description" }),
16304
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
16305
+ "textarea",
16306
+ {
16307
+ id: "project-description",
16308
+ placeholder: "What tasks will this agent perform on this repository?",
16309
+ value: description,
16310
+ onChange: (e) => setDescription(e.target.value),
16311
+ style: { minHeight: "60px", resize: "vertical" }
16312
+ }
16313
+ )
16314
+ ] }),
16315
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16316
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-dir", children: "Local Directory Path (Absolute)" }),
16317
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
16318
+ FolderPicker,
16319
+ {
16320
+ id: "project-dir",
16321
+ placeholder: "e.g. /home/user/workspace/caretaker-cli",
16322
+ value: workingDir,
16323
+ onChange: setWorkingDir
16324
+ }
16325
+ )
16326
+ ] }),
16327
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16328
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-agent", children: "Assigned Agent" }),
16372
16329
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
16373
16330
  "select",
16374
16331
  {
16375
- id: "project-planning-enabled",
16376
- value: planningEnabled === true ? "on" : planningEnabled === false ? "off" : "default",
16377
- onChange: (e) => setPlanningEnabled(e.target.value === "default" ? null : e.target.value === "on"),
16332
+ id: "project-agent",
16333
+ value: agentId,
16334
+ onChange: (e) => setAgentId(e.target.value),
16378
16335
  children: [
16379
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "default", children: "Default (On)" }),
16380
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "on", children: "On" }),
16381
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
16336
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "", disabled: true, children: "-- Select Agent --" }),
16337
+ agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
16382
16338
  ]
16383
16339
  }
16384
16340
  )
16385
16341
  ] }),
16386
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: { flex: 1 }, children: [
16387
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-review-enabled", children: "Review at DONE" }),
16342
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16343
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-planner", children: "Planner Agent Override (optional)" }),
16388
16344
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
16389
16345
  "select",
16390
16346
  {
16391
- id: "project-review-enabled",
16392
- value: reviewEnabled === true ? "on" : reviewEnabled === false ? "off" : "default",
16393
- onChange: (e) => setReviewEnabled(e.target.value === "default" ? null : e.target.value === "on"),
16347
+ id: "project-planner",
16348
+ value: plannerAgentId,
16349
+ onChange: (e) => setPlannerAgentId(e.target.value),
16394
16350
  children: [
16395
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "default", children: "Default (On)" }),
16396
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "on", children: "On" }),
16397
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
16351
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "", children: "Same as assigned agent" }),
16352
+ agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
16398
16353
  ]
16399
16354
  }
16400
16355
  )
16401
16356
  ] }),
16402
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: { flex: 1 }, children: [
16403
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-sdd-enabled", children: "SDD Mode" }),
16357
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16358
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-reviewer", children: "Reviewer Agent Override (optional)" }),
16404
16359
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
16405
16360
  "select",
16406
16361
  {
16407
- id: "project-sdd-enabled",
16408
- value: sddEnabled === true ? "on" : sddEnabled === false ? "off" : "default",
16409
- onChange: (e) => setSddEnabled(e.target.value === "default" ? null : e.target.value === "on"),
16362
+ id: "project-reviewer",
16363
+ value: reviewerAgentId,
16364
+ onChange: (e) => setReviewerAgentId(e.target.value),
16410
16365
  children: [
16411
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "default", children: "Default (Off)" }),
16412
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "on", children: "On" }),
16413
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
16366
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "", children: "Same as assigned agent" }),
16367
+ agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
16414
16368
  ]
16415
16369
  }
16416
16370
  )
16371
+ ] }),
16372
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", style: { display: "flex", gap: "16px" }, children: [
16373
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
16374
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-planning-enabled", children: "Planning Phase" }),
16375
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
16376
+ "select",
16377
+ {
16378
+ id: "project-planning-enabled",
16379
+ value: planningEnabled === true ? "on" : planningEnabled === false ? "off" : "default",
16380
+ onChange: (e) => setPlanningEnabled(e.target.value === "default" ? null : e.target.value === "on"),
16381
+ children: [
16382
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "default", children: "Default (On)" }),
16383
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "on", children: "On" }),
16384
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
16385
+ ]
16386
+ }
16387
+ )
16388
+ ] }),
16389
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
16390
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-review-enabled", children: "Review at DONE" }),
16391
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
16392
+ "select",
16393
+ {
16394
+ id: "project-review-enabled",
16395
+ value: reviewEnabled === true ? "on" : reviewEnabled === false ? "off" : "default",
16396
+ onChange: (e) => setReviewEnabled(e.target.value === "default" ? null : e.target.value === "on"),
16397
+ children: [
16398
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "default", children: "Default (On)" }),
16399
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "on", children: "On" }),
16400
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
16401
+ ]
16402
+ }
16403
+ )
16404
+ ] }),
16405
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
16406
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-sdd-enabled", children: "SDD Mode" }),
16407
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
16408
+ "select",
16409
+ {
16410
+ id: "project-sdd-enabled",
16411
+ value: sddEnabled === true ? "on" : sddEnabled === false ? "off" : "default",
16412
+ onChange: (e) => setSddEnabled(e.target.value === "default" ? null : e.target.value === "on"),
16413
+ children: [
16414
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "default", children: "Default (Off)" }),
16415
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "on", children: "On" }),
16416
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: "off", children: "Off" })
16417
+ ]
16418
+ }
16419
+ )
16420
+ ] })
16421
+ ] }),
16422
+ /* @__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." }),
16423
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16424
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-bootstrap", children: "Bootstrap Commands (one per line)" }),
16425
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
16426
+ "textarea",
16427
+ {
16428
+ id: "project-bootstrap",
16429
+ value: bootstrapText,
16430
+ onChange: (e) => setBootstrapText(e.target.value),
16431
+ placeholder: "pnpm install\npnpm build",
16432
+ rows: 3,
16433
+ style: { fontFamily: "var(--font-mono)", fontSize: "11px" }
16434
+ }
16435
+ ),
16436
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("p", { style: { fontSize: "11px", opacity: 0.65, margin: "6px 0 0 0" }, children: [
16437
+ "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 ",
16438
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "pnpm install" }),
16439
+ ". The run stops and the task is blocked if any command fails."
16440
+ ] })
16441
+ ] }),
16442
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-group", children: [
16443
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { htmlFor: "project-max-run", children: "Max run seconds per cycle (optional)" }),
16444
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
16445
+ "input",
16446
+ {
16447
+ id: "project-max-run",
16448
+ type: "number",
16449
+ min: 1,
16450
+ value: maxRunSecondsText,
16451
+ onChange: (e) => setMaxRunSecondsText(e.target.value),
16452
+ placeholder: "Default: 120 (native) / 900 (claude-code)"
16453
+ }
16454
+ ),
16455
+ /* @__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." })
16417
16456
  ] })
16418
16457
  ] }),
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
16458
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "form-actions", children: [
16455
16459
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: "btn btn--secondary", onClick: cancelForm, children: "Cancel" }),
16456
16460
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: "btn btn--primary", onClick: validateAndSave, children: "Save" })
@@ -17123,95 +17127,97 @@ ${text}</tr>
17123
17127
  ] }),
17124
17128
  showForm ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "glass-form", children: [
17125
17129
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h4", { children: isCreating ? "Register Plugin Source" : "Edit Plugin Source" }),
17126
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
17127
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { children: "Source Type" }),
17128
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "radio-group", children: [
17129
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("label", { className: "radio-label", children: [
17130
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "glass-form__body", children: [
17131
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
17132
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { children: "Source Type" }),
17133
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "radio-group", children: [
17134
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("label", { className: "radio-label", children: [
17135
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
17136
+ "input",
17137
+ {
17138
+ type: "radio",
17139
+ name: "source-kind",
17140
+ checked: kind === "git",
17141
+ onChange: () => setKind("git")
17142
+ }
17143
+ ),
17144
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Git Remote" })
17145
+ ] }),
17146
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("label", { className: "radio-label", children: [
17147
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
17148
+ "input",
17149
+ {
17150
+ type: "radio",
17151
+ name: "source-kind",
17152
+ checked: kind === "path",
17153
+ onChange: () => setKind("path")
17154
+ }
17155
+ ),
17156
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Local Path" })
17157
+ ] })
17158
+ ] })
17159
+ ] }),
17160
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
17161
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "source-url", children: kind === "git" ? "Git Repository URL" : "Absolute Filesystem Path" }),
17162
+ kind === "git" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
17163
+ "input",
17164
+ {
17165
+ id: "source-url",
17166
+ type: "text",
17167
+ placeholder: "https://github.com/org/repo.git",
17168
+ value: url,
17169
+ onChange: (e) => setUrl(e.target.value)
17170
+ }
17171
+ ) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
17172
+ FolderPicker,
17173
+ {
17174
+ id: "source-url",
17175
+ placeholder: "/absolute/path/to/plugins",
17176
+ value: url,
17177
+ onChange: setUrl
17178
+ }
17179
+ )
17180
+ ] }),
17181
+ kind === "git" && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
17182
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
17183
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "source-ref", children: "Branch / Ref (Optional)" }),
17130
17184
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
17131
17185
  "input",
17132
17186
  {
17133
- type: "radio",
17134
- name: "source-kind",
17135
- checked: kind === "git",
17136
- onChange: () => setKind("git")
17187
+ id: "source-ref",
17188
+ type: "text",
17189
+ placeholder: "e.g. main, v1.0.0",
17190
+ value: ref,
17191
+ onChange: (e) => setRef(e.target.value)
17137
17192
  }
17138
- ),
17139
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Git Remote" })
17193
+ )
17140
17194
  ] }),
17141
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("label", { className: "radio-label", children: [
17195
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
17196
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "source-token", children: "Auth Token (Optional - encrypted)" }),
17142
17197
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
17143
17198
  "input",
17144
17199
  {
17145
- type: "radio",
17146
- name: "source-kind",
17147
- checked: kind === "path",
17148
- onChange: () => setKind("path")
17200
+ id: "source-token",
17201
+ type: "password",
17202
+ placeholder: editingSource?.authToken ? "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022" : "Credentials for private repositories",
17203
+ value: authToken,
17204
+ onChange: (e) => setAuthToken(e.target.value)
17149
17205
  }
17150
- ),
17151
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Local Path" })
17206
+ )
17152
17207
  ] })
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
17208
  ] }),
17190
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-group", children: [
17191
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { htmlFor: "source-token", children: "Auth Token (Optional - encrypted)" }),
17209
+ /* @__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
17210
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
17193
17211
  "input",
17194
17212
  {
17195
- id: "source-token",
17196
- type: "password",
17197
- placeholder: editingSource?.authToken ? "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022" : "Credentials for private repositories",
17198
- value: authToken,
17199
- onChange: (e) => setAuthToken(e.target.value)
17213
+ type: "checkbox",
17214
+ checked: refreshOnStart,
17215
+ onChange: (e) => setRefreshOnStart(e.target.checked)
17200
17216
  }
17201
- )
17202
- ] })
17217
+ ),
17218
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Automatically refresh on startup" })
17219
+ ] }) })
17203
17220
  ] }),
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
17221
  /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "form-actions", children: [
17216
17222
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { className: "btn btn--secondary", onClick: cancelForm, children: "Cancel" }),
17217
17223
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { className: "btn btn--primary", onClick: validateAndSave, children: "Save" })
@@ -17923,201 +17929,203 @@ ${text}</tr>
17923
17929
  ] }),
17924
17930
  showForm ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "glass-form", children: [
17925
17931
  /* @__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: "form-group", children: [
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: [
18003
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
18004
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-cron", children: "Cron Timing" }),
18005
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18006
- "input",
18007
- {
18008
- id: "task-cron",
18009
- type: "text",
18010
- placeholder: "e.g. */15 * * * * (every 15m), 0 9 * * * (every morning at 9)",
18011
- value: cron,
18012
- onChange: (e) => setCron(e.target.value)
18013
- }
18014
- )
18015
- ] }),
17932
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "glass-form__body", children: [
18016
17933
  /* @__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)" }),
17934
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-name", children: "Task Name" }),
18018
17935
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18019
17936
  "input",
18020
17937
  {
18021
- id: "task-dir",
17938
+ id: "task-name",
18022
17939
  type: "text",
18023
- placeholder: "e.g. /home/user/project (default: process.cwd())",
18024
- value: workingDir,
18025
- onChange: (e) => setWorkingDir(e.target.value)
17940
+ placeholder: "e.g. Daily Workspace Clean, Morning Report",
17941
+ value: name,
17942
+ onChange: (e) => setName(e.target.value)
18026
17943
  }
18027
17944
  )
18028
17945
  ] }),
18029
17946
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
18030
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-prompt", children: "Periodic Prompt" }),
18031
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18032
- "textarea",
17947
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-type", children: "Task Type" }),
17948
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
17949
+ "select",
18033
17950
  {
18034
- id: "task-prompt",
18035
- placeholder: "What instructions should the agent execute on each run?",
18036
- value: prompt,
18037
- onChange: (e) => setPrompt(e.target.value),
18038
- rows: 4,
17951
+ id: "task-type",
17952
+ value: type,
17953
+ onChange: (e) => setType(e.target.value),
18039
17954
  style: {
18040
17955
  width: "100%",
18041
- padding: "8px",
17956
+ padding: "6px 8px",
18042
17957
  borderRadius: "var(--radius-sm)",
18043
- background: "var(--vscode-input-background, #252526)",
18044
- color: "var(--vscode-input-foreground, #cccccc)",
18045
- border: "1px solid var(--vscode-input-border, #3c3c3c)",
18046
- fontFamily: "inherit",
17958
+ background: "var(--vscode-dropdown-background, #252526)",
17959
+ color: "var(--vscode-dropdown-foreground, #cccccc)",
17960
+ border: "1px solid var(--vscode-dropdown-border, #3c3c3c)",
18047
17961
  fontSize: "12px",
18048
- resize: "vertical"
18049
- }
17962
+ cursor: "pointer"
17963
+ },
17964
+ children: [
17965
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "heartbeat", children: "Heartbeat (Recurring Agent Execution)" }),
17966
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "telegram", children: "Telegram Poller (Autonomous Telegram Agent)" })
17967
+ ]
18050
17968
  }
18051
17969
  )
18052
- ] })
18053
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
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" }),
17970
+ ] }),
17971
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", style: { display: "flex", alignItems: "center", gap: "8px", margin: "14px 0" }, children: [
18056
17972
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18057
17973
  "input",
18058
17974
  {
18059
- id: "tg-token",
18060
- type: "password",
18061
- placeholder: "e.g. 123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ",
18062
- value: telegramBotToken,
18063
- onChange: (e) => setTelegramBotToken(e.target.value)
17975
+ id: "task-enabled",
17976
+ type: "checkbox",
17977
+ checked: enabled,
17978
+ onChange: (e) => setEnabled(e.target.checked),
17979
+ style: { width: "auto", cursor: "pointer" }
18064
17980
  }
18065
- )
17981
+ ),
17982
+ /* @__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
17983
  ] }),
18067
17984
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
18068
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "tg-chats", children: "Allowed Chat IDs (Comma-separated, optional)" }),
18069
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18070
- "input",
17985
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-agent", children: "Agent to Execute" }),
17986
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
17987
+ "select",
18071
17988
  {
18072
- id: "tg-chats",
18073
- type: "text",
18074
- placeholder: "e.g. 987654321, 555666777 (Leave empty to ignore whitelist security)",
18075
- value: telegramAllowedChats,
18076
- onChange: (e) => setTelegramAllowedChats(e.target.value)
17989
+ id: "task-agent",
17990
+ value: agentId,
17991
+ onChange: (e) => setAgentId(e.target.value),
17992
+ style: {
17993
+ width: "100%",
17994
+ padding: "6px 8px",
17995
+ borderRadius: "var(--radius-sm)",
17996
+ background: "var(--vscode-dropdown-background, #252526)",
17997
+ color: "var(--vscode-dropdown-foreground, #cccccc)",
17998
+ border: "1px solid var(--vscode-dropdown-border, #3c3c3c)",
17999
+ fontSize: "12px",
18000
+ cursor: "pointer"
18001
+ },
18002
+ children: [
18003
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: "", disabled: true, children: "-- Select Agent --" }),
18004
+ agents.map((agent) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("option", { value: agent.id, children: agent.name }, agent.id))
18005
+ ]
18077
18006
  }
18078
- ),
18079
- telegramAllowedChats.trim() === "" && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: {
18080
- background: "rgba(220, 150, 50, 0.10)",
18081
- border: "1px solid rgba(220, 150, 50, 0.35)",
18007
+ )
18008
+ ] }),
18009
+ type === "heartbeat" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
18010
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
18011
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-cron", children: "Cron Timing" }),
18012
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18013
+ "input",
18014
+ {
18015
+ id: "task-cron",
18016
+ type: "text",
18017
+ placeholder: "e.g. */15 * * * * (every 15m), 0 9 * * * (every morning at 9)",
18018
+ value: cron,
18019
+ onChange: (e) => setCron(e.target.value)
18020
+ }
18021
+ )
18022
+ ] }),
18023
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
18024
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-dir", children: "Working Directory (Absolute path, optional)" }),
18025
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18026
+ "input",
18027
+ {
18028
+ id: "task-dir",
18029
+ type: "text",
18030
+ placeholder: "e.g. /home/user/project (default: process.cwd())",
18031
+ value: workingDir,
18032
+ onChange: (e) => setWorkingDir(e.target.value)
18033
+ }
18034
+ )
18035
+ ] }),
18036
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
18037
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "task-prompt", children: "Periodic Prompt" }),
18038
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18039
+ "textarea",
18040
+ {
18041
+ id: "task-prompt",
18042
+ placeholder: "What instructions should the agent execute on each run?",
18043
+ value: prompt,
18044
+ onChange: (e) => setPrompt(e.target.value),
18045
+ rows: 4,
18046
+ style: {
18047
+ width: "100%",
18048
+ padding: "8px",
18049
+ borderRadius: "var(--radius-sm)",
18050
+ background: "var(--vscode-input-background, #252526)",
18051
+ color: "var(--vscode-input-foreground, #cccccc)",
18052
+ border: "1px solid var(--vscode-input-border, #3c3c3c)",
18053
+ fontFamily: "inherit",
18054
+ fontSize: "12px",
18055
+ resize: "vertical"
18056
+ }
18057
+ }
18058
+ )
18059
+ ] })
18060
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
18061
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
18062
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "tg-token", children: "Telegram Bot Token" }),
18063
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18064
+ "input",
18065
+ {
18066
+ id: "tg-token",
18067
+ type: "password",
18068
+ placeholder: "e.g. 123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ",
18069
+ value: telegramBotToken,
18070
+ onChange: (e) => setTelegramBotToken(e.target.value)
18071
+ }
18072
+ )
18073
+ ] }),
18074
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "form-group", children: [
18075
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("label", { htmlFor: "tg-chats", children: "Allowed Chat IDs (Comma-separated, optional)" }),
18076
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
18077
+ "input",
18078
+ {
18079
+ id: "tg-chats",
18080
+ type: "text",
18081
+ placeholder: "e.g. 987654321, 555666777 (Leave empty to ignore whitelist security)",
18082
+ value: telegramAllowedChats,
18083
+ onChange: (e) => setTelegramAllowedChats(e.target.value)
18084
+ }
18085
+ ),
18086
+ telegramAllowedChats.trim() === "" && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: {
18087
+ background: "rgba(220, 150, 50, 0.10)",
18088
+ border: "1px solid rgba(220, 150, 50, 0.35)",
18089
+ borderRadius: "var(--radius-md)",
18090
+ padding: "8px 10px",
18091
+ fontSize: "11px",
18092
+ marginTop: "6px",
18093
+ lineHeight: "1.4",
18094
+ color: "var(--vscode-notificationsWarningIcon-foreground, #d49a32)"
18095
+ }, children: [
18096
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TriangleAlert, { size: 13 }),
18097
+ " ",
18098
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("strong", { children: "Security:" }),
18099
+ " 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."
18100
+ ] })
18101
+ ] }),
18102
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "glass-form__help-card", style: {
18103
+ background: "rgba(255, 255, 255, 0.03)",
18104
+ border: "1px solid rgba(255, 255, 255, 0.05)",
18082
18105
  borderRadius: "var(--radius-md)",
18083
- padding: "8px 10px",
18106
+ padding: "10px 12px",
18084
18107
  fontSize: "11px",
18085
- marginTop: "6px",
18108
+ marginTop: "12px",
18086
18109
  lineHeight: "1.4",
18087
- color: "var(--vscode-notificationsWarningIcon-foreground, #d49a32)"
18110
+ color: "var(--vscode-descriptionForeground)"
18088
18111
  }, children: [
18089
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TriangleAlert, { size: 13 }),
18090
- " ",
18091
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("strong", { children: "Security:" }),
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."
18112
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("strong", { children: [
18113
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Lightbulb, { size: 14 }),
18114
+ " Quick Setup Guide:"
18114
18115
  ] }),
18115
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("li", { children: [
18116
- "Obtain your chat ID by messaging ",
18117
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("strong", { children: "@userinfobot" }),
18118
- " on Telegram."
18119
- ] }),
18120
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("li", { children: "Whitelist your chat ID above to prevent unauthorized users from using your local shell/tools!" })
18116
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("ol", { style: { margin: "6px 0 0 16px", padding: 0 }, children: [
18117
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("li", { children: [
18118
+ "Create a new bot via Telegram's ",
18119
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("strong", { children: "@BotFather" }),
18120
+ " to obtain your HTTP API token."
18121
+ ] }),
18122
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("li", { children: [
18123
+ "Obtain your chat ID by messaging ",
18124
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("strong", { children: "@userinfobot" }),
18125
+ " on Telegram."
18126
+ ] }),
18127
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("li", { children: "Whitelist your chat ID above to prevent unauthorized users from using your local shell/tools!" })
18128
+ ] })
18121
18129
  ] })
18122
18130
  ] })
18123
18131
  ] }),
@@ -18520,7 +18528,13 @@ ${text}</tr>
18520
18528
  if (msg.messageType === "plan") {
18521
18529
  items.push({ kind: "assistant", text: `**\u{1F4CB} Plan submitted**
18522
18530
 
18523
- ${msg.content}`, streaming: false, label: labels?.planner });
18531
+ ${msg.content}`, streaming: false, label: msg.agentLabel || labels?.planner });
18532
+ continue;
18533
+ }
18534
+ if (msg.messageType === "review") {
18535
+ items.push({ kind: "assistant", text: `**\u{1F50E} Code review**
18536
+
18537
+ ${msg.content}`, streaming: false, label: msg.agentLabel || labels?.reviewer });
18524
18538
  continue;
18525
18539
  }
18526
18540
  if (msg.role === "user") {
@@ -18542,7 +18556,7 @@ ${msg.content}`, streaming: false, label: labels?.planner });
18542
18556
  }
18543
18557
  }
18544
18558
  if (thinking) items.push({ kind: "thinking", text: thinking });
18545
- items.push({ kind: "assistant", text, streaming: false, label: labels?.developer });
18559
+ items.push({ kind: "assistant", text, streaming: false, label: msg.agentLabel || labels?.developer });
18546
18560
  }
18547
18561
  return items;
18548
18562
  }
@@ -18905,11 +18919,11 @@ ${msg.content}`, streaming: false, label: labels?.planner });
18905
18919
  const a = agents.find((x) => x.id === agentId);
18906
18920
  return a ? `${a.name} \xB7 ${a.model}` : void 0;
18907
18921
  };
18922
+ const developerId = selectedTask?.agentId || selectedProject?.agentId || agents[0]?.id;
18908
18923
  const taskAgentLabels = selectedTask ? {
18909
- developer: agentLabelFor(selectedTask.agentId || selectedProject?.agentId || agents[0]?.id),
18910
- planner: agentLabelFor(
18911
- selectedTask.plannerAgentId || selectedProject?.plannerAgentId || selectedTask.agentId || selectedProject?.agentId || agents[0]?.id
18912
- )
18924
+ developer: agentLabelFor(developerId),
18925
+ planner: agentLabelFor(selectedTask.plannerAgentId || selectedProject?.plannerAgentId || developerId),
18926
+ reviewer: agentLabelFor(selectedTask.reviewerAgentId || selectedProject?.reviewerAgentId || developerId)
18913
18927
  } : void 0;
18914
18928
  const reviewRound = selectedTask ? taskMessages.filter((m) => m.messageType === "review").length + 1 : 1;
18915
18929
  const isActiveLike = selectedTask ? selectedTask.status === "active" || selectedTask.status === "reviewing" || selectedTask.status === "planning" : false;