@tryaura/aura-cli 0.1.0
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/LICENSE +202 -0
- package/README.md +11 -0
- package/content/mcp/atlassian-rovo.json +14 -0
- package/content/mcp/github.json +23 -0
- package/content/mcp/sentry.json +23 -0
- package/content/snippets/ask-before-destructive.md +8 -0
- package/content/snippets/commit-conventions.md +8 -0
- package/content/snippets/confluence-references.md +8 -0
- package/content/snippets/jira-linking.md +8 -0
- package/content/snippets/pr-descriptions.md +8 -0
- package/content/snippets/python-style.md +8 -0
- package/content/snippets/typescript-style.md +8 -0
- package/dist/bin/aura.d.ts +1 -0
- package/dist/bin/aura.js +17 -0
- package/dist/index.d.ts +152 -0
- package/dist/index.js +140 -0
- package/dist/plugins/index.d.ts +14 -0
- package/dist/plugins/index.js +2 -0
- package/dist/plugins-n3DS8XXi.js +5684 -0
- package/dist/run-pMPxJqFQ.js +13367 -0
- package/dist/skill-deployment-plan-C4GTrVSy.js +1996 -0
- package/dist/types-DmBu6g0d.d.ts +84 -0
- package/package.json +73 -0
- package/schema/check-output-v1.schema.json +261 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AuraConfigurationLayer, AuraPlugin, Environment, TelemetrySink } from "@tryaura/aura-sdk";
|
|
2
|
+
import { Readable, Writable } from "node:stream";
|
|
3
|
+
//#region src/types.d.ts
|
|
4
|
+
/** Process status produced by every Aura CLI command. */
|
|
5
|
+
type CliExitCode = 0 | 1 | 2 | 3;
|
|
6
|
+
/** Distribution-controlled names and help metadata. */
|
|
7
|
+
interface CliBranding {
|
|
8
|
+
/** Executable name shown in command usage. */
|
|
9
|
+
readonly command: string;
|
|
10
|
+
/** Product name shown in human-readable output. */
|
|
11
|
+
readonly displayName: string;
|
|
12
|
+
/** Short product description shown in top-level help. */
|
|
13
|
+
readonly description?: string | undefined;
|
|
14
|
+
/** Documentation link shown alongside human-readable reports. */
|
|
15
|
+
readonly docsUrl?: string | undefined;
|
|
16
|
+
/** Distribution version exposed through `--version`. */
|
|
17
|
+
readonly version?: string | undefined;
|
|
18
|
+
}
|
|
19
|
+
/** Distribution-owned plugin registry policy exposed without leaking Aura's private core package. */
|
|
20
|
+
interface CliRegistryOptions {
|
|
21
|
+
/** Plugins allowed to contribute bare check ids such as `INS-001`. */
|
|
22
|
+
readonly bareCheckIdPlugins?: readonly string[] | undefined;
|
|
23
|
+
}
|
|
24
|
+
/** Build-time composition of one Aura distribution. */
|
|
25
|
+
interface CliDistro {
|
|
26
|
+
readonly branding: CliBranding;
|
|
27
|
+
/** Data-only defaults applied below a selected team preset. */
|
|
28
|
+
readonly defaults?: AuraConfigurationLayer | undefined;
|
|
29
|
+
/** Bundled preset reference used when neither the workspace nor user selected one. */
|
|
30
|
+
readonly defaultPreset?: string | undefined;
|
|
31
|
+
readonly plugins: readonly AuraPlugin[];
|
|
32
|
+
/**
|
|
33
|
+
* Registry policy this distribution grants its own plugins, such as bare check ids.
|
|
34
|
+
*
|
|
35
|
+
* Distribution-owned rather than plugin-owned: the grant is only meaningful because `plugins` is
|
|
36
|
+
* a build-time list this distribution controls.
|
|
37
|
+
*/
|
|
38
|
+
readonly registry?: CliRegistryOptions | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Where run events are sent. Absent, telemetry is a no-op and the run records nothing.
|
|
41
|
+
*
|
|
42
|
+
* The sink can never fail a run: throws are swallowed, and the final flush is bounded. The user
|
|
43
|
+
* always wins over the distribution — `DO_NOT_TRACK` or `AURA_TELEMETRY=off` in the invoking
|
|
44
|
+
* environment disables the sink outright.
|
|
45
|
+
*/
|
|
46
|
+
readonly telemetry?: TelemetrySink | undefined;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Injectable process boundary used by tests and embedding applications.
|
|
50
|
+
*
|
|
51
|
+
* Every ambient value the run depends on is listed here. An embedder that supplies all of them gets
|
|
52
|
+
* a run that reads nothing from the surrounding process.
|
|
53
|
+
*/
|
|
54
|
+
interface CliRuntime {
|
|
55
|
+
/** Command arguments without the executable and script path. */
|
|
56
|
+
readonly argv?: readonly string[] | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Color depth reported to the command framework.
|
|
59
|
+
*
|
|
60
|
+
* Defaults to what the terminal supports, honouring `NO_COLOR` and `FORCE_COLOR`. Always no color
|
|
61
|
+
* when `stdout` is injected, since the destination is then not a terminal Aura can ask.
|
|
62
|
+
*/
|
|
63
|
+
readonly colorDepth?: number | undefined;
|
|
64
|
+
/** Directory the command was invoked from. */
|
|
65
|
+
readonly cwd?: string | undefined;
|
|
66
|
+
/** Base environment inherited by probes. */
|
|
67
|
+
readonly environmentVariables?: Readonly<Record<string, string | undefined>> | undefined;
|
|
68
|
+
/** Base home directory before a `--home` override. Defaults to the operating-system home. */
|
|
69
|
+
readonly homeDir?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Network access for the run. Defaults to the kernel's bounded TLS-only client; the testkit
|
|
72
|
+
* injects a loopback-only variant so no test run can reach beyond the machine.
|
|
73
|
+
*/
|
|
74
|
+
readonly httpGet?: Environment["httpGet"] | undefined;
|
|
75
|
+
/** Clock used to stamp telemetry events. Defaults to the system clock. */
|
|
76
|
+
readonly now?: (() => Date) | undefined;
|
|
77
|
+
readonly stderr?: Writable | undefined;
|
|
78
|
+
readonly stdin?: Readable | undefined;
|
|
79
|
+
readonly stdout?: Writable | undefined;
|
|
80
|
+
/** Receives the final code. Defaults to setting `process.exitCode`. */
|
|
81
|
+
readonly setExitCode?: ((exitCode: CliExitCode) => void) | undefined;
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
export { CliRuntime as a, CliRegistryOptions as i, CliDistro as n, CliExitCode as r, CliBranding as t };
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tryaura/aura-cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "The composable Aura CLI runtime and official plugin distribution.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agent",
|
|
7
|
+
"aura",
|
|
8
|
+
"cli",
|
|
9
|
+
"plugin"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/tryaura/aura/tree/main/packages/cli#readme",
|
|
12
|
+
"bugs": "https://github.com/tryaura/aura/issues",
|
|
13
|
+
"license": "Apache-2.0",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/tryaura/aura.git",
|
|
17
|
+
"directory": "packages/cli"
|
|
18
|
+
},
|
|
19
|
+
"bin": {
|
|
20
|
+
"aura": "./dist/bin/aura.js"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"content",
|
|
24
|
+
"dist",
|
|
25
|
+
"schema"
|
|
26
|
+
],
|
|
27
|
+
"type": "module",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./plugins": {
|
|
35
|
+
"types": "./dist/plugins/index.d.ts",
|
|
36
|
+
"default": "./dist/plugins/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./schema/check-output-v1.json": "./schema/check-output-v1.schema.json"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"clipanion": "3.2.1",
|
|
45
|
+
"diff": "9.0.0",
|
|
46
|
+
"ignore": "7.0.6",
|
|
47
|
+
"semver": "7.8.5",
|
|
48
|
+
"smol-toml": "1.8.0",
|
|
49
|
+
"string-width": "4.2.3",
|
|
50
|
+
"toml-eslint-parser": "^1.0.3",
|
|
51
|
+
"typanion": "3.14.0",
|
|
52
|
+
"undici": "7.29.0",
|
|
53
|
+
"@tryaura/aura-sdk": "0.1.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/node": "24.13.3",
|
|
57
|
+
"ajv": "8.20.0",
|
|
58
|
+
"vitest": "4.1.10",
|
|
59
|
+
"@tryaura/adapter-claude-code": "0.0.0",
|
|
60
|
+
"@tryaura/adapter-cursor": "0.0.0",
|
|
61
|
+
"@tryaura/checks-core": "0.0.0",
|
|
62
|
+
"@tryaura/adapter-codex": "0.0.0",
|
|
63
|
+
"@tryaura/content-official": "0.0.0",
|
|
64
|
+
"@tryaura/core": "0.0.0"
|
|
65
|
+
},
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=24"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "tsdown && tsdown --config tsdown.types.config.ts",
|
|
71
|
+
"typecheck": "tsc --noEmit && tsc --project tsconfig.type-tests.json"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://tryaura.sh/schemas/check-output-v1.schema.json",
|
|
4
|
+
"title": "Aura check JSON output v1",
|
|
5
|
+
"oneOf": [{ "$ref": "#/$defs/report" }, { "$ref": "#/$defs/explanation" }],
|
|
6
|
+
"$defs": {
|
|
7
|
+
"counts": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"required": ["errors", "informational", "passed", "warnings"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"errors": { "type": "integer", "minimum": 0 },
|
|
13
|
+
"informational": { "type": "integer", "minimum": 0 },
|
|
14
|
+
"passed": { "type": "integer", "minimum": 0 },
|
|
15
|
+
"warnings": { "type": "integer", "minimum": 0 }
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"provenance": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": ["label", "layer"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"label": { "type": "string" },
|
|
24
|
+
"layer": { "enum": ["cli", "default", "distro", "manifest", "preset"] }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"summary": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"required": [
|
|
31
|
+
"categories",
|
|
32
|
+
"diagnostics",
|
|
33
|
+
"errors",
|
|
34
|
+
"exitCode",
|
|
35
|
+
"informational",
|
|
36
|
+
"passed",
|
|
37
|
+
"warnings"
|
|
38
|
+
],
|
|
39
|
+
"properties": {
|
|
40
|
+
"categories": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": { "$ref": "#/$defs/counts" }
|
|
43
|
+
},
|
|
44
|
+
"diagnostics": { "type": "integer", "minimum": 0 },
|
|
45
|
+
"errors": { "type": "integer", "minimum": 0 },
|
|
46
|
+
"exitCode": { "enum": [0, 1, 2, 3] },
|
|
47
|
+
"informational": { "type": "integer", "minimum": 0 },
|
|
48
|
+
"passed": { "type": "integer", "minimum": 0 },
|
|
49
|
+
"warnings": { "type": "integer", "minimum": 0 }
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"diagnostic": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": ["id", "message", "phase"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"detail": { "type": "string" },
|
|
58
|
+
"id": { "type": "string" },
|
|
59
|
+
"message": { "type": "string" },
|
|
60
|
+
"path": { "type": "string" },
|
|
61
|
+
"phase": { "enum": ["check", "detect", "files", "fix", "parse", "read", "support"] }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"support": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": ["status", "supportedRange"],
|
|
68
|
+
"properties": {
|
|
69
|
+
"status": { "enum": ["supported", "unknown", "unsupported"] },
|
|
70
|
+
"supportedRange": { "type": "string" },
|
|
71
|
+
"version": { "type": "string" }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"app": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": ["appId", "detection", "displayName"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"appId": { "type": "string" },
|
|
80
|
+
"detection": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"required": ["installed"],
|
|
84
|
+
"properties": {
|
|
85
|
+
"authenticated": { "type": "boolean" },
|
|
86
|
+
"installed": { "type": "boolean" },
|
|
87
|
+
"version": { "type": "string" }
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"detectionScope": { "type": "string" },
|
|
91
|
+
"displayName": { "type": "string" },
|
|
92
|
+
"support": { "$ref": "#/$defs/support" }
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"location": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": ["path"],
|
|
99
|
+
"properties": {
|
|
100
|
+
"column": { "type": "integer", "minimum": 1 },
|
|
101
|
+
"line": { "type": "integer", "minimum": 1 },
|
|
102
|
+
"path": { "type": "string" }
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"presentation": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"required": ["columns", "kind", "rowsKey"],
|
|
109
|
+
"properties": {
|
|
110
|
+
"columns": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"items": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"additionalProperties": false,
|
|
115
|
+
"required": ["heading", "key"],
|
|
116
|
+
"properties": {
|
|
117
|
+
"align": { "enum": ["left", "right"] },
|
|
118
|
+
"falseLabel": { "type": "string" },
|
|
119
|
+
"format": { "enum": ["boolean", "integer", "percentage", "text"] },
|
|
120
|
+
"heading": { "type": "string" },
|
|
121
|
+
"key": { "type": "string" },
|
|
122
|
+
"trueLabel": { "type": "string" }
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"kind": { "const": "metadata-table" },
|
|
127
|
+
"rowsKey": { "type": "string" }
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"finding": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"additionalProperties": false,
|
|
133
|
+
"required": ["checkId", "findingId", "fixability", "message", "scope", "severity"],
|
|
134
|
+
"properties": {
|
|
135
|
+
"checkId": { "type": "string" },
|
|
136
|
+
"details": { "type": "string" },
|
|
137
|
+
"findingId": { "type": "string" },
|
|
138
|
+
"fixability": { "enum": ["auto", "guided", "manual"] },
|
|
139
|
+
"locations": { "type": "array", "items": { "$ref": "#/$defs/location" } },
|
|
140
|
+
"message": { "type": "string" },
|
|
141
|
+
"metadata": { "type": "object" },
|
|
142
|
+
"presentation": { "$ref": "#/$defs/presentation" },
|
|
143
|
+
"scope": { "enum": ["global", "project"] },
|
|
144
|
+
"severity": { "enum": ["error", "info", "warn"] }
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"fixOperation": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"additionalProperties": false,
|
|
150
|
+
"required": ["effect", "paths"],
|
|
151
|
+
"properties": {
|
|
152
|
+
"conflict": { "type": "string" },
|
|
153
|
+
"diff": { "type": "string" },
|
|
154
|
+
"effect": {
|
|
155
|
+
"enum": ["archive", "conflict", "create", "move", "noop", "remove", "symlink", "update"]
|
|
156
|
+
},
|
|
157
|
+
"paths": { "type": "array", "items": { "type": "string" } }
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"fix": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"additionalProperties": false,
|
|
163
|
+
"required": ["checkId", "findingId", "manualSteps", "operations", "status", "summary"],
|
|
164
|
+
"properties": {
|
|
165
|
+
"checkId": { "type": "string" },
|
|
166
|
+
"findingId": { "type": "string" },
|
|
167
|
+
"manualSteps": { "type": "array", "items": { "type": "string" } },
|
|
168
|
+
"message": { "type": "string" },
|
|
169
|
+
"operations": { "type": "array", "items": { "$ref": "#/$defs/fixOperation" } },
|
|
170
|
+
"status": { "enum": ["applied", "failed", "partial", "planned"] },
|
|
171
|
+
"summary": { "type": "string" }
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"report": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"additionalProperties": false,
|
|
177
|
+
"required": [
|
|
178
|
+
"apps",
|
|
179
|
+
"diagnostics",
|
|
180
|
+
"findings",
|
|
181
|
+
"kind",
|
|
182
|
+
"passedChecks",
|
|
183
|
+
"schemaVersion",
|
|
184
|
+
"status",
|
|
185
|
+
"summary"
|
|
186
|
+
],
|
|
187
|
+
"properties": {
|
|
188
|
+
"apps": { "type": "array", "items": { "$ref": "#/$defs/app" } },
|
|
189
|
+
"diagnostics": { "type": "array", "items": { "$ref": "#/$defs/diagnostic" } },
|
|
190
|
+
"findings": { "type": "array", "items": { "$ref": "#/$defs/finding" } },
|
|
191
|
+
"fixes": { "type": "array", "items": { "$ref": "#/$defs/fix" } },
|
|
192
|
+
"kind": { "const": "check-report" },
|
|
193
|
+
"passedChecks": {
|
|
194
|
+
"type": "array",
|
|
195
|
+
"items": {
|
|
196
|
+
"type": "object",
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"required": ["id", "title"],
|
|
199
|
+
"properties": {
|
|
200
|
+
"id": { "type": "string" },
|
|
201
|
+
"title": { "type": "string" }
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"schemaVersion": { "const": 1 },
|
|
206
|
+
"status": { "enum": ["clean", "empty", "error", "operational-error", "warning"] },
|
|
207
|
+
"summary": { "$ref": "#/$defs/summary" }
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"explanation": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"additionalProperties": false,
|
|
213
|
+
"required": [
|
|
214
|
+
"enabled",
|
|
215
|
+
"explain",
|
|
216
|
+
"fixability",
|
|
217
|
+
"fixesApplicable",
|
|
218
|
+
"id",
|
|
219
|
+
"kind",
|
|
220
|
+
"provenance",
|
|
221
|
+
"schemaVersion",
|
|
222
|
+
"scope",
|
|
223
|
+
"severity",
|
|
224
|
+
"thresholds",
|
|
225
|
+
"title"
|
|
226
|
+
],
|
|
227
|
+
"properties": {
|
|
228
|
+
"enabled": { "type": "boolean" },
|
|
229
|
+
"explain": { "type": "string" },
|
|
230
|
+
"fixability": { "enum": ["auto", "guided", "manual"] },
|
|
231
|
+
"fixesApplicable": { "type": "boolean" },
|
|
232
|
+
"id": { "type": "string" },
|
|
233
|
+
"kind": { "const": "check-explanation" },
|
|
234
|
+
"preset": {
|
|
235
|
+
"type": "object",
|
|
236
|
+
"additionalProperties": false,
|
|
237
|
+
"required": ["name", "reference"],
|
|
238
|
+
"properties": {
|
|
239
|
+
"name": { "type": "string" },
|
|
240
|
+
"reference": { "type": "string" }
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"provenance": {
|
|
244
|
+
"type": "object",
|
|
245
|
+
"additionalProperties": false,
|
|
246
|
+
"required": ["enabled", "severity", "thresholds"],
|
|
247
|
+
"properties": {
|
|
248
|
+
"enabled": { "$ref": "#/$defs/provenance" },
|
|
249
|
+
"severity": { "$ref": "#/$defs/provenance" },
|
|
250
|
+
"thresholds": { "$ref": "#/$defs/provenance" }
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"schemaVersion": { "const": 1 },
|
|
254
|
+
"scope": { "enum": ["global", "project"] },
|
|
255
|
+
"severity": { "enum": ["error", "info", "warn"] },
|
|
256
|
+
"thresholds": { "type": "object" },
|
|
257
|
+
"title": { "type": "string" }
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|