@sahyll/ai 0.4.0

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/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/package.json",
3
+ "name": "@sahyll/ai",
4
+ "version": "0.4.0",
5
+ "description": "Juspay skills + MCP servers for AI coding agents (Claude Code, Codex, Gemini, OpenCode, Cursor, Windsurf, Copilot). One command, any agent.",
6
+ "type": "module",
7
+ "bin": {
8
+ "juspay": "dist/index.js"
9
+ },
10
+ "scripts": {
11
+ "dev": "bun run src/index.ts",
12
+ "build": "bun build src/index.ts --target=node --outfile=dist/index.js",
13
+ "typecheck": "tsc --noEmit",
14
+ "clean": "rm -rf dist",
15
+ "prepack": "bun run clean && bun run build",
16
+ "postinstall": "node scripts/postinstall.js"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "scripts",
21
+ "LICENSE"
22
+ ],
23
+ "engines": {
24
+ "node": ">=18"
25
+ },
26
+ "dependencies": {
27
+ "@clack/prompts": "^0.10.0",
28
+ "picocolors": "^1.1.1",
29
+ "smol-toml": "^1.3.0",
30
+ "which": "^5.0.0"
31
+ },
32
+ "devDependencies": {
33
+ "@types/bun": "latest",
34
+ "@types/node": "^22.0.0",
35
+ "@types/which": "^3.0.4",
36
+ "typescript": "^5.8.0"
37
+ },
38
+ "license": "MIT"
39
+ }
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+ // Print a next-steps banner after `npm install -g`. No actions taken here —
3
+ // OAuth, MCP registration, and skill install all happen when you run the CLI.
4
+
5
+ // Under `npx`, the bin runs immediately after install, so this banner would
6
+ // double up with the CLI's own output. Detect npx and stay silent.
7
+ const underNpx =
8
+ process.env.npm_command === "exec" ||
9
+ (process.env.npm_execpath || "").includes("npx") ||
10
+ (process.env.npm_config_user_agent || "").includes("npx") ||
11
+ (process.env.INIT_CWD || process.cwd()).includes("_npx")
12
+ if (underNpx) {
13
+ process.exit(0)
14
+ }
15
+
16
+ const RESET = "\x1B[0m"
17
+ const BOLD = "\x1B[1m"
18
+ const CYAN = "\x1B[36m"
19
+ const DIM = "\x1B[2m"
20
+
21
+ process.stdout.write(`
22
+ ${BOLD}${CYAN}Juspay for AI agents${RESET} installed.
23
+
24
+ Next: run ${BOLD}npx @sahyll/ai${RESET} in your project to set up.
25
+ ${DIM}Signs you in, configures MCP servers + skills, installs the ${RESET}${BOLD}juspay${RESET}${DIM} command.
26
+ Then launch an agent: ${RESET}${BOLD}juspay claude${RESET}${DIM} (or codex, gemini, opencode, copilot).${RESET}
27
+
28
+ `)