@alienplatform/testing 1.13.2 → 1.14.1-dev.e74fae6cd01b61e77a285276f264b5480977f41a

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 CHANGED
@@ -86,7 +86,7 @@ interface DeployOptions {
86
86
  The returned `Deployment` supports:
87
87
 
88
88
  - `deployment.url`
89
- - `deployment.invokeCommand(name, params)`
89
+ - `deployment.invokeCommand(name, params, { target? })` — optional `target` routes to a specific resource by id
90
90
  - `deployment.setExternalSecret(vault, key, value)`
91
91
  - `deployment.upgrade(options)` for cloud mode
92
92
  - `deployment.destroy()`
package/dist/index.d.ts CHANGED
@@ -92,9 +92,17 @@ declare class Deployment {
92
92
  private apiKey?;
93
93
  constructor(params: DeploymentInit);
94
94
  /**
95
- * Invoke a command on the deployment
95
+ * Invoke a command on the deployment.
96
+ *
97
+ * Pass `options.target` to route the command to a specific command-capable
98
+ * resource by id. This is required when more than one resource (e.g. a Worker
99
+ * and a Daemon) registers a handler under the same command name — the target
100
+ * disambiguates which one runs. When omitted, the server routes by its default
101
+ * rules.
96
102
  */
97
- invokeCommand(name: string, params: any): Promise<any>;
103
+ invokeCommand<T = unknown>(name: string, params: unknown, options?: {
104
+ target?: string;
105
+ }): Promise<T>;
98
106
  /**
99
107
  * Set an external secret using platform-native tools
100
108
  */