gm-skill 2.0.2574 → 2.0.2575
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/gm-plugkit/package.json +1 -1
- package/gm.json +1 -1
- package/package.json +1 -1
- package/scripts/scan-dev-tree-chunked.mjs +57 -0
package/gm-plugkit/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2575",
|
|
4
4
|
"description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform wasm, verifies SHA256, and launches agentplug-runner (the native wasm host) as the spool watcher daemon.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/gm.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-skill",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2575",
|
|
4
4
|
"description": "Canonical universal harness — AI-native software engineering via skill-driven orchestration; bootstraps plugkit for task execution and session isolation. Install in any AI coding agent host.",
|
|
5
5
|
"author": "AnEntrypoint",
|
|
6
6
|
"license": "MIT",
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Runs scan-supply-chain-tells.mjs once PER top-level project directory under
|
|
3
|
+
// a root, appending each project's result to a progress log immediately.
|
|
4
|
+
// Resumable: projects already present in the progress log are skipped on a
|
|
5
|
+
// re-run, so a kill/timeout never loses completed work and a re-invocation
|
|
6
|
+
// picks up where it left off.
|
|
7
|
+
//
|
|
8
|
+
// Usage: node scripts/scan-dev-tree-chunked.mjs <root> <progressLogPath>
|
|
9
|
+
|
|
10
|
+
import fs from 'node:fs'
|
|
11
|
+
import path from 'node:path'
|
|
12
|
+
import { execFileSync } from 'node:child_process'
|
|
13
|
+
import process from 'node:process'
|
|
14
|
+
|
|
15
|
+
const root = process.argv[2]
|
|
16
|
+
const logPath = process.argv[3]
|
|
17
|
+
const scannerPath = path.join(path.dirname(new URL(import.meta.url).pathname.replace(/^\/([A-Za-z]:)/, '$1')), 'scan-supply-chain-tells.mjs')
|
|
18
|
+
|
|
19
|
+
if (!root || !logPath) {
|
|
20
|
+
console.error('usage: node scan-dev-tree-chunked.mjs <root> <progressLogPath>')
|
|
21
|
+
process.exit(2)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const already = new Set()
|
|
25
|
+
if (fs.existsSync(logPath)) {
|
|
26
|
+
const prior = fs.readFileSync(logPath, 'utf8')
|
|
27
|
+
for (const m of prior.matchAll(/^=== (.+?) ===$/gm)) already.add(m[1])
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const entries = fs.readdirSync(root, { withFileTypes: true })
|
|
31
|
+
.filter(e => e.isDirectory())
|
|
32
|
+
.map(e => e.name)
|
|
33
|
+
.sort()
|
|
34
|
+
|
|
35
|
+
console.error(`${entries.length} project dirs under ${root}, ${already.size} already scanned per ${logPath}`)
|
|
36
|
+
|
|
37
|
+
for (const name of entries) {
|
|
38
|
+
if (already.has(name)) continue
|
|
39
|
+
const target = path.join(root, name)
|
|
40
|
+
const start = Date.now()
|
|
41
|
+
let out, code
|
|
42
|
+
try {
|
|
43
|
+
out = execFileSync('node', [scannerPath, target], { encoding: 'utf8', maxBuffer: 64 * 1024 * 1024, timeout: 180000 })
|
|
44
|
+
code = 0
|
|
45
|
+
} catch (err) {
|
|
46
|
+
out = err.stdout || ''
|
|
47
|
+
code = err.status ?? (err.signal ? 'killed:' + err.signal : 1)
|
|
48
|
+
}
|
|
49
|
+
const ms = Date.now() - start
|
|
50
|
+
const block = `=== ${name} ===\n(exit ${code}, ${ms}ms)\n${out.trim()}\n\n`
|
|
51
|
+
fs.appendFileSync(logPath, block)
|
|
52
|
+
const lastSummaryLine = out.trim().split('\n').pop() || ''
|
|
53
|
+
const isClean = /: 0 finding/.test(lastSummaryLine)
|
|
54
|
+
console.error(`[${isClean ? 'clean' : 'FINDINGS'}] ${name} (${ms}ms)`)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
console.error('done')
|