gcf-aif-ext 0.27.0 → 0.27.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/extension.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/lee-to/ai-factory/2.x/schemas/extension.schema.json",
3
3
  "name": "gcf-aif-ext",
4
- "version": "0.27.0",
4
+ "version": "0.27.1",
5
5
  "description": "Game Context Framework for AI Factory",
6
6
  "skills": [
7
7
  "skills/gcf-init",
package/lib/play.js CHANGED
@@ -830,7 +830,8 @@ export async function startPlay(projectDir, id, targetName) {
830
830
  );
831
831
  const open = fill(target.open, { dir: snapshot, port, lan });
832
832
  const child = launch(dir, inCommand(target.start));
833
- const url = /^https?:\/\//.test(open) ? open : null;
833
+ // The address only: words may follow it ("— on a phone: …"), and a tab takes no words.
834
+ const url = /^https?:\/\/[^\s]+/.exec(open)?.[0] ?? null;
834
835
  const stop = target.stop ? { stop: inCommand(target.stop) } : {};
835
836
  const started = new Date().toISOString();
836
837
  const main = id === null ? { main: true } : {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcf-aif-ext",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
4
4
  "description": "Game Context Framework for AI Factory",
5
5
  "type": "module",
6
6
  "license": "MIT",