@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.
- package/dist/index.js +7 -3
- 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
|
|
1194
|
-
if (
|
|
1195
|
-
return
|
|
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();
|