-
Notifications
You must be signed in to change notification settings - Fork 59
Remove personas from @agent-relay/sdk #1002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Trajectory: Remove personas from @agent-relay/sdk | ||
|
|
||
| > **Status:** ✅ Completed | ||
| > **Task:** GH-997 | ||
| > **Confidence:** 86% | ||
| > **Started:** May 27, 2026 at 05:22 AM | ||
| > **Completed:** May 27, 2026 at 05:33 AM | ||
|
|
||
| --- | ||
|
|
||
| ## Summary | ||
|
|
||
| Removed SDK persona loading, spawn, dry-run, exports, dependency, tests, and example; updated migration notes and ensured SDK builds remove stale persona dist outputs before packing. | ||
|
|
||
| **Approach:** Standard approach | ||
|
|
||
| --- | ||
|
|
||
| ## Key Decisions | ||
|
|
||
| ### Removed SDK-owned persona APIs instead of relocating them in this repo | ||
|
|
||
| - **Chose:** Removed SDK-owned persona APIs instead of relocating them in this repo | ||
| - **Reasoning:** Issue 997 asks for @agent-relay/sdk to know nothing about personas; there is already a separate packages/personas pack, while persona execution side effects should be owned by AgentWorkforce CLI or a workforce package. | ||
|
|
||
| ### Removed stale persona dist artifacts during SDK builds | ||
|
|
||
| - **Chose:** Removed stale persona dist artifacts during SDK builds | ||
| - **Reasoning:** Deleting the source and package export is not enough if an existing dist/personas.js survives a package-level build; the SDK build now deletes the persona outputs before compiling so npm pack cannot include them. | ||
|
|
||
| --- | ||
|
|
||
| ## Chapters | ||
|
|
||
| ### 1. Work | ||
|
|
||
| _Agent: default_ | ||
|
|
||
| - Removed SDK-owned persona APIs instead of relocating them in this repo: Removed SDK-owned persona APIs instead of relocating them in this repo | ||
| - Removed stale persona dist artifacts during SDK builds: Removed stale persona dist artifacts during SDK builds | ||
|
|
||
| --- | ||
|
|
||
| ## Artifacts | ||
|
|
||
| **Commits:** 6a456b7f |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| { | ||
| "id": "traj_kbxzde45cjlw", | ||
| "version": 1, | ||
| "task": { | ||
| "title": "Remove personas from @agent-relay/sdk", | ||
| "source": { | ||
| "system": "plain", | ||
| "id": "GH-997" | ||
| } | ||
| }, | ||
| "status": "completed", | ||
| "startedAt": "2026-05-27T09:22:37.342Z", | ||
| "completedAt": "2026-05-27T09:33:18.299Z", | ||
| "agents": [ | ||
| { | ||
| "name": "default", | ||
| "role": "lead", | ||
| "joinedAt": "2026-05-27T09:27:46.189Z" | ||
| } | ||
| ], | ||
| "chapters": [ | ||
| { | ||
| "id": "chap_m2xsvvdw25ze", | ||
| "title": "Work", | ||
| "agentName": "default", | ||
| "startedAt": "2026-05-27T09:27:46.189Z", | ||
| "endedAt": "2026-05-27T09:33:18.299Z", | ||
| "events": [ | ||
| { | ||
| "ts": 1779874066190, | ||
| "type": "decision", | ||
| "content": "Removed SDK-owned persona APIs instead of relocating them in this repo: Removed SDK-owned persona APIs instead of relocating them in this repo", | ||
| "raw": { | ||
| "question": "Removed SDK-owned persona APIs instead of relocating them in this repo", | ||
| "chosen": "Removed SDK-owned persona APIs instead of relocating them in this repo", | ||
| "alternatives": [], | ||
| "reasoning": "Issue 997 asks for @agent-relay/sdk to know nothing about personas; there is already a separate packages/personas pack, while persona execution side effects should be owned by AgentWorkforce CLI or a workforce package." | ||
| }, | ||
| "significance": "high" | ||
| }, | ||
| { | ||
| "ts": 1779874377461, | ||
| "type": "decision", | ||
| "content": "Removed stale persona dist artifacts during SDK builds: Removed stale persona dist artifacts during SDK builds", | ||
| "raw": { | ||
| "question": "Removed stale persona dist artifacts during SDK builds", | ||
| "chosen": "Removed stale persona dist artifacts during SDK builds", | ||
| "alternatives": [], | ||
| "reasoning": "Deleting the source and package export is not enough if an existing dist/personas.js survives a package-level build; the SDK build now deletes the persona outputs before compiling so npm pack cannot include them." | ||
| }, | ||
| "significance": "high" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "retrospective": { | ||
| "summary": "Removed SDK persona loading, spawn, dry-run, exports, dependency, tests, and example; updated migration notes and ensured SDK builds remove stale persona dist outputs before packing.", | ||
| "approach": "Standard approach", | ||
| "confidence": 0.86 | ||
| }, | ||
| "commits": ["6a456b7f"], | ||
| "filesChanged": [], | ||
| "projectId": "/Users/will/Projects/AgentWorkforce/relay", | ||
| "tags": [], | ||
| "_trace": { | ||
| "startRef": "3f2a3f9cd27b5d978e39d07302cf1c2f34ab85de", | ||
| "endRef": "3f2a3f9cd27b5d978e39d07302cf1c2f34ab85de" | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,11 +27,6 @@ | |||||
| "import": "./dist/relay.js", | ||||||
| "default": "./dist/relay.js" | ||||||
| }, | ||||||
| "./personas": { | ||||||
| "types": "./dist/personas.d.ts", | ||||||
| "import": "./dist/personas.js", | ||||||
| "default": "./dist/personas.js" | ||||||
| }, | ||||||
| "./logs": { | ||||||
| "types": "./dist/logs.d.ts", | ||||||
| "import": "./dist/logs.js", | ||||||
|
|
@@ -131,7 +126,7 @@ | |||||
| }, | ||||||
| "scripts": { | ||||||
| "prebuild": "npm --prefix ../github-primitive run build && npm --prefix ../slack-primitive run build && npm --prefix ../config run build && npm --prefix ../cloud run build", | ||||||
| "build": "npx tsc -p tsconfig.build.json", | ||||||
| "build": "node -e \"const fs=require('fs');for(const f of ['dist/personas.js','dist/personas.js.map','dist/personas.d.ts','dist/personas.d.ts.map'])fs.rmSync(f,{force:true})\" && npx tsc -p tsconfig.build.json", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of targeting and deleting only the specific stale We can simplify the command by recursively removing the
Suggested change
|
||||||
| "build:full": "tsc -p tsconfig.json && npm run bundle:binary", | ||||||
| "bundle:binary": "node ./scripts/bundle-agent-relay.mjs", | ||||||
| "check": "tsc -p tsconfig.json --noEmit", | ||||||
|
|
@@ -153,7 +148,6 @@ | |||||
| "@agent-relay/config": "7.1.1", | ||||||
| "@agent-relay/github-primitive": "7.1.1", | ||||||
| "@agent-relay/slack-primitive": "7.1.1", | ||||||
| "@agentworkforce/persona-kit": "^3.0.20", | ||||||
| "@relaycast/sdk": "^1.1.0", | ||||||
| "@relayfile/sdk": ">=0.1.2 <1", | ||||||
| "@sinclair/typebox": "^0.34.48", | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove absolute local path from committed trajectory metadata.
projectIdcurrently leaks a developer-local filesystem path (/Users/will/...). Replace it with a repo-stable identifier (or omit it) to avoid exposing local user/environment details in version control.Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents