reevesagents 1.3.1 → 1.4.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/AGENTS.md +14 -5
- package/CHANGELOG.md +15 -0
- package/README.md +114 -45
- package/dist/{chunk-2LC6V55H.js → chunk-33EB4RUP.js} +2 -2
- package/dist/{chunk-YMUISYYB.js → chunk-BELIYZTN.js} +22 -2
- package/dist/{chunk-Z2JHNE7V.js → chunk-EX5LH2KW.js} +2 -2
- package/dist/{chunk-65LHCGPC.js → chunk-KL5YFLQF.js} +31 -4
- package/dist/{chunk-HS6TOISU.js → chunk-NJWOKVBZ.js} +2 -2
- package/dist/{chunk-4W6MVOPK.js → chunk-PEOJCUQI.js} +2 -2
- package/dist/cli.js +68 -29
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/{router-TGRU5BFX.js → router-MGXDADKM.js} +66 -44
- package/dist/{server-H2XEJQYT.js → server-KHY23W6D.js} +11 -6
- package/dist/{server-GYB53IBP.js → server-L5DTU6U2.js} +14 -8
- package/dist/{tui-launch-45ERRX5M.js → tui-launch-2UWK76V3.js} +2 -2
- package/dist/web/app.js +13 -5
- package/dist/web/index.html +6 -0
- package/package.json +1 -1
package/dist/web/app.js
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
'web.cwdHelp': 'Agents start in this directory.',
|
|
69
69
|
'web.promptHelp': 'Sent to the agent after its window opens.',
|
|
70
70
|
'web.promptPlaceholder': 'What should this agent start working on?',
|
|
71
|
+
'web.extraArgs': 'Extra flags',
|
|
72
|
+
'web.extraArgsHelp': 'Passed to the CLI on launch, after the flags ReevesAgents sets.',
|
|
71
73
|
'web.cancel': 'Cancel',
|
|
72
74
|
'web.create': 'Create',
|
|
73
75
|
'web.providerDefault': 'Provider default',
|
|
@@ -231,6 +233,7 @@
|
|
|
231
233
|
fCwd: document.getElementById('f-cwd'),
|
|
232
234
|
cwdField: document.getElementById('cwd-field'),
|
|
233
235
|
fPrompt: document.getElementById('f-prompt'),
|
|
236
|
+
fExtraArgs: document.getElementById('f-extra-args'),
|
|
234
237
|
newError: document.getElementById('new-error'),
|
|
235
238
|
newCancel: document.getElementById('new-cancel'),
|
|
236
239
|
newSubmit: document.getElementById('new-submit'),
|
|
@@ -442,6 +445,8 @@
|
|
|
442
445
|
document.querySelector('#cwd-field .field-label').textContent = t('web.workingDirectory')
|
|
443
446
|
document.querySelector('#f-cwd').placeholder = t('web.cwdPlaceholder')
|
|
444
447
|
document.querySelector('#prompt-field .field-label').innerHTML = `${t('web.initialPrompt')} <span class="field-opt">${t('web.initialPromptOpt')}</span>`
|
|
448
|
+
document.querySelector('#extra-args-field .field-label').innerHTML = `${t('web.extraArgs')} <span class="field-opt">${t('web.optional')}</span>`
|
|
449
|
+
setText('#extra-args-help', t('web.extraArgsHelp'))
|
|
445
450
|
setText('#agent-run-help', t('web.agentRunHelp'))
|
|
446
451
|
setText('#run-name-help', t('web.runNameHelp'))
|
|
447
452
|
setText('#provider-help', t('web.providerHelp'))
|
|
@@ -642,12 +647,13 @@
|
|
|
642
647
|
updateCreateSubmitState()
|
|
643
648
|
}
|
|
644
649
|
|
|
645
|
-
//
|
|
646
|
-
//
|
|
650
|
+
// Auth mode and reasoning effort apply only to providers whose launch command
|
|
651
|
+
// uses them; the flags come from the provider registry via /api/state. Hide the
|
|
652
|
+
// irrelevant knobs and reset them so a stale value is never submitted.
|
|
647
653
|
function updateLaunchKnobVisibility() {
|
|
648
|
-
const provider = el.fProvider.value
|
|
649
|
-
const showAuthMode = provider
|
|
650
|
-
const showEffort = provider
|
|
654
|
+
const provider = providerById(el.fProvider.value)
|
|
655
|
+
const showAuthMode = !!(provider && provider.supportsAuthMode)
|
|
656
|
+
const showEffort = !!(provider && provider.supportsEffort)
|
|
651
657
|
el.authModeField.hidden = !showAuthMode
|
|
652
658
|
el.effortField.hidden = !showEffort
|
|
653
659
|
if (!showAuthMode) el.fAuthMode.value = ''
|
|
@@ -1414,6 +1420,7 @@
|
|
|
1414
1420
|
el.fPermissions.value = 'ask'
|
|
1415
1421
|
el.fPrompt.value = ''
|
|
1416
1422
|
el.fCwd.value = ''
|
|
1423
|
+
el.fExtraArgs.value = ''
|
|
1417
1424
|
updatePermissionSelection()
|
|
1418
1425
|
}
|
|
1419
1426
|
|
|
@@ -1529,6 +1536,7 @@
|
|
|
1529
1536
|
permissions: el.fPermissions.value,
|
|
1530
1537
|
nickname: el.fNickname.value.trim(),
|
|
1531
1538
|
prompt: el.fPrompt.value,
|
|
1539
|
+
extra_args: el.fExtraArgs.value.trim(),
|
|
1532
1540
|
run_id: createContext.kind === 'agent' ? createContext.runId : undefined,
|
|
1533
1541
|
run_name: createContext.kind === 'run' ? el.fRunName.value.trim() || undefined : undefined,
|
|
1534
1542
|
working_dir: createContext.kind === 'run' ? el.fCwd.value.trim() || undefined : undefined,
|
package/dist/web/index.html
CHANGED
|
@@ -179,6 +179,12 @@
|
|
|
179
179
|
<span id="prompt-help" class="field-help">Sent to the agent after its window opens.</span>
|
|
180
180
|
</label>
|
|
181
181
|
|
|
182
|
+
<label class="field" id="extra-args-field">
|
|
183
|
+
<span class="field-label">Extra flags <span class="field-opt">optional</span></span>
|
|
184
|
+
<input id="f-extra-args" type="text" placeholder="--remote-control" autocomplete="off" />
|
|
185
|
+
<span id="extra-args-help" class="field-help">Passed to the CLI on launch, after the flags ReevesAgents sets.</span>
|
|
186
|
+
</label>
|
|
187
|
+
|
|
182
188
|
<div id="new-error" class="dialog-error" hidden></div>
|
|
183
189
|
|
|
184
190
|
<div class="dialog-actions">
|