ccfingerprint 1.0.4 → 1.0.5

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 (2) hide show
  1. package/bin/ccfp.js +9 -2
  2. package/package.json +1 -1
package/bin/ccfp.js CHANGED
@@ -2,18 +2,25 @@
2
2
 
3
3
  import { Command } from 'commander';
4
4
  import { init } from '../src/init.js';
5
+ import { readFileSync } from 'fs';
6
+ import { fileURLToPath } from 'url';
7
+ import { dirname, join } from 'path';
8
+
9
+ const __filename = fileURLToPath(import.meta.url);
10
+ const __dirname = dirname(__filename);
11
+ const pkg = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf-8'));
5
12
 
6
13
  const program = new Command();
7
14
 
8
15
  program
9
16
  .name('ccfp')
10
17
  .description('AI Model Identity Fingerprinting Tool / AI 模型身份指纹识别工具')
11
- .version('1.0.0');
18
+ .version(pkg.version);
12
19
 
13
20
  program
14
21
  .command('init')
15
22
  .description('Initialize AI assistant fingerprint skill / 初始化 AI 助手的指纹识别技能')
16
- .option('--ai <type>', 'Target AI type (claude, cursor, windsurf, copilot)', 'claude')
23
+ .option('--ai <type>', 'Target AI type (claude, cursor, windsurf, copilot, kiro, codex)', 'claude')
17
24
  .option('--lang <language>', 'Language (zh, en)', 'zh')
18
25
  .option('--output <path>', 'Output directory path / 输出目录路径', '.')
19
26
  .action(async (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccfingerprint",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "AI Model Identity Fingerprinting Tool - Verify model identity through self-Q&A / AI 模型身份指纹识别工具 - 通过自问自答验证模型真实身份",
5
5
  "main": "src/init.js",
6
6
  "bin": {