@we-scrum/cli 1.0.1 → 1.0.2

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/dist/cli.js CHANGED
@@ -48,7 +48,7 @@ Also returns storyId, sectionId and taskId needed to call start_task and complet
48
48
  Call this before making any changes to the codebase, as instructed by get_next_task.`,inputSchema:D_},z_(LY)),t.registerTool("get_unit_test_guidelines",{description:`Get unit test writing guidelines for the current pending task of a story.
49
49
  Call this tool when get_next_task returns unitTests instructions to run it.`,inputSchema:D_},z_(qY)),t.registerTool("complete_task",{description:`Mark the current in-progress task of a story as done.
50
50
  Call this after committing all changes, as instructed by get_next_task.`,inputSchema:D_},z_(wY));let r=new BY.StdioServerTransport;await t.connect(r),process.stderr.write(`we-scrum MCP server running.
51
- `)}n(FY,"startMcpServer");ra.Logger.registerLogger(new ra.Logger.ConsoleImplementation);var f3=new GY.Command;f3.name("we-scrum").description("CLI for we-scrum application").version("1.0.0");f3.command("login").description("Authenticate with your Google account").action(async()=>{try{await Ai.loginWithGoogle(),process.exit(0)}catch(e){ra.Logger.error(e?.message??"Login failed"),process.exit(1)}});f3.command("logout").description("Log out and remove stored credentials").action(()=>{Ai.logout(),ra.Logger.info("Logged out successfully."),process.exit(0)});f3.command("use-project").description("Select the active project").option("--projectId <id>","Set the active project directly without the interactive prompt").action(async e=>{try{await Ai.initializeFromStoredCredentials()||(ra.Logger.error('Not authenticated. Please run "we-scrum login" first.'),process.exit(1));let r=await ln.getCollection(`users/${Ai.userId}/projects`);r.length===0&&(ra.Logger.error("No projects found for your account."),process.exit(1));let i;if(e.projectId){let a=r.find(o=>o.projectId===e.projectId);a||(ra.Logger.error(`Project "${e.projectId}" not found in your account.`),process.exit(1)),i=a.projectId}else i=await(0,HY.select)({message:"Select a project",default:cn.get().selectedProjectId,choices:r.map(a=>({name:a.name,value:a.projectId,description:a.projectId}))});cn.set({selectedProjectId:i}),ra.Logger.info(`Active project set to: ${r.find(a=>a.projectId===i)?.name}`),process.exit(0)}catch(t){t?.name==="ExitPromptError"&&process.exit(0),ra.Logger.error(t?.message??"Failed to select project"),process.exit(1)}});f3.command("mcp").description("Start the we-scrum MCP server (stdio transport)").option("--projectId <id>","Override the active project for this session").action(async e=>{e.projectId&&cn.set({selectedProjectId:e.projectId}),await FY()});f3.parse(process.argv);
51
+ `)}n(FY,"startMcpServer");ra.Logger.registerLogger(new ra.Logger.ConsoleImplementation);var f3=new GY.Command;f3.name("we-scrum").description("CLI for we-scrum application").version("1.0.2");f3.command("login").description("Authenticate with your Google account").action(async()=>{try{await Ai.loginWithGoogle(),process.exit(0)}catch(e){ra.Logger.error(e?.message??"Login failed"),process.exit(1)}});f3.command("logout").description("Log out and remove stored credentials").action(()=>{Ai.logout(),ra.Logger.info("Logged out successfully."),process.exit(0)});f3.command("use-project").description("Select the active project").option("--projectId <id>","Set the active project directly without the interactive prompt").action(async e=>{try{await Ai.initializeFromStoredCredentials()||(ra.Logger.error('Not authenticated. Please run "we-scrum login" first.'),process.exit(1));let r=await ln.getCollection(`users/${Ai.userId}/projects`);r.length===0&&(ra.Logger.error("No projects found for your account."),process.exit(1));let i;if(e.projectId){let a=r.find(o=>o.projectId===e.projectId);a||(ra.Logger.error(`Project "${e.projectId}" not found in your account.`),process.exit(1)),i=a.projectId}else i=await(0,HY.select)({message:"Select a project",default:cn.get().selectedProjectId,choices:r.map(a=>({name:a.name,value:a.projectId,description:a.projectId}))});cn.set({selectedProjectId:i}),ra.Logger.info(`Active project set to: ${r.find(a=>a.projectId===i)?.name}`),process.exit(0)}catch(t){t?.name==="ExitPromptError"&&process.exit(0),ra.Logger.error(t?.message??"Failed to select project"),process.exit(1)}});f3.command("mcp").description("Start the we-scrum MCP server (stdio transport)").option("--projectId <id>","Override the active project for this session").action(async e=>{e.projectId&&cn.set({selectedProjectId:e.projectId}),await FY()});f3.parse(process.argv);
52
52
  /*! Bundled license information:
53
53
 
54
54
  lodash/lodash.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@we-scrum/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Cli tool for we-scrum application",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {
@@ -37,8 +37,8 @@
37
37
  "tsup": "8.5.1",
38
38
  "typescript": "5.9.3",
39
39
  "@my-devkit/cli": "2.1.0",
40
- "@my-devkit/core": "1.0.0",
41
40
  "@we-scrum/commands": "1.0.0",
41
+ "@my-devkit/core": "1.0.0",
42
42
  "@we-scrum/enums": "1.0.0",
43
43
  "@we-scrum/models": "1.0.0",
44
44
  "@we-scrum/utils": "1.0.0"
package/src/cli.ts CHANGED
@@ -11,7 +11,7 @@ Logger.registerLogger(new Logger.ConsoleImplementation());
11
11
 
12
12
  const program = new Command();
13
13
 
14
- program.name('we-scrum').description('CLI for we-scrum application').version('1.0.0');
14
+ program.name('we-scrum').description('CLI for we-scrum application').version('1.0.2');
15
15
 
16
16
  program
17
17
  .command('login')