azclaude-copilot 0.7.0 → 0.7.1

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.
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "name": "azclaude",
11
11
  "description": "AZCLAUDE is a complete AI coding environment for Claude Code. It installs 40 commands, 10 auto-invoked skills, 15 specialized agents, 5 hooks, a real-time pipeline visualizer, and a persistent memory system — in one command.\n\nKey features:\n• Memory across sessions — goals.md + checkpoints injected automatically before every session\n• Self-improving loop — /reflect fixes stale CLAUDE.md rules, /reflexes learns from tool-use patterns, /evolve creates agents from git evidence\n• Autonomous copilot mode — /copilot runs a three-tier team (orchestrator → problem-architect → milestone-builder) across sessions until the product ships\n• Spec-driven workflow — /constitute writes project rules, /spec writes structured ACs, /analyze detects plan drift and ghost milestones, /blueprint traces every milestone to a spec\n• Security layer — 111-rule environment scan (/sentinel), pre-write secret blocking, pre-ship credential audit\n• Progressive levels 0–10 — start with CLAUDE.md, grow into multi-agent pipelines and self-evolving environments\n• Zero dependencies — no npm packages, no external APIs, no vector databases. Plain markdown files and Claude Code's native architecture.\n• Smart install — npx azclaude-copilot@latest auto-detects first install vs upgrade vs verify. Context-aware onboarding shows the right next command for your project state.\n\nExample use cases:\n• /setup — scan an existing project, detect stack + domain + scale, fill CLAUDE.md, generate project-specific skills and agents automatically\n• /copilot \"Build a compliance SaaS with trilingual support\" — walk away, come back to working code across multiple sessions\n• /sentinel — run a scored security audit (0–100, grade A–F) across hooks, permissions, MCP servers, agent configs, and secrets\n• /evolve — detect gaps in the environment, generate new skills and agents from git co-change evidence, report score delta (e.g. 42/100 → 68/100)\n• /constitute — write your project's constitution (non-negotiables, architectural commitments, definition of done) — gates all future AI actions\n• /analyze — cross-artifact consistency check: ghost milestones, spec vs. code drift, unplanned commits\n• /reflect — find stale, missing, or contradicting rules in CLAUDE.md and propose exact fixes\n• /debate \"REST vs GraphQL for this project\" — adversarial evidence-based decision with order-independent scoring, logged to decisions.md",
12
- "version": "0.7.0",
12
+ "version": "0.7.1",
13
13
  "source": {
14
14
  "source": "github",
15
15
  "repo": "haytamAroui/AZ-CLAUDE-COPILOT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azclaude",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "AZCLAUDE is a complete AI coding environment for Claude Code. It installs 40 commands, 10 auto-invoked skills, 15 specialized agents, 5 hooks, a real-time pipeline visualizer, and a persistent memory system — in one command.\n\nKey features:\n• Memory across sessions — goals.md + checkpoints injected automatically before every session\n• Self-improving loop — /reflect fixes stale CLAUDE.md rules, /reflexes learns from tool-use patterns, /evolve creates agents from git evidence\n• Autonomous copilot mode — /copilot runs a three-tier team (orchestrator → problem-architect → milestone-builder) across sessions until the product ships\n• Spec-driven workflow — /constitute writes project rules, /spec writes structured ACs, /analyze detects plan drift and ghost milestones, /blueprint traces every milestone to a spec\n• Security layer — 111-rule environment scan (/sentinel), pre-write secret blocking, pre-ship credential audit\n• Progressive levels 0–10 — start with CLAUDE.md, grow into multi-agent pipelines and self-evolving environments\n• Zero dependencies — no npm packages, no external APIs, no vector databases. Plain markdown files and Claude Code's native architecture.\n• Smart install — npx azclaude-copilot@latest auto-detects first install vs upgrade vs verify. Context-aware onboarding shows the right next command for your project state.\n\nExample use cases:\n• /setup — scan an existing project, detect stack + domain + scale, fill CLAUDE.md, generate project-specific skills and agents automatically\n• /copilot \"Build a compliance SaaS with trilingual support\" — walk away, come back to working code across multiple sessions\n• /sentinel — run a scored security audit (0–100, grade A–F) across hooks, permissions, MCP servers, agent configs, and secrets\n• /evolve — detect gaps in the environment, generate new skills and agents from git co-change evidence, report score delta (e.g. 42/100 → 68/100)\n• /constitute — write your project's constitution (non-negotiables, architectural commitments, definition of done) — gates all future AI actions\n• /analyze — cross-artifact consistency check: ghost milestones, spec vs. code drift, unplanned commits\n• /reflect — find stale, missing, or contradicting rules in CLAUDE.md and propose exact fixes\n• /debate \"REST vs GraphQL for this project\" — adversarial evidence-based decision with order-independent scoring, logged to decisions.md",
5
5
  "author": {
6
6
  "name": "haytamAroui",
package/bin/cli.js CHANGED
@@ -1146,7 +1146,10 @@ if (process.argv[2] === 'visualize') {
1146
1146
  console.error('Visualizer not installed. Run: npx azclaude-copilot');
1147
1147
  process.exit(1);
1148
1148
  }
1149
+ const settingsPath = path.join(process.cwd(), vizCfg, 'settings.local.json');
1150
+
1149
1151
  if (action === 'stop') {
1152
+ // 1. Kill server
1150
1153
  const pidFile = path.join(os.tmpdir(), '.azclaude-visualizer.pid');
1151
1154
  if (fs.existsSync(pidFile)) {
1152
1155
  const pid = parseInt(fs.readFileSync(pidFile, 'utf8'), 10);
@@ -1156,8 +1159,22 @@ if (process.argv[2] === 'visualize') {
1156
1159
  } else {
1157
1160
  info('No running visualizer found');
1158
1161
  }
1162
+ // 2. Remove env var from settings.local.json
1163
+ if (fs.existsSync(settingsPath)) {
1164
+ try {
1165
+ const s = JSON.parse(fs.readFileSync(settingsPath, 'utf8'));
1166
+ if (s.env && s.env.AZCLAUDE_VISUALIZER) {
1167
+ delete s.env.AZCLAUDE_VISUALIZER;
1168
+ if (Object.keys(s.env).length === 0) delete s.env;
1169
+ atomicWriteFileSync(settingsPath, JSON.stringify(s, null, 2));
1170
+ ok('Removed AZCLAUDE_VISUALIZER from settings');
1171
+ }
1172
+ } catch (_) {}
1173
+ }
1159
1174
  } else {
1160
1175
  const port = process.argv[4] || '8765';
1176
+
1177
+ // 1. Start server
1161
1178
  const { spawn } = require('child_process');
1162
1179
  const child = spawn(process.execPath, [serverPath], {
1163
1180
  detached: true, stdio: 'ignore',
@@ -1167,8 +1184,28 @@ if (process.argv[2] === 'visualize') {
1167
1184
  const pidFile = path.join(os.tmpdir(), '.azclaude-visualizer.pid');
1168
1185
  fs.writeFileSync(pidFile, String(child.pid));
1169
1186
  ok(`Visualizer started on port ${port} (PID: ${child.pid})`);
1170
- info(`Open: http://localhost:${port}`);
1171
- info(`Set env: AZCLAUDE_VISUALIZER=${port}`);
1187
+
1188
+ // 2. Write AZCLAUDE_VISUALIZER env var into settings.local.json
1189
+ // Claude Code reads env from here — hooks pick it up automatically
1190
+ let settings = {};
1191
+ if (fs.existsSync(settingsPath)) {
1192
+ try { settings = JSON.parse(fs.readFileSync(settingsPath, 'utf8')); } catch (_) {}
1193
+ }
1194
+ if (!settings.env) settings.env = {};
1195
+ settings.env.AZCLAUDE_VISUALIZER = port;
1196
+ atomicWriteFileSync(settingsPath, JSON.stringify(settings, null, 2));
1197
+ ok(`AZCLAUDE_VISUALIZER=${port} written to settings.local.json`);
1198
+
1199
+ // 3. Open browser (cross-platform)
1200
+ const url = `http://localhost:${port}`;
1201
+ try {
1202
+ const openCmd = process.platform === 'win32' ? `start "" "${url}"`
1203
+ : process.platform === 'darwin' ? `open "${url}"`
1204
+ : `xdg-open "${url}" 2>/dev/null || true`;
1205
+ require('child_process').exec(openCmd);
1206
+ } catch (_) {}
1207
+ ok(`Dashboard: ${url}`);
1208
+ info('Hooks will send events automatically — just open Claude Code and work');
1172
1209
  }
1173
1210
  process.exit(0);
1174
1211
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azclaude-copilot",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "AI coding environment — 40 commands, 10 skills, 15 agents, real-time visualizer, memory, reflexes, evolution. Install: npx azclaude-copilot@latest, then open Claude Code.",
5
5
  "bin": {
6
6
  "azclaude": "bin/cli.js",