Skip to content

Commit e290d1b

Browse files
Rename Dynamic Workflows to Agent Orchestrations
Renames the authoring surface from "workflow" to "orchestration" to match the new product name "agent orchestrations": - defineWorkflow -> defineOrchestration; WorkflowContext/Definition/Handle/ Meta/Limits -> Orchestration*; SessionWorkflowApi -> SessionOrchestrationApi (session.orchestration); WorkflowRunError -> OrchestrationRunError. - joinSession({ workflows }) -> joinSession({ orchestrations }). - workflow.ts -> orchestration.ts (and its test); generated/rpc.ts regenerated from the renamed runtime contract (workflow.* -> orchestration.*). The context primitives (step, agent, parallel, pipeline, phase, log, run) keep their names. Companion runtime rename lands in github/copilot-agent-runtime#12953.
1 parent 45b574b commit e290d1b

9 files changed

Lines changed: 1087 additions & 1072 deletions

File tree

nodejs/src/client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ import type {
8585
TypedSessionLifecycleHandler,
8686
} from "./types.js";
8787
import { defaultJoinSessionPermissionHandler } from "./types.js";
88-
import type { WorkflowHandle } from "./workflow.js";
88+
import type { OrchestrationHandle } from "./orchestration.js";
8989

9090
/**
9191
* Minimum protocol version this SDK can communicate with.
@@ -1671,15 +1671,15 @@ export class CopilotClient {
16711671
async resumeSessionForExtension(
16721672
sessionId: string,
16731673
config: ResumeSessionConfig,
1674-
workflows?: WorkflowHandle[]
1674+
orchestrations?: OrchestrationHandle[]
16751675
): Promise<CopilotSession> {
1676-
return this.resumeSessionInternal(sessionId, config, workflows);
1676+
return this.resumeSessionInternal(sessionId, config, orchestrations);
16771677
}
16781678

16791679
private async resumeSessionInternal(
16801680
sessionId: string,
16811681
config: ResumeSessionConfig,
1682-
workflows?: WorkflowHandle[]
1682+
orchestrations?: OrchestrationHandle[]
16831683
): Promise<CopilotSession> {
16841684
if (!this.connection) {
16851685
await this.start();
@@ -1697,7 +1697,7 @@ export class CopilotClient {
16971697
session.registerTools(config.tools);
16981698
session.registerCanvases(config.canvases);
16991699
session.registerCommands(config.commands);
1700-
session.registerWorkflows(workflows);
1700+
session.registerOrchestrations(orchestrations);
17011701
const {
17021702
wireProvider: bearerWireProvider,
17031703
wireProviders: bearerWireProviders,
@@ -1769,7 +1769,7 @@ export class CopilotClient {
17691769
})),
17701770
toolSearch: config.toolSearch,
17711771
canvases: config.canvases?.map((canvas) => canvas.declaration),
1772-
workflows: workflows?.map((workflow) => workflow.meta),
1772+
orchestrations: orchestrations?.map((orchestration) => orchestration.meta),
17731773
requestCanvasRenderer: config.requestCanvasRenderer,
17741774
requestExtensions: config.requestExtensions,
17751775
extensionSdkPath: config.extensionSdkPath,

nodejs/src/extension.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
type PermissionHandler,
1010
type ResumeSessionConfig,
1111
} from "./types.js";
12-
import type { WorkflowHandle } from "./workflow.js";
12+
import type { OrchestrationHandle } from "./orchestration.js";
1313

1414
export {
1515
Canvas,
@@ -28,28 +28,28 @@ export type JoinSessionConfig = Omit<
2828
> & {
2929
onPermissionRequest?: PermissionHandler;
3030
/**
31-
* Workflow handles to register when the extension joins the session.
31+
* Orchestration handles to register when the extension joins the session.
3232
*
33-
* @experimental Part of the experimental Dynamic Workflows surface and may
33+
* @experimental Part of the experimental Agent Orchestrations surface and may
3434
* change or be removed in future SDK or CLI releases.
3535
*/
36-
workflows?: WorkflowHandle[];
36+
orchestrations?: OrchestrationHandle[];
3737
};
3838

39-
export type { ExtensionInfo, WorkflowLimits, WorkflowMeta } from "./types.js";
39+
export type { ExtensionInfo, OrchestrationLimits, OrchestrationMeta } from "./types.js";
4040
export {
41-
defineWorkflow,
42-
WorkflowRunError,
41+
defineOrchestration,
42+
OrchestrationRunError,
4343
type RunOptions,
44-
type SessionWorkflowApi,
45-
type WorkflowAgentOptions,
46-
type WorkflowContext,
47-
type WorkflowDefinition,
48-
type WorkflowHandle,
49-
type WorkflowJsonSchema,
50-
type WorkflowPipelineStage,
51-
type WorkflowStepOptions,
52-
} from "./workflow.js";
44+
type SessionOrchestrationApi,
45+
type OrchestrationAgentOptions,
46+
type OrchestrationContext,
47+
type OrchestrationDefinition,
48+
type OrchestrationHandle,
49+
type OrchestrationJsonSchema,
50+
type OrchestrationPipelineStage,
51+
type OrchestrationStepOptions,
52+
} from "./orchestration.js";
5353

5454
/**
5555
* Joins the current foreground session.
@@ -80,7 +80,7 @@ export async function joinSession(config: JoinSessionConfig = {}): Promise<Copil
8080
// already been forked by the host with the SDK the host chose.
8181
const {
8282
extensionSdkPath: _stripped,
83-
workflows,
83+
orchestrations,
8484
...rest
8585
} = config as JoinSessionConfig & {
8686
extensionSdkPath?: string;
@@ -94,6 +94,6 @@ export async function joinSession(config: JoinSessionConfig = {}): Promise<Copil
9494
onPermissionRequest: config.onPermissionRequest ?? defaultJoinSessionPermissionHandler,
9595
suppressResumeEvent: config.suppressResumeEvent ?? true,
9696
},
97-
workflows
97+
orchestrations
9898
);
9999
}

0 commit comments

Comments
 (0)