@galaxy-stack/orbit-mcp 0.1.8 → 0.1.9

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.js CHANGED
@@ -150,28 +150,18 @@ export class UserRepository extends Repository<User> {
150
150
  {
151
151
  id: "testing-pattern",
152
152
  title: "Testing",
153
- summary: "OrbitFactory.create boots the app in-process; bun:test for unit, e2e via app.handle(Request).",
154
- content: `Unit-test providers directly; integration-test through the HTTP surface.
153
+ summary: "OrbitFactory.create(AppModule, { port: 0 }) boots a real HTTP server; bun:test for unit, e2e via fetch on app.port.",
154
+ content: `Unit-test providers directly; integration-test through a REAL HTTP server. There is no separate test factory and OrbitApplication has no handle() \u2014 OrbitFactory boots Bun.serve and you fetch it on the ephemeral port:
155
155
 
156
156
  \`\`\`ts
157
157
  import { describe, test, expect } from 'bun:test';
158
-
159
- describe('UserService', () => {
160
- test('creates a user', () => {
161
- const service = new UserService(new InMemoryDb());
162
- expect(service.create({ name: 'a' }).id).toBeDefined();
163
- });
164
- });
165
- \`\`\`
166
-
167
- E2E: create the app from the module, boot it in-process, pass a Request. There is no separate test factory \u2014 OrbitFactory IS the test entry point:
168
-
169
- \`\`\`ts
170
158
  import { OrbitFactory } from '@galaxy-stack/orbit-core';
171
159
 
172
- const app = await OrbitFactory.create(AppModule);
173
- await app.listen(3000); // or omit when calling app.handle directly
174
- const res = await app.handle(new Request('http://localhost/users'));
160
+ const app = await OrbitFactory.create(AppModule, { port: 0 });
161
+ await app.listen(0);
162
+ const base = \`http://127.0.0.1:\${app.port}\`;
163
+
164
+ const res = await fetch(\`\${base}/api/users\`);
175
165
  expect(res.status).toBe(200);
176
166
  \`\`\``
177
167
  },
@@ -455,7 +445,7 @@ export class ${cls}Resolver {
455
445
  var PROTOCOL_VERSION = "2025-03-26";
456
446
  var SERVER_INFO = {
457
447
  name: "@galaxy-stack/orbit-mcp",
458
- version: "0.1.7"
448
+ version: "0.1.8"
459
449
  };
460
450
  var PROMPTS = [
461
451
  {
package/dist/index.js CHANGED
@@ -150,28 +150,18 @@ export class UserRepository extends Repository<User> {
150
150
  {
151
151
  id: "testing-pattern",
152
152
  title: "Testing",
153
- summary: "OrbitFactory.create boots the app in-process; bun:test for unit, e2e via app.handle(Request).",
154
- content: `Unit-test providers directly; integration-test through the HTTP surface.
153
+ summary: "OrbitFactory.create(AppModule, { port: 0 }) boots a real HTTP server; bun:test for unit, e2e via fetch on app.port.",
154
+ content: `Unit-test providers directly; integration-test through a REAL HTTP server. There is no separate test factory and OrbitApplication has no handle() \u2014 OrbitFactory boots Bun.serve and you fetch it on the ephemeral port:
155
155
 
156
156
  \`\`\`ts
157
157
  import { describe, test, expect } from 'bun:test';
158
-
159
- describe('UserService', () => {
160
- test('creates a user', () => {
161
- const service = new UserService(new InMemoryDb());
162
- expect(service.create({ name: 'a' }).id).toBeDefined();
163
- });
164
- });
165
- \`\`\`
166
-
167
- E2E: create the app from the module, boot it in-process, pass a Request. There is no separate test factory \u2014 OrbitFactory IS the test entry point:
168
-
169
- \`\`\`ts
170
158
  import { OrbitFactory } from '@galaxy-stack/orbit-core';
171
159
 
172
- const app = await OrbitFactory.create(AppModule);
173
- await app.listen(3000); // or omit when calling app.handle directly
174
- const res = await app.handle(new Request('http://localhost/users'));
160
+ const app = await OrbitFactory.create(AppModule, { port: 0 });
161
+ await app.listen(0);
162
+ const base = \`http://127.0.0.1:\${app.port}\`;
163
+
164
+ const res = await fetch(\`\${base}/api/users\`);
175
165
  expect(res.status).toBe(200);
176
166
  \`\`\``
177
167
  },
@@ -458,7 +448,7 @@ export class ${cls}Resolver {
458
448
  var PROTOCOL_VERSION = "2025-03-26";
459
449
  var SERVER_INFO = {
460
450
  name: "@galaxy-stack/orbit-mcp",
461
- version: "0.1.7"
451
+ version: "0.1.8"
462
452
  };
463
453
  var PROMPTS = [
464
454
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galaxy-stack/orbit-mcp",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Model Context Protocol server for Orbit framework — AI coding agents get framework knowledge, scaffolding, and security review tools",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",