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
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ jobs:
- name: Resolve target packages
id: targets
run: |
# Dependency order: persona-kit → workload-router → harness-kit → cli → agentworkforce.
# persona-kit is a leaf dep consumed by workload-router, harness-kit, and cli,
# so it must publish first. The top-level `agentworkforce` wrapper depends on
# Dependency order: persona-kit → workload-router → cli → agentworkforce.
# persona-kit is a leaf dep consumed by workload-router and cli, so it
# must publish first. The top-level `agentworkforce` wrapper depends on
# `@agentworkforce/cli`, so it must publish last.
echo "packages=persona-kit workload-router harness-kit cli agentworkforce" >> "$GITHUB_OUTPUT"
echo "packages=persona-kit workload-router cli agentworkforce" >> "$GITHUB_OUTPUT"

# Lockstep baseline heal. The workspace publishes every package at the
# same version, so if any package's local version lags either its own
Expand Down Expand Up @@ -689,7 +689,7 @@ jobs:
// didn't publish an umbrella stamp (e.g. version: none re-runs).
const releaseVersion = process.env.RELEASE_VERSION || canonicalVersion;

const packageOrder = ['workload-router', 'harness-kit', 'cli', 'agentworkforce'];
const packageOrder = ['persona-kit', 'workload-router', 'cli', 'agentworkforce'];
const entries = versionsRaw.trim().split(/\s+/).filter(Boolean).map((entry) => {
const idx = entry.indexOf(':');
return { pkg: entry.slice(0, idx), ver: entry.slice(idx + 1) };
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/verify-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
options:
- '@agentworkforce/cli'
- 'agentworkforce'
- '@agentworkforce/harness-kit'
- '@agentworkforce/workload-router'
- '@agentworkforce/persona-kit'
version:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ for the full mount layout and semantics.
## Packages

- `packages/workload-router` — TypeScript SDK for typed persona + routing profile resolution (harness-agnostic).
- `packages/harness-kit` — Composable primitives for launching a persona's harness: env-ref resolution, MCP server translation, per-harness argv building. The layer the CLI sits on top of. Depend on this directly if you're building your own orchestrator on top of `@agentworkforce/workload-router` and want the same behaviors.
- `packages/persona-kit` — Composable primitives for launching a persona's harness: env-ref resolution, MCP server translation, per-harness argv building. The layer the CLI sits on top of. Depend on this directly if you're building your own orchestrator on top of `@agentworkforce/workload-router` and want the same behaviors.
- `packages/cli` — command-line implementation used by the `agentworkforce` wrapper: spawn a persona's harness (claude/codex/opencode) from the shell. See **[packages/cli/README.md](./packages/cli/README.md)** for the full docs, and the [CLI](#cli) section below for a quick tour.

## Personas
Expand Down Expand Up @@ -602,7 +602,7 @@ This runs minimal guardrails across the workspace:

## Developing

For iterating on the CLI, harness-kit, workload-router, or internal system persona JSON files,
For iterating on the CLI, persona-kit, workload-router, or internal system persona JSON files,
use the watch-mode dev loop instead of rebuilding by hand.

**Terminal 1 — start the watchers (leave running):**
Expand Down Expand Up @@ -633,4 +633,4 @@ Edit → save → re-run in terminal 2. TypeScript errors show up in terminal 1.

**Per-package dev:** if you only want to watch one package, run
`corepack pnpm --filter @agentworkforce/<name> run dev` (where `<name>` is
`cli`, `harness-kit`, or `workload-router`).
`cli`, `persona-kit`, or `workload-router`).
15 changes: 7 additions & 8 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -612,11 +612,11 @@ function sessionMountDir(sessionRoot: string): string {
* launching opencode without a persona-specific agent selection.
*
* Strips all occurrences rather than just the first — the current producer
* (harness-kit's opencode branch) emits exactly one pair, so both behaviors
* are equivalent today, but "remove all" is idempotent and safer if a future
* caller ever appends a second `--agent` for any reason. A trailing `--agent`
* with no following value is preserved so the malformed argv surfaces at the
* harness rather than getting silently swallowed here.
* (the opencode branch in persona-kit) emits exactly one pair, so both
* behaviors are equivalent today, but "remove all" is idempotent and safer if
* a future caller ever appends a second `--agent` for any reason. A trailing
* `--agent` with no following value is preserved so the malformed argv
* surfaces at the harness rather than getting silently swallowed here.
*/
export function stripAgentFlag(args: readonly string[]): string[] {
const out: string[] = [];
Expand Down Expand Up @@ -1008,7 +1008,7 @@ function runDryRun(selection: PersonaSelection): number {
`✓ sidecar: ${sidecarLookup.sidecar ? sidecarLookup.sidecar.mountFile : '(none)'}\n`
);

// Check 2: harness-kit translation. buildInteractiveSpec validates
// Check 2: persona-kit translation. buildInteractiveSpec validates
// permissions shape, mcpServers shape, and required runtime fields.
// We resolve env + mcp leniently (same as the live launch path) so
// the spec call sees the same inputs it would at runtime.
Expand Down Expand Up @@ -3244,8 +3244,7 @@ async function runPersonaImprover(args: {
stderrBuf += chunk;
});
// SIGTERM first; if the harness traps or ignores it, escalate to
// SIGKILL after a 1s grace so the timeout is actually enforced
// (matches the previous spawnCapture behavior in harness-kit).
// SIGKILL after a 1s grace so the timeout is actually enforced.
const timeout =
timeoutMs !== undefined
? setTimeout(() => {
Expand Down
61 changes: 0 additions & 61 deletions packages/harness-kit/CHANGELOG.md

This file was deleted.

Loading
Loading