Skip to content
Merged
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- core
- sdk
- types
- server
- relayauth
default: "all"
version:
Expand Down Expand Up @@ -91,8 +92,8 @@ jobs:
run: |
INPUT="${{ github.event.inputs.package }}"
if [ "$INPUT" = "all" ]; then
echo "list=types,core,sdk,relayauth" >> "$GITHUB_OUTPUT"
echo 'matrix=["types","core","sdk","relayauth"]' >> "$GITHUB_OUTPUT"
echo "list=types,core,sdk,server,relayauth" >> "$GITHUB_OUTPUT"
echo 'matrix=["types","core","sdk","server","relayauth"]' >> "$GITHUB_OUTPUT"
else
echo "list=$INPUT" >> "$GITHUB_OUTPUT"
echo "matrix=[\"$INPUT\"]" >> "$GITHUB_OUTPUT"
Expand Down
53 changes: 53 additions & 0 deletions .trajectories/completed/2026-03/traj_axw6w09m6mtn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"id": "traj_axw6w09m6mtn",
"version": 1,
"task": {
"title": "Write tests verifying the package exports and app factory"
},
"status": "completed",
"startedAt": "2026-03-27T19:08:20.670Z",
"agents": [
{
"name": "default",
"role": "lead",
"joinedAt": "2026-03-27T19:09:25.826Z"
}
],
"chapters": [
{
"id": "chap_v67r1nknowde",
"title": "Work",
"agentName": "default",
"startedAt": "2026-03-27T19:09:25.826Z",
"events": [
{
"ts": 1774638565827,
"type": "decision",
"content": "Added createApp() in worker.ts and re-exported it from the server index while preserving the default app singleton: Added createApp() in worker.ts and re-exported it from the server index while preserving the default app singleton",
"raw": {
"question": "Added createApp() in worker.ts and re-exported it from the server index while preserving the default app singleton",
"chosen": "Added createApp() in worker.ts and re-exported it from the server index while preserving the default app singleton",
"alternatives": [],
"reasoning": "The requested tests target a factory API that does not exist yet; exporting a factory keeps current singleton consumers working and gives tests a stable way to verify route registration and instance isolation."
},
"significance": "high"
}
],
"endedAt": "2026-03-27T19:12:19.094Z"
}
],
"commits": [],
"filesChanged": [],
"projectId": "/Users/khaliqgant/Projects/AgentWorkforce/relayauth",
"tags": [],
"_trace": {
"startRef": "df91531d2eef83b67e704703f7a0c9c373662c0c",
"endRef": "df91531d2eef83b67e704703f7a0c9c373662c0c"
},
"completedAt": "2026-03-27T19:12:19.094Z",
"retrospective": {
"summary": "Added node:test coverage for createApp(), route registration, barrel exports, and app factory idempotence; also exported createApp from the server index and scoped bridge rate limiting per app instance.",
"approach": "Standard approach",
"confidence": 0.9
}
}
31 changes: 31 additions & 0 deletions .trajectories/completed/2026-03/traj_axw6w09m6mtn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Trajectory: Write tests verifying the package exports and app factory

> **Status:** ✅ Completed
> **Confidence:** 90%
> **Started:** March 27, 2026 at 08:08 PM
> **Completed:** March 27, 2026 at 08:12 PM

---

## Summary

Added node:test coverage for createApp(), route registration, barrel exports, and app factory idempotence; also exported createApp from the server index and scoped bridge rate limiting per app instance.

**Approach:** Standard approach

---

## Key Decisions

### Added createApp() in worker.ts and re-exported it from the server index while preserving the default app singleton
- **Chose:** Added createApp() in worker.ts and re-exported it from the server index while preserving the default app singleton
- **Reasoning:** The requested tests target a factory API that does not exist yet; exporting a factory keeps current singleton consumers working and gives tests a stable way to verify route registration and instance isolation.

---

## Chapters

### 1. Work
*Agent: default*

- Added createApp() in worker.ts and re-exported it from the server index while preserving the default app singleton: Added createApp() in worker.ts and re-exported it from the server index while preserving the default app singleton
65 changes: 65 additions & 0 deletions .trajectories/completed/2026-03/traj_fxcl5cta0qub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"id": "traj_fxcl5cta0qub",
"version": 1,
"task": {
"title": "Fix @relayauth/server build failures around storage abstraction"
},
"status": "completed",
"startedAt": "2026-03-27T20:08:15.290Z",
"agents": [
{
"name": "default",
"role": "lead",
"joinedAt": "2026-03-27T20:10:30.801Z"
}
],
"chapters": [
{
"id": "chap_7tesxs6qerqe",
"title": "Work",
"agentName": "default",
"startedAt": "2026-03-27T20:10:30.801Z",
"events": [
{
"ts": 1774642230802,
"type": "decision",
"content": "Kept the existing storage abstraction implementation unchanged: Kept the existing storage abstraction implementation unchanged",
"raw": {
"question": "Kept the existing storage abstraction implementation unchanged",
"chosen": "Kept the existing storage abstraction implementation unchanged",
"alternatives": [],
"reasoning": "packages/server/src/worker.ts already accepts injected AuthStorage, routes use c.get('storage'), and the exact workflow verification plus turbo build both pass"
},
"significance": "high"
},
{
"ts": 1774642230850,
"type": "reflection",
"content": "Server storage decoupling is internally consistent in the current worktree; no direct route binding references or TypeScript build failures remain",
"raw": {
"confidence": 0.95
},
"significance": "high",
"tags": [
"confidence:0.95"
]
}
],
"endedAt": "2026-03-27T20:10:30.897Z"
}
],
"commits": [],
"filesChanged": [],
"projectId": "/Users/khaliqgant/Projects/AgentWorkforce/relayauth",
"tags": [],
"_trace": {
"startRef": "208780ba6d1c3b55a498b191a655b0e17b6ffa0a",
"endRef": "208780ba6d1c3b55a498b191a655b0e17b6ffa0a"
},
"completedAt": "2026-03-27T20:10:30.897Z",
"retrospective": {
"summary": "Verified storage abstraction wiring for @relayauth/server and confirmed the filtered build passes without additional code changes",
"approach": "Standard approach",
"confidence": 0.95
}
}
32 changes: 32 additions & 0 deletions .trajectories/completed/2026-03/traj_fxcl5cta0qub.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Trajectory: Fix @relayauth/server build failures around storage abstraction

> **Status:** ✅ Completed
> **Confidence:** 95%
> **Started:** March 27, 2026 at 09:08 PM
> **Completed:** March 27, 2026 at 09:10 PM

---

## Summary

Verified storage abstraction wiring for @relayauth/server and confirmed the filtered build passes without additional code changes

**Approach:** Standard approach

---

## Key Decisions

### Kept the existing storage abstraction implementation unchanged
- **Chose:** Kept the existing storage abstraction implementation unchanged
- **Reasoning:** packages/server/src/worker.ts already accepts injected AuthStorage, routes use c.get('storage'), and the exact workflow verification plus turbo build both pass

---

## Chapters

### 1. Work
*Agent: default*

- Kept the existing storage abstraction implementation unchanged: Kept the existing storage abstraction implementation unchanged
- Server storage decoupling is internally consistent in the current worktree; no direct route binding references or TypeScript build failures remain
25 changes: 25 additions & 0 deletions .trajectories/completed/2026-03/traj_hw3o5jpcqdka.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"id": "traj_hw3o5jpcqdka",
"version": 1,
"task": {
"title": "Fix TypeScript build failures in @relayauth/server"
},
"status": "completed",
"startedAt": "2026-03-27T19:13:07.401Z",
"agents": [],
"chapters": [],
"commits": [],
"filesChanged": [],
"projectId": "/Users/khaliqgant/Projects/AgentWorkforce/relayauth",
"tags": [],
"_trace": {
"startRef": "df91531d2eef83b67e704703f7a0c9c373662c0c",
"endRef": "df91531d2eef83b67e704703f7a0c9c373662c0c"
},
"completedAt": "2026-03-27T19:14:24.993Z",
"retrospective": {
"summary": "Verified the @relayauth/server packaging/export fixes on disk and confirmed the package builds cleanly with direct tsc, targeted export tests, and turbo build.",
"approach": "Standard approach",
"confidence": 0.93
}
}
14 changes: 14 additions & 0 deletions .trajectories/completed/2026-03/traj_hw3o5jpcqdka.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Trajectory: Fix TypeScript build failures in @relayauth/server

> **Status:** ✅ Completed
> **Confidence:** 93%
> **Started:** March 27, 2026 at 08:13 PM
> **Completed:** March 27, 2026 at 08:14 PM

---

## Summary

Verified the @relayauth/server packaging/export fixes on disk and confirmed the package builds cleanly with direct tsc, targeted export tests, and turbo build.

**Approach:** Standard approach
65 changes: 65 additions & 0 deletions .trajectories/completed/2026-03/traj_rwiy95xmrbn3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"id": "traj_rwiy95xmrbn3",
"version": 1,
"task": {
"title": "Implement SQLite storage adapter for local development"
},
"status": "completed",
"startedAt": "2026-03-27T19:59:42.573Z",
"agents": [
{
"name": "default",
"role": "lead",
"joinedAt": "2026-03-27T20:04:04.626Z"
}
],
"chapters": [
{
"id": "chap_eczdil6mmfh3",
"title": "Work",
"agentName": "default",
"startedAt": "2026-03-27T20:04:04.626Z",
"events": [
{
"ts": 1774641844627,
"type": "decision",
"content": "Kept createTestApp SQLite-backed by default and used Cloudflare storage compatibility only when tests pass explicit D1/KV/DO bindings: Kept createTestApp SQLite-backed by default and used Cloudflare storage compatibility only when tests pass explicit D1/KV/DO bindings",
"raw": {
"question": "Kept createTestApp SQLite-backed by default and used Cloudflare storage compatibility only when tests pass explicit D1/KV/DO bindings",
"chosen": "Kept createTestApp SQLite-backed by default and used Cloudflare storage compatibility only when tests pass explicit D1/KV/DO bindings",
"alternatives": [],
"reasoning": "This preserves unchanged route tests that still seed Cloudflare mocks while allowing direct SQLite storage tests and default helpers to run against the storage interface."
},
"significance": "high"
},
{
"ts": 1774642037618,
"type": "decision",
"content": "Refactored server routes and engines to resolve persistence through AuthStorage injected on Hono context: Refactored server routes and engines to resolve persistence through AuthStorage injected on Hono context",
"raw": {
"question": "Refactored server routes and engines to resolve persistence through AuthStorage injected on Hono context",
"chosen": "Refactored server routes and engines to resolve persistence through AuthStorage injected on Hono context",
"alternatives": [],
"reasoning": "This removes direct D1/KV/DO coupling from route and engine code while preserving storage-specific logic inside adapters and keeping config-only bindings on AppEnv."
},
"significance": "high"
}
],
"endedAt": "2026-03-27T20:07:21.475Z"
}
],
"commits": [],
"filesChanged": [],
"projectId": "/Users/khaliqgant/Projects/AgentWorkforce/relayauth",
"tags": [],
"_trace": {
"startRef": "208780ba6d1c3b55a498b191a655b0e17b6ffa0a",
"endRef": "208780ba6d1c3b55a498b191a655b0e17b6ffa0a"
},
"completedAt": "2026-03-27T20:07:21.475Z",
"retrospective": {
"summary": "Migrated server routes and engines to storage-backed persistence via AuthStorage context injection, narrowed AppEnv to config bindings, and verified the affected API and RBAC flows with targeted tests.",
"approach": "Standard approach",
"confidence": 0.93
}
}
36 changes: 36 additions & 0 deletions .trajectories/completed/2026-03/traj_rwiy95xmrbn3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Trajectory: Implement SQLite storage adapter for local development

> **Status:** ✅ Completed
> **Confidence:** 93%
> **Started:** March 27, 2026 at 08:59 PM
> **Completed:** March 27, 2026 at 09:07 PM

---

## Summary

Migrated server routes and engines to storage-backed persistence via AuthStorage context injection, narrowed AppEnv to config bindings, and verified the affected API and RBAC flows with targeted tests.

**Approach:** Standard approach

---

## Key Decisions

### Kept createTestApp SQLite-backed by default and used Cloudflare storage compatibility only when tests pass explicit D1/KV/DO bindings
- **Chose:** Kept createTestApp SQLite-backed by default and used Cloudflare storage compatibility only when tests pass explicit D1/KV/DO bindings
- **Reasoning:** This preserves unchanged route tests that still seed Cloudflare mocks while allowing direct SQLite storage tests and default helpers to run against the storage interface.

### Refactored server routes and engines to resolve persistence through AuthStorage injected on Hono context
- **Chose:** Refactored server routes and engines to resolve persistence through AuthStorage injected on Hono context
- **Reasoning:** This removes direct D1/KV/DO coupling from route and engine code while preserving storage-specific logic inside adapters and keeping config-only bindings on AppEnv.

---

## Chapters

### 1. Work
*Agent: default*

- Kept createTestApp SQLite-backed by default and used Cloudflare storage compatibility only when tests pass explicit D1/KV/DO bindings: Kept createTestApp SQLite-backed by default and used Cloudflare storage compatibility only when tests pass explicit D1/KV/DO bindings
- Refactored server routes and engines to resolve persistence through AuthStorage injected on Hono context: Refactored server routes and engines to resolve persistence through AuthStorage injected on Hono context
Loading
Loading