@inworld/cli 1.4.0 → 1.4.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.
@@ -64201,6 +64201,9 @@ function registerRuntimeTools(server) {
64201
64201
  }
64202
64202
  }
64203
64203
  );
64204
+ registerSearchDocsTool(server);
64205
+ }
64206
+ function registerSearchDocsTool(server) {
64204
64207
  server.registerTool(
64205
64208
  "search_docs",
64206
64209
  {
@@ -64602,7 +64605,7 @@ var init_package = __esm({
64602
64605
  "package.json"() {
64603
64606
  package_default = {
64604
64607
  name: "@inworld/cli",
64605
- version: "1.4.0",
64608
+ version: "1.4.1",
64606
64609
  type: "module",
64607
64610
  main: "dist/index.js",
64608
64611
  bin: {
@@ -64863,6 +64866,8 @@ function createMcpServer(modes) {
64863
64866
  });
64864
64867
  if (modes.runtime) {
64865
64868
  registerRuntimeTools(server);
64869
+ } else {
64870
+ registerSearchDocsTool(server);
64866
64871
  }
64867
64872
  if (modes.runtimeOnly) {
64868
64873
  return server;
@@ -65696,13 +65701,12 @@ function createMcpServer(modes) {
65696
65701
  }
65697
65702
  return server;
65698
65703
  }
65699
- async function assertAuthenticatedOrExit() {
65704
+ async function warnIfUnauthenticated() {
65700
65705
  if (skipAuth()) return;
65701
65706
  if (!await hasUsableAuthCredentials()) {
65702
65707
  console.error(
65703
- "Not signed in. Run: `inworld login` or `inworld-mcp login`\n(Or set INWORLD_SKIP_AUTH=1 for local dev without auth.)"
65708
+ "Not signed in. Run: `inworld login` or `inworld-mcp login` (search_docs works without signing in).\n(Or set INWORLD_SKIP_AUTH=1 for local dev without auth.)"
65704
65709
  );
65705
- process.exit(1);
65706
65710
  }
65707
65711
  }
65708
65712
  function useHttpTransport() {
@@ -65710,7 +65714,7 @@ function useHttpTransport() {
65710
65714
  }
65711
65715
  async function runStdio() {
65712
65716
  const modes = await detectToolModes();
65713
- if (!modes.runtimeOnly) await assertAuthenticatedOrExit();
65717
+ if (!modes.runtimeOnly) await warnIfUnauthenticated();
65714
65718
  const server = createMcpServer(modes);
65715
65719
  const transport = new StdioServerTransport();
65716
65720
  await server.connect(transport);
package/dist/index.js CHANGED
@@ -19530,7 +19530,7 @@ var init_package = __esm({
19530
19530
  "package.json"() {
19531
19531
  package_default = {
19532
19532
  name: "@inworld/cli",
19533
- version: "1.4.0",
19533
+ version: "1.4.1",
19534
19534
  type: "module",
19535
19535
  main: "dist/index.js",
19536
19536
  bin: {
@@ -71957,6 +71957,9 @@ function registerRuntimeTools(server) {
71957
71957
  }
71958
71958
  }
71959
71959
  );
71960
+ registerSearchDocsTool(server);
71961
+ }
71962
+ function registerSearchDocsTool(server) {
71960
71963
  server.registerTool(
71961
71964
  "search_docs",
71962
71965
  {
@@ -72474,6 +72477,8 @@ function createMcpServer(modes) {
72474
72477
  });
72475
72478
  if (modes.runtime) {
72476
72479
  registerRuntimeTools(server);
72480
+ } else {
72481
+ registerSearchDocsTool(server);
72477
72482
  }
72478
72483
  if (modes.runtimeOnly) {
72479
72484
  return server;
@@ -73307,13 +73312,12 @@ function createMcpServer(modes) {
73307
73312
  }
73308
73313
  return server;
73309
73314
  }
73310
- async function assertAuthenticatedOrExit() {
73315
+ async function warnIfUnauthenticated() {
73311
73316
  if (skipAuth()) return;
73312
73317
  if (!await hasUsableAuthCredentials()) {
73313
73318
  console.error(
73314
- "Not signed in. Run: `inworld login` or `inworld-mcp login`\n(Or set INWORLD_SKIP_AUTH=1 for local dev without auth.)"
73319
+ "Not signed in. Run: `inworld login` or `inworld-mcp login` (search_docs works without signing in).\n(Or set INWORLD_SKIP_AUTH=1 for local dev without auth.)"
73315
73320
  );
73316
- process.exit(1);
73317
73321
  }
73318
73322
  }
73319
73323
  function useHttpTransport() {
@@ -73321,7 +73325,7 @@ function useHttpTransport() {
73321
73325
  }
73322
73326
  async function runStdio() {
73323
73327
  const modes = await detectToolModes();
73324
- if (!modes.runtimeOnly) await assertAuthenticatedOrExit();
73328
+ if (!modes.runtimeOnly) await warnIfUnauthenticated();
73325
73329
  const server = createMcpServer(modes);
73326
73330
  const transport = new StdioServerTransport();
73327
73331
  await server.connect(transport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inworld/cli",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {