chore: project initialization
Set up working tree for initial push to lza6/ghbot-Nodeloc: commit repository metadata files (AGENTS.md, CLAUDE.md, .gitignore), multi-AI-tool configuration/skills (agents, claude, cline, codebuddy, continue, junie, kiro, codegraph, opencode), and mcp/skills lockfiles shipped with the repo. Committed via Claude Code by lza6
This commit is contained in:
1 parent
625ba79dbb
commit
b366e16087
88 files changed
+8230
No files matched your search
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/env node
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const { pathToFileURL } = require('url');
|
||||
const { execFileSync } = require('child_process');
|
||||
const dir = process.env.CLAUDE_PROJECT_DIR || process.cwd();
|
||||
const BAKED = "C:\\Users\\Administrator.DESKTOP-EGNE9ND\\AppData\\Roaming\\npm\\node_modules\\@nanonets\\graft\\dist\\claude";
|
||||
|
||||
// The dist/claude dir of @nanonets/graft resolved from a base whose node_modules is searched.
|
||||
function fromPkg(base) {
|
||||
try {
|
||||
const pkg = require.resolve('@nanonets/graft/package.json', { paths: [base] });
|
||||
return path.join(path.dirname(pkg), 'dist', 'claude');
|
||||
} catch { return null; }
|
||||
}
|
||||
|
||||
// The global node_modules dir per npm (handles Homebrew/Windows/volta). Queried on demand.
|
||||
function globalRoot() {
|
||||
try {
|
||||
const root = execFileSync('npm', ['root', '-g'], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'], shell: process.platform === 'win32' }).trim();
|
||||
return root || null;
|
||||
} catch { return null; /* npm unavailable */ }
|
||||
}
|
||||
|
||||
function candidates() {
|
||||
const out = [];
|
||||
if (BAKED) out.push(BAKED);
|
||||
const local = fromPkg(dir); if (local) out.push(local);
|
||||
const legacy = fromPkg(path.join(path.dirname(process.execPath), '..', 'lib')); if (legacy) out.push(legacy);
|
||||
const gr = globalRoot(); if (gr) out.push(path.join(gr, '@nanonets', 'graft', 'dist', 'claude'));
|
||||
return out;
|
||||
}
|
||||
|
||||
function entry(name) {
|
||||
for (const d of candidates()) {
|
||||
const f = path.join(d, name);
|
||||
if (fs.existsSync(f)) return f;
|
||||
}
|
||||
return path.join(dir, 'dist', 'claude', name); // last-ditch; import will no-op if absent
|
||||
}
|
||||
|
||||
import(pathToFileURL(entry("hooks.js")).href).then((m) => m.main(process.argv[2])).catch(() => { /* graft unavailable — no-op */ });
|
||||
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/env node
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const { pathToFileURL } = require('url');
|
||||
const { execFileSync } = require('child_process');
|
||||
const dir = process.env.CLAUDE_PROJECT_DIR || process.cwd();
|
||||
const BAKED = "C:\\Users\\Administrator.DESKTOP-EGNE9ND\\AppData\\Roaming\\npm\\node_modules\\@nanonets\\graft\\dist\\claude";
|
||||
|
||||
// The dist/claude dir of @nanonets/graft resolved from a base whose node_modules is searched.
|
||||
function fromPkg(base) {
|
||||
try {
|
||||
const pkg = require.resolve('@nanonets/graft/package.json', { paths: [base] });
|
||||
return path.join(path.dirname(pkg), 'dist', 'claude');
|
||||
} catch { return null; }
|
||||
}
|
||||
|
||||
// The global node_modules dir per npm (handles Homebrew/Windows/volta). Queried on demand.
|
||||
function globalRoot() {
|
||||
try {
|
||||
const root = execFileSync('npm', ['root', '-g'], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'], shell: process.platform === 'win32' }).trim();
|
||||
return root || null;
|
||||
} catch { return null; /* npm unavailable */ }
|
||||
}
|
||||
|
||||
function candidates() {
|
||||
const out = [];
|
||||
if (BAKED) out.push(BAKED);
|
||||
const local = fromPkg(dir); if (local) out.push(local);
|
||||
const legacy = fromPkg(path.join(path.dirname(process.execPath), '..', 'lib')); if (legacy) out.push(legacy);
|
||||
const gr = globalRoot(); if (gr) out.push(path.join(gr, '@nanonets', 'graft', 'dist', 'claude'));
|
||||
return out;
|
||||
}
|
||||
|
||||
function entry(name) {
|
||||
for (const d of candidates()) {
|
||||
const f = path.join(d, name);
|
||||
if (fs.existsSync(f)) return f;
|
||||
}
|
||||
return path.join(dir, 'dist', 'claude', name); // last-ditch; import will no-op if absent
|
||||
}
|
||||
|
||||
import(pathToFileURL(entry("statusline.js")).href).then((m) => m.main()).catch(() => { /* graft unavailable — no-op */ });
|
||||
Reference in new issue
Block a user