octocode-cli 1.3.0 → 1.3.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.
- package/README.md +1 -1
- package/out/chunks/{chunk-LH4AZJPA.js → chunk-QCY7Q7YW.js} +133 -133
- package/out/chunks/{commands-M3QTWKWE.js → commands-OCTZP2TO.js} +1 -1
- package/out/chunks/{main-help-HXFAFHPG.js → main-help-35HX2UDQ.js} +1 -1
- package/out/chunks/{tool-command-VHFLPIHY.js → tool-command-HOSMVLNK.js} +1 -1
- package/out/octocode-cli.js +1 -1
- package/package.json +1 -1
- package/skills/README.md +51 -61
- package/skills/octocode-brainstorming/.env.example +11 -0
- package/skills/octocode-brainstorming/SKILL.md +262 -0
- package/skills/octocode-brainstorming/scripts/tavily-search.mjs +138 -0
- package/skills/octocode-engineer/SKILL.md +135 -306
- package/skills/octocode-engineer/references/cli-reference.md +13 -0
- package/skills/octocode-engineer/scripts/run.js +122 -122
- package/skills/octocode-engineer/src/pipeline/main.ts +1 -17
- package/skills/octocode-engineer/src/pipeline/progress.ts +4 -0
- package/skills/octocode-research/scripts/server.js +158 -158
- package/skills/octocode-search-skill/INSTALL_REFERENCE.md +112 -0
- package/skills/octocode-search-skill/SKILL.md +321 -0
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from './cache.js';
|
|
17
17
|
import { parseArgs } from './cli.js';
|
|
18
18
|
import { loadConfigFile, mergeConfigIntoDefaults } from './config-loader.js';
|
|
19
|
-
import { createOptions
|
|
19
|
+
import { createOptions } from './create-options.js';
|
|
20
20
|
import { attachConsoleFeedback, bus } from './progress.js';
|
|
21
21
|
import { resolveAffectedFiles } from './affected.js';
|
|
22
22
|
import { saveBaseline, filterKnownFindings } from './baseline.js';
|
|
@@ -46,7 +46,6 @@ import {
|
|
|
46
46
|
analyzeSourceFile,
|
|
47
47
|
buildDependencyCriticality,
|
|
48
48
|
} from '../ast/ts-analyzer.js';
|
|
49
|
-
import { isDirectRun } from '../common/is-direct-run.js';
|
|
50
49
|
import { canonicalScriptKind, increment } from '../common/utils.js';
|
|
51
50
|
import { computeHotFiles } from '../detectors/index.js';
|
|
52
51
|
import { runSemanticDetectors } from '../detectors/semantic.js';
|
|
@@ -1249,18 +1248,3 @@ function buildFindingStats(
|
|
|
1249
1248
|
return { overall, pillars };
|
|
1250
1249
|
}
|
|
1251
1250
|
|
|
1252
|
-
if (isDirectRun(import.meta.url)) {
|
|
1253
|
-
main()
|
|
1254
|
-
.then(code => {
|
|
1255
|
-
process.exitCode = code;
|
|
1256
|
-
})
|
|
1257
|
-
.catch((error: unknown) => {
|
|
1258
|
-
if (error instanceof OptionsError) {
|
|
1259
|
-
console.error(error.message);
|
|
1260
|
-
process.exitCode = EXIT_ERROR;
|
|
1261
|
-
} else {
|
|
1262
|
-
console.error(error);
|
|
1263
|
-
process.exitCode = EXIT_ERROR;
|
|
1264
|
-
}
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
@@ -40,7 +40,11 @@ class ScanBus extends EventEmitter {
|
|
|
40
40
|
|
|
41
41
|
export const bus = new ScanBus();
|
|
42
42
|
|
|
43
|
+
let consoleFeedbackAttached = false;
|
|
44
|
+
|
|
43
45
|
export function attachConsoleFeedback(): void {
|
|
46
|
+
if (consoleFeedbackAttached) return;
|
|
47
|
+
consoleFeedbackAttached = true;
|
|
44
48
|
bus.on('progress', (event: ProgressEvent) => {
|
|
45
49
|
if (event.detail) {
|
|
46
50
|
process.stderr.write(`[${event.phase}] ${event.message}: ${event.detail}\n`);
|