@ryuenn3123/agentic-senior-core 5.8.16 → 5.8.17

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.
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "PreToolUse": [
31
31
  {
32
- "matcher": "Edit|Write",
32
+ "matcher": "Edit|Write|replace_file_content|write_to_file|write_file|multi_replace_file_content",
33
33
  "hooks": [
34
34
  {
35
35
  "type": "command",
@@ -50,21 +50,21 @@
50
50
  ]
51
51
  },
52
52
  {
53
- "matcher": "Bash",
53
+ "matcher": "Bash|run_command|run_shell_command|terminal|execute_command",
54
54
  "hooks": [
55
55
  {
56
56
  "type": "command",
57
57
  "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/pre-tool-dependency-gate.js\"; exit 0",
58
58
  "commandWindows": "if (Get-Command node -ErrorAction SilentlyContinue) { node \"$env:CLAUDE_PLUGIN_ROOT\\hooks\\pre-tool-dependency-gate.js\" }",
59
59
  "timeout": 5,
60
- "statusMessage": "ASC Pre-tool dependency check (Bash)..."
60
+ "statusMessage": "ASC Pre-tool dependency check (Terminal)..."
61
61
  }
62
62
  ]
63
63
  }
64
64
  ],
65
65
  "PostToolUse": [
66
66
  {
67
- "matcher": "Edit|Write",
67
+ "matcher": "Edit|Write|replace_file_content|write_to_file|write_file|multi_replace_file_content",
68
68
  "hooks": [
69
69
  {
70
70
  "type": "command",
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  // Agentic Senior Core — PreToolUse dependency gate hook
3
- // Hard-blocks edits/writes to package.json AND shell commands (npm install/yarn add)
3
+ // Hard-blocks edits/writes to package.json AND shell commands (npm install/yarn add/ascx)
4
4
  // if new dependencies duplicate stdlib/platform features.
5
- // Supports Claude Code hookSpecificOutput permissionDecision deny response format.
5
+ // Supports Claude Code, Antigravity IDE (run_command), and Copilot CLI hook response formats.
6
6
 
7
7
  const fs = require('fs');
8
8
  const path = require('path');
@@ -27,21 +27,28 @@ process.stdin.on('data', function (chunk) { inputBuffer += chunk; });
27
27
  process.stdin.on('end', function () {
28
28
  try {
29
29
  const data = JSON.parse(inputBuffer);
30
- const toolName = data.tool_name || '';
31
- const toolInput = data.tool_input || {};
30
+ const toolName = data.tool_name || data.toolName || '';
31
+ const toolInput = data.tool_input || data.toolInput || {};
32
32
  let added = [];
33
33
 
34
- if (toolName === 'Bash') {
35
- const command = toolInput.command || '';
34
+ const isTerminal = ['Bash', 'run_command', 'run_shell_command', 'terminal', 'execute_command'].includes(toolName);
35
+ const isFileEdit = ['Edit', 'Write', 'replace_file_content', 'write_to_file', 'write_file', 'multi_replace_file_content'].includes(toolName);
36
+
37
+ if (isTerminal) {
38
+ const command = toolInput.command || toolInput.CommandLine || toolInput.cmd || toolInput.commandLine || '';
36
39
  added = extractCommandDeps(command);
37
- } else if (toolName === 'Edit' || toolName === 'Write') {
38
- const filePath = toolInput.file_path || '';
40
+ } else if (isFileEdit) {
41
+ const filePath = toolInput.file_path || toolInput.TargetFile || toolInput.path || toolInput.target_file || '';
39
42
  if (!filePath.endsWith('package.json')) {
40
43
  process.exit(0);
41
44
  return;
42
45
  }
43
- const target = toolName === 'Edit' ? (toolInput.new_string || '') : (toolInput.content || '');
44
- const baseline = toolName === 'Edit' ? (toolInput.old_string || '') : '';
46
+ const target = (toolName === 'Edit' || toolName === 'replace_file_content')
47
+ ? (toolInput.new_string || toolInput.ReplacementContent || toolInput.content || '')
48
+ : (toolInput.content || toolInput.CodeContent || '');
49
+ const baseline = (toolName === 'Edit' || toolName === 'replace_file_content')
50
+ ? (toolInput.old_string || toolInput.TargetContent || '')
51
+ : '';
45
52
 
46
53
  const depPattern = /"([^"]+)"\s*:\s*"[~^>=<*]?\d/g;
47
54
  const newDeps = extractDeps(target, depPattern);
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "agentic-senior-core",
3
- "version": "5.8.16",
3
+ "version": "5.8.17",
4
4
  "description": "Universal AI coding rules. Write code like a staff engineer.",
5
- "contextFileName": "AGENTS.md",
5
+ "contextFileName": "rules/agentic-senior-core.md",
6
+ "rules": ["rules/"],
6
7
  "commands": ["commands/"],
7
8
  "skills": ["skills/"],
8
9
  "hooks": "hooks/hooks.json"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-senior-core",
3
- "version": "5.8.16",
3
+ "version": "5.8.17",
4
4
  "displayName": "Agentic Senior Core",
5
5
  "description": "Universal AI coding rules. Write code like a staff engineer.",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-senior-core",
3
- "version": "5.8.16",
3
+ "version": "5.8.17",
4
4
  "description": "Universal AI coding rules. Write code like a staff engineer.",
5
5
  "author": {
6
6
  "name": "fatidaprilian",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-senior-core",
3
- "version": "5.8.16",
3
+ "version": "5.8.17",
4
4
  "description": "Universal AI coding rules. Write code like a staff engineer.",
5
5
  "author": {
6
6
  "name": "fatidaprilian",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "agentic-senior-core",
3
3
  "description": "Universal AI coding rules. Write code like a staff engineer.",
4
- "version": "5.8.16",
4
+ "version": "5.8.17",
5
5
  "author": {
6
6
  "name": "fatidaprilian",
7
7
  "url": "https://github.com/fatidaprilian"
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "agentic-senior-core",
3
- "version": "5.8.16",
3
+ "version": "5.8.17",
4
4
  "description": "Universal AI coding rules. Write code like a staff engineer.",
5
5
  "author": "fatidaprilian",
6
6
  "license": "MIT",
7
- "contextFileName": "AGENTS.md",
7
+ "contextFileName": "rules/agentic-senior-core.md",
8
+ "rules": ["rules/"],
8
9
  "commands": ["commands/"],
9
10
  "skills": ["skills/"],
10
11
  "hooks": "hooks/hooks.json"
package/hooks/hooks.json CHANGED
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "PreToolUse": [
31
31
  {
32
- "matcher": "Edit|Write",
32
+ "matcher": "Edit|Write|replace_file_content|write_to_file|write_file|multi_replace_file_content",
33
33
  "hooks": [
34
34
  {
35
35
  "type": "command",
@@ -50,21 +50,21 @@
50
50
  ]
51
51
  },
52
52
  {
53
- "matcher": "Bash",
53
+ "matcher": "Bash|run_command|run_shell_command|terminal|execute_command",
54
54
  "hooks": [
55
55
  {
56
56
  "type": "command",
57
57
  "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/pre-tool-dependency-gate.js\"; exit 0",
58
58
  "commandWindows": "if (Get-Command node -ErrorAction SilentlyContinue) { node \"$env:CLAUDE_PLUGIN_ROOT\\hooks\\pre-tool-dependency-gate.js\" }",
59
59
  "timeout": 5,
60
- "statusMessage": "ASC Pre-tool dependency check (Bash)..."
60
+ "statusMessage": "ASC Pre-tool dependency check (Terminal)..."
61
61
  }
62
62
  ]
63
63
  }
64
64
  ],
65
65
  "PostToolUse": [
66
66
  {
67
- "matcher": "Edit|Write",
67
+ "matcher": "Edit|Write|replace_file_content|write_to_file|write_file|multi_replace_file_content",
68
68
  "hooks": [
69
69
  {
70
70
  "type": "command",
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  // Agentic Senior Core — PreToolUse dependency gate hook
3
- // Hard-blocks edits/writes to package.json AND shell commands (npm install/yarn add)
3
+ // Hard-blocks edits/writes to package.json AND shell commands (npm install/yarn add/ascx)
4
4
  // if new dependencies duplicate stdlib/platform features.
5
- // Supports Claude Code hookSpecificOutput permissionDecision deny response format.
5
+ // Supports Claude Code, Antigravity IDE (run_command), and Copilot CLI hook response formats.
6
6
 
7
7
  const fs = require('fs');
8
8
  const path = require('path');
@@ -27,21 +27,28 @@ process.stdin.on('data', function (chunk) { inputBuffer += chunk; });
27
27
  process.stdin.on('end', function () {
28
28
  try {
29
29
  const data = JSON.parse(inputBuffer);
30
- const toolName = data.tool_name || '';
31
- const toolInput = data.tool_input || {};
30
+ const toolName = data.tool_name || data.toolName || '';
31
+ const toolInput = data.tool_input || data.toolInput || {};
32
32
  let added = [];
33
33
 
34
- if (toolName === 'Bash') {
35
- const command = toolInput.command || '';
34
+ const isTerminal = ['Bash', 'run_command', 'run_shell_command', 'terminal', 'execute_command'].includes(toolName);
35
+ const isFileEdit = ['Edit', 'Write', 'replace_file_content', 'write_to_file', 'write_file', 'multi_replace_file_content'].includes(toolName);
36
+
37
+ if (isTerminal) {
38
+ const command = toolInput.command || toolInput.CommandLine || toolInput.cmd || toolInput.commandLine || '';
36
39
  added = extractCommandDeps(command);
37
- } else if (toolName === 'Edit' || toolName === 'Write') {
38
- const filePath = toolInput.file_path || '';
40
+ } else if (isFileEdit) {
41
+ const filePath = toolInput.file_path || toolInput.TargetFile || toolInput.path || toolInput.target_file || '';
39
42
  if (!filePath.endsWith('package.json')) {
40
43
  process.exit(0);
41
44
  return;
42
45
  }
43
- const target = toolName === 'Edit' ? (toolInput.new_string || '') : (toolInput.content || '');
44
- const baseline = toolName === 'Edit' ? (toolInput.old_string || '') : '';
46
+ const target = (toolName === 'Edit' || toolName === 'replace_file_content')
47
+ ? (toolInput.new_string || toolInput.ReplacementContent || toolInput.content || '')
48
+ : (toolInput.content || toolInput.CodeContent || '');
49
+ const baseline = (toolName === 'Edit' || toolName === 'replace_file_content')
50
+ ? (toolInput.old_string || toolInput.TargetContent || '')
51
+ : '';
45
52
 
46
53
  const depPattern = /"([^"]+)"\s*:\s*"[~^>=<*]?\d/g;
47
54
  const newDeps = extractDeps(target, depPattern);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuenn3123/agentic-senior-core",
3
- "version": "5.8.16",
3
+ "version": "5.8.17",
4
4
  "type": "module",
5
5
  "description": "Agentic Senior Core: Universal AI coding rules and workflows. Write code like a staff engineer, not a junior.",
6
6
  "bin": {
package/plugin.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: agentic-senior-core
2
- version: 5.8.16
2
+ version: 5.8.17
3
3
  description: Universal AI coding rules. Write code like a staff engineer.
4
4
  author: fatidaprilian
5
5
  provides_hooks: