linear-cli-agents 0.7.0 → 0.7.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.
package/bin/dev.js CHANGED
File without changes
@@ -160,7 +160,8 @@ const COMMANDS = {
160
160
  description: 'Create a project',
161
161
  flags: {
162
162
  name: { type: 'string', char: 'n', description: 'Project name', required: true },
163
- description: { type: 'string', char: 'd', description: 'Project description' },
163
+ description: { type: 'string', char: 'd', description: 'Project description (short subtitle)' },
164
+ content: { type: 'string', char: 'c', description: 'Project content (markdown, long-form description body)' },
164
165
  state: { type: 'string', options: ['planned', 'started', 'paused', 'completed', 'canceled'] },
165
166
  'team-ids': { type: 'string', description: 'Team IDs (uses default if configured)' },
166
167
  'lead-id': { type: 'string', description: 'Lead user ID' },
@@ -177,10 +178,17 @@ const COMMANDS = {
177
178
  args: { id: { description: 'Project ID', required: true } },
178
179
  flags: {
179
180
  name: { type: 'string', description: 'New name' },
180
- description: { type: 'string', description: 'New description' },
181
+ description: { type: 'string', description: 'New description (short subtitle)' },
182
+ content: { type: 'string', char: 'c', description: 'New content (markdown, long-form description body)' },
181
183
  state: { type: 'string', options: ['planned', 'started', 'paused', 'completed', 'canceled'] },
184
+ 'lead-id': { type: 'string', description: 'Lead user ID' },
185
+ 'start-date': { type: 'string', description: 'Start date (YYYY-MM-DD)' },
186
+ 'target-date': { type: 'string', description: 'Target date (YYYY-MM-DD)' },
182
187
  },
183
- examples: ['linear projects update PROJECT_ID --name "New Name"'],
188
+ examples: [
189
+ 'linear projects update PROJECT_ID --name "New Name"',
190
+ 'linear projects update PROJECT_ID --content "# Plan\\nDetailed markdown content"',
191
+ ],
184
192
  },
185
193
  'projects delete': {
186
194
  description: 'Delete a project',
@@ -671,7 +679,8 @@ const ENTITY_SCHEMAS = {
671
679
  fields: {
672
680
  id: 'Unique identifier',
673
681
  name: 'Project name',
674
- description: 'Project description',
682
+ description: 'Short description (subtitle)',
683
+ content: 'Long-form markdown description body',
675
684
  state: 'planned/started/paused/completed/canceled',
676
685
  progress: 'Completion percentage',
677
686
  startDate: 'Start date',
@@ -11,6 +11,7 @@ export default class ProjectsCreate extends Command {
11
11
  'lead-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
12
  'start-date': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
13
  'target-date': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ content: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
15
  };
15
16
  run(): Promise<void>;
16
17
  }
@@ -43,6 +43,10 @@ export default class ProjectsCreate extends Command {
43
43
  'target-date': Flags.string({
44
44
  description: 'Target date (YYYY-MM-DD)',
45
45
  }),
46
+ content: Flags.string({
47
+ char: 'c',
48
+ description: 'Project content (markdown, for longer descriptions)',
49
+ }),
46
50
  };
47
51
  async run() {
48
52
  try {
@@ -70,6 +74,12 @@ export default class ProjectsCreate extends Command {
70
74
  startDate: flags['start-date'],
71
75
  targetDate: flags['target-date'],
72
76
  });
77
+ // Content is not in ProjectCreateInput, so we set it via update after creation
78
+ if (flags.content && payload.success && payload.project) {
79
+ const created = await payload.project;
80
+ const contentInput = { content: flags.content };
81
+ await client.updateProject(created.id, contentInput);
82
+ }
73
83
  if (!payload.success || !payload.project) {
74
84
  throw new CliError(ErrorCodes.API_ERROR, 'Failed to create project');
75
85
  }
@@ -13,6 +13,7 @@ export default class ProjectsUpdate extends Command {
13
13
  'lead-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
14
  'start-date': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
15
  'target-date': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ content: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
17
  };
17
18
  run(): Promise<void>;
18
19
  }
@@ -44,6 +44,10 @@ export default class ProjectsUpdate extends Command {
44
44
  'target-date': Flags.string({
45
45
  description: 'Target date (YYYY-MM-DD)',
46
46
  }),
47
+ content: Flags.string({
48
+ char: 'c',
49
+ description: 'Project content (markdown, for longer descriptions)',
50
+ }),
47
51
  };
48
52
  async run() {
49
53
  try {
@@ -55,6 +59,8 @@ export default class ProjectsUpdate extends Command {
55
59
  input.name = flags.name;
56
60
  if (flags.description)
57
61
  input.description = flags.description;
62
+ if (flags.content)
63
+ input.content = flags.content;
58
64
  if (flags.state)
59
65
  input.state = flags.state;
60
66
  if (flags['lead-id'])
@@ -76,6 +82,7 @@ export default class ProjectsUpdate extends Command {
76
82
  id: project.id,
77
83
  name: project.name,
78
84
  description: project.description,
85
+ content: project.content,
79
86
  state: project.state,
80
87
  progress: project.progress,
81
88
  startDate: project.startDate,