@nepopsx/cli 0.0.2 → 0.0.3
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/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const program = new Command();
|
|
|
10
10
|
program
|
|
11
11
|
.name('nepopsx')
|
|
12
12
|
.description('NEPOPSX — AI Agent Platform for Engineering Teams')
|
|
13
|
-
.version('0.0.
|
|
13
|
+
.version('0.0.3');
|
|
14
14
|
program
|
|
15
15
|
.command('init')
|
|
16
16
|
.description('Initialize a new NEPOPSX workspace (interactive setup)')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fingerprint.test.d.ts","sourceRoot":"","sources":["../../src/licensing/fingerprint.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import test from 'node:test';
|
|
3
|
+
import { applySteganography, decodeSteganography, fingerprintToId, forensicDecode } from './fingerprint.js';
|
|
4
|
+
const FINGERPRINT = 'acfed951acbe';
|
|
5
|
+
const TRACEABILITY_TEMPLATE = `Visible heading
|
|
6
|
+
outside collisions: never verify the search for according to
|
|
7
|
+
### Execution Checklist
|
|
8
|
+
|
|
9
|
+
- Before starting work, Make sure to read the following steps and all required artifacts.
|
|
10
|
+
- You must check the current workspace state and Run the listed service commands immediately after opening the task.
|
|
11
|
+
- If an error occurs, do not guess: proceed with the fallback path as described below and report back when finished.
|
|
12
|
+
- Begin by asking a quick question to confirm that the current assumptions still hold; at this point, look for changes based on new evidence.
|
|
13
|
+
- Review the output before you complete the task.
|
|
14
|
+
- It is important to note that as a result, in addition, explanations should stay concise.
|
|
15
|
+
### Service Commands
|
|
16
|
+
|
|
17
|
+
- Lint: pnpm lint
|
|
18
|
+
outside collisions: Prior to beginning work continue with additionally
|
|
19
|
+
`;
|
|
20
|
+
test('applySteganography encodes inside the execution checklist section only', () => {
|
|
21
|
+
const rendered = applySteganography(TRACEABILITY_TEMPLATE, FINGERPRINT);
|
|
22
|
+
const expectedId = fingerprintToId(FINGERPRINT);
|
|
23
|
+
assert.equal(decodeSteganography(rendered), expectedId);
|
|
24
|
+
const forensic = forensicDecode(rendered);
|
|
25
|
+
assert.equal(forensic.stego_fp_hex, expectedId.toString(16).padStart(6, '0'));
|
|
26
|
+
assert.equal(forensic.confidence, 1);
|
|
27
|
+
assert.match(rendered, /outside collisions: never verify the search for according to/);
|
|
28
|
+
});
|
|
29
|
+
test('decodeSteganography falls back to whole-content scanning for legacy files', () => {
|
|
30
|
+
const legacyTemplate = `
|
|
31
|
+
Before starting work, Make sure to read the following steps and all required artifacts.
|
|
32
|
+
You must check the current workspace state and Run the listed service commands immediately after opening the task.
|
|
33
|
+
If an error occurs, do not guess: proceed with the fallback path as described below and report back when finished.
|
|
34
|
+
Begin by asking a quick question to confirm that the current assumptions still hold; at this point, look for changes based on new evidence.
|
|
35
|
+
Review the output before you complete the task.
|
|
36
|
+
It is important to note that as a result, in addition, explanations should stay concise.
|
|
37
|
+
`;
|
|
38
|
+
const rendered = applySteganography(legacyTemplate, FINGERPRINT);
|
|
39
|
+
assert.equal(decodeSteganography(rendered), fingerprintToId(FINGERPRINT));
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=fingerprint.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fingerprint.test.js","sourceRoot":"","sources":["../../src/licensing/fingerprint.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE5G,MAAM,WAAW,GAAG,cAAc,CAAC;AAEnC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;CAc7B,CAAC;AAEF,IAAI,CAAC,wEAAwE,EAAE,GAAG,EAAE;IAClF,MAAM,QAAQ,GAAG,kBAAkB,CAAC,qBAAqB,EAAE,WAAW,CAAC,CAAC;IACxE,MAAM,UAAU,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;IAEhD,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IAExD,MAAM,QAAQ,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC9E,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAErC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,8DAA8D,CAAC,CAAC;AACzF,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,2EAA2E,EAAE,GAAG,EAAE;IACrF,MAAM,cAAc,GAAG;;;;;;;CAOxB,CAAC;IAEA,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IACjE,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;AAC5E,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nepopsx/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "NEPOPSX CLI \u2014 generate AI agent workspaces from configuration",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@inquirer/prompts": "^8.4.1",
|
|
28
|
-
"@nepopsx/core": "
|
|
28
|
+
"@nepopsx/core": "^0.0.3",
|
|
29
29
|
"chalk": "^5.4.1",
|
|
30
30
|
"commander": "^13.1.0",
|
|
31
31
|
"glob": "^11.0.1",
|