pullfrog 0.1.55 → 0.1.56
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.mjs +678 -517
- package/dist/external.d.ts +28 -0
- package/dist/index.js +677 -516
- package/dist/internal.js +30 -13
- package/dist/mcp/currentObject.d.ts +14 -0
- package/dist/mcp/gh.d.ts +32 -0
- package/dist/mcp/issue.d.ts +0 -23
- package/dist/mcp/pr.d.ts +0 -10
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/shell.d.ts +24 -0
- package/dist/utils/billingErrors.d.ts +9 -1
- package/dist/utils/github.d.ts +1 -1
- package/dist/utils/roleMirror.d.ts +42 -0
- package/dist/utils/token.d.ts +3 -1
- package/dist/utils/worktree.d.ts +14 -2
- package/package.json +1 -1
package/dist/external.d.ts
CHANGED
|
@@ -13,6 +13,34 @@ export type AgentId = "claude" | "opencode";
|
|
|
13
13
|
* opencode: pullfrog_select_mode
|
|
14
14
|
*/
|
|
15
15
|
export declare function formatMcpToolRef(agentId: AgentId, toolName: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Every MCP tool name `text` references, parsed with the same naming scheme
|
|
18
|
+
* `formatMcpToolRef` emits. Deliberately lives next to that function so the
|
|
19
|
+
* producer and the parser cannot drift apart.
|
|
20
|
+
*
|
|
21
|
+
* The convention this assumes — and enforces, via `assertPromptToolRefs` — is
|
|
22
|
+
* that a prefixed token appearing anywhere in prompt text IS a tool reference.
|
|
23
|
+
* Prose that merely looks like one would read as a tool reference to the model
|
|
24
|
+
* too, so treating it as a mistake is correct.
|
|
25
|
+
*/
|
|
26
|
+
export declare function extractMcpToolRefs(agentId: AgentId, text: string): string[];
|
|
27
|
+
/**
|
|
28
|
+
* Fail the run if the assembled prompt advertises a tool the MCP server did not
|
|
29
|
+
* actually register.
|
|
30
|
+
*
|
|
31
|
+
* Prompt text and tool registration are decided in different files off
|
|
32
|
+
* overlapping conditions (`signedCommits`, `repoIntelligence`, `shell`, the
|
|
33
|
+
* `gh` mirror threshold, …), so they can silently disagree — and the failure
|
|
34
|
+
* mode is invisible: the agent burns turns calling a tool that isn't there, or
|
|
35
|
+
* never learns about one that is. `toolNames` comes straight back from
|
|
36
|
+
* `startMcpHttpServer`, i.e. the list the server registered rather than a
|
|
37
|
+
* second derivation of it, so there is nothing to keep in sync.
|
|
38
|
+
*/
|
|
39
|
+
export declare function assertPromptToolRefs(params: {
|
|
40
|
+
agentId: AgentId;
|
|
41
|
+
prompt: string;
|
|
42
|
+
toolNames: string[];
|
|
43
|
+
}): void;
|
|
16
44
|
export type { EffortPosition } from "./effort.ts";
|
|
17
45
|
export { DEFAULT_EFFORT_POSITION, EFFORT_ALIASES, isEffortPosition, offeredRungs, parseEffortPosition, resolveRung, rungLabel, rungPosition, } from "./effort.ts";
|
|
18
46
|
export type { AutoTier, ModelAlias, ModelProvider, ProviderConfig } from "./models.ts";
|