Commit 4b153c7
feat: migrate @perstack/api-client to npm version (#415)
* feat: migrate @perstack/api-client to npm version
- Remove local packages/api-client/ directory
- Update dependencies to use @perstack/api-client@^0.0.51
- Update API calls to use new response structure
- Remove deprecated CLI commands (publish, status, tag)
- Remove E2E test for deleted publish command
BREAKING CHANGES:
- Remove `perstack publish` command (new API uses draft-based publish model)
- Remove `perstack status` command (no status update in new API)
- Remove `perstack tag` command (no tag update in new API)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: lazy-load resolve-expert to fix test failures
The npm @perstack/api-client package imports @perstack/core at runtime,
which caused ESM resolution failures when loading tests. The issue was
that the helpers barrel file (index.ts) re-exported resolve-expert.ts,
triggering the import chain:
test → helpers/index.js → resolve-expert.js → @perstack/api-client (npm)
→ @perstack/core (workspace) → ./adapters/index.js (doesn't exist)
Fix by:
- Remove resolveExpertToRun export from helpers/index.ts
- Use dynamic import in setup-experts.ts to lazy-load resolve-expert.ts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat: remove unpublish command and related wizard components
For consistency with other removed registry commands (publish, status, tag),
also remove the unpublish command since CLI no longer supports registry operations.
Removed:
- perstack unpublish command
- Wizard TUI components (WizardExpertSelector, VersionSelector, useExpertVersionWizard)
- Related type definitions (WizardExpertChoice, WizardVersionInfo)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore: remove dead code from TUI components
Removed unused code after the publish/status/tag/unpublish command cleanup:
Components:
- QueryRow, CompletionRow, ErrorRow from action-row.tsx
- ErrorStep component (entire file)
- getStatusColor utility (entire file)
Types:
- EventResult
- RuntimeState
- RunHistoryItem
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: rename registry references to published expert
The "Perstack Registry" concept no longer exists. Rename all related
references to use "published expert" terminology instead.
Changes:
- Rename e2e/perstack-cli/registry.test.ts → published-expert.test.ts
- Rename RegistryExpertData → PublishedExpertData
- Rename registryExpert/expertFromRegistry → publishedExpert
- Update error messages: "registry response" → "API response"
- Update error messages: "remote expert" → "published expert"
- Remove Registry description from agents-md-template.ts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent dad7c51 commit 4b153c7
File tree
65 files changed
+375
-7378
lines changed- .changeset
- apps
- create-expert/src/lib
- perstack
- bin
- src
- tui
- components
- hooks
- wizard
- publish
- status
- tag
- types
- unpublish
- utils
- runtime
- src/helpers
- e2e/perstack-cli
- packages/api-client
- src
- registry
- studio
- test-utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
65 files changed
+375
-7378
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
| |||
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
40 | 79 | | |
41 | | - | |
| 80 | + | |
42 | 81 | | |
43 | 82 | | |
44 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
45 | 98 | | |
46 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
47 | 112 | | |
48 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
49 | 132 | | |
50 | 133 | | |
51 | 134 | | |
52 | 135 | | |
53 | 136 | | |
54 | 137 | | |
55 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
56 | 148 | | |
57 | 149 | | |
58 | 150 | | |
| |||
79 | 171 | | |
80 | 172 | | |
81 | 173 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 174 | | |
87 | 175 | | |
88 | 176 | | |
| |||
94 | 182 | | |
95 | 183 | | |
96 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
97 | 196 | | |
98 | 197 | | |
99 | 198 | | |
100 | 199 | | |
101 | 200 | | |
102 | | - | |
| 201 | + | |
103 | 202 | | |
104 | 203 | | |
105 | 204 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
109 | 211 | | |
110 | 212 | | |
111 | 213 | | |
| |||
This file was deleted.
0 commit comments