@galaxy-stack/orbit-mcp 0.1.7 → 0.1.8

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,8 +150,8 @@ export class UserRepository extends Repository<User> {
150
150
  {
151
151
  id: "testing-pattern",
152
152
  title: "Testing",
153
- summary: "OrbitTestFactory boots an isolated app; bun:test for unit, e2e via handle(Request).",
154
- content: `Unit-test providers directly; integration-test through the HTTP surface:
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.
155
155
 
156
156
  \`\`\`ts
157
157
  import { describe, test, expect } from 'bun:test';
@@ -164,11 +164,13 @@ describe('UserService', () => {
164
164
  });
165
165
  \`\`\`
166
166
 
167
- E2E: build the module, get the handler, pass a Request:
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
168
 
169
169
  \`\`\`ts
170
- const module = await OrbitTestFactory.create(AppModule).compile();
171
- const app = module.get(OrbitApplication);
170
+ import { OrbitFactory } from '@galaxy-stack/orbit-core';
171
+
172
+ const app = await OrbitFactory.create(AppModule);
173
+ await app.listen(3000); // or omit when calling app.handle directly
172
174
  const res = await app.handle(new Request('http://localhost/users'));
173
175
  expect(res.status).toBe(200);
174
176
  \`\`\``
@@ -280,7 +282,7 @@ var TOOLS = [
280
282
  function pascal(name) {
281
283
  return name.split(/[-_]/).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join("");
282
284
  }
283
- var DOCS_STAMP = `> orbit-mcp docs \u2014 kh\u1EDBp @galaxy-stack/orbit-core 0.2.x (mcp docs l\xE0 ngu\u1ED3n ch\xEDnh th\u1EE9c cho API; KH\xD4NG c\u1EA7n verify l\u1EA1i b\u1EB1ng npm/node_modules).
285
+ var DOCS_STAMP = `> orbit-mcp docs \u2014 ngu\u1ED3n ch\xEDnh th\u1EE9c cho API c\u1EE7a @galaxy-stack/orbit-core 0.2.x. C\xE0i \u0111\u1EB7t: \`bun add @galaxy-stack/orbit-core\` (bun t\u1EF1 ch\u1ECDn version m\u1EDBi nh\u1EA5t, kh\xF4ng c\u1EA7n npm view \u0111\u1EC3 pin). Sau khi c\xE0i, tra exports th\u1EADt b\u1EB1ng c\xE1ch \u0111\u1ECDc .d.ts trong node_modules (\u0111\u01B0\u1EE3c ph\xE9p) \u2014 KH\xD4NG \u0111\u1ECDc source .js hay grep c\u1EA3 c\xE2y node_modules.
284
286
  `;
285
287
  function executeTool(name, args) {
286
288
  const text = (t) => ({ content: [{ type: "text", text: t }] });
@@ -453,7 +455,7 @@ export class ${cls}Resolver {
453
455
  var PROTOCOL_VERSION = "2025-03-26";
454
456
  var SERVER_INFO = {
455
457
  name: "@galaxy-stack/orbit-mcp",
456
- version: "0.1.6"
458
+ version: "0.1.7"
457
459
  };
458
460
  var PROMPTS = [
459
461
  {
package/dist/index.js CHANGED
@@ -150,8 +150,8 @@ export class UserRepository extends Repository<User> {
150
150
  {
151
151
  id: "testing-pattern",
152
152
  title: "Testing",
153
- summary: "OrbitTestFactory boots an isolated app; bun:test for unit, e2e via handle(Request).",
154
- content: `Unit-test providers directly; integration-test through the HTTP surface:
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.
155
155
 
156
156
  \`\`\`ts
157
157
  import { describe, test, expect } from 'bun:test';
@@ -164,11 +164,13 @@ describe('UserService', () => {
164
164
  });
165
165
  \`\`\`
166
166
 
167
- E2E: build the module, get the handler, pass a Request:
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
168
 
169
169
  \`\`\`ts
170
- const module = await OrbitTestFactory.create(AppModule).compile();
171
- const app = module.get(OrbitApplication);
170
+ import { OrbitFactory } from '@galaxy-stack/orbit-core';
171
+
172
+ const app = await OrbitFactory.create(AppModule);
173
+ await app.listen(3000); // or omit when calling app.handle directly
172
174
  const res = await app.handle(new Request('http://localhost/users'));
173
175
  expect(res.status).toBe(200);
174
176
  \`\`\``
@@ -283,7 +285,7 @@ var TOOLS = [
283
285
  function pascal(name) {
284
286
  return name.split(/[-_]/).map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join("");
285
287
  }
286
- var DOCS_STAMP = `> orbit-mcp docs \u2014 kh\u1EDBp @galaxy-stack/orbit-core 0.2.x (mcp docs l\xE0 ngu\u1ED3n ch\xEDnh th\u1EE9c cho API; KH\xD4NG c\u1EA7n verify l\u1EA1i b\u1EB1ng npm/node_modules).
288
+ var DOCS_STAMP = `> orbit-mcp docs \u2014 ngu\u1ED3n ch\xEDnh th\u1EE9c cho API c\u1EE7a @galaxy-stack/orbit-core 0.2.x. C\xE0i \u0111\u1EB7t: \`bun add @galaxy-stack/orbit-core\` (bun t\u1EF1 ch\u1ECDn version m\u1EDBi nh\u1EA5t, kh\xF4ng c\u1EA7n npm view \u0111\u1EC3 pin). Sau khi c\xE0i, tra exports th\u1EADt b\u1EB1ng c\xE1ch \u0111\u1ECDc .d.ts trong node_modules (\u0111\u01B0\u1EE3c ph\xE9p) \u2014 KH\xD4NG \u0111\u1ECDc source .js hay grep c\u1EA3 c\xE2y node_modules.
287
289
  `;
288
290
  function executeTool(name, args) {
289
291
  const text = (t) => ({ content: [{ type: "text", text: t }] });
@@ -456,7 +458,7 @@ export class ${cls}Resolver {
456
458
  var PROTOCOL_VERSION = "2025-03-26";
457
459
  var SERVER_INFO = {
458
460
  name: "@galaxy-stack/orbit-mcp",
459
- version: "0.1.6"
461
+ version: "0.1.7"
460
462
  };
461
463
  var PROMPTS = [
462
464
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galaxy-stack/orbit-mcp",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
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",