@locusai/cli 0.15.5 → 0.16.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.
@@ -14343,32 +14343,6 @@ var init_auth = __esm(() => {
14343
14343
  });
14344
14344
  });
14345
14345
 
14346
- // ../shared/src/models/autonomy.ts
14347
- var RiskLevel, ChangeCategory, AutonomyRuleSchema;
14348
- var init_autonomy = __esm(() => {
14349
- init_zod();
14350
- ((RiskLevel2) => {
14351
- RiskLevel2["LOW"] = "LOW";
14352
- RiskLevel2["HIGH"] = "HIGH";
14353
- })(RiskLevel ||= {});
14354
- ((ChangeCategory2) => {
14355
- ChangeCategory2["FIX"] = "FIX";
14356
- ChangeCategory2["REFACTOR"] = "REFACTOR";
14357
- ChangeCategory2["STYLE"] = "STYLE";
14358
- ChangeCategory2["DEPENDENCY"] = "DEPENDENCY";
14359
- ChangeCategory2["FEATURE"] = "FEATURE";
14360
- ChangeCategory2["ARCHITECTURE"] = "ARCHITECTURE";
14361
- ChangeCategory2["DATABASE"] = "DATABASE";
14362
- ChangeCategory2["AUTH"] = "AUTH";
14363
- ChangeCategory2["API"] = "API";
14364
- })(ChangeCategory ||= {});
14365
- AutonomyRuleSchema = exports_external.object({
14366
- category: exports_external.enum(ChangeCategory),
14367
- riskLevel: exports_external.enum(RiskLevel),
14368
- autoExecute: exports_external.boolean()
14369
- });
14370
- });
14371
-
14372
14346
  // ../shared/src/models/aws-instance.ts
14373
14347
  var InstanceAction, AwsCredentialsSchema, IntegrationSchema, AwsInstanceSchema, CreateAwsInstanceSchema, UpdateAwsInstanceSchema, SaveAwsCredentialsSchema, ProvisionAwsInstanceSchema, InstanceActionBodySchema, InstanceIdParamSchema, CIDR_REGEX, UpdateSecurityRulesSchema;
14374
14348
  var init_aws_instance = __esm(() => {
@@ -14687,49 +14661,6 @@ var init_sprint = __esm(() => {
14687
14661
  });
14688
14662
  });
14689
14663
 
14690
- // ../shared/src/models/suggestion.ts
14691
- var SuggestionStatus, SuggestionType, SuggestionSchema, CreateSuggestionSchema, UpdateSuggestionStatusSchema;
14692
- var init_suggestion = __esm(() => {
14693
- init_zod();
14694
- ((SuggestionStatus2) => {
14695
- SuggestionStatus2["NEW"] = "NEW";
14696
- SuggestionStatus2["NOTIFIED"] = "NOTIFIED";
14697
- SuggestionStatus2["ACTED_ON"] = "ACTED_ON";
14698
- SuggestionStatus2["SKIPPED"] = "SKIPPED";
14699
- SuggestionStatus2["EXPIRED"] = "EXPIRED";
14700
- })(SuggestionStatus ||= {});
14701
- ((SuggestionType2) => {
14702
- SuggestionType2["CODE_FIX"] = "CODE_FIX";
14703
- SuggestionType2["DEPENDENCY_UPDATE"] = "DEPENDENCY_UPDATE";
14704
- SuggestionType2["NEXT_STEP"] = "NEXT_STEP";
14705
- SuggestionType2["REFACTOR"] = "REFACTOR";
14706
- SuggestionType2["TEST_FIX"] = "TEST_FIX";
14707
- })(SuggestionType ||= {});
14708
- SuggestionSchema = exports_external.object({
14709
- id: exports_external.string(),
14710
- type: exports_external.enum(SuggestionType),
14711
- status: exports_external.enum(SuggestionStatus),
14712
- title: exports_external.string(),
14713
- description: exports_external.string(),
14714
- jobRunId: exports_external.string().optional(),
14715
- workspaceId: exports_external.string(),
14716
- createdAt: exports_external.string(),
14717
- expiresAt: exports_external.string(),
14718
- metadata: exports_external.record(exports_external.string(), exports_external.any()).optional()
14719
- });
14720
- CreateSuggestionSchema = exports_external.object({
14721
- type: exports_external.enum(SuggestionType),
14722
- title: exports_external.string().min(1, "Title is required"),
14723
- description: exports_external.string().min(1, "Description is required"),
14724
- jobRunId: exports_external.string().uuid().optional(),
14725
- metadata: exports_external.record(exports_external.string(), exports_external.any()).optional(),
14726
- expiresAt: exports_external.string().optional()
14727
- });
14728
- UpdateSuggestionStatusSchema = exports_external.object({
14729
- status: exports_external.enum(SuggestionStatus)
14730
- });
14731
- });
14732
-
14733
14664
  // ../shared/src/models/task.ts
14734
14665
  var AcceptanceItemSchema, TaskSchema, CreateTaskSchema, UpdateTaskSchema, AddCommentSchema, DispatchTaskSchema, TaskIdParamSchema, TaskQuerySchema, TaskResponseSchema, TasksResponseSchema;
14735
14666
  var init_task = __esm(() => {
@@ -14869,7 +14800,6 @@ var init_models = __esm(() => {
14869
14800
  init_activity();
14870
14801
  init_agent();
14871
14802
  init_auth();
14872
- init_autonomy();
14873
14803
  init_aws_instance();
14874
14804
  init_ci();
14875
14805
  init_doc();
@@ -14877,7 +14807,6 @@ var init_models = __esm(() => {
14877
14807
  init_invitation();
14878
14808
  init_organization();
14879
14809
  init_sprint();
14880
- init_suggestion();
14881
14810
  init_task();
14882
14811
  init_user();
14883
14812
  init_workspace();
@@ -15621,7 +15550,6 @@ var init_resolve_bin = __esm(() => {
15621
15550
  join2(homedir(), ".local", "bin"),
15622
15551
  join2(homedir(), ".npm", "bin"),
15623
15552
  join2(homedir(), ".npm-global", "bin"),
15624
- join2(homedir(), ".npm-packages", "bin"),
15625
15553
  join2(homedir(), ".yarn", "bin"),
15626
15554
  join2(homedir(), ".bun", "bin"),
15627
15555
  join2(homedir(), "Library", "pnpm"),
@@ -31777,29 +31705,6 @@ var init_sprints = __esm(() => {
31777
31705
  };
31778
31706
  });
31779
31707
 
31780
- // ../sdk/src/modules/suggestions.ts
31781
- var SuggestionsModule;
31782
- var init_suggestions = __esm(() => {
31783
- SuggestionsModule = class SuggestionsModule extends BaseModule {
31784
- async create(workspaceId, data) {
31785
- const { data: res } = await this.api.post(`/workspaces/${workspaceId}/suggestions`, data);
31786
- return res.suggestion;
31787
- }
31788
- async list(workspaceId, params) {
31789
- const { data } = await this.api.get(`/workspaces/${workspaceId}/suggestions`, { params });
31790
- return data.suggestions;
31791
- }
31792
- async get(workspaceId, id) {
31793
- const { data } = await this.api.get(`/workspaces/${workspaceId}/suggestions/${id}`);
31794
- return data.suggestion;
31795
- }
31796
- async updateStatus(workspaceId, id, status) {
31797
- const { data } = await this.api.patch(`/workspaces/${workspaceId}/suggestions/${id}/status`, status);
31798
- return data.suggestion;
31799
- }
31800
- };
31801
- });
31802
-
31803
31708
  // ../sdk/src/modules/tasks.ts
31804
31709
  var TasksModule;
31805
31710
  var init_tasks = __esm(() => {
@@ -31984,7 +31889,6 @@ class LocusClient {
31984
31889
  docs;
31985
31890
  ci;
31986
31891
  instances;
31987
- suggestions;
31988
31892
  constructor(config2) {
31989
31893
  this.emitter = new LocusEmitter;
31990
31894
  this.api = axios_default.create({
@@ -32005,7 +31909,6 @@ class LocusClient {
32005
31909
  this.docs = new DocsModule(this.api, this.emitter);
32006
31910
  this.ci = new CiModule(this.api, this.emitter);
32007
31911
  this.instances = new InstancesModule(this.api, this.emitter);
32008
- this.suggestions = new SuggestionsModule(this.api, this.emitter);
32009
31912
  if (config2.retryOptions) {
32010
31913
  this.setupRetryInterceptor(config2.retryOptions);
32011
31914
  }
@@ -32075,7 +31978,6 @@ var init_src2 = __esm(() => {
32075
31978
  init_invitations();
32076
31979
  init_organizations();
32077
31980
  init_sprints();
32078
- init_suggestions();
32079
31981
  init_tasks();
32080
31982
  init_workspaces();
32081
31983
  init_discussion_types();
@@ -32087,7 +31989,6 @@ var init_src2 = __esm(() => {
32087
31989
  init_invitations();
32088
31990
  init_organizations();
32089
31991
  init_sprints();
32090
- init_suggestions();
32091
31992
  init_tasks();
32092
31993
  init_workspaces();
32093
31994
  });