@forloop-cc/forloop-opencode-plugin-planner 2.2.14 → 2.2.15

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.
package/CHANGELOG.md CHANGED
@@ -10,10 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
  ### Added - Sprint & Story API Enhancements
11
11
 
12
12
  #### New Sprint Tools
13
- - **forloopSpaceSprintCreate** - Create new sprint with dates and settings
13
+ - **forloopSpaceSprintCreate** - Create new space with dates and settings
14
14
  - Arguments: title, description, startDate, endDate, isPrivate, organizationId
15
- - Confirmation messages with sprint details
16
- - **forloopSpaceSprintUpdate** - Update sprint details
15
+ - Confirmation messages with space details
16
+ - **forloopSpaceSprintUpdate** - Update space details
17
17
  - Arguments: sprintId, title, description, startDate, endDate, isPrivate
18
18
  - Partial updates supported
19
19
  - **forloopSpaceSprintDelete** - Delete sprint (with confirmation)
@@ -155,8 +155,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
155
155
  #### Core Features
156
156
  - `forloopTokenSet` - Set/update ForLoop API token
157
157
  - `forloopTokenGet` - Check if API token is configured
158
- - `forloopSpaceSprintGet` - Get sprint details with stories and files
159
- - `forloopSpaceSprintList` - List all accessible sprints
158
+ - `forloopSpaceSprintGet` - Get space details with stories and files
159
+ - `forloopSpaceSprintList` - List all accessible spaces
160
160
  - `forloopStoryCreate` - Create new stories
161
161
  - `forloopStoryUpdate` - Update existing stories
162
162
  - `forloopStoryDelete` - Delete stories
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@forloop-cc/forloop-opencode-plugin-planner",
4
- "version": "2.2.14",
4
+ "version": "2.2.15",
5
5
  "description": "ForLoop integration plugin for opencode — Sprint, story, and agent tools for the ForLoop platform",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -44,7 +44,7 @@ export function createAgentListTool(client: ForLoopAPIClient) {
44
44
 
45
45
  export function createSprintAiAgentsUpdateTool(client: ForLoopAPIClient) {
46
46
  return tool({
47
- description: 'Enable or disable AI agents for a sprint',
47
+ description: 'Enable or disable AI agents for a space',
48
48
  args: {
49
49
  sprintId: tool.schema.number()
50
50
  .optional()
@@ -14,12 +14,12 @@ export function createAITriggerTools(client: ForLoopAPIClient) {
14
14
  }
15
15
 
16
16
  /**
17
- * forloopAiDeveloperSpaceSprint - Trigger developer agent for sprint work
17
+ * forloopAiDeveloperSpaceSprint - Trigger developer agent for space work
18
18
  * Triggers the forLoopTaskSupervisor agent via EventBridge → Step Functions → ECS
19
19
  */
20
20
  function createDeveloperSprintTool(client: ForLoopAPIClient) {
21
21
  return tool({
22
- description: 'Trigger forLoopTaskSupervisor agent to execute sprint work. This sends stories to the developer agent for implementation via EventBridge → Step Functions → ECS Fargate.',
22
+ description: 'Trigger forLoopTaskSupervisor agent to execute space work. This sends stories to the developer agent for implementation via EventBridge → Step Functions → ECS Fargate.',
23
23
  args: {
24
24
  sprintId: tool.schema.number()
25
25
  .describe('Sprint ID to execute'),
@@ -6,7 +6,7 @@ import { getToken } from '../capabilities/token-storage';
6
6
 
7
7
  export function createSprintGetTool(client: ForLoopAPIClient) {
8
8
  return tool({
9
- description: 'Get sprint details including stories, files, and AI agents',
9
+ description: 'Get space details including stories, files, and AI agents',
10
10
  args: {
11
11
  sprintId: tool.schema.number()
12
12
  .optional()
@@ -49,7 +49,7 @@ export function createSprintGetTool(client: ForLoopAPIClient) {
49
49
  });
50
50
 
51
51
  const lines = [
52
- `📋 Sprint #${sprint.id}: ${sprint.title}`,
52
+ `📋 Space #${sprint.id}: ${sprint.title}`,
53
53
  '',
54
54
  `**Status**: ${sprint.status}`,
55
55
  `**Period**: ${formatDate(sprint.startDate)} - ${formatDate(sprint.endDate)}`,
@@ -80,7 +80,7 @@ export function createSprintGetTool(client: ForLoopAPIClient) {
80
80
 
81
81
  export function createSprintListTool(client: ForLoopAPIClient) {
82
82
  return tool({
83
- description: 'List all accessible sprints',
83
+ description: 'List all accessible spaces',
84
84
  args: {
85
85
  organizationId: tool.schema.number()
86
86
  .optional()
@@ -106,10 +106,10 @@ export function createSprintListTool(client: ForLoopAPIClient) {
106
106
  });
107
107
 
108
108
  if (!sprints.length) {
109
- return 'No sprints found.';
109
+ return 'No spaces found.';
110
110
  }
111
111
 
112
- const lines = ['📋 Sprints:', ''];
112
+ const lines = ['📋 Spaces:', ''];
113
113
  for (const sprint of sprints) {
114
114
  const statusIcon = getStatusIcon(sprint.status);
115
115
  const orgInfo = sprint.organizationName ? ` (${sprint.organizationName})` : '';
@@ -155,7 +155,7 @@ function getStatusIcon(status: string): string {
155
155
 
156
156
  export function createSprintCreateTool(client: ForLoopAPIClient) {
157
157
  return tool({
158
- description: 'Create a new sprint with specified dates and settings',
158
+ description: 'Create a new space with specified dates and settings',
159
159
  args: {
160
160
  title: tool.schema.string()
161
161
  .describe('Sprint title'),
@@ -191,7 +191,7 @@ export function createSprintCreateTool(client: ForLoopAPIClient) {
191
191
  });
192
192
 
193
193
  const lines = [
194
- '✅ Sprint created successfully!',
194
+ '✅ Space created successfully!',
195
195
  '',
196
196
  `**#${sprint.id}**: ${sprint.title}`,
197
197
  `**Period**: ${formatDate(sprint.startDate)} - ${formatDate(sprint.endDate)}`,
@@ -212,7 +212,7 @@ export function createSprintCreateTool(client: ForLoopAPIClient) {
212
212
 
213
213
  export function createSprintUpdateTool(client: ForLoopAPIClient) {
214
214
  return tool({
215
- description: 'Update sprint details',
215
+ description: 'Update space details',
216
216
  args: {
217
217
  sprintId: tool.schema.number()
218
218
  .describe('Sprint ID to update'),
@@ -249,7 +249,7 @@ export function createSprintUpdateTool(client: ForLoopAPIClient) {
249
249
 
250
250
  const sprint = await client.updateSprint(args.sprintId, updateData);
251
251
 
252
- return `✅ Sprint #${sprint.id} updated successfully!`;
252
+ return `✅ Space #${sprint.id} updated successfully!`;
253
253
  } catch (error: any) {
254
254
  return `❌ Error: ${error.message}`;
255
255
  }
@@ -259,7 +259,7 @@ export function createSprintUpdateTool(client: ForLoopAPIClient) {
259
259
 
260
260
  export function createSprintDeleteTool(client: ForLoopAPIClient) {
261
261
  return tool({
262
- description: 'Delete a sprint (use with caution)',
262
+ description: 'Delete a space (use with caution)',
263
263
  args: {
264
264
  sprintId: tool.schema.number()
265
265
  .describe('Sprint ID to delete'),
@@ -276,7 +276,7 @@ export function createSprintDeleteTool(client: ForLoopAPIClient) {
276
276
 
277
277
  if (!args.confirm) {
278
278
  return [
279
- '⚠️ Warning: This will permanently delete the sprint and all its stories.',
279
+ '⚠️ Warning: This will permanently delete the space and all its stories.',
280
280
  '',
281
281
  'Use --confirm true to proceed.',
282
282
  ].join('\n');
@@ -285,7 +285,7 @@ export function createSprintDeleteTool(client: ForLoopAPIClient) {
285
285
  try {
286
286
  await client.deleteSprint(args.sprintId);
287
287
 
288
- return `✅ Sprint #${args.sprintId} deleted successfully!`;
288
+ return `✅ Space #${args.sprintId} deleted successfully!`;
289
289
  } catch (error: any) {
290
290
  return `❌ Error: ${error.message}`;
291
291
  }
@@ -295,7 +295,7 @@ export function createSprintDeleteTool(client: ForLoopAPIClient) {
295
295
 
296
296
  export function createSubSprintListTool(client: ForLoopAPIClient) {
297
297
  return tool({
298
- description: 'List all iterations (sub-sprints) within a sprint',
298
+ description: 'List all iterations (sub-sprints) within a space',
299
299
  args: {
300
300
  sprintId: tool.schema.number()
301
301
  .optional()
@@ -313,9 +313,9 @@ export function createSubSprintListTool(client: ForLoopAPIClient) {
313
313
  try {
314
314
  const subSprints = await client.getSubSprints(resolution.sprintId)
315
315
  if (subSprints.length === 0) {
316
- return `Sprint #${resolution.sprintId} has no iterations yet.`
316
+ return `Space #${resolution.sprintId} has no iterations yet.`
317
317
  }
318
- const lines = [`Iterations for sprint #${resolution.sprintId}:`, '']
318
+ const lines = [`Iterations for space #${resolution.sprintId}:`, '']
319
319
  for (const s of subSprints) {
320
320
  const active = s.status === 'in_progress' ? ' ▶ ACTIVE' : ''
321
321
  lines.push(
@@ -414,7 +414,7 @@ export function createSubSprintUpdateTool(client: ForLoopAPIClient) {
414
414
 
415
415
  export function createSubSprintDeleteTool(client: ForLoopAPIClient) {
416
416
  return tool({
417
- description: 'Soft-delete an iteration (sub-sprint). Linked stories retain their subSprintId and will not appear in default sprint views.',
417
+ description: 'Soft-delete an iteration (sub-sprint). Linked stories retain their subSprintId and will not appear in default space views.',
418
418
  args: {
419
419
  subSprintId: tool.schema.number()
420
420
  .describe('Sub-sprint ID to delete'),