@ampcode/plugin 0.0.0-20260819001142-g296cfc0 → 0.0.0-20260820001044-g4608ace

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 +9 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1054,6 +1054,15 @@ declare module '@ampcode/plugin' {
1054
1054
  /** Agent currently used by this thread, suitable for creating related threads. */
1055
1055
  agent(): Promise<Agent>
1056
1056
 
1057
+ /**
1058
+ * ID of this thread's direct parent thread, or `null` when it has none.
1059
+ * The parent is recorded when a thread is created with a `parentThreadID`
1060
+ * (for example a subagent or child thread) and can become `null` later if
1061
+ * the parent thread is deleted. Only supported for the plugin's current
1062
+ * thread.
1063
+ */
1064
+ parentThreadID(): Promise<ThreadID | null>
1065
+
1057
1066
  /** Current thread title stream, or `null` when no title has been set yet. */
1058
1067
  readonly title: Observable<string | null> & { get(): Promise<string | null> }
1059
1068
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampcode/plugin",
3
- "version": "0.0.0-20260819001142-g296cfc0",
3
+ "version": "0.0.0-20260820001044-g4608ace",
4
4
  "description": "Amp Plugin API",
5
5
  "homepage": "https://ampcode.com/manual/plugin-api",
6
6
  "author": {