@introspection-ai/recipes 0.51.0 → 0.52.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/README.md +3 -3
- package/dist/api/api-bindings.d.ts +3 -0
- package/dist/api/api-bindings.d.ts.map +1 -0
- package/dist/api/api-bindings.js +2 -0
- package/dist/api/api-bindings.js.map +1 -0
- package/dist/api/session.d.ts +1 -0
- package/dist/api/session.d.ts.map +1 -1
- package/dist/api-bindings.d.ts +101 -0
- package/dist/api-bindings.d.ts.map +1 -0
- package/dist/api-bindings.js +406 -0
- package/dist/api-bindings.js.map +1 -0
- package/dist/channels/arguments.d.ts +116 -0
- package/dist/channels/arguments.d.ts.map +1 -0
- package/dist/channels/arguments.generated.d.ts +15 -0
- package/dist/channels/arguments.generated.d.ts.map +1 -0
- package/dist/channels/arguments.generated.js +181 -0
- package/dist/channels/arguments.generated.js.map +1 -0
- package/dist/channels/arguments.js +8 -0
- package/dist/channels/arguments.js.map +1 -0
- package/dist/channels/module.d.ts +5 -0
- package/dist/channels/module.d.ts.map +1 -1
- package/dist/channels/module.js +10 -5
- package/dist/channels/module.js.map +1 -1
- package/dist/channels/tools.d.ts.map +1 -1
- package/dist/channels/tools.js +22 -59
- package/dist/channels/tools.js.map +1 -1
- package/dist/channels/types.d.ts +5 -0
- package/dist/channels/types.d.ts.map +1 -1
- package/dist/child/session.d.ts +5 -0
- package/dist/child/session.d.ts.map +1 -1
- package/dist/child/session.js +2 -0
- package/dist/child/session.js.map +1 -1
- package/dist/clock.d.ts +80 -0
- package/dist/clock.d.ts.map +1 -0
- package/dist/clock.js +169 -0
- package/dist/clock.js.map +1 -0
- package/dist/command-parameters.d.ts +37 -5
- package/dist/command-parameters.d.ts.map +1 -1
- package/dist/command-parameters.js +73 -11
- package/dist/command-parameters.js.map +1 -1
- package/dist/connector-tools.d.ts +18 -0
- package/dist/connector-tools.d.ts.map +1 -1
- package/dist/connector-tools.js +48 -2
- package/dist/connector-tools.js.map +1 -1
- package/dist/documents/tools.d.ts.map +1 -1
- package/dist/documents/tools.js +3 -3
- package/dist/documents/tools.js.map +1 -1
- package/dist/issues/index.d.ts +7 -0
- package/dist/issues/index.d.ts.map +1 -0
- package/dist/issues/index.js +4 -0
- package/dist/issues/index.js.map +1 -0
- package/dist/issues/module.d.ts +38 -0
- package/dist/issues/module.d.ts.map +1 -0
- package/dist/issues/module.js +114 -0
- package/dist/issues/module.js.map +1 -0
- package/dist/issues/tool.d.ts +95 -0
- package/dist/issues/tool.d.ts.map +1 -0
- package/dist/issues/tool.js +479 -0
- package/dist/issues/tool.js.map +1 -0
- package/dist/issues/types.d.ts +280 -0
- package/dist/issues/types.d.ts.map +1 -0
- package/dist/issues/types.js +79 -0
- package/dist/issues/types.js.map +1 -0
- package/dist/mcp/cli/command-context.d.ts +20 -1
- package/dist/mcp/cli/command-context.d.ts.map +1 -1
- package/dist/mcp/cli/command-context.js.map +1 -1
- package/dist/mcp/cli/core.d.ts +0 -2
- package/dist/mcp/cli/core.d.ts.map +1 -1
- package/dist/mcp/cli/core.js +9 -33
- package/dist/mcp/cli/core.js.map +1 -1
- package/dist/mcp/cli/handshake-retry.d.ts +5 -0
- package/dist/mcp/cli/handshake-retry.d.ts.map +1 -0
- package/dist/mcp/cli/handshake-retry.js +32 -0
- package/dist/mcp/cli/handshake-retry.js.map +1 -0
- package/dist/mcp/daemon/index.js +3 -4
- package/dist/mcp/daemon/index.js.map +1 -1
- package/dist/mcp/pi-client.d.ts +2 -0
- package/dist/mcp/pi-client.d.ts.map +1 -1
- package/dist/mcp/pi-client.js +5 -1
- package/dist/mcp/pi-client.js.map +1 -1
- package/dist/mcp/pi-mcp-runtime.d.ts +25 -0
- package/dist/mcp/pi-mcp-runtime.d.ts.map +1 -0
- package/dist/mcp/pi-mcp-runtime.js +215 -0
- package/dist/mcp/pi-mcp-runtime.js.map +1 -0
- package/dist/mcp/pi-runtime.d.ts +7 -0
- package/dist/mcp/pi-runtime.d.ts.map +1 -0
- package/dist/mcp/pi-runtime.js +26 -0
- package/dist/mcp/pi-runtime.js.map +1 -0
- package/dist/mcp-chunks/chunk-3UVHZECT.js +31 -0
- package/dist/mcp-chunks/{chunk-PO2SOBEN.js → chunk-CGJ2XOSF.js} +43 -35
- package/dist/mcp-chunks/{chunk-GTETFUPQ.js → chunk-IMG2JMBS.js} +8 -8
- package/dist/mcp-chunks/{chunk-UFV6SVQG.js → chunk-LQKMNWDE.js} +2 -2
- package/dist/mcp-chunks/{chunk-S2F7DDP5.js → chunk-QUDOU7MQ.js} +1 -1
- package/dist/mcp-chunks/{cli-IYD7Y7MO.js → cli-BM23ZXPJ.js} +54 -54
- package/dist/mcp-chunks/{client-5MNBV3Z7.js → client-RKTAKDAY.js} +7 -7
- package/dist/mcp-chunks/{daemon-command-V3B3EMXD.js → daemon-command-VU6WTFCJ.js} +8 -8
- package/dist/mcp-chunks/{generate-cli-runner-PW5WJ7KI.js → generate-cli-runner-JAAPSWGX.js} +12 -12
- package/dist/mcp-chunks/{generated-daemon-runtime-3C4NWGAU.js → generated-daemon-runtime-LX4L2X7Z.js} +8 -8
- package/dist/mcp-chunks/pi-mcp-runtime-GHDEPXUL.js +1231 -0
- package/dist/mcp-chunks/{runtime-RMI3XCYJ.js → runtime-T63YI7TC.js} +6 -6
- package/dist/mcp-chunks/{serve-command-UF5SVREV.js → serve-command-75P4VBJ6.js} +7 -7
- package/dist/mcp-daemon.js +21 -19
- package/dist/mcp-run-worker.js +11 -10
- package/dist/pi-extension.d.ts +3 -0
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +82 -18
- package/dist/pi-extension.js.map +1 -1
- package/dist/productivity/arguments.d.ts +298 -0
- package/dist/productivity/arguments.d.ts.map +1 -0
- package/dist/productivity/arguments.generated.d.ts +28 -0
- package/dist/productivity/arguments.generated.d.ts.map +1 -0
- package/dist/productivity/arguments.generated.js +489 -0
- package/dist/productivity/arguments.generated.js.map +1 -0
- package/dist/productivity/arguments.js +10 -0
- package/dist/productivity/arguments.js.map +1 -0
- package/dist/productivity/http.d.ts.map +1 -1
- package/dist/productivity/http.js +4 -1
- package/dist/productivity/http.js.map +1 -1
- package/dist/productivity/index.d.ts +1 -1
- package/dist/productivity/index.d.ts.map +1 -1
- package/dist/productivity/index.js +1 -1
- package/dist/productivity/index.js.map +1 -1
- package/dist/productivity/module.d.ts +15 -2
- package/dist/productivity/module.d.ts.map +1 -1
- package/dist/productivity/module.js +24 -19
- package/dist/productivity/module.js.map +1 -1
- package/dist/productivity/tools.d.ts +6 -0
- package/dist/productivity/tools.d.ts.map +1 -1
- package/dist/productivity/tools.js +64 -224
- package/dist/productivity/tools.js.map +1 -1
- package/dist/productivity/types.d.ts +2 -0
- package/dist/productivity/types.d.ts.map +1 -1
- package/dist/productivity/types.js.map +1 -1
- package/dist/recipe/agent.d.ts +40 -10
- package/dist/recipe/agent.d.ts.map +1 -1
- package/dist/recipe/agent.js +209 -30
- package/dist/recipe/agent.js.map +1 -1
- package/dist/recipe/companions.js +1 -1
- package/dist/recipe/manifest.generated.d.ts +3 -1
- package/dist/recipe/manifest.generated.d.ts.map +1 -1
- package/dist/recipe/manifest.generated.js +3 -1
- package/dist/recipe/manifest.generated.js.map +1 -1
- package/dist/recipe/package.d.ts +28 -3
- package/dist/recipe/package.d.ts.map +1 -1
- package/dist/recipe/package.js +155 -1
- package/dist/recipe/package.js.map +1 -1
- package/dist/recipe/providers.d.ts +62 -0
- package/dist/recipe/providers.d.ts.map +1 -0
- package/dist/recipe/providers.js +95 -0
- package/dist/recipe/providers.js.map +1 -0
- package/dist/recipe/resolve.d.ts +7 -3
- package/dist/recipe/resolve.d.ts.map +1 -1
- package/dist/recipe/resolve.js +7 -2
- package/dist/recipe/resolve.js.map +1 -1
- package/dist/run-controller.d.ts +6 -0
- package/dist/run-controller.d.ts.map +1 -1
- package/dist/run-controller.js +2 -0
- package/dist/run-controller.js.map +1 -1
- package/dist/search/index.d.ts +2 -1
- package/dist/search/index.d.ts.map +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/index.js.map +1 -1
- package/dist/search/module.d.ts +19 -7
- package/dist/search/module.d.ts.map +1 -1
- package/dist/search/module.js +38 -16
- package/dist/search/module.js.map +1 -1
- package/dist/search/tool.d.ts +6 -1
- package/dist/search/tool.d.ts.map +1 -1
- package/dist/search/tool.js +22 -9
- package/dist/search/tool.js.map +1 -1
- package/dist/search/types.d.ts +13 -3
- package/dist/search/types.d.ts.map +1 -1
- package/dist/search/types.js +4 -1
- package/dist/search/types.js.map +1 -1
- package/dist/session.d.ts +21 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +132 -43
- package/dist/session.js.map +1 -1
- package/dist/test-utils.d.ts +2 -0
- package/dist/test-utils.d.ts.map +1 -1
- package/dist/test-utils.js +3 -1
- package/dist/test-utils.js.map +1 -1
- package/dist/tool-search.d.ts +9 -0
- package/dist/tool-search.d.ts.map +1 -1
- package/dist/tool-search.js +23 -0
- package/dist/tool-search.js.map +1 -1
- package/dist/tools/bridge.d.ts +44 -0
- package/dist/tools/bridge.d.ts.map +1 -0
- package/dist/tools/bridge.js +106 -0
- package/dist/tools/bridge.js.map +1 -0
- package/dist/tools/cli.d.ts +20 -0
- package/dist/tools/cli.d.ts.map +1 -0
- package/dist/tools/cli.js +246 -0
- package/dist/tools/cli.js.map +1 -0
- package/dist/tools/entry.d.ts +2 -0
- package/dist/tools/entry.d.ts.map +1 -0
- package/dist/tools/entry.js +3 -0
- package/dist/tools/entry.js.map +1 -0
- package/dist/tools/shell.d.ts +12 -0
- package/dist/tools/shell.d.ts.map +1 -0
- package/dist/tools/shell.js +50 -0
- package/dist/tools/shell.js.map +1 -0
- package/dist/tuning/tpe.d.ts +112 -0
- package/dist/tuning/tpe.d.ts.map +1 -0
- package/dist/tuning/tpe.js +286 -0
- package/dist/tuning/tpe.js.map +1 -0
- package/docs/README.md +3 -1
- package/docs/channels/README.md +10 -0
- package/docs/documents/README.md +20 -19
- package/docs/host-api.md +10 -0
- package/docs/issues/README.md +183 -0
- package/docs/mcp-configuration.md +65 -1
- package/docs/pi-extension.md +5 -0
- package/docs/productivity/README.md +8 -3
- package/docs/providers.md +321 -0
- package/docs/recipe-format.md +103 -32
- package/docs/search/README.md +37 -20
- package/package.json +28 -10
- package/skills/documents/SKILL.md +2 -1
- package/dist/mcp-chunks/{auth-command-M7TQE3AL.js → auth-command-UYFOGGQR.js} +6 -6
- package/dist/mcp-chunks/{call-command-7LD7UEFK.js → call-command-6U5BNDR7.js} +17 -17
- package/dist/mcp-chunks/{chunk-PSE442BC.js → chunk-36D4FILJ.js} +26 -26
- package/dist/mcp-chunks/{config-command-6DXILFNO.js → config-command-ZSPJI34E.js} +10 -10
- package/dist/mcp-chunks/{emit-ts-command-NDCDFDRM.js → emit-ts-command-SY4LQE4S.js} +3 -3
- package/dist/mcp-chunks/{inspect-cli-command-4MGF5CPP.js → inspect-cli-command-JPX4ON6N.js} +4 -4
- package/dist/mcp-chunks/{resource-command-SRFQQROJ.js → resource-command-DUY4SVE5.js} +4 -4
package/docs/recipe-format.md
CHANGED
|
@@ -96,7 +96,7 @@ Recipe MUST contain at least one agent.
|
|
|
96
96
|
name: agent
|
|
97
97
|
description: Produce a sourced research brief.
|
|
98
98
|
ai:
|
|
99
|
-
model: <provider>/<model>
|
|
99
|
+
model: <provider>/<model> # one Pi has credentials for: pi --list-models
|
|
100
100
|
thinking_level: high
|
|
101
101
|
options:
|
|
102
102
|
max_tokens: 4096
|
|
@@ -285,7 +285,10 @@ object holding a command allowlist per tool. A second provider is refused.
|
|
|
285
285
|
{
|
|
286
286
|
"pi": {
|
|
287
287
|
"productivity": [
|
|
288
|
-
{
|
|
288
|
+
{
|
|
289
|
+
"provider": "microsoft",
|
|
290
|
+
"tools": { "mail": ["search", "read", "draft"] }
|
|
291
|
+
}
|
|
289
292
|
]
|
|
290
293
|
}
|
|
291
294
|
}
|
|
@@ -352,6 +355,7 @@ suggest: true
|
|
|
352
355
|
description: Redline a contract against our playbook
|
|
353
356
|
argument-hint: "[contract]"
|
|
354
357
|
---
|
|
358
|
+
|
|
355
359
|
Redline ${1:-the attached contract} against the playbook. Today is {{today}}.
|
|
356
360
|
```
|
|
357
361
|
|
|
@@ -474,8 +478,7 @@ dependencies from its lockfile, and nothing is fetched at run time. A check
|
|
|
474
478
|
run without `node_modules` cannot see dependency skills, so a skill an agent
|
|
475
479
|
selects that is not in the Recipe is a warning there rather than an error.
|
|
476
480
|
|
|
477
|
-
Document profiles use a different path. A Recipe
|
|
478
|
-
[`introspection-org/recipe-redlining`](https://github.com/introspection-org/recipe-redlining)
|
|
481
|
+
Document profiles use a different path. A Recipe that reviews redlines, say,
|
|
479
482
|
selects a profile in `pi.documents`, from a pinned docx package or the host
|
|
480
483
|
default (see [First-party packages](#first-party-packages)); the `documents`
|
|
481
484
|
tool delivers the core `documents` skill and that profile itself, for agents
|
|
@@ -490,20 +493,20 @@ Besides Pi's own tools (`read`, `bash`, `edit`, `write`, `grep`, `find`,
|
|
|
490
493
|
`ls`), Recipes provides these built-in tools, available only to an agent that
|
|
491
494
|
lists them in `tools`:
|
|
492
495
|
|
|
493
|
-
| Tool
|
|
494
|
-
|
|
|
495
|
-
| `ask_user_question`
|
|
496
|
-
| `show_artifact`
|
|
497
|
-
| `review_artifacts`
|
|
498
|
-
| `introspection_open` | Asks the person to open an Introspection page (install GitHub or Slack, add a connector, connect their own account, set up sign-in, connect a Runtime's MCP server, look at a Runtime or task) and, with `wait: true`, pauses until they are done. In Pi's terminal it runs the Introspection CLI's loopback; pause/resume hosts render a card. See [Interactions](interactions.md#the-built-in-introspection_open-tool). |
|
|
496
|
+
| Tool | What it does |
|
|
497
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
498
|
+
| `ask_user_question` | Asks the user one to four multiple-choice questions and waits for the answers; the user can always type their own answer. Works in Pi's terminal, on pause/resume hosts and headless. See [Interactions](interactions.md#the-built-in-ask_user_question-tool). |
|
|
499
|
+
| `show_artifact` | Shows a markdown file the agent wrote (a brief, test cases, a report) in a panel on the right of Pi's terminal, and adds `/recipe view`; Esc closes it. Elsewhere it returns the file's path as text. See [Pi extension](pi-extension.md#artifact-panel). |
|
|
500
|
+
| `review_artifacts` | Asks the user to review several markdown files the agent wrote, one decision per file (approve, or request changes saying what to change). In Pi's terminal each file shows in the artifact panel; other hosts render their own review. See [Pi extension](pi-extension.md#reviewing-several-files). |
|
|
499
501
|
| `introspection_open` | Asks the person to open an Introspection page (install GitHub or Slack, add a connector, connect their own account, set up sign-in, connect a Runtime's MCP server, look at a Runtime or task) and, with `wait: true`, pauses until they are done. In Pi's terminal it runs the Introspection CLI's loopback; pause/resume hosts render a card. See [Interactions](interactions.md#the-built-in-introspection_open-tool). |
|
|
502
|
+
| `today` | Returns the current date, weekday and time, with the time zone and its UTC offset: the person's, or, with `time_zone`, another zone's. It reads the session's clock (see [Current date](#current-date)). |
|
|
500
503
|
|
|
501
504
|
```yaml
|
|
502
505
|
tools: [read, bash, ask_user_question, show_artifact]
|
|
503
506
|
```
|
|
504
507
|
|
|
505
|
-
If a Recipe extension registers its own `ask_user_question`, the
|
|
506
|
-
the Recipe's tool and does not register the built-in one. This exception to
|
|
508
|
+
If a Recipe extension registers its own `ask_user_question` or `today`, the
|
|
509
|
+
host keeps the Recipe's tool and does not register the built-in one. This exception to
|
|
507
510
|
the rule below lets a Recipe migrate from its own question tool without a
|
|
508
511
|
coordinated release; new Recipes list the built-in tool instead.
|
|
509
512
|
|
|
@@ -528,6 +531,70 @@ catalog of a required server declared `"discovery": "defer"`.
|
|
|
528
531
|
See [MCP configuration](mcp-configuration.md) for the complete authored and
|
|
529
532
|
binding grammar.
|
|
530
533
|
|
|
534
|
+
`tools` takes two forms. A list names the tools the agent may call, each
|
|
535
|
+
declared to the model; `tools: []` is an agent with none. A mapping adds
|
|
536
|
+
how they reach the model, with the selectors an [`mcp` server
|
|
537
|
+
entry](mcp-configuration.md) takes and the same `mode`:
|
|
538
|
+
|
|
539
|
+
```yaml
|
|
540
|
+
tools: [read, bash, issues, mail]
|
|
541
|
+
|
|
542
|
+
tools:
|
|
543
|
+
mode: codemode # tools (default) | codemode | cli
|
|
544
|
+
include: [read, bash, issues, mail]
|
|
545
|
+
eager: [issues]
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
| Key | Takes | Meaning |
|
|
549
|
+
| --------- | ---------------------------- | ------------------------------------------------------------------------------------- |
|
|
550
|
+
| `include` | names, or `"*"` | The tools the agent may call: the list form is exactly this. |
|
|
551
|
+
| `exclude` | names | Removed after `include`. |
|
|
552
|
+
| `defer` | first-party names, or `"*"` | In `tools` mode, hidden from the model until Pi's `tool_search` loads them. |
|
|
553
|
+
| `eager` | first-party names, or `"*"` | Exceptions to `defer`; in `codemode`, also declared to the model. |
|
|
554
|
+
| `mode` | `tools`, `codemode` or `cli` | How the first-party tools reach the model. Built-ins and a Recipe's own are declared. |
|
|
555
|
+
|
|
556
|
+
`include: ["*"]` selects Pi's tools, the Recipes built-ins above, and the
|
|
557
|
+
first-party tools the Recipe declares in `package.json#pi`: `issues` with
|
|
558
|
+
`pi.issues`, `mail`, `calendar` and `drive` with `pi.productivity` (only the
|
|
559
|
+
ones its `tools` names, when it names any), and `web_search` with `pi.search`.
|
|
560
|
+
A Recipe's own extension and connector tools are never in `*`; name them. A
|
|
561
|
+
tool `*` selects that the host does not offer is left out rather than refused.
|
|
562
|
+
|
|
563
|
+
`mode`, `defer` and `eager` govern only the first-party tools (`issues`,
|
|
564
|
+
`mail`, `calendar`, `drive`, `web_search`):
|
|
565
|
+
|
|
566
|
+
- `tools` declares each one, except those `defer` holds back for tool search.
|
|
567
|
+
- `codemode` keeps each one to codemode scripts (`tools.issues({...})`): it is
|
|
568
|
+
named in the `codemode` tool's description and not declared, so its schema
|
|
569
|
+
costs nothing until a script reads it with `describeTool()`. The agent gets
|
|
570
|
+
the `codemode` tool whenever `tools` or `mcp` asks for codemode, and the
|
|
571
|
+
mode needs Pi 1.3 or newer.
|
|
572
|
+
- `cli` keeps them undeclared and serves them to a `tools` command in each
|
|
573
|
+
`bash` call's shell: `tools list`, `tools search "words"`,
|
|
574
|
+
`tools call issues.search --json '{"query":"checkout"}'` (or `--json -` to
|
|
575
|
+
read the object from stdin) and `tools run` for a script
|
|
576
|
+
(`tools.issues.search({...})`), where a call returns the tool's structured
|
|
577
|
+
result, or its text when it has none. Each call is a nested call of that bash
|
|
578
|
+
call, so hooks, spans and `behind` apply as to any other. The agent selects
|
|
579
|
+
`bash`. The command reaches first-party tools only; a Recipe's MCP servers
|
|
580
|
+
stay on the `mcp` command. The SDK session host serves it; the `pi`
|
|
581
|
+
extension host does not yet.
|
|
582
|
+
|
|
583
|
+
The rules are an `mcp` server's: `defer` is invalid in `codemode` and `cli`,
|
|
584
|
+
`eager` in `cli`, and every `defer` or `eager` name must be one `include`
|
|
585
|
+
selects. A child agent that declares `tools` replaces its parent's whole
|
|
586
|
+
block, mode included, as one that declares `mcp` does.
|
|
587
|
+
|
|
588
|
+
### Current date
|
|
589
|
+
|
|
590
|
+
Every agent's prompt names the date, with no configuration: the day, the
|
|
591
|
+
date, the time zone and its UTC offset, read from the session's clock in the
|
|
592
|
+
person's time zone (the host's when the host does not give one) and formatted
|
|
593
|
+
in their locale. It names the day but not the time, so the prompt stays the
|
|
594
|
+
same all day and a cached prompt prefix stays valid; an agent that needs the
|
|
595
|
+
time lists `today`, and the prompt then points at it. The productivity tools'
|
|
596
|
+
`calendar list` reads its default range, today and tomorrow, in the same zone.
|
|
597
|
+
|
|
531
598
|
## Host responsibilities
|
|
532
599
|
|
|
533
600
|
The Recipe Format owns:
|
|
@@ -623,7 +690,10 @@ stdout parsed as JSON (default timeout 300 s, 64 MB output):
|
|
|
623
690
|
|
|
624
691
|
```ts
|
|
625
692
|
import { getRecipeSessionContext } from "@introspection-ai/recipes/extensions";
|
|
626
|
-
import {
|
|
693
|
+
import {
|
|
694
|
+
pythonExecutable,
|
|
695
|
+
runPythonJson,
|
|
696
|
+
} from "@introspection-ai/recipes/python";
|
|
627
697
|
|
|
628
698
|
export default function tables(pi) {
|
|
629
699
|
const python = pythonExecutable({
|
|
@@ -739,17 +809,17 @@ other way round, so a case file never names a path.
|
|
|
739
809
|
|
|
740
810
|
A case file is YAML front matter, then a body. The front matter:
|
|
741
811
|
|
|
742
|
-
| Field
|
|
743
|
-
|
|
|
744
|
-
| `id`
|
|
745
|
-
| `title`
|
|
746
|
-
| `check`
|
|
747
|
-
| `inputs`
|
|
748
|
-
| `sources`
|
|
749
|
-
| `approved_by`, `approved_at`, `approved_in` | Who approved the case, when, and in which message. All empty means a draft.
|
|
750
|
-
| `approved_hash`
|
|
751
|
-
| `conversation`
|
|
752
|
-
| `issue`
|
|
812
|
+
| Field | Meaning |
|
|
813
|
+
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
814
|
+
| `id` | The file name without `.md`. Unique across the Recipe and never reused. Any name safe as a file name. |
|
|
815
|
+
| `title` | One line in the owner's words. |
|
|
816
|
+
| `check` | `code` (a verifier), `person` (the owner or a reviewer) or `later` (left for a later improvement pass). Only `code` cases get an implementation. |
|
|
817
|
+
| `inputs` | A list of `{ name, sha256, location }`: each input by its hash and where it came from. The case file never holds an input; the implementation carries the copy it runs on, such as a Harbor task's `environment/`. |
|
|
818
|
+
| `sources` | What the agent must reach for this case, such as `[documents]`. |
|
|
819
|
+
| `approved_by`, `approved_at`, `approved_in` | Who approved the case, when, and in which message. All empty means a draft. |
|
|
820
|
+
| `approved_hash` | Optional: `sha256:<hex>` of the body when the case was approved, written by `introspection eval approve <id>`. An edited body no longer matches, so the case is unapproved until the owner approves it again. |
|
|
821
|
+
| `conversation` | Optional: `{ id, task_id, turn }` of the real conversation the case came from, `task_id` only when it ran as a platform task. Provenance only: a run never fetches it. |
|
|
822
|
+
| `issue` | Optional: the UUID of the issue recording the hypothesis the case tests. |
|
|
753
823
|
|
|
754
824
|
Unknown keys are allowed: the other fields and the body are for people. By
|
|
755
825
|
convention the body has the sections Situation, A good result and A bad
|
|
@@ -785,6 +855,7 @@ approved_in: msg_01
|
|
|
785
855
|
---
|
|
786
856
|
|
|
787
857
|
## Situation
|
|
858
|
+
|
|
788
859
|
...
|
|
789
860
|
```
|
|
790
861
|
|
|
@@ -842,14 +913,14 @@ eval paths, the links between cases and implementations, and the judges eval
|
|
|
842
913
|
code names. A broken link between a case and its implementation, or a broken
|
|
843
914
|
case file, is an error and fails the check; the rest are warnings:
|
|
844
915
|
|
|
845
|
-
| Code
|
|
846
|
-
|
|
|
847
|
-
| `pi.evals_case_unknown`
|
|
848
|
-
| `pi.evals_case_duplicate`
|
|
849
|
-
| `pi.evals_case_unapproved`
|
|
850
|
-
| `pi.evals_case_row_missing_id` | error
|
|
851
|
-
| `pi.evals_case_invalid`
|
|
852
|
-
| `pi.evals_judge_unknown`
|
|
916
|
+
| Code | Severity | Rule |
|
|
917
|
+
| ------------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
918
|
+
| `pi.evals_case_unknown` | error | A Vitest row or Harbor task names a case with no case file. |
|
|
919
|
+
| `pi.evals_case_duplicate` | error | A case has more than one implementation, on one runner or across both: two rows, two tasks, or a row and a task. Keep one and delete the other. |
|
|
920
|
+
| `pi.evals_case_unapproved` | warning | A case with an implementation has an empty approval field, or a body that no longer matches its `approved_hash`; `introspection eval approve <id>` approves it again. It stays a warning: a draft case is how one is proposed, and the owner approves it in review. |
|
|
921
|
+
| `pi.evals_case_row_missing_id` | error | A `.eval.jsonl` row has no `case`. |
|
|
922
|
+
| `pi.evals_case_invalid` | error | A case file has no readable front matter, an `id` other than its file name, an `issue` that is not a UUID, or an `approved_hash` that is not `sha256:` and 64 hexadecimal digits. |
|
|
923
|
+
| `pi.evals_judge_unknown` | warning | A string-literal `recipeJudge("<name>")` in a Vitest suite or the eval `lib`, or `judge_reward("<name>")` in a Harbor task's Python, names an online judge with no definition of that `name` in `judges/`; a `recipeJudge` YAML path, read from the Recipe root, that names a missing file warns too. Names built at run time or passed in a variable are not seen. It stays a warning. |
|
|
853
924
|
|
|
854
925
|
## Conformance
|
|
855
926
|
|
package/docs/search/README.md
CHANGED
|
@@ -158,9 +158,8 @@ the provider reported credits, Tavily's and Keenable's over REST, else
|
|
|
158
158
|
an allowance), `.cost_usd` (Exa's reported dollars, over REST and over its
|
|
159
159
|
advanced MCP tool) and `.key_owner`
|
|
160
160
|
(`customer`, since a project endpoint holds the key). The platform prices it
|
|
161
|
-
against its vendor rate catalog
|
|
162
|
-
|
|
163
|
-
`search.units.*` stays as the provider's own unit.
|
|
161
|
+
against its vendor rate catalog; `search.units.*` stays as the provider's own
|
|
162
|
+
unit.
|
|
164
163
|
|
|
165
164
|
### Recipe code
|
|
166
165
|
|
|
@@ -358,10 +357,8 @@ A provider's hosted MCP server is a Recipe MCP binding like any other: a
|
|
|
358
357
|
credential reference (`Authorization: Bearer ${TAVILY_API_KEY}`,
|
|
359
358
|
`x-api-key: ${EXA_API_KEY}`, `X-API-Key: ${KEENABLE_API_KEY}`,
|
|
360
359
|
`Authorization: Bearer ${PERPLEXITY_API_KEY}` or
|
|
361
|
-
`${PARALLEL_API_KEY}`), injected by the egress outside the sandbox
|
|
362
|
-
|
|
363
|
-
`sandbox-egress-proxy-native.md`, where MCP bindings dial the edge and send no
|
|
364
|
-
locator). The bootstrap carries only the URL. So:
|
|
360
|
+
`${PARALLEL_API_KEY}`), injected by the egress outside the sandbox, where MCP bindings dial the edge
|
|
361
|
+
and send no locator. The bootstrap carries only the URL. So:
|
|
365
362
|
|
|
366
363
|
- **Header, never query string.** Tavily's `?tavilyApiKey=` and Exa's
|
|
367
364
|
`?exaApiKey=` put the key in the URL the sandbox sees; bind with the header.
|
|
@@ -496,9 +493,8 @@ adapter:
|
|
|
496
493
|
the fallback, and on its own does not bind it.
|
|
497
494
|
- **A REST-only provider** (Brave) is bound
|
|
498
495
|
when the runtime holds an endpoint for its host with a credential: a
|
|
499
|
-
`kind='api'` endpoint row
|
|
500
|
-
|
|
501
|
-
scope. The bound set is what the egress will authenticate. It needs no
|
|
496
|
+
`kind='api'` endpoint row, at project, runtime, runtime group or
|
|
497
|
+
environment scope. The bound set is what the egress will authenticate. It needs no
|
|
502
498
|
declaration in the Recipe: a search provider is interchangeable and chosen
|
|
503
499
|
per call.
|
|
504
500
|
|
|
@@ -540,8 +536,7 @@ key. The host's egress supplies it, as for the Slack channel
|
|
|
540
536
|
|
|
541
537
|
- **Proxy-native egress** (`INTROSPECTION_EGRESS_PROXY_NATIVE=1`): the request
|
|
542
538
|
leaves without the header. The egress intercepts the bound host and, finding
|
|
543
|
-
the endpoint's header absent, injects it
|
|
544
|
-
`docs/design/sandbox-egress-proxy-native.md`, "Credential placeholders").
|
|
539
|
+
the endpoint's header absent, injects it.
|
|
545
540
|
- **Legacy provider lane** (`INTROSPECTION_EGRESS_URL` and
|
|
546
541
|
`INTROSPECTION_TOKEN`): the session locator travels in the provider's own
|
|
547
542
|
header, with its prefix, and ext_proc swaps it for the key. The runtime's
|
|
@@ -665,24 +660,46 @@ Not built. The intended shape:
|
|
|
665
660
|
`optionalDependency`, and a Recipe that lists it in `dependencies` pins
|
|
666
661
|
its copy.
|
|
667
662
|
|
|
668
|
-
`loadSearchProviders({ recipeDir, hostDir? })` resolves the
|
|
669
|
-
Recipe, then beside Recipes, checks its `apiVersion` and
|
|
670
|
-
providers. With the package not installed it returns none, and
|
|
671
|
-
offers no provider: a call fails with `not_bound`.
|
|
663
|
+
`loadSearchProviders({ recipeDir, hostDir?, declarations? })` resolves the
|
|
664
|
+
package from the Recipe, then beside Recipes, checks its `apiVersion` and
|
|
665
|
+
returns the providers. With the package not installed it returns none, and
|
|
666
|
+
`web_search` offers no provider: a call fails with `not_bound`.
|
|
667
|
+
|
|
668
|
+
### Declare providers
|
|
669
|
+
|
|
670
|
+
A Recipe that declares nothing gets the first-party providers the runtime
|
|
671
|
+
binds. `pi.search` names the providers instead, first-party by id or the
|
|
672
|
+
Recipe's own by `package` (an installed package listed in `dependencies`):
|
|
673
|
+
|
|
674
|
+
```json
|
|
675
|
+
{
|
|
676
|
+
"pi": {
|
|
677
|
+
"search": [
|
|
678
|
+
{ "provider": "brave" },
|
|
679
|
+
{ "provider": "acme", "package": "@acme/recipe-search" }
|
|
680
|
+
]
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
A host passes the manifest's `search` as `declarations`, and
|
|
686
|
+
`loadSearchProviders` loads them through the shared provider loader
|
|
687
|
+
([providers.md](../providers.md)). Ids are open slugs, unique in `pi.search`;
|
|
688
|
+
`SEARCH_PROVIDER_IDS` lists the first-party ones.
|
|
672
689
|
|
|
673
690
|
## Write a provider
|
|
674
691
|
|
|
675
692
|
A provider is a plain module, `SearchProviderModule`:
|
|
676
693
|
|
|
677
694
|
- `kind: "search"`, `apiVersion` (`SEARCH_PROVIDER_API_VERSION`, checked
|
|
678
|
-
when
|
|
695
|
+
when it loads), and `id`, the id its declaration names.
|
|
679
696
|
- `capabilities`: `modes` (each of `fast`, `default` and `deep` with the
|
|
680
697
|
provider's `setting`, and `approximate` when the setting does not mean the
|
|
681
698
|
mode), `mode_parameter`, `max_results`, `combine_sites`,
|
|
682
699
|
`max_include_sites` where it takes fewer sites than a call lists, `options` (native, approximate or
|
|
683
700
|
none for `freshness`, `include_sites`, `exclude_sites` and `context`, with a
|
|
684
|
-
one-sentence `note` for each approximation), `host`, `
|
|
685
|
-
and prefix) and `billing`.
|
|
701
|
+
one-sentence `note` for each approximation), `host`, `hosts` (every host it
|
|
702
|
+
sends to, REST and MCP), `credential` (header and prefix) and `billing`.
|
|
686
703
|
- `mcp` (optional): the hosted server's `url` and `credential`, the `tools`
|
|
687
704
|
it may call, `plan` and `parse` ([MCP transport](#mcp-transport)).
|
|
688
705
|
- `search(request, context)`: `request` is normalized, with the mode's
|
|
@@ -718,7 +735,7 @@ of its own under the companion rule in `AGENTS.md`.
|
|
|
718
735
|
nested call reaches the server, and a direct call from the model or a
|
|
719
736
|
codemode script is refused.
|
|
720
737
|
- **Evals:** a search provider is a REST API, so it fits eval-simulate's API
|
|
721
|
-
fakes (introspection-
|
|
738
|
+
fakes (`@introspection-ai/eval-simulate`):
|
|
722
739
|
one fake per provider under `fakes/api/<id>/`, its manifest naming the host
|
|
723
740
|
above, and a scenario's world holding the pages each query finds. Parallel
|
|
724
741
|
and Perplexity generate their SDKs from OpenAPI documents the trim could
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@introspection-ai/recipes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0",
|
|
4
4
|
"description": "The open format for vertical agents, built on Pi.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
"types": "./dist/api/mcp.d.ts",
|
|
50
50
|
"import": "./dist/api/mcp.js"
|
|
51
51
|
},
|
|
52
|
+
"./api-bindings": {
|
|
53
|
+
"types": "./dist/api/api-bindings.d.ts",
|
|
54
|
+
"import": "./dist/api/api-bindings.js"
|
|
55
|
+
},
|
|
52
56
|
"./pi-extension": {
|
|
53
57
|
"types": "./dist/pi-extension.d.ts",
|
|
54
58
|
"import": "./dist/pi-extension.js"
|
|
@@ -89,6 +93,10 @@
|
|
|
89
93
|
"types": "./dist/search/index.d.ts",
|
|
90
94
|
"import": "./dist/search/index.js"
|
|
91
95
|
},
|
|
96
|
+
"./issues": {
|
|
97
|
+
"types": "./dist/issues/index.d.ts",
|
|
98
|
+
"import": "./dist/issues/index.js"
|
|
99
|
+
},
|
|
92
100
|
"./test-utils": {
|
|
93
101
|
"types": "./dist/test-utils.d.ts",
|
|
94
102
|
"import": "./dist/test-utils.js"
|
|
@@ -108,6 +116,7 @@
|
|
|
108
116
|
]
|
|
109
117
|
},
|
|
110
118
|
"dependencies": {
|
|
119
|
+
"@earendil-works/pi-mcp": ">=1.1.0 <2.0.0",
|
|
111
120
|
"@introspection-sdk/introspection-pi": "^0.43.0",
|
|
112
121
|
"@opentelemetry/api": "^1.9.1",
|
|
113
122
|
"ajv": "^8.20.0",
|
|
@@ -119,14 +128,16 @@
|
|
|
119
128
|
"optionalDependencies": {
|
|
120
129
|
"@introspection-ai/recipe-channel-slack": ">=0.6.0",
|
|
121
130
|
"@introspection-ai/recipe-documents-docx": ">=0.3.0",
|
|
131
|
+
"@introspection-ai/recipe-documents-html": ">=0.1.0",
|
|
122
132
|
"@introspection-ai/recipe-documents-pdf": ">=0.2.0",
|
|
133
|
+
"@introspection-ai/recipe-issues": ">=0.1.0",
|
|
123
134
|
"@introspection-ai/recipe-productivity-google": ">=0.1.0",
|
|
124
135
|
"@introspection-ai/recipe-productivity-microsoft": ">=0.1.0",
|
|
125
136
|
"@introspection-ai/recipe-search": ">=0.1.0",
|
|
126
|
-
"@introspection-ai/mcp-client-linux-x64": "0.
|
|
127
|
-
"@introspection-ai/mcp-client-linux-arm64": "0.
|
|
128
|
-
"@introspection-ai/mcp-client-darwin-arm64": "0.
|
|
129
|
-
"@introspection-ai/mcp-client-darwin-x64": "0.
|
|
137
|
+
"@introspection-ai/mcp-client-linux-x64": "0.52.0",
|
|
138
|
+
"@introspection-ai/mcp-client-linux-arm64": "0.52.0",
|
|
139
|
+
"@introspection-ai/mcp-client-darwin-arm64": "0.52.0",
|
|
140
|
+
"@introspection-ai/mcp-client-darwin-x64": "0.52.0"
|
|
130
141
|
},
|
|
131
142
|
"peerDependencies": {
|
|
132
143
|
"@earendil-works/pi-agent-core": ">=1.1.0 <2.0.0",
|
|
@@ -136,11 +147,14 @@
|
|
|
136
147
|
"typebox": "*"
|
|
137
148
|
},
|
|
138
149
|
"devDependencies": {
|
|
139
|
-
"@earendil-works/pi-agent-core": "1.
|
|
140
|
-
"@earendil-works/pi-ai": "1.
|
|
141
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
142
|
-
"@earendil-works/pi-tui": "1.
|
|
150
|
+
"@earendil-works/pi-agent-core": "1.5.0",
|
|
151
|
+
"@earendil-works/pi-ai": "1.5.0",
|
|
152
|
+
"@earendil-works/pi-coding-agent": "1.5.0",
|
|
153
|
+
"@earendil-works/pi-tui": "1.5.0",
|
|
143
154
|
"@eslint/js": "9.39.5",
|
|
155
|
+
"@pollyjs/adapter-fetch": "^6.0.7",
|
|
156
|
+
"@pollyjs/core": "^6.0.6",
|
|
157
|
+
"@pollyjs/persister-fs": "^6.0.6",
|
|
144
158
|
"@types/node": "^26.1.2",
|
|
145
159
|
"@types/semver": "^7.8.0",
|
|
146
160
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
@@ -150,6 +164,7 @@
|
|
|
150
164
|
"eslint-plugin-only-warn": "1.2.1",
|
|
151
165
|
"knip": "6.44.0",
|
|
152
166
|
"prettier": "3.9.10",
|
|
167
|
+
"ts-json-schema-generator": "^2.9.0",
|
|
153
168
|
"typebox": "^1.0.56",
|
|
154
169
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
155
170
|
"typescript-eslint": "8.72.1",
|
|
@@ -164,11 +179,14 @@
|
|
|
164
179
|
"typecheck": "pnpm manifest && tsc --noEmit && tsc --noEmit -p tsconfig.test.json && pnpm --filter './packages/**' --filter './examples' typecheck",
|
|
165
180
|
"lint": "pnpm manifest && eslint . --max-warnings 0",
|
|
166
181
|
"manifest": "node scripts/write-manifest.mjs",
|
|
182
|
+
"schemas": "node scripts/generate-tool-schemas.mjs",
|
|
183
|
+
"schemas:check": "node scripts/generate-tool-schemas.mjs --check",
|
|
167
184
|
"format": "prettier --write \"{src,test,packages,examples}/**/*.{ts,mjs,md}\" \"*.{ts,mjs}\"",
|
|
168
185
|
"format:check": "prettier --check \"{src,test,packages,examples}/**/*.{ts,mjs,md}\" \"*.{ts,mjs}\"",
|
|
169
186
|
"knip": "pnpm manifest && knip",
|
|
170
187
|
"test": "pnpm build:ts && cargo test -p pi-mcp-client -p introspection-recipe-check && cargo build -p pi-mcp-client && MCP_CLIENT_BIN=target/debug/mcp-client node scripts/package-mcp-client.mjs && vitest run && pnpm --filter './examples' test",
|
|
171
188
|
"pack:check": "pnpm pack --dry-run --json | node scripts/check-npm-pack.mjs && pnpm --filter './packages/**' pack:check",
|
|
172
|
-
"clean": "rm -rf dist .turbo node_modules target vendor/mcp-client"
|
|
189
|
+
"clean": "rm -rf dist .turbo node_modules target vendor/mcp-client",
|
|
190
|
+
"report:tool-modes": "node scripts/tool-modes-report.mjs && prettier --write test/recordings/tool-modes/report.md"
|
|
173
191
|
}
|
|
174
192
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: documents
|
|
3
|
-
description: How to read Word and
|
|
3
|
+
description: How to read Word, PDF and HTML files, check an HTML page's charts, and mark up Word files with the documents tool. Load it before opening, editing, commenting on or responding to any document.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Documents
|
|
@@ -20,6 +20,7 @@ Always `read` first, every part: pass `offset` from the previous part until it e
|
|
|
20
20
|
| Comment without changing text, or reply on a thread | `comment`: `{quote, text}`, or `{thread, text}` |
|
|
21
21
|
| Answer markup already there | `respond`: accept or reject by change number, reply on a thread, or counter with your own change |
|
|
22
22
|
| See a PDF page as an image (a scan, a signature, a chart) | `render`, then open the image it returns |
|
|
23
|
+
| Check that each chart on an HTML page makes sense | `render` the page, then open each chart image it returns; `pages: "2"` renders chart 2 alone |
|
|
23
24
|
|
|
24
25
|
Every change carries its `rationale`, which becomes a margin comment.
|
|
25
26
|
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
getActiveLogger,
|
|
4
|
-
logInfo,
|
|
5
|
-
logWarn
|
|
6
|
-
} from "./chunk-DU4SDPEV.js";
|
|
7
2
|
import {
|
|
8
3
|
persistPreparedEphemeralServer,
|
|
9
4
|
prepareEphemeralServerTarget,
|
|
@@ -23,6 +18,11 @@ import {
|
|
|
23
18
|
import {
|
|
24
19
|
consumeOutputFormat
|
|
25
20
|
} from "./chunk-MEQXX43K.js";
|
|
21
|
+
import {
|
|
22
|
+
getActiveLogger,
|
|
23
|
+
logInfo,
|
|
24
|
+
logWarn
|
|
25
|
+
} from "./chunk-DU4SDPEV.js";
|
|
26
26
|
import {
|
|
27
27
|
isOAuthFlowError,
|
|
28
28
|
resolveOAuthTimeoutFromEnv,
|
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
childEnvWithoutVaultSecrets
|
|
36
36
|
} from "./chunk-V42T3QNK.js";
|
|
37
|
-
import "./chunk-O3RTM5HD.js";
|
|
38
37
|
import "./chunk-CXST5CVH.js";
|
|
39
38
|
import "./chunk-7U5NSQ5T.js";
|
|
40
39
|
import "./chunk-3LENTPGE.js";
|
|
@@ -42,6 +41,7 @@ import "./chunk-JEHI2YU4.js";
|
|
|
42
41
|
import "./chunk-IWCVZ46B.js";
|
|
43
42
|
import "./chunk-T4MQCFIK.js";
|
|
44
43
|
import "./chunk-BHXCAVFP.js";
|
|
44
|
+
import "./chunk-O3RTM5HD.js";
|
|
45
45
|
import "./chunk-MHUMLEBO.js";
|
|
46
46
|
import "./chunk-IRSL7JRH.js";
|
|
47
47
|
import {
|
|
@@ -2,22 +2,6 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
dumpActiveHandles
|
|
4
4
|
} from "./chunk-N6YUOYDS.js";
|
|
5
|
-
import {
|
|
6
|
-
CALL_HELP_ARGUMENT_LINES,
|
|
7
|
-
CALL_HELP_EXAMPLE_LINES,
|
|
8
|
-
CALL_HELP_RUNTIME_FLAG_LINES,
|
|
9
|
-
buildUnknownCallFlagMessage,
|
|
10
|
-
buildUnvalidatedCallFlagMessage,
|
|
11
|
-
parseCallArguments
|
|
12
|
-
} from "./chunk-JTPTAO4M.js";
|
|
13
|
-
import {
|
|
14
|
-
CliUsageError
|
|
15
|
-
} from "./chunk-H5PBSJP3.js";
|
|
16
|
-
import {
|
|
17
|
-
printCallOutput,
|
|
18
|
-
tailLogIfRequested
|
|
19
|
-
} from "./chunk-RUF27IUF.js";
|
|
20
|
-
import "./chunk-DU4SDPEV.js";
|
|
21
5
|
import {
|
|
22
6
|
loadToolMetadata
|
|
23
7
|
} from "./chunk-3P3KGT4H.js";
|
|
@@ -32,6 +16,17 @@ import {
|
|
|
32
16
|
redText,
|
|
33
17
|
yellowText
|
|
34
18
|
} from "./chunk-IRARVOUM.js";
|
|
19
|
+
import {
|
|
20
|
+
CALL_HELP_ARGUMENT_LINES,
|
|
21
|
+
CALL_HELP_EXAMPLE_LINES,
|
|
22
|
+
CALL_HELP_RUNTIME_FLAG_LINES,
|
|
23
|
+
buildUnknownCallFlagMessage,
|
|
24
|
+
buildUnvalidatedCallFlagMessage,
|
|
25
|
+
parseCallArguments
|
|
26
|
+
} from "./chunk-JTPTAO4M.js";
|
|
27
|
+
import {
|
|
28
|
+
CliUsageError
|
|
29
|
+
} from "./chunk-H5PBSJP3.js";
|
|
35
30
|
import {
|
|
36
31
|
resolveServerCallTimeout,
|
|
37
32
|
withTimeout
|
|
@@ -52,10 +47,14 @@ import {
|
|
|
52
47
|
normalizeHttpUrlCandidate
|
|
53
48
|
} from "./chunk-US63Y6XE.js";
|
|
54
49
|
import "./chunk-MEQXX43K.js";
|
|
50
|
+
import {
|
|
51
|
+
printCallOutput,
|
|
52
|
+
tailLogIfRequested
|
|
53
|
+
} from "./chunk-RUF27IUF.js";
|
|
54
|
+
import "./chunk-DU4SDPEV.js";
|
|
55
55
|
import {
|
|
56
56
|
wrapCallResult
|
|
57
57
|
} from "./chunk-3SXP4S2A.js";
|
|
58
|
-
import "./chunk-O3RTM5HD.js";
|
|
59
58
|
import "./chunk-6O42UGLI.js";
|
|
60
59
|
import "./chunk-CXST5CVH.js";
|
|
61
60
|
import "./chunk-7U5NSQ5T.js";
|
|
@@ -64,6 +63,7 @@ import "./chunk-JEHI2YU4.js";
|
|
|
64
63
|
import "./chunk-IWCVZ46B.js";
|
|
65
64
|
import "./chunk-T4MQCFIK.js";
|
|
66
65
|
import "./chunk-BHXCAVFP.js";
|
|
66
|
+
import "./chunk-O3RTM5HD.js";
|
|
67
67
|
import "./chunk-MHUMLEBO.js";
|
|
68
68
|
import {
|
|
69
69
|
analyzeConnectionError
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
RecordTransport,
|
|
4
|
+
resolveRecordingPath
|
|
5
|
+
} from "./chunk-2AKSS7WR.js";
|
|
2
6
|
import {
|
|
3
7
|
stableJsonStringify
|
|
4
8
|
} from "./chunk-6P3KAQ5N.js";
|
|
@@ -7,32 +11,6 @@ import {
|
|
|
7
11
|
createNonInteractiveElicitationResponder,
|
|
8
12
|
registerElicitationHandler
|
|
9
13
|
} from "./chunk-F2X4Y2TQ.js";
|
|
10
|
-
import {
|
|
11
|
-
RecordTransport,
|
|
12
|
-
resolveRecordingPath
|
|
13
|
-
} from "./chunk-2AKSS7WR.js";
|
|
14
|
-
import {
|
|
15
|
-
OAuthTimeoutError,
|
|
16
|
-
connectWithAuth,
|
|
17
|
-
createOAuthSession,
|
|
18
|
-
isOAuthFlowError,
|
|
19
|
-
isPostAuthConnectError,
|
|
20
|
-
isUnauthorizedError,
|
|
21
|
-
maybeEnableOAuth,
|
|
22
|
-
resolveOAuthTimeoutFromEnv
|
|
23
|
-
} from "./chunk-2YV72LUA.js";
|
|
24
|
-
import {
|
|
25
|
-
readCachedAccessToken
|
|
26
|
-
} from "./chunk-THRMUZZD.js";
|
|
27
|
-
import {
|
|
28
|
-
VaultEncryptionError,
|
|
29
|
-
childEnvWithoutVaultSecrets,
|
|
30
|
-
withRuntimeEnvironment
|
|
31
|
-
} from "./chunk-V42T3QNK.js";
|
|
32
|
-
import {
|
|
33
|
-
createPrefixedConsoleLogger,
|
|
34
|
-
resolveLogLevelFromEnv
|
|
35
|
-
} from "./chunk-O3RTM5HD.js";
|
|
36
14
|
import {
|
|
37
15
|
STDIO_TRACE_ENABLED,
|
|
38
16
|
flushStdioLogs,
|
|
@@ -59,6 +37,24 @@ import {
|
|
|
59
37
|
resolveCommandArguments,
|
|
60
38
|
rewriteChromeDevtoolsArgsForRelay
|
|
61
39
|
} from "./chunk-6O42UGLI.js";
|
|
40
|
+
import {
|
|
41
|
+
OAuthTimeoutError,
|
|
42
|
+
connectWithAuth,
|
|
43
|
+
createOAuthSession,
|
|
44
|
+
isOAuthFlowError,
|
|
45
|
+
isPostAuthConnectError,
|
|
46
|
+
isUnauthorizedError,
|
|
47
|
+
maybeEnableOAuth,
|
|
48
|
+
resolveOAuthTimeoutFromEnv
|
|
49
|
+
} from "./chunk-2YV72LUA.js";
|
|
50
|
+
import {
|
|
51
|
+
readCachedAccessToken
|
|
52
|
+
} from "./chunk-THRMUZZD.js";
|
|
53
|
+
import {
|
|
54
|
+
VaultEncryptionError,
|
|
55
|
+
childEnvWithoutVaultSecrets,
|
|
56
|
+
withRuntimeEnvironment
|
|
57
|
+
} from "./chunk-V42T3QNK.js";
|
|
62
58
|
import {
|
|
63
59
|
loadServerDefinitions,
|
|
64
60
|
normalizeServerEntry,
|
|
@@ -76,6 +72,10 @@ import {
|
|
|
76
72
|
import {
|
|
77
73
|
resolveEnvPlaceholders
|
|
78
74
|
} from "./chunk-BHXCAVFP.js";
|
|
75
|
+
import {
|
|
76
|
+
createPrefixedConsoleLogger,
|
|
77
|
+
resolveLogLevelFromEnv
|
|
78
|
+
} from "./chunk-O3RTM5HD.js";
|
|
79
79
|
import {
|
|
80
80
|
analyzeConnectionError
|
|
81
81
|
} from "./chunk-UVRJ3AAD.js";
|