@ampcode/plugin 0.0.0-20261003001754-g8b95194 → 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.
Files changed (2) hide show
  1. package/index.d.ts +6 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -568,7 +568,7 @@ declare module '@ampcode/plugin' {
568
568
  * client as the executor. Use `orb` for Amp's cloud sandbox or a runner target
569
569
  * for a live Amp runner process such as `amp --no-tui`.
570
570
  */
571
- executor?: AgentThreadExecutor
571
+ executor?: AgentThreadExecutor | 'external'
572
572
  }
573
573
 
574
574
  /** Thread handle returned by {@link Agent.createThread}. */
@@ -1203,6 +1203,11 @@ declare module '@ampcode/plugin' {
1203
1203
  /** Agent activity state stream for this thread. */
1204
1204
  readonly state: Observable<ThreadState> & { get(): Promise<ThreadState> }
1205
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
+
1206
1211
  /**
1207
1212
  * Wait for the current or next agent turn to finish and resolve with the
1208
1213
  * assistant's reply.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20261003001754-g8b95194",
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": {