lalph 0.1.80 → 0.1.82

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.mjs CHANGED
@@ -136025,7 +136025,11 @@ const LinearIssueSource = effect(IssueSource, gen(function* () {
136025
136025
  concurrency: 5,
136026
136026
  discard: true
136027
136027
  });
136028
- return linearIssue.identifier;
136028
+ const url = linearIssue.url ?? `https://linear.app/issue/${linearIssue.identifier}/`;
136029
+ return {
136030
+ id: linearIssue.identifier,
136031
+ url
136032
+ };
136029
136033
  }, mapError$2((cause) => new IssueSourceError({ cause }))),
136030
136034
  updateIssue: fnUntraced(function* (options) {
136031
136035
  const issueId = identifierMap.get(options.issueId);
@@ -142473,7 +142477,10 @@ const GithubIssueSource = effect(IssueSource, gen(function* () {
142473
142477
  discard: true
142474
142478
  });
142475
142479
  yield* sleep(2e3);
142476
- return `#${created.number}`;
142480
+ return {
142481
+ id: `#${created.number}`,
142482
+ url: created.html_url
142483
+ };
142477
142484
  }, mapError$2((cause) => new IssueSourceError({ cause }))),
142478
142485
  updateIssue: fnUntraced(function* (options) {
142479
142486
  const issueNumber = Number(options.issueId.slice(1));
@@ -143329,14 +143336,15 @@ const commandIssue = make$28("issue").pipe(withDescription("Create a new issue i
143329
143336
  const yamlContent = yamlLines.join("\n");
143330
143337
  const frontMatter = yield* decodeEffect(FrontMatterSchema)(import_dist.parse(yamlContent));
143331
143338
  const description = lines$1.slice(descriptionStartIndex).join("\n").trim();
143332
- const issueId = yield* source.createIssue(new PrdIssue({
143339
+ const created = yield* source.createIssue(new PrdIssue({
143333
143340
  id: null,
143334
143341
  ...frontMatter,
143335
143342
  description,
143336
143343
  state: "todo",
143337
143344
  githubPrNumber: null
143338
143345
  }));
143339
- console.log(`Created issue with ID: ${issueId}`);
143346
+ console.log(`Created issue with ID: ${created.id}`);
143347
+ console.log(`URL: ${created.url}`);
143340
143348
  }, scoped$1)), provide(CurrentIssueSource.layer));
143341
143349
 
143342
143350
  //#endregion
@@ -143373,7 +143381,7 @@ const commandSource = make$28("source").pipe(withDescription("Select the issue s
143373
143381
 
143374
143382
  //#endregion
143375
143383
  //#region package.json
143376
- var version = "0.1.80";
143384
+ var version = "0.1.82";
143377
143385
 
143378
143386
  //#endregion
143379
143387
  //#region src/Tracing.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.1.80",
4
+ "version": "0.1.82",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
package/src/Github.ts CHANGED
@@ -269,7 +269,10 @@ export const GithubIssueSource = Layer.effect(
269
269
 
270
270
  yield* Effect.sleep(2000)
271
271
 
272
- return `#${created.number}`
272
+ return {
273
+ id: `#${created.number}`,
274
+ url: created.html_url,
275
+ }
273
276
  },
274
277
  Effect.mapError((cause) => new IssueSourceError({ cause })),
275
278
  ),
@@ -8,7 +8,7 @@ export class IssueSource extends ServiceMap.Service<
8
8
 
9
9
  readonly createIssue: (
10
10
  issue: PrdIssue,
11
- ) => Effect.Effect<string, IssueSourceError>
11
+ ) => Effect.Effect<{ id: string; url: string }, IssueSourceError>
12
12
 
13
13
  readonly updateIssue: (options: {
14
14
  readonly issueId: string
package/src/Linear.ts CHANGED
@@ -294,7 +294,13 @@ export const LinearIssueSource = Layer.effect(
294
294
  { concurrency: 5, discard: true },
295
295
  )
296
296
  }
297
- return linearIssue.identifier
297
+ const url =
298
+ linearIssue.url ??
299
+ `https://linear.app/issue/${linearIssue.identifier}/`
300
+ return {
301
+ id: linearIssue.identifier,
302
+ url,
303
+ }
298
304
  },
299
305
  Effect.mapError((cause) => new IssueSourceError({ cause })),
300
306
  ),
@@ -78,7 +78,7 @@ export const commandIssue = Command.make("issue").pipe(
78
78
  )
79
79
  const description = lines.slice(descriptionStartIndex).join("\n").trim()
80
80
 
81
- const issueId = yield* source.createIssue(
81
+ const created = yield* source.createIssue(
82
82
  new PrdIssue({
83
83
  id: null,
84
84
  ...frontMatter,
@@ -87,7 +87,8 @@ export const commandIssue = Command.make("issue").pipe(
87
87
  githubPrNumber: null,
88
88
  }),
89
89
  )
90
- console.log(`Created issue with ID: ${issueId}`)
90
+ console.log(`Created issue with ID: ${created.id}`)
91
+ console.log(`URL: ${created.url}`)
91
92
  }, Effect.scoped),
92
93
  ),
93
94
  Command.provide(CurrentIssueSource.layer),