@ibartel74/pi-automode-ext 1.0.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/CHANGELOG.md +81 -0
- package/LICENSE.md +22 -0
- package/README.md +262 -0
- package/docs/GLOSSARY.md +41 -0
- package/docs/adr/ADR-001-permission-precedence-and-trust-boundaries.md +46 -0
- package/docs/adr/ADR-002-global-config-in-extension-data-directory.md +60 -0
- package/docs/adr/INDEX.md +6 -0
- package/docs/automode-classifier-flow.md +449 -0
- package/docs/configuration.md +226 -0
- package/docs/defaults.md +178 -0
- package/docs/diagnostics.md +90 -0
- package/docs/observability-logging.md +160 -0
- package/examples/automode.local.json +45 -0
- package/extensions/auto-mode/bash.ts +692 -0
- package/extensions/auto-mode/classifier.ts +940 -0
- package/extensions/auto-mode/config.ts +948 -0
- package/extensions/auto-mode/constants.ts +232 -0
- package/extensions/auto-mode/extension.ts +1118 -0
- package/extensions/auto-mode/hard-deny.ts +429 -0
- package/extensions/auto-mode/jev.ts +338 -0
- package/extensions/auto-mode/log.ts +173 -0
- package/extensions/auto-mode/model-selector.ts +113 -0
- package/extensions/auto-mode/model.ts +13 -0
- package/extensions/auto-mode/paths.ts +303 -0
- package/extensions/auto-mode/permissions.ts +667 -0
- package/extensions/auto-mode/state.ts +106 -0
- package/extensions/auto-mode/transcript.ts +236 -0
- package/extensions/auto-mode/types.ts +210 -0
- package/extensions/auto-mode/utils.ts +54 -0
- package/extensions/auto-mode.ts +27 -0
- package/package.json +61 -0
- package/skills/automode-diagnostics/SKILL.md +63 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"autoMode": {
|
|
3
|
+
"classifierReasoningLevel": "low",
|
|
4
|
+
"classifierTimeoutMs": 20000,
|
|
5
|
+
"allowInsideWorkingDirectory": false,
|
|
6
|
+
"interactiveConfirm": true,
|
|
7
|
+
"deniedPaths": [
|
|
8
|
+
"*.env",
|
|
9
|
+
"~/.ssh/*",
|
|
10
|
+
"/etc/*"
|
|
11
|
+
],
|
|
12
|
+
"environment": [
|
|
13
|
+
"$defaults",
|
|
14
|
+
"Source control: github.example.com/acme-corp and all repos under it",
|
|
15
|
+
"Trusted internal domains: *.corp.example.com, api.internal.example.com",
|
|
16
|
+
"Trusted cloud buckets: s3://acme-build-artifacts, gs://acme-dev-scratch"
|
|
17
|
+
],
|
|
18
|
+
"allow": [
|
|
19
|
+
"$defaults",
|
|
20
|
+
"Deploying to the staging namespace is allowed when the command names staging explicitly."
|
|
21
|
+
],
|
|
22
|
+
"soft_deny": [
|
|
23
|
+
"$defaults",
|
|
24
|
+
"Never run database migrations except through the project's migrations CLI."
|
|
25
|
+
],
|
|
26
|
+
"hard_deny": [
|
|
27
|
+
"$defaults",
|
|
28
|
+
"Never send repository contents to third-party code-review APIs."
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"permissions": {
|
|
32
|
+
"allow": [
|
|
33
|
+
"bash(git status*)",
|
|
34
|
+
"example-extension-tool"
|
|
35
|
+
],
|
|
36
|
+
"ask": [
|
|
37
|
+
"bash(git push *)"
|
|
38
|
+
],
|
|
39
|
+
"deny": [
|
|
40
|
+
"bash(git push --force*)",
|
|
41
|
+
"edit(.env*)",
|
|
42
|
+
"write(.env*)"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|