@ampcode/plugin 0.0.0-20261010002032-ge25e839 → 0.0.0-20261011002158-g77c1257
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 +22 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -532,6 +532,17 @@ declare module '@ampcode/plugin' {
|
|
|
532
532
|
* for a live Amp runner process such as `amp --no-tui`.
|
|
533
533
|
*/
|
|
534
534
|
executor?: AgentThreadExecutor
|
|
535
|
+
/**
|
|
536
|
+
* Amp project for the new thread, as accepted by `amp --project`: a project ID,
|
|
537
|
+
* `namespace/name`, `owner/repo`, or repository URL. It must match exactly one project you
|
|
538
|
+
* can access. The thread uses that project's repository, secrets, Orb settings, and
|
|
539
|
+
* workspace, so multiplayer and workspace visibility work for workspace projects.
|
|
540
|
+
* Requires executor `orb`. When omitted, Amp matches the Git remotes of the working
|
|
541
|
+
* directory, which in an Orb is its repository checkout.
|
|
542
|
+
* Don't take it from untrusted input such as a webhook payload: it can select any project
|
|
543
|
+
* you can access, along with that project's secrets.
|
|
544
|
+
*/
|
|
545
|
+
project?: string
|
|
535
546
|
}
|
|
536
547
|
|
|
537
548
|
export interface CreateAgentThreadOptions {
|
|
@@ -569,6 +580,17 @@ declare module '@ampcode/plugin' {
|
|
|
569
580
|
* for a live Amp runner process such as `amp --no-tui`.
|
|
570
581
|
*/
|
|
571
582
|
executor?: AgentThreadExecutor | 'external'
|
|
583
|
+
/**
|
|
584
|
+
* Amp project for the new thread, as accepted by `amp --project`: a project ID,
|
|
585
|
+
* `namespace/name`, `owner/repo`, or repository URL. It must match exactly one project you
|
|
586
|
+
* can access. The thread uses that project's repository, secrets, Orb settings, and
|
|
587
|
+
* workspace, so multiplayer and workspace visibility work for workspace projects.
|
|
588
|
+
* Requires executor `orb`. When omitted, Amp matches the Git remotes of the working
|
|
589
|
+
* directory, which in an Orb is its repository checkout.
|
|
590
|
+
* Don't take it from untrusted input such as a webhook payload: it can select any project
|
|
591
|
+
* you can access, along with that project's secrets.
|
|
592
|
+
*/
|
|
593
|
+
project?: string
|
|
572
594
|
}
|
|
573
595
|
|
|
574
596
|
/** Thread handle returned by {@link Agent.createThread}. */
|