@vexdo/cli 0.2.4 → 0.2.5

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1190,9 +1190,13 @@ function runCodexCommand(args, opts) {
1190
1190
  });
1191
1191
  }
1192
1192
  function parseSessionId(output2) {
1193
- const match = /session[_-]?id\s*[:=]\s*([A-Za-z0-9._-]+)/i.exec(output2);
1194
- if (match?.[1]) {
1195
- return match[1];
1193
+ const kvMatch = /session[_-]?id\s*[:=]\s*([A-Za-z0-9._-]+)/i.exec(output2);
1194
+ if (kvMatch?.[1]) {
1195
+ return kvMatch[1];
1196
+ }
1197
+ const urlMatch = /\/codex\/tasks\/([A-Za-z0-9._-]+)/i.exec(output2);
1198
+ if (urlMatch?.[1]) {
1199
+ return urlMatch[1];
1196
1200
  }
1197
1201
  for (const line of output2.split(/\r?\n/)) {
1198
1202
  const trimmed = line.trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vexdo/cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {