@ampcode/plugin 0.0.0-20261002001904-gdc609b2 → 0.0.0-20261004010057-g91b9e0f
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/index.d.ts +11 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -370,7 +370,9 @@ declare module '@ampcode/plugin' {
|
|
|
370
370
|
* Built-in agent mode this agent extends. Threads render that mode's system
|
|
371
371
|
* prompt with `instructions` appended as agent instructions, and `tools`
|
|
372
372
|
* defaults to the mode's tool list. When `model` is omitted, the agent uses
|
|
373
|
-
* the mode's preferred model and reasoning effort.
|
|
373
|
+
* the mode's preferred model and reasoning effort. The agent is a separate
|
|
374
|
+
* mode: the user's Tune Modes pins for the built-in mode do not change its
|
|
375
|
+
* model. Deprecated modes
|
|
374
376
|
* (`smart`, `deep`, `rush`) resolve to their replacement mode.
|
|
375
377
|
*/
|
|
376
378
|
extends?: BuiltinAgentMode
|
|
@@ -566,7 +568,7 @@ declare module '@ampcode/plugin' {
|
|
|
566
568
|
* client as the executor. Use `orb` for Amp's cloud sandbox or a runner target
|
|
567
569
|
* for a live Amp runner process such as `amp --no-tui`.
|
|
568
570
|
*/
|
|
569
|
-
executor?: AgentThreadExecutor
|
|
571
|
+
executor?: AgentThreadExecutor | 'external'
|
|
570
572
|
}
|
|
571
573
|
|
|
572
574
|
/** Thread handle returned by {@link Agent.createThread}. */
|
|
@@ -1201,6 +1203,11 @@ declare module '@ampcode/plugin' {
|
|
|
1201
1203
|
/** Agent activity state stream for this thread. */
|
|
1202
1204
|
readonly state: Observable<ThreadState> & { get(): Promise<ThreadState> }
|
|
1203
1205
|
|
|
1206
|
+
/** @internal Executor attachment state; null while the observer connection is unavailable. */
|
|
1207
|
+
readonly executor: {
|
|
1208
|
+
readonly connected: Observable<boolean | null> & { get(): Promise<boolean | null> }
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1204
1211
|
/**
|
|
1205
1212
|
* Wait for the current or next agent turn to finish and resolve with the
|
|
1206
1213
|
* assistant's reply.
|
|
@@ -2043,7 +2050,8 @@ declare module '@ampcode/plugin' {
|
|
|
2043
2050
|
* Built-in agent mode this agent extends. Threads render that mode's system prompt with
|
|
2044
2051
|
* the agent's `instructions.md` appended as agent instructions, and `tools` defaults to
|
|
2045
2052
|
* the mode's tool list. When `model` is omitted, the agent uses the mode's preferred
|
|
2046
|
-
* model and reasoning effort.
|
|
2053
|
+
* model and reasoning effort. The agent is a separate mode: the user's Tune Modes pins
|
|
2054
|
+
* for the built-in mode do not change its model.
|
|
2047
2055
|
*/
|
|
2048
2056
|
extends?: 'low' | 'medium' | 'high' | 'ultra'
|
|
2049
2057
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ampcode/plugin",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20261004010057-g91b9e0f",
|
|
4
4
|
"description": "Amp Plugin API",
|
|
5
5
|
"homepage": "https://ampcode.com/docs/plugin-api",
|
|
6
6
|
"author": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsgo -b",
|
|
32
|
-
"format:check": "
|
|
32
|
+
"format:check": "oxfmt --check index.d.ts",
|
|
33
33
|
"test": "echo 'No tests'",
|
|
34
34
|
"lint": "biome check --config-path=../.. index.d.ts",
|
|
35
35
|
"typecheck": "tsgo -b"
|