@guildai/cli 0.5.5 → 0.5.7

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.
Files changed (104) hide show
  1. package/README.md +1 -1
  2. package/dist/commands/agent/chat.js +2 -1
  3. package/dist/commands/agent/clone.js +2 -1
  4. package/dist/commands/agent/code.js +2 -1
  5. package/dist/commands/agent/create.js +2 -1
  6. package/dist/commands/agent/fork.js +2 -1
  7. package/dist/commands/agent/get.js +2 -1
  8. package/dist/commands/agent/grep.js +2 -1
  9. package/dist/commands/agent/init.js +2 -1
  10. package/dist/commands/agent/list.js +2 -1
  11. package/dist/commands/agent/owners.js +2 -1
  12. package/dist/commands/agent/publish.js +2 -1
  13. package/dist/commands/agent/pull.js +2 -1
  14. package/dist/commands/agent/revalidate.js +2 -1
  15. package/dist/commands/agent/save.js +2 -1
  16. package/dist/commands/agent/search.js +2 -1
  17. package/dist/commands/agent/tags/add.js +2 -1
  18. package/dist/commands/agent/tags/list.js +2 -1
  19. package/dist/commands/agent/tags/remove.js +2 -1
  20. package/dist/commands/agent/tags/set.js +2 -1
  21. package/dist/commands/agent/test.js +2 -1
  22. package/dist/commands/agent/unpublish.js +2 -1
  23. package/dist/commands/agent/update.js +2 -1
  24. package/dist/commands/agent/versions.js +2 -1
  25. package/dist/commands/agent/workspaces.js +2 -1
  26. package/dist/commands/auth/login.js +2 -1
  27. package/dist/commands/auth/logout.js +2 -1
  28. package/dist/commands/auth/status.js +2 -1
  29. package/dist/commands/auth/token.js +2 -1
  30. package/dist/commands/chat.js +2 -1
  31. package/dist/commands/config/get.js +2 -1
  32. package/dist/commands/config/list.js +2 -1
  33. package/dist/commands/config/path.js +2 -1
  34. package/dist/commands/config/set.js +2 -1
  35. package/dist/commands/doctor.js +2 -1
  36. package/dist/commands/mcp.d.ts +3 -0
  37. package/dist/commands/mcp.js +34 -0
  38. package/dist/commands/session/create.js +2 -1
  39. package/dist/commands/session/events.js +2 -1
  40. package/dist/commands/session/get.js +2 -1
  41. package/dist/commands/session/list.js +2 -1
  42. package/dist/commands/session/send.js +2 -1
  43. package/dist/commands/session/tasks.js +2 -1
  44. package/dist/commands/setup.js +39 -1
  45. package/dist/commands/trigger/activate.js +2 -1
  46. package/dist/commands/trigger/create.js +2 -1
  47. package/dist/commands/trigger/deactivate.js +2 -1
  48. package/dist/commands/trigger/get.js +2 -1
  49. package/dist/commands/trigger/list.js +2 -1
  50. package/dist/commands/trigger/sessions.js +2 -1
  51. package/dist/commands/trigger/update.js +2 -1
  52. package/dist/commands/version.js +2 -1
  53. package/dist/commands/workspace/agent/add.js +2 -1
  54. package/dist/commands/workspace/agent/list.js +2 -1
  55. package/dist/commands/workspace/agent/remove.js +2 -1
  56. package/dist/commands/workspace/context/edit.js +2 -1
  57. package/dist/commands/workspace/context/get.js +2 -1
  58. package/dist/commands/workspace/context/list.js +2 -1
  59. package/dist/commands/workspace/context/publish.js +2 -1
  60. package/dist/commands/workspace/create.js +2 -1
  61. package/dist/commands/workspace/current.js +2 -1
  62. package/dist/commands/workspace/get.js +2 -1
  63. package/dist/commands/workspace/list.js +2 -1
  64. package/dist/commands/workspace/select.js +2 -1
  65. package/dist/components/AgentInstallPrompt.js +2 -1
  66. package/dist/components/SplashAnimation.js +2 -1
  67. package/dist/components/TaskView.js +2 -1
  68. package/dist/index.js +11 -4
  69. package/dist/lib/agent-helpers.js +2 -1
  70. package/dist/lib/alternate-screen.js +2 -1
  71. package/dist/lib/api-client.js +2 -1
  72. package/dist/lib/api-types.js +2 -1
  73. package/dist/lib/auth.js +2 -1
  74. package/dist/lib/braille-canvas.js +2 -1
  75. package/dist/lib/colors.js +2 -1
  76. package/dist/lib/config-cache.js +2 -1
  77. package/dist/lib/config.js +2 -1
  78. package/dist/lib/did-you-mean.js +2 -1
  79. package/dist/lib/errors.js +2 -1
  80. package/dist/lib/git.js +2 -1
  81. package/dist/lib/guild-config.js +2 -1
  82. package/dist/lib/iap.js +2 -1
  83. package/dist/lib/loading-messages.js +2 -1
  84. package/dist/lib/logo.js +2 -1
  85. package/dist/lib/lottie-renderer.js +2 -1
  86. package/dist/lib/lottie-serverside.js +2 -1
  87. package/dist/lib/markdown.js +2 -1
  88. package/dist/lib/npmrc.js +2 -1
  89. package/dist/lib/output-mode.js +2 -1
  90. package/dist/lib/output.js +2 -1
  91. package/dist/lib/owner-helpers.js +2 -1
  92. package/dist/lib/polling.js +2 -1
  93. package/dist/lib/progress.js +2 -1
  94. package/dist/lib/session-events.js +2 -1
  95. package/dist/lib/session-polling.js +2 -1
  96. package/dist/lib/session-resume.js +2 -1
  97. package/dist/lib/spinners.js +2 -1
  98. package/dist/lib/splash.js +2 -1
  99. package/dist/lib/stdin.js +2 -1
  100. package/dist/lib/svg-renderer.js +2 -1
  101. package/dist/lib/svg-to-braille.js +2 -1
  102. package/dist/lib/update-check.js +2 -1
  103. package/docs/skills/agent-dev.md +993 -0
  104. package/package.json +4 -2
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import React, { useState, useEffect, useRef, useCallback } from 'react';
3
4
  import { Box, Text, useStdout, useInput } from 'ink';
4
5
  import chalk from 'chalk';
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import React, { useState, useEffect } from 'react';
3
4
  import { Box, Text, useInput } from 'ink';
4
5
  import { getTaskDisplayName, isFilteredTaskName, } from '../lib/session-events.js';
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import { Command, Option } from 'commander';
3
4
  import { readFileSync, existsSync } from 'fs';
4
5
  import path from 'path';
@@ -65,6 +66,7 @@ import { createConfigSetCommand } from './commands/config/set.js';
65
66
  import { createConfigPathCommand } from './commands/config/path.js';
66
67
  import { createDoctorCommand } from './commands/doctor.js';
67
68
  import { createSetupCommand } from './commands/setup.js';
69
+ import { createMcpCommand } from './commands/mcp.js';
68
70
  import { showSplashScreen, shouldShowSplash } from './lib/splash.js';
69
71
  import { checkForUpdate } from './lib/update-check.js';
70
72
  import { setupUnknownCommandSuggestions } from './lib/did-you-mean.js';
@@ -74,13 +76,17 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
74
76
  const program = new Command();
75
77
  // Read version from package.json
76
78
  const packageJson = JSON.parse(readFileSync(path.join(__dirname, '../package.json'), 'utf-8'));
77
- // Show splash screen conditionally
78
- if (shouldShowSplash()) {
79
+ // MCP mode must not write to stdout (JSON-RPC transport)
80
+ const isMcpMode = process.argv.includes('mcp');
81
+ // Show splash screen conditionally (skip in MCP mode — stdout is JSON-RPC)
82
+ if (!isMcpMode && shouldShowSplash()) {
79
83
  showSplashScreen({
80
84
  version: packageJson.version,
81
85
  });
82
86
  }
83
- checkForUpdate(packageJson.version);
87
+ if (!isMcpMode) {
88
+ checkForUpdate(packageJson.version);
89
+ }
84
90
  program
85
91
  .name('guild')
86
92
  .description('Guild.ai CLI - Build, test, and deploy AI agents')
@@ -104,6 +110,7 @@ program
104
110
  // Register commands
105
111
  program.addCommand(createVersionCommand());
106
112
  program.addCommand(createChatCommand());
113
+ program.addCommand(createMcpCommand());
107
114
  program.addCommand(createDoctorCommand());
108
115
  program.addCommand(createSetupCommand());
109
116
  // Auth command group
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import * as fs from 'fs/promises';
3
4
  import * as path from 'path';
4
5
  import { loadLocalConfig } from './guild-config.js';
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Suppress Ink's clearTerminal (ESC[2J + ESC[3J + ESC[H]) during splash.
4
5
  *
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import axios from 'axios';
3
4
  import { getAuthToken, clearAuthToken } from './auth.js';
4
5
  import { retry, debug, GuildCLIError, ErrorCodes } from './errors.js';
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  // Import and re-export generated types (from cli/scripts/sync-types-from-python.py)
3
4
  import { WEBHOOK_SERVICES, TIME_TRIGGER_FREQUENCIES, } from './generated-types.js';
4
5
  export { WEBHOOK_SERVICES, TIME_TRIGGER_FREQUENCIES, };
package/dist/lib/auth.js CHANGED
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import { AsyncEntry } from '@napi-rs/keyring';
3
4
  import axios, { AxiosError } from 'axios';
4
5
  import chalk from 'chalk';
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Braille Canvas - A tiny pixel canvas using Unicode braille characters
4
5
  *
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Guild brand colors for CLI output
4
5
  */
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Synchronous config cache for early-init flags (debug, json, quiet).
4
5
  *
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * IAP configuration for shared.guildai.dev
4
5
  */
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Recursively collects all commands from the command tree.
4
5
  * Includes both leaf commands and command groups (parents with subcommands).
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Standardized error handling utilities for Guild CLI
4
5
  */
package/dist/lib/git.js CHANGED
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Git command utilities for Guild CLI
4
5
  *
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Guild Configuration
4
5
  *
package/dist/lib/iap.js CHANGED
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * IAP (Identity-Aware Proxy) authentication for accessing IAP-protected hosts
4
5
  *
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Loading messages for the CLI splash animation
4
5
  * Guild/fantasy adventure themed, matching www
package/dist/lib/logo.js CHANGED
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  // Guild logo & variations
3
4
  // Small logos from main branch (too small for CLI startup, preserved for reference/spinners)
4
5
  // const LOGO_3 = ['⣌⠿⣡', '⢋⣶⡙'];
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Lottie to Braille Renderer
4
5
  *
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Server-side Lottie renderer using svgdom + lottie-web
4
5
  * Based on: https://medium.com/@facuparedes/server-side-lottie-rendering-a-technical-journey-3bee81d7b6c8
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import { marked } from 'marked';
3
4
  import { markedTerminal } from 'marked-terminal';
4
5
  import chalk from 'chalk';
package/dist/lib/npmrc.js CHANGED
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import { execa } from 'execa';
3
4
  import { getGuildcoreUrl } from './config.js';
4
5
  import { getAuthToken } from './auth.js';
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Output mode detection for the CLI
4
5
  *
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import chalk from 'chalk';
3
4
  import { Table } from 'console-table-printer';
4
5
  import { getOutputMode, isQuietMode } from './output-mode.js';
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Owner resolution helper for agent creation commands.
4
5
  *
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import { GuildAPIClient } from './api-client.js';
3
4
  import { createSpinner } from './progress.js';
4
5
  /**
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import ora from 'ora';
3
4
  import chalk from 'chalk';
4
5
  import { brand, warn as warnColor } from './colors.js';
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  // =============================================================================
3
4
  // Task Filtering
4
5
  // =============================================================================
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import { isDebugMode } from './errors.js';
3
4
  /**
4
5
  * Poll for agent response after a certain event count.
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Session resume utilities - shared helpers for printing resume hints
4
5
  * and fetching/converting session events for resume.
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Animated Spinners - Real-time animated spinners using braille canvas
4
5
  *
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import chalk from 'chalk';
3
4
  import LOGO from './logo.js';
4
5
  import { brand } from './colors.js';
package/dist/lib/stdin.js CHANGED
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Exit with a helpful error when stdin is piped but no --mode flag was given.
4
5
  * Call this before rendering an interactive UI (Ink render()) so users who
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * SVG to Braille Canvas Renderer
4
5
  *
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  /**
3
4
  * Simple SVG to Braille converter using proper SVG rendering
4
5
  * Uses sharp to render SVG to bitmap, then samples pixels for braille
@@ -1,4 +1,5 @@
1
- // Copyright (c) 2026 Guild.ai All Rights Reserved
1
+ // Copyright 2026 Guild.ai
2
+ // SPDX-License-Identifier: Apache-2.0
2
3
  import https from 'https';
3
4
  import { getOutputMode, isQuietMode } from './output-mode.js';
4
5
  /**