@hasna/terminal 3.7.3 → 3.7.4

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.
@@ -436,7 +436,13 @@ export function createServer() {
436
436
  // ── boot: session start context (replaces first 5 agent commands) ──────────
437
437
  server.tool("boot", "Get everything an agent needs on session start in ONE call — git state, project info, source structure. Replaces: git status + git log + cat package.json + ls src/. Cached for the session.", async () => {
438
438
  const ctx = await getBootContext(process.cwd());
439
- return { content: [{ type: "text", text: JSON.stringify(ctx) }] };
439
+ return { content: [{ type: "text", text: JSON.stringify({
440
+ ...ctx,
441
+ hints: {
442
+ cwd: process.cwd(),
443
+ tip: "All terminal tools support relative paths. Use 'src/foo.ts' not the full absolute path. Use commit({message, push:true}) instead of raw git commands. Use run({task:'test'}) instead of bun/npm test. Use lookup({file, items}) instead of grep pipelines.",
444
+ },
445
+ }) }] };
440
446
  });
441
447
  // ── project_overview: orient agent in one call ─────────────────────────────
442
448
  server.tool("project_overview", "Get project overview in one call — package.json info, source structure, config files. Replaces: cat package.json + ls src/ + cat tsconfig.json.", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/terminal",
3
- "version": "3.7.3",
3
+ "version": "3.7.4",
4
4
  "description": "Smart terminal wrapper for AI agents and humans — structured output, token compression, MCP server, natural language",
5
5
  "type": "module",
6
6
  "files": [
package/src/mcp/server.ts CHANGED
@@ -615,7 +615,13 @@ export function createServer(): McpServer {
615
615
  "Get everything an agent needs on session start in ONE call — git state, project info, source structure. Replaces: git status + git log + cat package.json + ls src/. Cached for the session.",
616
616
  async () => {
617
617
  const ctx = await getBootContext(process.cwd());
618
- return { content: [{ type: "text" as const, text: JSON.stringify(ctx) }] };
618
+ return { content: [{ type: "text" as const, text: JSON.stringify({
619
+ ...ctx,
620
+ hints: {
621
+ cwd: process.cwd(),
622
+ tip: "All terminal tools support relative paths. Use 'src/foo.ts' not the full absolute path. Use commit({message, push:true}) instead of raw git commands. Use run({task:'test'}) instead of bun/npm test. Use lookup({file, items}) instead of grep pipelines.",
623
+ },
624
+ }) }] };
619
625
  }
620
626
  );
621
627