@idea1/cli 1.10.4 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +74 -32
  2. package/dist/commands/help.d.ts.map +1 -1
  3. package/dist/commands/help.js +30 -12
  4. package/dist/commands/help.js.map +1 -1
  5. package/dist/commands/index.d.ts +3 -1
  6. package/dist/commands/index.d.ts.map +1 -1
  7. package/dist/commands/index.js +5 -1
  8. package/dist/commands/index.js.map +1 -1
  9. package/dist/commands/login.d.ts +3 -0
  10. package/dist/commands/login.d.ts.map +1 -0
  11. package/dist/commands/login.js +15 -0
  12. package/dist/commands/login.js.map +1 -0
  13. package/dist/commands/logout.d.ts +3 -0
  14. package/dist/commands/logout.d.ts.map +1 -0
  15. package/dist/commands/logout.js +17 -0
  16. package/dist/commands/logout.js.map +1 -0
  17. package/dist/commands/release.d.ts +9 -4
  18. package/dist/commands/release.d.ts.map +1 -1
  19. package/dist/commands/release.js +53 -27
  20. package/dist/commands/release.js.map +1 -1
  21. package/dist/lib/project-item-url.d.ts +6 -0
  22. package/dist/lib/project-item-url.d.ts.map +1 -1
  23. package/dist/lib/project-item-url.js +11 -0
  24. package/dist/lib/project-item-url.js.map +1 -1
  25. package/dist/lib/settings.d.ts +25 -3
  26. package/dist/lib/settings.d.ts.map +1 -1
  27. package/dist/lib/settings.js +26 -1
  28. package/dist/lib/settings.js.map +1 -1
  29. package/dist/prompts/platform-prompts.d.ts +5 -30
  30. package/dist/prompts/platform-prompts.d.ts.map +1 -1
  31. package/dist/prompts/platform-prompts.js +5 -44
  32. package/dist/prompts/platform-prompts.js.map +1 -1
  33. package/dist/services/github.d.ts +21 -19
  34. package/dist/services/github.d.ts.map +1 -1
  35. package/dist/services/github.js +56 -64
  36. package/dist/services/github.js.map +1 -1
  37. package/dist/services/platform-auth.d.ts +44 -0
  38. package/dist/services/platform-auth.d.ts.map +1 -0
  39. package/dist/services/platform-auth.js +476 -0
  40. package/dist/services/platform-auth.js.map +1 -0
  41. package/dist/services/platform.d.ts +75 -18
  42. package/dist/services/platform.d.ts.map +1 -1
  43. package/dist/services/platform.js +254 -191
  44. package/dist/services/platform.js.map +1 -1
  45. package/dist/services/setup.d.ts.map +1 -1
  46. package/dist/services/setup.js +2 -1
  47. package/dist/services/setup.js.map +1 -1
  48. package/dist/types/index.d.ts +32 -0
  49. package/dist/types/index.d.ts.map +1 -1
  50. package/dist/types/index.js +1 -1
  51. package/dist/types/index.js.map +1 -1
  52. package/dist/workflow/data/team-member.d.ts +9 -2
  53. package/dist/workflow/data/team-member.d.ts.map +1 -1
  54. package/dist/workflow/data/team-member.js +8 -1
  55. package/dist/workflow/data/team-member.js.map +1 -1
  56. package/dist/workflow/engine/approval-flow.d.ts +28 -11
  57. package/dist/workflow/engine/approval-flow.d.ts.map +1 -1
  58. package/dist/workflow/engine/approval-flow.js +52 -17
  59. package/dist/workflow/engine/approval-flow.js.map +1 -1
  60. package/dist/workflow/engine/branch-setup.d.ts +1 -1
  61. package/dist/workflow/engine/branch-setup.js +1 -1
  62. package/dist/workflow/engine/handlers/approve-pr.d.ts +10 -9
  63. package/dist/workflow/engine/handlers/approve-pr.d.ts.map +1 -1
  64. package/dist/workflow/engine/handlers/approve-pr.js +24 -17
  65. package/dist/workflow/engine/handlers/approve-pr.js.map +1 -1
  66. package/dist/workflow/engine/release-engine.d.ts +90 -58
  67. package/dist/workflow/engine/release-engine.d.ts.map +1 -1
  68. package/dist/workflow/engine/release-engine.js +296 -161
  69. package/dist/workflow/engine/release-engine.js.map +1 -1
  70. package/dist/workflow/engine/workflow-engine.d.ts +9 -2
  71. package/dist/workflow/engine/workflow-engine.d.ts.map +1 -1
  72. package/dist/workflow/engine/workflow-engine.js +20 -2
  73. package/dist/workflow/engine/workflow-engine.js.map +1 -1
  74. package/package.json +2 -1
@@ -1,100 +1,270 @@
1
1
  import { logger } from '../lib/logger.js';
2
- import { AgentErrorResponse, validateAgentResponse } from '../lib/agent-core.js';
3
- import { isProjectItemUrl } from '../lib/project-item-url.js';
4
- import { createProjectItemPrompt, generateBranchNamePrompt, getProjectItemSummaryForBranchPrompt, getProjectItemSummaryPrompt, listProjectsPrompt, listTeamMembersPrompt, setWorkflowStatusPrompt, upsertProjectItemWorkflowContextPrompt } from '../prompts/platform-prompts.js';
2
+ import { projectItemExternalId } from '../lib/project-item-url.js';
3
+ import { generateBranchNamePrompt } from '../prompts/platform-prompts.js';
5
4
  import * as claude from './claude.js';
5
+ import { apiBaseUrl, authorizedFetch } from './platform-auth.js';
6
6
  /**
7
7
  * The CLI's access to the Idea1 cloud platform (app.idea1.ai / api.idea1.ai): reading a project
8
8
  * item's summary (by item or by branch), recording the item's workflow context, setting its workflow
9
- * status (with the teammate it is assigned to), creating items, listing the team's Projects and
10
- * members, deriving a branch name from an item. Callers use `platform.someFunction()` and know
11
- * nothing about the transport.
9
+ * status (with the teammate it is assigned to), transitioning an item on the platform and approving
10
+ * a branch's pull request (the stage-1 merges the platform performs), approving a release and
11
+ * committing its version bump (the stage-2 work the platform performs), creating items, listing the team's Projects and
12
+ * members, deriving a branch name from an item, and reading who is signed in. Callers use
13
+ * `platform.someFunction()` and know nothing about the transport.
12
14
  *
13
- * Today the transport is Claude Code driving the Idea1 MCP tools. That is an implementation detail
14
- * of this module - it may be replaced by authenticated calls to the platform's HTTP API without
15
- * touching any caller. Because these are simple tool calls rather than implementation sessions,
16
- * every Claude run here uses PLATFORM_CALL_RUN_OPTIONS. The prompts are the templates in
17
- * `src/prompts/platform-prompts.ts`; this module owns the output schemas their answers are read with.
15
+ * The transport is the platform's REST API, authorized with the user's OAuth credential or
16
+ * `IDEA1_TOKEN` (see `platform-auth.ts`), on the team that credential is bound to. Responses are the
17
+ * platform's `ApiDataResponse` envelope; a refused request surfaces as an Error carrying the
18
+ * platform's status and message. Claude is used only to name branches, on PLATFORM_CALL_RUN_OPTIONS.
18
19
  */
19
20
  /**
20
- * Model and effort for every platform call: a small, fast model at medium effort is all a
21
- * single MCP tool call needs, and pinning it keeps these calls consistent and cheap.
21
+ * Model and effort for the Claude run that names a branch: a small, fast model at medium effort is
22
+ * all a one-line answer from a description needs, and pinning it keeps the run consistent and cheap.
22
23
  */
23
24
  export const PLATFORM_CALL_RUN_OPTIONS = { model: 'sonnet', effort: 'medium' };
24
25
  /**
25
- * Run a platform call with a JSON schema, returning the parsed structured output.
26
+ * The platform's `ApiResultType`, the `result` of every response envelope.
26
27
  */
27
- async function callStructured(prompt, jsonSchema) {
28
- return claude.runStructured(prompt, jsonSchema, PLATFORM_CALL_RUN_OPTIONS);
28
+ var ApiResultType;
29
+ (function (ApiResultType) {
30
+ ApiResultType[ApiResultType["Ok"] = 0] = "Ok";
31
+ ApiResultType[ApiResultType["Failed"] = 1] = "Failed";
32
+ ApiResultType[ApiResultType["NotFound"] = 2] = "NotFound";
33
+ ApiResultType[ApiResultType["Unauthorized"] = 3] = "Unauthorized";
34
+ ApiResultType[ApiResultType["InvalidRequest"] = 4] = "InvalidRequest";
35
+ ApiResultType[ApiResultType["QuotaLimit"] = 5] = "QuotaLimit";
36
+ })(ApiResultType || (ApiResultType = {}));
37
+ /**
38
+ * The platform's `ProjectStatus`.
39
+ */
40
+ var ProjectStatus;
41
+ (function (ProjectStatus) {
42
+ ProjectStatus[ProjectStatus["Live"] = 0] = "Live";
43
+ ProjectStatus[ProjectStatus["Completed"] = 1] = "Completed";
44
+ ProjectStatus[ProjectStatus["Cancelled"] = 2] = "Cancelled";
45
+ })(ProjectStatus || (ProjectStatus = {}));
46
+ /**
47
+ * Send a request to the platform's API, at `path` relative to the API base URL.
48
+ */
49
+ function send(method, path, body) {
50
+ return authorizedFetch(`${apiBaseUrl()}/${path}`, {
51
+ method,
52
+ headers: body === null ? { Accept: 'application/json' } : { Accept: 'application/json', 'Content-Type': 'application/json' },
53
+ body: body === null ? undefined : JSON.stringify(body)
54
+ });
55
+ }
56
+ /**
57
+ * The `data` of a successful response; anything else throws an Error naming the request, the
58
+ * status and the platform's message.
59
+ */
60
+ async function readData(method, path, response) {
61
+ const text = await response.text();
62
+ if (!response.ok) {
63
+ const message = serverMessage(text);
64
+ throw new Error(`idea1.ai refused ${method} /${path} (${response.status} ${response.statusText})${message.length > 0 ? `: ${message}` : ''}`);
65
+ }
66
+ const envelope = JSON.parse(text);
67
+ if (envelope.result !== ApiResultType.Ok) {
68
+ throw new Error(`idea1.ai could not complete ${method} /${path}: ${ApiResultType[envelope.result]}`);
69
+ }
70
+ return envelope.data;
71
+ }
72
+ async function call(method, path, body) {
73
+ return readData(method, path, await send(method, path, body));
29
74
  }
30
75
  /**
31
- * Run a platform call whose answer is a single string; a model refusal throws AgentErrorResponse.
76
+ * A branch name the platform returned, checked before it reaches git: the CLI passes branch names
77
+ * to git as arguments, so a name that is not a plain ref (one starting with `-` would read as an
78
+ * option) is refused.
32
79
  */
33
- async function callForResult(prompt) {
34
- return claude.runWithPrompt(prompt, PLATFORM_CALL_RUN_OPTIONS);
80
+ const SAFE_BRANCH_NAME = /^(?!-)(?!.*\.\.)[A-Za-z0-9._\/-]+$/;
81
+ function checkedBranchName(name) {
82
+ if (!SAFE_BRANCH_NAME.test(name)) {
83
+ throw new Error(`idea1.ai returned an invalid branch name: ${JSON.stringify(name)}`);
84
+ }
85
+ return name;
86
+ }
87
+ /**
88
+ * A project item URL the platform returned, checked before it is stored in git config: it must be a
89
+ * plain idea1.ai project item URL.
90
+ */
91
+ const SAFE_PROJECT_ITEM_URL = /^https?:\/\/(app\.idea1\.ai|localhost(:\d+)?)\/project\/items\/\d+\/?$/i;
92
+ function checkedProjectItemUrl(url) {
93
+ if (!SAFE_PROJECT_ITEM_URL.test(url)) {
94
+ throw new Error(`idea1.ai returned an invalid project item URL: ${JSON.stringify(url)}`);
95
+ }
96
+ return url;
97
+ }
98
+ /**
99
+ * A workflow context the platform returned, with its branch names checked. Each field is copied by
100
+ * name, so nothing the platform sent reaches git without passing the check.
101
+ */
102
+ function checkedContext(context) {
103
+ return {
104
+ workflowStatus: context.workflowStatus,
105
+ codingAgentUrl: context.codingAgentUrl,
106
+ pullRequestUrl: context.pullRequestUrl,
107
+ repositoryFullName: context.repositoryFullName,
108
+ branchName: checkedBranchName(context.branchName),
109
+ baseBranch: checkedBranchName(context.baseBranch),
110
+ devWorkflowType: context.devWorkflowType,
111
+ stackBranch: context.stackBranch === null ? null : checkedBranchName(context.stackBranch),
112
+ integrationBranch: context.integrationBranch === null ? null : checkedBranchName(context.integrationBranch),
113
+ branchState: context.branchState
114
+ };
115
+ }
116
+ /** A project item summary the platform returned, with its URL and the branch names of its workflow context checked. */
117
+ function checkedSummary(summary) {
118
+ return {
119
+ url: checkedProjectItemUrl(summary.url),
120
+ externalId: summary.externalId,
121
+ title: summary.title,
122
+ epicId: summary.epicId,
123
+ completionDate: summary.completionDate,
124
+ legacyWorkflowStatus: summary.legacyWorkflowStatus,
125
+ projectId: summary.projectId,
126
+ assignedToUserId: summary.assignedToUserId,
127
+ workflowContext: summary.workflowContext === null ? null : checkedContext(summary.workflowContext)
128
+ };
129
+ }
130
+ async function callForSummary(method, path, body) {
131
+ return checkedSummary(await call(method, path, body));
132
+ }
133
+ /**
134
+ * The message an error response carries: the `message` (or OAuth `error_description`) of a JSON
135
+ * body, a JSON string, or the body's text; empty for an empty body.
136
+ */
137
+ function serverMessage(text) {
138
+ const trimmed = text.trim();
139
+ try {
140
+ const body = JSON.parse(trimmed);
141
+ if (typeof body === 'string') {
142
+ return body;
143
+ }
144
+ if (typeof body === 'object' && body !== null) {
145
+ const fields = body;
146
+ const message = [fields.message, fields.error_description, fields.error, fields.detail, fields.title].find(value => typeof value === 'string');
147
+ if (typeof message === 'string') {
148
+ return message;
149
+ }
150
+ }
151
+ }
152
+ catch {
153
+ // Not JSON: the text is the message.
154
+ }
155
+ return trimmed.slice(0, 500);
156
+ }
157
+ /**
158
+ * The path of a project item by its URL's external id.
159
+ */
160
+ function projectItemPath(itemUrl) {
161
+ return `v1/teams/active/project-items/by-external-id/${projectItemExternalId(itemUrl)}`;
35
162
  }
36
163
  /**
37
164
  * Record workflow context updates on an idea1.ai project item directly, with no side effects on the
38
165
  * platform: the CLI has already run the transition's work locally. The item must be under workflow
39
166
  * management (have a workflow context); the workflow engine is the only caller, as the persist step
40
167
  * of a transition. `assignedToEmail` names the team member the item is assigned to along with the
41
- * status; null leaves the assignment as it is.
42
- *
43
- * TODO: Direct workflow-context updates move from the update_item MCP tool to an authenticated
44
- * platform API call; the CLI will authenticate a user and call the API for direct integrations
45
- * like this, and MCP tools will be only operations that agents should run.
168
+ * status; null leaves the assignment as it is. Returns false, with a warning, when the platform did
169
+ * not record it.
46
170
  */
47
171
  export async function setWorkflowStatus(itemUrl, status, pullRequestUrl, assignedToEmail) {
48
- const hasClaude = await claude.ensureClaudeCli();
49
- if (!hasClaude) {
50
- logger.warning('Claude CLI not available, skipping workflow status update');
51
- return false;
52
- }
53
172
  logger.step(assignedToEmail === null
54
173
  ? `Setting workflow status to "${status}"...`
55
174
  : `Setting workflow status to "${status}", assigned to ${assignedToEmail}...`);
56
175
  try {
57
- await callForResult(setWorkflowStatusPrompt({ projectItemUrl: itemUrl, workflowStatus: status, pullRequestUrl, assignedToEmail }));
176
+ await call('PUT', `${projectItemPath(itemUrl)}/workflow-status`, { workflowStatus: status, pullRequestUrl, assignedToEmail });
58
177
  logger.success(`Workflow status updated to "${status}"`);
59
178
  return true;
60
179
  }
61
180
  catch (error) {
62
- const message = error instanceof AgentErrorResponse
63
- ? `Model could not update workflow status: ${error.message}`
64
- : `Could not update workflow status: ${error.message}`;
65
- logger.warning(message);
181
+ logger.warning(`Could not update workflow status: ${error.message}`);
66
182
  return false;
67
183
  }
68
184
  }
185
+ /** A project item id the platform returned, checked before it reaches a request path. */
186
+ const SAFE_ITEM_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
187
+ /**
188
+ * Move a project item into `targetStatus` on the platform, which runs the side effects of every
189
+ * state it enters and records each one: entering Approved and Merged merges the item's pull request
190
+ * as the Idea1 GitHub App, once the signed-in user's approval is recorded on it. `expectedStatus` is
191
+ * the status the item has as far as the CLI knows; the platform refuses the transition when the item
192
+ * has moved since, so it never runs twice.
193
+ */
194
+ export async function transitionWorkflow(itemUrl, expectedStatus, targetStatus) {
195
+ logger.step(`Moving ${itemUrl} to "${targetStatus}" on idea1.ai...`);
196
+ const item = await call('GET', projectItemPath(itemUrl), null);
197
+ if (!SAFE_ITEM_ID.test(item.id)) {
198
+ throw new Error(`idea1.ai returned an invalid project item id: ${JSON.stringify(item.id)}`);
199
+ }
200
+ const result = await call('POST', `v1/teams/active/project-items/${item.id}/workflow-transition`, {
201
+ expectedWorkflowStatus: expectedStatus,
202
+ targetWorkflowStatus: targetStatus,
203
+ branchChoices: null,
204
+ assignedToEmail: null
205
+ });
206
+ logger.success(result.message);
207
+ return { workflowContext: checkedContext(result.workflowContext), message: result.message };
208
+ }
209
+ /**
210
+ * Approve the open pull request of a branch no project item carries: the platform records the
211
+ * signed-in user's approval on it and merges it as the Idea1 GitHub App. Returns what was done.
212
+ */
213
+ export async function approvePullRequest(repositoryFullName, branchName) {
214
+ logger.step(`Approving the PR of ${branchName} on idea1.ai...`);
215
+ const response = await call('POST', 'v1/teams/active/github/repository/pull-requests/approve', { repositoryFullName, branchName });
216
+ logger.success(response.message);
217
+ return response.message;
218
+ }
219
+ /**
220
+ * Approve the open release PR from a release branch (the base, hotfix or content release branch):
221
+ * the platform checks the signed-in user is its assignee and holds the release role, brings its
222
+ * change list up to date, records the approval on it and merges it as the Idea1 GitHub App. Returns
223
+ * what was done.
224
+ */
225
+ export async function approveRelease(repositoryFullName, branchName) {
226
+ logger.step(`Approving the release of ${branchName} on idea1.ai...`);
227
+ const response = await call('POST', 'v1/teams/active/github/repository/releases/approve', { repositoryFullName, branchName });
228
+ logger.success(response.message);
229
+ return response.message;
230
+ }
231
+ /**
232
+ * Have the platform commit a release's version bump onto its release branch as the Idea1 GitHub
233
+ * App, for a releaser who cannot push to the branch: the new content of each version file, made
234
+ * against the branch at `expectedHeadSha`. The platform accepts only version edits of the declared
235
+ * packages' version files. Returns the commit.
236
+ */
237
+ export async function commitVersionBump(repositoryFullName, branchName, expectedHeadSha, files) {
238
+ logger.step(`Committing the version bump to ${branchName} on idea1.ai...`);
239
+ const response = await call('POST', 'v1/teams/active/github/repository/releases/version-bumps', {
240
+ repositoryFullName,
241
+ branchName,
242
+ expectedHeadSha,
243
+ files
244
+ });
245
+ logger.success(`${response.subject} (${response.commitSha.slice(0, 9)})`);
246
+ return response;
247
+ }
69
248
  /**
70
249
  * The summary of the project item a branch implements: null for a branch outside workflow
71
250
  * management. The repository is always named; nothing defaults it.
72
251
  */
73
252
  export async function getProjectItemSummaryForBranch(query) {
74
- const hasClaude = await claude.ensureClaudeCli();
75
- if (!hasClaude) {
76
- throw new Error('Claude CLI is required to read the project item of a branch from idea1.ai');
77
- }
78
253
  logger.step(`Reading the project item of ${query.branchName} from idea1.ai...`);
79
- const output = await callStructured(getProjectItemSummaryForBranchPrompt(query), projectItemSummaryOutputSchema);
80
- return readProjectItemSummaryOutput(output, error => /not under workflow management/i.test(error));
254
+ const path = `v1/teams/active/project-items/for-branch?${new URLSearchParams(query).toString()}`;
255
+ const response = await send('GET', path, null);
256
+ if (response.status === 404) {
257
+ return null;
258
+ }
259
+ return checkedSummary(await readData('GET', path, response));
81
260
  }
82
261
  /**
83
262
  * The summary of a project item: its `workflowContext` is null while the item is outside workflow
84
263
  * management.
85
264
  */
86
265
  export async function getProjectItemSummary(itemUrl) {
87
- const hasClaude = await claude.ensureClaudeCli();
88
- if (!hasClaude) {
89
- throw new Error('Claude CLI is required to read a project item from idea1.ai');
90
- }
91
266
  logger.step(`Reading ${itemUrl} from idea1.ai...`);
92
- const output = await callStructured(getProjectItemSummaryPrompt({ projectItemUrl: itemUrl }), projectItemSummaryOutputSchema);
93
- const summary = readProjectItemSummaryOutput(output, () => false);
94
- if (!summary) {
95
- throw new Error(`idea1.ai returned no project item for ${itemUrl}`);
96
- }
97
- return summary;
267
+ return callForSummary('GET', `${projectItemPath(itemUrl)}/summary`, null);
98
268
  }
99
269
  /**
100
270
  * Record a branch in a project item's workflow context as the one implementing the item, putting
@@ -104,120 +274,46 @@ export async function getProjectItemSummary(itemUrl) {
104
274
  * refused by the platform, which surfaces here as an error.
105
275
  */
106
276
  export async function upsertProjectItemWorkflowContext(input) {
107
- const hasClaude = await claude.ensureClaudeCli();
108
- if (!hasClaude) {
109
- throw new Error('Claude CLI is required to record the workflow context on idea1.ai');
110
- }
111
277
  logger.step(`Recording ${input.branchName} as the branch of ${input.projectItemUrl} on idea1.ai...`);
112
- const output = await callStructured(upsertProjectItemWorkflowContextPrompt(input), projectItemSummaryOutputSchema);
113
- const summary = readProjectItemSummaryOutput(output, () => false);
114
- if (!summary?.workflowContext) {
278
+ const summary = await callForSummary('PUT', `${projectItemPath(input.projectItemUrl)}/workflow-context`, {
279
+ repositoryFullName: input.repositoryFullName,
280
+ branchName: input.branchName,
281
+ baseBranch: input.baseBranch,
282
+ devWorkflowType: input.devWorkflowType,
283
+ stackBranch: input.stackBranch,
284
+ integrationBranch: input.integrationBranch
285
+ });
286
+ if (summary.workflowContext === null) {
115
287
  throw new Error('The platform returned no workflow context after recording the branch');
116
288
  }
117
289
  return summary;
118
290
  }
119
291
  /**
120
- * The summary an output carries. An error `isAbsence` recognizes as "the platform has no such
121
- * item" yields null; any other error is thrown.
122
- */
123
- function readProjectItemSummaryOutput(output, isAbsence) {
124
- if (typeof output.error === 'string' && output.error.trim().length > 0) {
125
- if (isAbsence(output.error)) {
126
- return null;
127
- }
128
- throw new Error(`idea1.ai: ${output.error.trim()}`);
129
- }
130
- const summary = output.projectItemSummary;
131
- if (!summary || typeof summary.url !== 'string' || !isProjectItemUrl(summary.url)) {
132
- throw new Error(`Claude did not return a valid project item summary: ${JSON.stringify(output.projectItemSummary)}`);
133
- }
134
- return summary;
135
- }
136
- /**
137
- * JSON schema for the project-item-summary structured output (`ProjectItemSummary` or an error).
138
- */
139
- const projectItemSummaryOutputSchema = {
140
- type: 'object',
141
- properties: {
142
- projectItemSummary: {
143
- type: ['object', 'null'],
144
- description: 'The project item summary the tool returned, or null when it returned an error',
145
- properties: {
146
- url: { type: 'string' },
147
- externalId: { type: 'integer' },
148
- title: { type: 'string' },
149
- epicId: { type: ['string', 'null'] },
150
- completionDate: { type: ['string', 'null'] },
151
- legacyWorkflowStatus: { type: 'string' },
152
- projectId: { type: ['string', 'null'], description: 'The Project the item is planned in; null when it is out of scope' },
153
- assignedToUserId: { type: ['string', 'null'], description: 'The team member the item is assigned to; null when unassigned' },
154
- workflowContext: {
155
- type: ['object', 'null'],
156
- properties: {
157
- workflowStatus: { type: 'string' },
158
- codingAgentUrl: { type: 'string' },
159
- pullRequestUrl: { type: 'string' },
160
- repositoryFullName: { type: 'string' },
161
- branchName: { type: 'string' },
162
- baseBranch: { type: 'string' },
163
- devWorkflowType: { type: 'string', enum: ['independent', 'integration'] },
164
- stackBranch: { type: ['string', 'null'] },
165
- integrationBranch: { type: ['string', 'null'] },
166
- branchState: { type: 'integer', enum: [0, 1, 2], description: '0 Live, 1 Merged, 2 Deleted' }
167
- },
168
- required: ['workflowStatus', 'codingAgentUrl', 'pullRequestUrl', 'repositoryFullName', 'branchName', 'baseBranch', 'devWorkflowType', 'stackBranch', 'integrationBranch', 'branchState'],
169
- additionalProperties: false
170
- }
171
- },
172
- required: ['url', 'externalId', 'title', 'epicId', 'completionDate', 'legacyWorkflowStatus', 'projectId', 'assignedToUserId', 'workflowContext'],
173
- additionalProperties: false
174
- },
175
- error: { type: ['string', 'null'], description: 'The error the tool returned, verbatim, or null on success' }
176
- },
177
- required: ['projectItemSummary', 'error'],
178
- additionalProperties: false
179
- };
180
- /**
181
- * Generate a branch name from a project item description
292
+ * Generate a branch name from a project item's description.
182
293
  */
183
294
  export async function generateBranchName(itemUrl) {
184
- const hasClaude = await claude.ensureClaudeCli();
185
- if (!hasClaude) {
186
- throw new Error('Claude CLI is required to generate branch names');
187
- }
188
295
  logger.step('Generating branch name from item description...');
189
- const branchName = await callForResult(generateBranchNamePrompt({ projectItemUrl: itemUrl }));
296
+ const item = await call('GET', projectItemPath(itemUrl), null);
297
+ const branchName = await claude.runWithPrompt(generateBranchNamePrompt({ description: item.description }), PLATFORM_CALL_RUN_OPTIONS);
190
298
  // Clean up any extra whitespace/newlines
191
299
  const cleanedName = branchName.replace(/\n/g, '').trim();
192
300
  logger.dim(`Generated branch name: ${cleanedName}`);
193
301
  return cleanedName;
194
302
  }
303
+ /**
304
+ * The team's live Projects, most recently created first.
305
+ */
306
+ async function readLiveProjects() {
307
+ const projects = await call('GET', 'v1/teams/active/projects', null);
308
+ return projects.filter(project => project.status === ProjectStatus.Live);
309
+ }
195
310
  /**
196
311
  * The names of the team's live Projects, most recently created first.
197
312
  */
198
313
  export async function listProjects() {
199
314
  logger.step('Reading the team\'s projects from idea1.ai...');
200
- const output = await callStructured(listProjectsPrompt({}), listProjectsSchema);
201
- const projects = Array.isArray(output.projects)
202
- ? output.projects.filter((name) => typeof name === 'string' && name.trim().length > 0).map(name => name.trim())
203
- : [];
204
- return projects;
315
+ return (await readLiveProjects()).map(project => project.name);
205
316
  }
206
- /**
207
- * JSON schema for the list-projects structured output.
208
- */
209
- const listProjectsSchema = {
210
- type: 'object',
211
- properties: {
212
- projects: {
213
- type: 'array',
214
- description: 'The names of the live Idea1 projects, most recently created first',
215
- items: { type: 'string' }
216
- }
217
- },
218
- required: ['projects'],
219
- additionalProperties: false
220
- };
221
317
  let teamMembers = null;
222
318
  /**
223
319
  * The members of the team, read once per process: the teammates a project item can be assigned
@@ -234,11 +330,8 @@ export function listTeamMembers() {
234
330
  }
235
331
  async function readTeamMembers() {
236
332
  logger.step('Reading the team\'s members from idea1.ai...');
237
- const output = await callStructured(listTeamMembersPrompt({}), listTeamMembersSchema);
238
- if (!Array.isArray(output.members)) {
239
- throw new Error(`Claude did not return the team's members: ${JSON.stringify(output.members)}`);
240
- }
241
- return output.members.map(member => ({
333
+ const members = await call('GET', 'v1/teams/active/members', null);
334
+ return members.map(member => ({
242
335
  userId: member.userId,
243
336
  email: member.email.trim(),
244
337
  role: member.role,
@@ -260,55 +353,25 @@ export async function resolveTeammate(identity) {
260
353
  return teammate;
261
354
  }
262
355
  /**
263
- * JSON schema for the list-team-members structured output.
264
- */
265
- const listTeamMembersSchema = {
266
- type: 'object',
267
- properties: {
268
- members: {
269
- type: 'array',
270
- description: 'The team\'s members, in the order returned',
271
- items: {
272
- type: 'object',
273
- properties: {
274
- userId: { type: 'string' },
275
- email: { type: 'string' },
276
- role: { type: 'string' },
277
- gitHubUsername: { type: ['string', 'null'], description: 'The member\'s linked GitHub login, or null when none is linked' }
278
- },
279
- required: ['userId', 'email', 'role', 'gitHubUsername'],
280
- additionalProperties: false
281
- }
282
- }
283
- },
284
- required: ['members'],
285
- additionalProperties: false
286
- };
287
- /**
288
- * Create a new idea1 project item with the given title in the named Project.
356
+ * Create a new idea1 project item with the given title in the named live Project.
289
357
  * The item is created with description `# <title>`.
290
358
  * Returns the created item's URL.
291
359
  */
292
360
  export async function createProjectItem(title, projectName) {
293
361
  logger.step(`Creating project item "${title}" in project "${projectName}"...`);
294
- const output = validateAgentResponse(await callStructured(createProjectItemPrompt({ title, projectName }), createProjectItemSchema));
295
- const url = typeof output.projectItemUrl === 'string' ? output.projectItemUrl.trim() : '';
296
- if (!isProjectItemUrl(url)) {
297
- throw new Error(`Claude did not return a valid project item URL: ${JSON.stringify(output.projectItemUrl)}`);
362
+ const project = (await readLiveProjects()).find(candidate => candidate.name.trim().toLowerCase() === projectName.trim().toLowerCase());
363
+ if (!project) {
364
+ throw new Error(`The team has no live project named "${projectName}".`);
298
365
  }
299
- logger.success(`Created project item: ${url}`);
300
- return url;
366
+ const summary = await callForSummary('POST', `v1/teams/active/projects/${project.projectId}/project-items`, { description: `# ${title}` });
367
+ logger.success(`Created project item: ${summary.url}`);
368
+ return summary.url;
301
369
  }
302
370
  /**
303
- * JSON schema for the create-project-item structured output.
371
+ * The user the platform credential signs in as, and the team its calls work on.
304
372
  */
305
- const createProjectItemSchema = {
306
- type: 'object',
307
- properties: {
308
- projectItemUrl: { type: 'string', description: 'The URL of the created idea1 project item, or an empty string on failure' },
309
- error: { type: ['string', 'null'], description: 'The error returned by create_item, or null when the item was created' }
310
- },
311
- required: ['projectItemUrl', 'error'],
312
- additionalProperties: false
313
- };
373
+ export async function getSignedInUser() {
374
+ const context = await call('GET', 'v1/user/core-application-context', null);
375
+ return { emailAddress: context.userContext.emailAddress, teamName: context.activeTeam.teamName };
376
+ }
314
377
  //# sourceMappingURL=platform.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../src/services/platform.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,oCAAoC,EACpC,2BAA2B,EAC3B,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,sCAAsC,EACvC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAGtC;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAA+B,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AAE3G;;GAEG;AACH,KAAK,UAAU,cAAc,CAAI,MAAc,EAAE,UAAkB;IACjE,OAAO,MAAM,CAAC,aAAa,CAAI,MAAM,EAAE,UAAU,EAAE,yBAAyB,CAAC,CAAC;AAChF,CAAC;AAED;;GAEG;AACH,KAAK,UAAU,aAAa,CAAC,MAAc;IACzC,OAAO,MAAM,CAAC,aAAa,CAAC,MAAM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B,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAmBnD;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBjE"}
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/services/setup.ts"],"names":[],"mappings":"AA0IA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAmBnD;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBjE"}
@@ -87,7 +87,7 @@ A state's entries replace that state's built-in ones. Each entry has a \`name\`
87
87
 
88
88
  ### release (optional)
89
89
 
90
- The packages \`idea1 release\` can version. Before the release PR is opened, every versioned
90
+ How changes may reach the release branch, and the packages \`idea1 release\` can version. Before the release PR is opened, every versioned
91
91
  package whose folder changed since the last release (and whose version has not moved yet) gets
92
92
  a version bump: its \`package.json\` version, and the lockfiles above it, are updated and
93
93
  committed to the release branch by \`idea1 release\` itself (the Idea1 web app makes the same
@@ -95,6 +95,7 @@ bump). Without this section a release has no version bump step.
95
95
 
96
96
  | Property | Description |
97
97
  |----------|-------------|
98
+ | \`releaseBranchChanges\` | How changes may reach the release branch: \`approved-only\` (default; every change arrives through its own approved change, and a release carrying a direct commit is refused until a repository admin records why) or \`direct-allowed\` (direct commits are carried and listed in the release PR for its approver to review) |
98
99
  | \`versionedPackages\` | The packages a release can bump: \`name\` (used by \`--bumps\`), \`label\` (shown in prompts) and \`path\` (the folder holding the package's \`package.json\`) |
99
100
 
100
101
  \`\`\`json
@@ -1 +1 @@
1
- {"version":3,"file":"setup.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