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
59 changes: 3 additions & 56 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- main
- cli-prerelease
- sdk
- workflow-types
- sdk-py
- brand
default: 'all'
Expand Down Expand Up @@ -687,7 +686,6 @@ jobs:
(cd packages/config && npm pack --ignore-scripts --pack-destination "$TARBALLS")
(cd packages/github-primitive && npm pack --ignore-scripts --pack-destination "$TARBALLS")
(cd packages/slack-primitive && npm pack --ignore-scripts --pack-destination "$TARBALLS")
(cd packages/workflow-types && npm pack --ignore-scripts --pack-destination "$TARBALLS")
ls -lh "$TARBALLS"

- name: Install tarballs into scratch project
Expand All @@ -705,11 +703,10 @@ jobs:
CONFIG_TGZ=$(ls "$TARBALLS"/agent-relay-config-*.tgz | head -n1)
GITHUB_PRIMITIVE_TGZ=$(ls "$TARBALLS"/agent-relay-github-primitive-*.tgz | head -n1)
SLACK_PRIMITIVE_TGZ=$(ls "$TARBALLS"/agent-relay-slack-primitive-*.tgz | head -n1)
WORKFLOW_TYPES_TGZ=$(ls "$TARBALLS"/agent-relay-workflow-types-*.tgz | head -n1)
echo "Installing $SDK_TGZ + $BROKER_TGZ + $CLOUD_TGZ + $CONFIG_TGZ + $GITHUB_PRIMITIVE_TGZ + $SLACK_PRIMITIVE_TGZ + $WORKFLOW_TYPES_TGZ"
echo "Installing $SDK_TGZ + $BROKER_TGZ + $CLOUD_TGZ + $CONFIG_TGZ + $GITHUB_PRIMITIVE_TGZ + $SLACK_PRIMITIVE_TGZ"
npm install --ignore-scripts --no-audit --no-fund \
"$SDK_TGZ" "$BROKER_TGZ" "$CLOUD_TGZ" "$CONFIG_TGZ" \
"$GITHUB_PRIMITIVE_TGZ" "$SLACK_PRIMITIVE_TGZ" "$WORKFLOW_TYPES_TGZ"
"$GITHUB_PRIMITIVE_TGZ" "$SLACK_PRIMITIVE_TGZ"
ls node_modules/@agent-relay/

- name: Resolver smoke — getBrokerBinaryPath()
Expand Down Expand Up @@ -763,13 +760,12 @@ jobs:
CONFIG_TGZ=$(ls "$TARBALLS"/agent-relay-config-*.tgz | head -n1)
GITHUB_PRIMITIVE_TGZ=$(ls "$TARBALLS"/agent-relay-github-primitive-*.tgz | head -n1)
SLACK_PRIMITIVE_TGZ=$(ls "$TARBALLS"/agent-relay-slack-primitive-*.tgz | head -n1)
WORKFLOW_TYPES_TGZ=$(ls "$TARBALLS"/agent-relay-workflow-types-*.tgz | head -n1)
# Install SDK + every internal required dep whose bumped version
# isn't on the registry yet, but skip the broker optional deps
# entirely. The resolver should return null and spawn() should
# throw the clear error.
npm install --ignore-scripts --no-audit --no-fund --no-optional \
"$SDK_TGZ" "$CLOUD_TGZ" "$CONFIG_TGZ" "$GITHUB_PRIMITIVE_TGZ" "$SLACK_PRIMITIVE_TGZ" "$WORKFLOW_TYPES_TGZ"
"$SDK_TGZ" "$CLOUD_TGZ" "$CONFIG_TGZ" "$GITHUB_PRIMITIVE_TGZ" "$SLACK_PRIMITIVE_TGZ"
node --input-type=module -e "
import { AgentRelayClient } from '@agent-relay/sdk';
try {
Expand Down Expand Up @@ -808,7 +804,6 @@ jobs:
- events
- github-primitive
- slack-primitive
- workflow-types

steps:
- name: Checkout code
Expand Down Expand Up @@ -847,52 +842,6 @@ jobs:
fi
npm publish --access public --provenance --tag ${{ github.event.inputs.tag }} --ignore-scripts

# Publish workflow-types only. This is intentionally narrow: it repairs
# already-published SDK versions whose exact-version workflow-types package
# was missing, without attempting to republish @agent-relay/sdk.
publish-workflow-types-only:
name: Publish Workflow Types to NPM
needs: build
runs-on: ubuntu-latest
if: github.event.inputs.package == 'workflow-types'

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.14.0'
registry-url: 'https://registry.npmjs.org'

- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build-output
path: .

- name: Update npm for OIDC support
run: npm install -g npm@latest

- name: Dry run check
if: github.event.inputs.dry_run == 'true'
working-directory: packages/workflow-types
run: npm publish --dry-run --access public --tag ${{ github.event.inputs.tag }} --ignore-scripts

- name: Publish Workflow Types to NPM
if: github.event.inputs.dry_run != 'true'
working-directory: packages/workflow-types
run: |
set -euo pipefail
PKG_NAME=$(node -p "require('./package.json').name")
PKG_VERSION=$(node -p "require('./package.json').version")
if npm view "${PKG_NAME}@${PKG_VERSION}" version >/dev/null 2>&1; then
echo "${PKG_NAME}@${PKG_VERSION} already exists on npm; skipping publish"
exit 0
fi
npm publish --access public --provenance --tag ${{ github.event.inputs.tag }} --ignore-scripts

# Publish the per-platform broker packages first. @agent-relay/sdk declares
# these as exact-version optionalDependencies, so they must exist on the
# registry at the matching version before the SDK is published — otherwise
Expand Down Expand Up @@ -2305,7 +2254,6 @@ jobs:
verify-acp-macos,
smoke-broker-packages,
publish-sdk-internal-deps,
publish-workflow-types-only,
publish-broker-packages,
publish-packages,
publish-brand-only,
Expand Down Expand Up @@ -2351,7 +2299,6 @@ jobs:
echo "| Verify relay-acp (macOS) | ${{ needs.verify-acp-macos.result == 'success' && '✅' || (needs.verify-acp-macos.result == 'skipped' && '⏭️' || '❌') }} ${{ needs.verify-acp-macos.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| Smoke Broker Packages | ${{ needs.smoke-broker-packages.result == 'success' && '✅' || (needs.smoke-broker-packages.result == 'skipped' && '⏭️' || '❌') }} ${{ needs.smoke-broker-packages.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| Publish SDK Internal Deps | ${{ needs.publish-sdk-internal-deps.result == 'success' && '✅' || (needs.publish-sdk-internal-deps.result == 'skipped' && '⏭️' || '❌') }} ${{ needs.publish-sdk-internal-deps.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| Publish Workflow Types Only | ${{ needs.publish-workflow-types-only.result == 'success' && '✅' || (needs.publish-workflow-types-only.result == 'skipped' && '⏭️' || '❌') }} ${{ needs.publish-workflow-types-only.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| Publish Broker Packages | ${{ needs.publish-broker-packages.result == 'success' && '✅' || (needs.publish-broker-packages.result == 'skipped' && '⏭️' || '❌') }} ${{ needs.publish-broker-packages.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| Publish Packages | ${{ needs.publish-packages.result == 'success' && '✅' || (needs.publish-packages.result == 'skipped' && '⏭️' || '❌') }} ${{ needs.publish-packages.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| Publish Brand | ${{ needs.publish-brand-only.result == 'success' && '✅' || (needs.publish-brand-only.result == 'skipped' && '⏭️' || '❌') }} ${{ needs.publish-brand-only.result }} |" >> $GITHUB_STEP_SUMMARY
Expand Down
82 changes: 0 additions & 82 deletions .github/workflows/relay-cleanroom-hardening.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/workflow-reliability.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/workflow-validation.yml

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"web"
],
"scripts": {
"typecheck": "npm run build:config && npm --prefix packages/workflow-types run build && npm --prefix packages/github-primitive run build && npm --prefix packages/slack-primitive run build && npm --prefix packages/cloud run build && npm run build:utils && npm run build:trajectory && npm run build:policy && npm run build:sdk && npm run build:hooks && npm run build:memory && npm run build:telemetry && cd packages/cli && npx tsc --noEmit",
"typecheck": "npm run build:config && npm --prefix packages/github-primitive run build && npm --prefix packages/slack-primitive run build && npm --prefix packages/cloud run build && npm run build:utils && npm run build:trajectory && npm run build:policy && npm run build:sdk && npm run build:hooks && npm run build:memory && npm run build:telemetry && cd packages/cli && npx tsc --noEmit",
"build": "npm run clean && npm run build:rust && turbo run build --filter='./packages/*'",
"build:packages": "turbo run build --filter='./packages/*'",
"build:packages:watch": "turbo run build --filter='./packages/*' --watch",
Expand All @@ -34,8 +34,7 @@
"build:rust": "if command -v ~/.cargo/bin/cargo >/dev/null 2>&1; then ~/.cargo/bin/cargo build --release --bin agent-relay-broker && mkdir -p packages/sdk/bin && cp target/release/agent-relay-broker packages/sdk/bin/agent-relay-broker.new && mv -f packages/sdk/bin/agent-relay-broker.new packages/sdk/bin/agent-relay-broker && echo '✓ broker binary (agent-relay-broker) built and copied to packages/sdk/bin/'; else echo '⚠ Rust not installed, skipping local broker build; installs use platform optional dependencies'; fi",
"start": "node packages/cli/dist/cli/index.js",
"pretest": "npm run build",
"test": "vitest run && npm run test:sdk:vitest",
"test:sdk:vitest": "cd packages/sdk && vitest run --config vitest.config.ts src/workflows/__tests__/run-script.test.ts",
"test": "vitest run",
"pretest:coverage": "npm run build",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
Expand Down
Loading
Loading