@r5n/argus 0.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/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "bin": {
3
+ "argus": "dist/cli.js"
4
+ },
5
+ "description": "Argus CLI - Incremental, syntax-aware code reviews with decision models",
6
+ "files": [
7
+ "dist",
8
+ "schema.json",
9
+ "LICENSE",
10
+ "THIRD_PARTY_NOTICES.md"
11
+ ],
12
+ "license": "Apache-2.0",
13
+ "main": "dist/cli.js",
14
+ "name": "@r5n/argus",
15
+ "publishConfig": {
16
+ "access": "public",
17
+ "registry": "https://registry.npmjs.org/"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/r5n-labs/clis.git"
22
+ },
23
+ "scripts": {
24
+ "benchmark": "bun --bun benchmarks/run.ts",
25
+ "build": "rm -rf dist && bun build.ts",
26
+ "clean": "rm -rf dist node_modules",
27
+ "dev": "bun --bun src/cli.ts",
28
+ "package:dryRun": "bun ../../tools/scripts/publish-package.ts . --dry-run",
29
+ "package:prepare": "NODE_ENV=production bun run build && bun ../../tools/scripts/prepare-publish.ts .",
30
+ "package:publish": "bun ../../tools/scripts/publish-package.ts .",
31
+ "type-check": "bun --bun tsc --noEmit"
32
+ },
33
+ "type": "module",
34
+ "version": "0.3.1"
35
+ }
package/schema.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Argus configuration",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["version", "root", "questions"],
7
+ "properties": {
8
+ "$schema": { "type": "string" },
9
+ "version": { "const": 1 },
10
+ "root": { "type": "string", "minLength": 1, "description": "Project root, relative to this config file" },
11
+ "model": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "default": "jev-1.13.0",
15
+ "description": "TypeSafe model ID, or clef / clef-flash on Cloudflare Workers AI. Cloudflare's canonical @cf/cloudflare/... IDs are also accepted."
16
+ },
17
+ "include": { "$ref": "#/$defs/strings" },
18
+ "exclude": { "$ref": "#/$defs/strings" },
19
+ "maxQuestions": { "type": "integer", "minimum": 1, "default": 32 },
20
+ "maxRequestBytes": { "type": "integer", "minimum": 1, "default": 100000 },
21
+ "questions": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "methods": { "$ref": "#/$defs/questions" },
26
+ "classes": { "$ref": "#/$defs/questions" },
27
+ "files": { "$ref": "#/$defs/questions" },
28
+ "tests": { "$ref": "#/$defs/questions" },
29
+ "resources": { "$ref": "#/$defs/questions" },
30
+ "translations": { "$ref": "#/$defs/questions" },
31
+ "changes": { "$ref": "#/$defs/questions" }
32
+ }
33
+ }
34
+ },
35
+ "$defs": {
36
+ "strings": { "type": "array", "items": { "type": "string", "minLength": 1 } },
37
+ "questions": { "type": "array", "items": { "$ref": "#/$defs/question" } },
38
+ "question": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "required": ["id", "type", "instructions", "criteria"],
42
+ "properties": {
43
+ "id": { "type": "string", "minLength": 1 },
44
+ "type": { "const": "choice" },
45
+ "instructions": { "type": "string", "minLength": 1 },
46
+ "criteria": {
47
+ "type": "object",
48
+ "minProperties": 2,
49
+ "additionalProperties": { "type": "string", "minLength": 1 }
50
+ },
51
+ "context": { "enum": ["target", "class", "references", "file"], "default": "class" },
52
+ "contextFiles": { "$ref": "#/$defs/strings" },
53
+ "include": { "$ref": "#/$defs/strings" },
54
+ "hasComments": { "type": "boolean", "default": false },
55
+ "flag": { "$ref": "#/$defs/strings" },
56
+ "minConfidence": { "type": "number", "minimum": 0, "maximum": 1, "default": 0 },
57
+ "minConcernProbability": {
58
+ "type": "number",
59
+ "minimum": 0,
60
+ "maximum": 1,
61
+ "description": "Also flag when the summed probability of flagged choices reaches this threshold. Omit to disable."
62
+ },
63
+ "reviewQueues": {
64
+ "type": "object",
65
+ "additionalProperties": { "enum": ["findings", "context", "documentation"] },
66
+ "description": "Route answer choices to review queues; omitted choices use findings."
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }