jeopi-cli 16.4.2 → 16.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +74 -0
- package/dist/cli.js +3033 -2991
- package/dist/types/advisor/advise-tool.d.ts +5 -1
- package/dist/types/advisor/config.d.ts +4 -3
- package/dist/types/advisor/runtime.d.ts +15 -0
- package/dist/types/cli/args.d.ts +2 -0
- package/dist/types/cli/update-cli.d.ts +4 -1
- package/dist/types/cli/usage-error.d.ts +4 -0
- package/dist/types/commit/agentic/agent.d.ts +1 -0
- package/dist/types/config/model-registry.d.ts +3 -3
- package/dist/types/config/model-resolver.d.ts +7 -1
- package/dist/types/config/models-config.d.ts +1 -1
- package/dist/types/config/settings-schema.d.ts +3 -13
- package/dist/types/eval/py/tool-bridge.d.ts +1 -0
- package/dist/types/extensibility/custom-tools/types.d.ts +3 -0
- package/dist/types/extensibility/extensions/runner.d.ts +3 -1
- package/dist/types/extensibility/extensions/types.d.ts +3 -0
- package/dist/types/internal-urls/memory-protocol.d.ts +6 -6
- package/dist/types/internal-urls/types.d.ts +7 -0
- package/dist/types/irc/bus.d.ts +4 -0
- package/dist/types/lsp/deferred-diagnostics.d.ts +11 -0
- package/dist/types/modes/components/move-overlay.d.ts +1 -1
- package/dist/types/modes/components/plan-review-overlay.d.ts +2 -0
- package/dist/types/modes/components/welcome.d.ts +4 -0
- package/dist/types/modes/magic-keyword-boundary.d.ts +9 -0
- package/dist/types/modes/orchestrate.d.ts +1 -1
- package/dist/types/modes/rpc/host-tools.d.ts +2 -0
- package/dist/types/modes/rpc/rpc-mode.d.ts +27 -7
- package/dist/types/modes/ultrathink.d.ts +1 -1
- package/dist/types/modes/utils/transcript-render-helpers.d.ts +9 -0
- package/dist/types/modes/workflow.d.ts +1 -1
- package/dist/types/session/agent-session.d.ts +6 -0
- package/dist/types/session/auth-broker-config.d.ts +2 -2
- package/dist/types/tools/bash-skill-urls.d.ts +3 -2
- package/dist/types/tools/browser/cmux/cmux-tab.d.ts +3 -1
- package/dist/types/tools/browser/cmux/rpc.d.ts +20 -0
- package/dist/types/tools/browser/launch.d.ts +1 -0
- package/dist/types/tools/browser/run-cancellation.d.ts +17 -2
- package/dist/types/tools/browser/run-output.d.ts +25 -0
- package/dist/types/tools/browser/tab-worker.d.ts +22 -0
- package/dist/types/utils/changelog.d.ts +35 -1
- package/package.json +12 -12
- package/src/advisor/__tests__/advisor.test.ts +13 -0
- package/src/advisor/__tests__/config.test.ts +36 -0
- package/src/advisor/advise-tool.ts +6 -1
- package/src/advisor/config.ts +11 -8
- package/src/advisor/runtime.ts +127 -0
- package/src/autolearn/controller.ts +15 -3
- package/src/cli/args.ts +12 -0
- package/src/cli/flag-tables.ts +21 -7
- package/src/cli/update-cli.ts +63 -13
- package/src/cli/usage-error.ts +7 -0
- package/src/commands/acp.ts +11 -2
- package/src/commands/launch.ts +12 -3
- package/src/commit/agentic/agent.ts +4 -0
- package/src/commit/agentic/index.ts +46 -21
- package/src/config/config-file.ts +30 -12
- package/src/config/model-registry.ts +7 -7
- package/src/config/model-resolver.ts +24 -6
- package/src/config/models-config.ts +1 -1
- package/src/config/settings-schema.ts +3 -15
- package/src/edit/index.ts +10 -76
- package/src/edit/renderer.ts +13 -10
- package/src/eval/__tests__/agent-bridge.test.ts +19 -14
- package/src/eval/__tests__/bridge-timeout.test.ts +60 -0
- package/src/eval/executor-base.ts +84 -7
- package/src/eval/js/shared/rewrite-imports.ts +31 -13
- package/src/eval/py/tool-bridge.ts +13 -14
- package/src/exec/non-interactive-env.ts +0 -1
- package/src/export/ttsr.ts +0 -3
- package/src/extensibility/custom-tools/loader.ts +70 -37
- package/src/extensibility/custom-tools/types.ts +3 -0
- package/src/extensibility/extensions/runner.ts +3 -0
- package/src/extensibility/extensions/types.ts +3 -0
- package/src/extensibility/plugins/legacy-pi-bundled-keys.ts +9 -1
- package/src/extensibility/plugins/legacy-pi-bundled-registry.ts +30 -3
- package/src/extensibility/plugins/manager.ts +21 -0
- package/src/internal-urls/docs-index.generated.txt +1 -1
- package/src/internal-urls/memory-protocol.ts +13 -8
- package/src/internal-urls/skill-protocol.ts +1 -1
- package/src/internal-urls/types.ts +7 -0
- package/src/irc/bus.ts +48 -18
- package/src/lsp/client.ts +7 -1
- package/src/lsp/deferred-diagnostics.ts +66 -0
- package/src/main.ts +13 -13
- package/src/mcp/tool-bridge.ts +57 -6
- package/src/mcp/transports/stdio.test.ts +45 -1
- package/src/mcp/transports/stdio.ts +6 -3
- package/src/modes/acp/acp-agent.ts +73 -2
- package/src/modes/acp/acp-event-mapper.ts +5 -0
- package/src/modes/acp/acp-mode.ts +11 -0
- package/src/modes/components/__tests__/move-overlay.test.ts +16 -1
- package/src/modes/components/advisor-config.ts +15 -7
- package/src/modes/components/chat-transcript-builder.ts +31 -11
- package/src/modes/components/move-overlay.ts +2 -3
- package/src/modes/components/plan-review-overlay.ts +7 -0
- package/src/modes/components/tips.txt +1 -1
- package/src/modes/components/welcome.ts +13 -14
- package/src/modes/controllers/command-controller.ts +8 -10
- package/src/modes/controllers/event-controller.ts +58 -42
- package/src/modes/controllers/input-controller.ts +9 -6
- package/src/modes/controllers/selector-controller.ts +3 -2
- package/src/modes/controllers/tan-command-controller.ts +40 -1
- package/src/modes/interactive-mode.ts +13 -0
- package/src/modes/magic-keyword-boundary.ts +23 -0
- package/src/modes/orchestrate.ts +6 -5
- package/src/modes/print-mode.ts +9 -0
- package/src/modes/rpc/host-tools.ts +13 -0
- package/src/modes/rpc/rpc-mode.ts +130 -56
- package/src/modes/ultrathink.ts +6 -5
- package/src/modes/utils/transcript-render-helpers.ts +44 -0
- package/src/modes/utils/ui-helpers.ts +16 -1
- package/src/modes/workflow.ts +5 -4
- package/src/prompts/system/eager-task.md +2 -2
- package/src/prompts/system/tan-context-switch.md +17 -0
- package/src/prompts/tools/browser.md +5 -5
- package/src/sdk.ts +3 -0
- package/src/session/agent-session.ts +267 -36
- package/src/session/auth-broker-config.ts +4 -4
- package/src/session/snapcompact-inline.ts +3 -19
- package/src/session/streaming-output.ts +40 -12
- package/src/slash-commands/builtin-registry.ts +8 -8
- package/src/task/executor.ts +8 -0
- package/src/task/render.ts +51 -44
- package/src/tools/bash-skill-urls.ts +7 -4
- package/src/tools/bash.ts +30 -33
- package/src/tools/browser/cmux/cmux-tab.ts +49 -50
- package/src/tools/browser/cmux/rpc.ts +50 -0
- package/src/tools/browser/launch.ts +8 -4
- package/src/tools/browser/run-cancellation.ts +44 -5
- package/src/tools/browser/run-output.ts +76 -0
- package/src/tools/browser/tab-worker.ts +280 -133
- package/src/tools/eval-render.ts +16 -14
- package/src/tools/glob.ts +20 -6
- package/src/tools/grep.ts +1 -0
- package/src/tools/image-gen.ts +3 -4
- package/src/tools/irc.ts +27 -13
- package/src/tools/path-utils.ts +6 -1
- package/src/tools/read.ts +14 -7
- package/src/tools/write.ts +22 -5
- package/src/tools/yield.ts +29 -1
- package/src/utils/changelog.ts +106 -9
- package/src/utils/git.ts +0 -1
- package/src/utils/title-generator.ts +72 -7
- package/src/web/search/index.ts +14 -6
- package/src/web/search/providers/perplexity.ts +18 -2
- package/dist/types/tools/bash-command-fixup.d.ts +0 -11
- package/src/tools/bash-command-fixup.ts +0 -37
|
@@ -581,11 +581,27 @@ async function callPerplexityAsk(
|
|
|
581
581
|
search_recency_filter: params.search_recency_filter ?? null,
|
|
582
582
|
is_incognito: true,
|
|
583
583
|
use_schematized_api: true,
|
|
584
|
-
|
|
584
|
+
// `true` (the native app's default) lets the backend classifier skip
|
|
585
|
+
// retrieval for queries it deems answerable from memory — the model then
|
|
586
|
+
// runs ungrounded and refuses with "I don't currently have live access".
|
|
587
|
+
// We are a search tool; always retrieve.
|
|
588
|
+
skip_search_enabled: false,
|
|
589
|
+
// Belt and braces with `skip_search_enabled: false`: the web client sets
|
|
590
|
+
// this to force retrieval even when the skip classifier fires.
|
|
591
|
+
always_search_override: true,
|
|
592
|
+
prompt_source: "user",
|
|
593
|
+
source: "default",
|
|
594
|
+
local_search_enabled: false,
|
|
595
|
+
// Declare no tool-approval UI and no local (Comet) browser agent, so the
|
|
596
|
+
// stream never stalls waiting for a confirmation we cannot render.
|
|
597
|
+
should_ask_for_mcp_tool_confirmation: false,
|
|
598
|
+
supports_tool_approval_modal: false,
|
|
599
|
+
force_enable_browser_agent: false,
|
|
600
|
+
is_local_browser_available: false,
|
|
601
|
+
is_local_browser_allowed: false,
|
|
585
602
|
};
|
|
586
603
|
if (auth.type === "anonymous") {
|
|
587
604
|
requestParams.send_back_text_in_streaming_api = true;
|
|
588
|
-
requestParams.source = "default";
|
|
589
605
|
}
|
|
590
606
|
|
|
591
607
|
const response = await (params.fetch ?? fetch)(PERPLEXITY_OAUTH_ASK_URL, {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface BashFixupResult {
|
|
2
|
-
/** Possibly-rewritten command. */
|
|
3
|
-
command: string;
|
|
4
|
-
/** Substrings that were stripped, in the order they were removed. */
|
|
5
|
-
stripped: string[];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Apply both fixups to a bash command. On any parse failure, multi-line input,
|
|
9
|
-
* or no-op transform, returns the input verbatim with `stripped: []`.
|
|
10
|
-
*/
|
|
11
|
-
export declare function applyBashFixups(command: string): BashFixupResult;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Conservative transforms applied to a bash command before execution.
|
|
3
|
-
*
|
|
4
|
-
* Two fixups are applied, each anchored to the end of a top-level segment
|
|
5
|
-
* (segments split on `;`, `&&`, `||`, and background `&`):
|
|
6
|
-
*
|
|
7
|
-
* 1. Trailing `| head [args]` / `| tail [args]` (and the `|&` variant) — these
|
|
8
|
-
* pipes exist purely to limit output length. The harness already truncates
|
|
9
|
-
* bash output and exposes the full result via an artifact, so they only
|
|
10
|
-
* hide content the agent wanted.
|
|
11
|
-
*
|
|
12
|
-
* 2. A redundant trailing `2>&1` left on a segment that has no remaining pipe
|
|
13
|
-
* or other redirect. The harness already merges stderr into stdout, so the
|
|
14
|
-
* duplication is purely cosmetic — and often a leftover after fixup (1)
|
|
15
|
-
* drops a downstream pipe.
|
|
16
|
-
*
|
|
17
|
-
* The heavy lifting (tokenization, quoting, heredoc handling, command
|
|
18
|
-
* substitution, nested compound commands) lives in Rust under
|
|
19
|
-
* `pi_shell::fixup`, driven by the real `brush-parser` AST. This module is a
|
|
20
|
-
* thin sync wrapper plus user-facing notice formatting.
|
|
21
|
-
*/
|
|
22
|
-
import { applyBashFixups as nativeApplyBashFixups } from "jeopi-natives";
|
|
23
|
-
|
|
24
|
-
export interface BashFixupResult {
|
|
25
|
-
/** Possibly-rewritten command. */
|
|
26
|
-
command: string;
|
|
27
|
-
/** Substrings that were stripped, in the order they were removed. */
|
|
28
|
-
stripped: string[];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Apply both fixups to a bash command. On any parse failure, multi-line input,
|
|
33
|
-
* or no-op transform, returns the input verbatim with `stripped: []`.
|
|
34
|
-
*/
|
|
35
|
-
export function applyBashFixups(command: string): BashFixupResult {
|
|
36
|
-
return nativeApplyBashFixups(command);
|
|
37
|
-
}
|