Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 63 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/github-primitive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"test:watch": "vitest"
},
"dependencies": {
"@agent-relay/sdk": "6.0.2"
"@agent-relay/workflow-types": "6.0.2"
},
"devDependencies": {
"@types/node": "^22.19.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/github-primitive/src/workflow-step.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { RunnerStepExecutor, WorkflowStep } from '@agent-relay/sdk/workflows';
import type { RunnerStepExecutor, WorkflowStep } from '@agent-relay/workflow-types';

import { GitHubClient } from './client.js';
import type {
Expand Down
9 changes: 8 additions & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@
"types": "./dist/broker-path.d.ts",
"import": "./dist/broker-path.js",
"default": "./dist/broker-path.js"
},
"./github": {
"types": "./dist/github.d.ts",
"import": "./dist/github.js",
"default": "./dist/github.js"
}
},
"files": [
Expand All @@ -115,7 +120,7 @@
"directory": "packages/sdk"
},
"scripts": {
"prebuild": "npm --prefix ../config run build",
"prebuild": "npm --prefix ../workflow-types run build && npm --prefix ../github-primitive run build && npm --prefix ../config run build",
"build": "npx tsc -p tsconfig.build.json",
"build:full": "tsc -p tsconfig.json && npm run bundle:binary",
"bundle:binary": "node ./scripts/bundle-agent-relay.mjs",
Expand All @@ -135,6 +140,8 @@
},
"dependencies": {
"@agent-relay/config": "6.0.2",
"@agent-relay/github-primitive": "6.0.2",
"@agent-relay/workflow-types": "6.0.2",
"@relaycast/sdk": "^1.1.0",
"@relayfile/sdk": ">=0.1.2 <1",
"@sinclair/typebox": "^0.34.48",
Expand Down
16 changes: 16 additions & 0 deletions packages/sdk/src/github.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Bundled GitHub workflow primitive.
*
* Re-exports the full surface of `@agent-relay/github-primitive` so
* workflow authors can import it from the SDK without a separate
* install:
*
* import { createGitHubStep, GitHubClient } from '@agent-relay/sdk/github';
*
* `createGitHubStep` is the one most workflow authors reach for — it
* produces an integration-type `.step(...)` config you drop straight
* into `workflow(...)`. `GitHubClient` is the underlying typed client;
* same methods, runnable outside a workflow too.
*/

export * from '@agent-relay/github-primitive';
3 changes: 2 additions & 1 deletion packages/sdk/src/workflows/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import type {
WorkflowStep,
} from './types.js';
import { JsonFileWorkflowDb } from './file-db.js';
import { WorkflowRunner, type WorkflowEventListener, type RunnerStepExecutor } from './runner.js';
import { WorkflowRunner, type WorkflowEventListener } from './runner.js';
import type { RunnerStepExecutor } from './types.js';
import { formatDryRunReport } from './dry-run-format.js';
import { createDefaultEventLogger, type LogLevel } from './default-logger.js';
import { runInCloud, type CloudRunOptions } from './cloud-runner.js';
Expand Down
3 changes: 1 addition & 2 deletions packages/sdk/src/workflows/process-backend-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
*/

import { buildCommand } from './process-spawner.js';
import type { ProcessBackend, AgentDefinition, WorkflowStep } from './types.js';
import type { RunnerStepExecutor } from './runner.js';
import type { ProcessBackend, AgentDefinition, WorkflowStep, RunnerStepExecutor } from './types.js';

function shellEscape(value: string): string {
if (value === '') return "''";
Expand Down
Loading
Loading