sandboxctl 1.0.2__tar.gz

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.
Files changed (39) hide show
  1. sandboxctl-1.0.2/.github/dependabot.yml +14 -0
  2. sandboxctl-1.0.2/.github/workflows/ci.yml +18 -0
  3. sandboxctl-1.0.2/.github/workflows/conventional-pr.yml +16 -0
  4. sandboxctl-1.0.2/.github/workflows/release.yml +68 -0
  5. sandboxctl-1.0.2/.github/workflows/scorecard.yml +40 -0
  6. sandboxctl-1.0.2/.gitignore +33 -0
  7. sandboxctl-1.0.2/.pre-commit-config.yaml +16 -0
  8. sandboxctl-1.0.2/CHANGELOG.md +23 -0
  9. sandboxctl-1.0.2/LICENSE +190 -0
  10. sandboxctl-1.0.2/Makefile +28 -0
  11. sandboxctl-1.0.2/PKG-INFO +39 -0
  12. sandboxctl-1.0.2/README.md +22 -0
  13. sandboxctl-1.0.2/SECURITY.md +16 -0
  14. sandboxctl-1.0.2/codecov.yml +9 -0
  15. sandboxctl-1.0.2/commitlint.config.js +6 -0
  16. sandboxctl-1.0.2/examples/containerfiles/Containerfile +26 -0
  17. sandboxctl-1.0.2/examples/policies/policy.yaml +37 -0
  18. sandboxctl-1.0.2/examples/profiles/ai-dev.toml +16 -0
  19. sandboxctl-1.0.2/examples/profiles/dev.toml +14 -0
  20. sandboxctl-1.0.2/examples/profiles/minimal.toml +8 -0
  21. sandboxctl-1.0.2/pyproject.toml +86 -0
  22. sandboxctl-1.0.2/src/sandboxctl/__init__.py +3 -0
  23. sandboxctl-1.0.2/src/sandboxctl/cli.py +190 -0
  24. sandboxctl-1.0.2/src/sandboxctl/config.py +202 -0
  25. sandboxctl-1.0.2/src/sandboxctl/credentials.py +179 -0
  26. sandboxctl-1.0.2/src/sandboxctl/health.py +178 -0
  27. sandboxctl-1.0.2/src/sandboxctl/models.py +72 -0
  28. sandboxctl-1.0.2/src/sandboxctl/openshell.py +208 -0
  29. sandboxctl-1.0.2/src/sandboxctl/profile.py +79 -0
  30. sandboxctl-1.0.2/src/sandboxctl/scoped_tokens.py +145 -0
  31. sandboxctl-1.0.2/tests/__init__.py +0 -0
  32. sandboxctl-1.0.2/tests/test_cli.py +207 -0
  33. sandboxctl-1.0.2/tests/test_config.py +112 -0
  34. sandboxctl-1.0.2/tests/test_credentials.py +198 -0
  35. sandboxctl-1.0.2/tests/test_health.py +193 -0
  36. sandboxctl-1.0.2/tests/test_models.py +52 -0
  37. sandboxctl-1.0.2/tests/test_openshell.py +157 -0
  38. sandboxctl-1.0.2/tests/test_profile.py +64 -0
  39. sandboxctl-1.0.2/tests/test_scoped_tokens.py +169 -0
@@ -0,0 +1,14 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ commit-message:
8
+ prefix: "chore"
9
+ - package-ecosystem: "pip"
10
+ directory: "/"
11
+ schedule:
12
+ interval: "weekly"
13
+ commit-message:
14
+ prefix: "chore"
@@ -0,0 +1,18 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ permissions: read-all
10
+
11
+ jobs:
12
+ quality:
13
+ uses: butler54/sandboxctl-cicd/.github/workflows/python-quality.yml@main
14
+ with:
15
+ python-versions: '["3.12", "3.13"]'
16
+
17
+ block-ide:
18
+ uses: butler54/sandboxctl-cicd/.github/workflows/block-ide-dirs.yml@main
@@ -0,0 +1,16 @@
1
+ name: Lint PR title
2
+
3
+ on:
4
+ pull_request_target:
5
+ types:
6
+ - opened
7
+ - edited
8
+ - synchronize
9
+ branches:
10
+ - main
11
+
12
+ permissions: read-all
13
+
14
+ jobs:
15
+ lint:
16
+ uses: butler54/sandboxctl-cicd/.github/workflows/commitlint.yml@main
@@ -0,0 +1,68 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions:
8
+ id-token: write
9
+ attestations: write
10
+ contents: write
11
+
12
+ jobs:
13
+ release:
14
+ if: github.repository == 'butler54/sandboxctl'
15
+ runs-on: ubuntu-latest
16
+ concurrency:
17
+ group: release-${{ github.ref }}
18
+ cancel-in-progress: false
19
+ environment:
20
+ name: release
21
+ steps:
22
+ - name: Harden runner
23
+ uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
24
+ with:
25
+ egress-policy: audit
26
+
27
+ - name: Generate release bot token
28
+ id: app-token
29
+ uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
30
+ with:
31
+ app-id: ${{ vars.RELEASE_APP_ID }}
32
+ private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
33
+
34
+ - name: Checkout
35
+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
36
+ with:
37
+ fetch-depth: 0
38
+ token: ${{ steps.app-token.outputs.token }}
39
+
40
+ - name: Setup Python
41
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
42
+ with:
43
+ python-version: '3.12'
44
+
45
+ - name: Install build tools
46
+ run: pip install build
47
+
48
+ - name: Python Semantic Release
49
+ id: release
50
+ uses: python-semantic-release/python-semantic-release@350c48fcb3ffcdfd2e0a235206bc2ecea6b69df0 # v10.5.3
51
+ with:
52
+ github_token: ${{ steps.app-token.outputs.token }}
53
+
54
+ - name: Publish to PyPI
55
+ uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
56
+ if: steps.release.outputs.released == 'true'
57
+
58
+ - name: Sign artifacts with Sigstore
59
+ uses: sigstore/gh-action-sigstore-python@5b79a39c381910c090341a2c9b0bf022c8b387e1 # v3.4.0
60
+ if: steps.release.outputs.released == 'true'
61
+ with:
62
+ inputs: "dist/*"
63
+
64
+ - name: Upload to GitHub Releases
65
+ uses: python-semantic-release/upload-to-gh-release@0a92b5d7ebfc15a84f9801ebd1bf706343d43711 # v9.8.9
66
+ if: steps.release.outputs.released == 'true'
67
+ with:
68
+ github_token: ${{ steps.app-token.outputs.token }}
@@ -0,0 +1,40 @@
1
+ name: OpenSSF Scorecard
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ schedule:
8
+ - cron: '30 3 * * 1'
9
+
10
+ permissions: read-all
11
+
12
+ jobs:
13
+ analysis:
14
+ name: Scorecard analysis
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ security-events: write
18
+ id-token: write
19
+ steps:
20
+ - name: Harden runner
21
+ uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
22
+ with:
23
+ egress-policy: audit
24
+
25
+ - name: Checkout
26
+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
27
+ with:
28
+ persist-credentials: false
29
+
30
+ - name: Run Scorecard
31
+ uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
32
+ with:
33
+ results_file: results.sarif
34
+ results_format: sarif
35
+ publish_results: true
36
+
37
+ - name: Upload SARIF results
38
+ uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
39
+ with:
40
+ sarif_file: results.sarif
@@ -0,0 +1,33 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.egg-info/
6
+ dist/
7
+ build/
8
+ *.egg
9
+
10
+ # Virtual environments
11
+ .venv/
12
+ venv/
13
+
14
+ # Testing
15
+ .coverage
16
+ htmlcov/
17
+ .pytest_cache/
18
+
19
+ # Ruff
20
+ .ruff_cache/
21
+
22
+ # uv
23
+ uv.lock
24
+
25
+ # IDE
26
+ .vscode/
27
+ .idea/
28
+ *.swp
29
+ *.swo
30
+
31
+ # OS
32
+ .DS_Store
33
+ Thumbs.db
@@ -0,0 +1,16 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: end-of-file-fixer
6
+ - id: trailing-whitespace
7
+ - id: check-yaml
8
+ - id: check-toml
9
+ - id: mixed-line-ending
10
+
11
+ - repo: https://github.com/astral-sh/ruff-pre-commit
12
+ rev: v0.11.12
13
+ hooks:
14
+ - id: ruff
15
+ args: [--fix]
16
+ - id: ruff-format
@@ -0,0 +1,23 @@
1
+ # CHANGELOG
2
+
3
+ <!-- version list -->
4
+
5
+ ## v1.0.2 (2026-06-26)
6
+
7
+ ### Bug Fixes
8
+
9
+ - Trigger release to verify PyPI trusted publisher
10
+ ([`9bbfec1`](https://github.com/butler54/sandboxctl/commit/9bbfec1156108998d2d2d721b41f089879a3d03e))
11
+
12
+
13
+ ## v1.0.1 (2026-06-26)
14
+
15
+ ### Bug Fixes
16
+
17
+ - Port release to dedicated workflow for PyPI OIDC
18
+ ([`fd7672f`](https://github.com/butler54/sandboxctl/commit/fd7672f8a0a88fba69ee2a42b167bca6526d81e8))
19
+
20
+
21
+ ## v1.0.0 (2026-06-26)
22
+
23
+ - Initial Release
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 sandboxctl contributors
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,28 @@
1
+ .PHONY: install dev lint format test clean uninstall help
2
+
3
+ install: ## Install globally via uv tool
4
+ uv tool install --force -e .
5
+
6
+ dev: ## Install in dev mode with all deps
7
+ uv sync
8
+
9
+ lint: ## Check code style
10
+ uv run ruff check src/ tests/
11
+ uv run ruff format --check src/ tests/
12
+
13
+ format: ## Auto-format code
14
+ uv run ruff format src/ tests/
15
+ uv run ruff check --fix src/ tests/
16
+
17
+ test: ## Run tests with coverage
18
+ uv run pytest
19
+
20
+ clean: ## Remove build artifacts
21
+ rm -rf dist/ build/ *.egg-info .ruff_cache .pytest_cache __pycache__ .coverage htmlcov/
22
+
23
+ uninstall: ## Remove from uv tools
24
+ uv tool uninstall sandboxctl
25
+
26
+ help: ## Show this help
27
+ @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \
28
+ awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.4
2
+ Name: sandboxctl
3
+ Version: 1.0.2
4
+ Summary: OpenShell sandbox management CLI
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Environment :: Console
9
+ Classifier: License :: OSI Approved :: Apache Software License
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ Requires-Python: >=3.12
13
+ Requires-Dist: pydantic-settings>=2.0
14
+ Requires-Dist: pydantic>=2.0
15
+ Requires-Dist: typer>=0.15
16
+ Description-Content-Type: text/markdown
17
+
18
+ # sandboxctl
19
+
20
+ OpenShell sandbox management CLI.
21
+
22
+ ## Installation
23
+
24
+ ```bash
25
+ pip install sandboxctl
26
+ ```
27
+
28
+ ## Development
29
+
30
+ ```bash
31
+ make dev # install dev dependencies
32
+ make lint # check code style
33
+ make test # run tests
34
+ make format # auto-format
35
+ ```
36
+
37
+ ## License
38
+
39
+ Apache-2.0
@@ -0,0 +1,22 @@
1
+ # sandboxctl
2
+
3
+ OpenShell sandbox management CLI.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install sandboxctl
9
+ ```
10
+
11
+ ## Development
12
+
13
+ ```bash
14
+ make dev # install dev dependencies
15
+ make lint # check code style
16
+ make test # run tests
17
+ make format # auto-format
18
+ ```
19
+
20
+ ## License
21
+
22
+ Apache-2.0
@@ -0,0 +1,16 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ If you discover a security vulnerability, please report it responsibly:
6
+
7
+ 1. **Do not** open a public GitHub issue for security vulnerabilities.
8
+ 2. Email the maintainers or use [GitHub's private vulnerability reporting](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability).
9
+
10
+ We will acknowledge receipt within 48 hours and provide a timeline for a fix.
11
+
12
+ ## Supported Versions
13
+
14
+ | Version | Supported |
15
+ |---------|-----------|
16
+ | 0.x | Yes |
@@ -0,0 +1,9 @@
1
+ coverage:
2
+ status:
3
+ project:
4
+ default:
5
+ target: 75%
6
+ threshold: 5%
7
+ patch:
8
+ default:
9
+ target: 75%
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ extends: ["@commitlint/config-conventional"],
3
+ rules: {
4
+ "subject-case": [0],
5
+ },
6
+ };
@@ -0,0 +1,26 @@
1
+ # Base sandbox Containerfile
2
+ # Customizable per-profile via [sandbox] containerfile field
3
+ #
4
+ # Build args (set by sandboxctl):
5
+ # GIT_USER_NAME — git commit identity
6
+ # GIT_USER_EMAIL — git commit identity
7
+ # DEFAULT_MODEL — Claude model
8
+
9
+ FROM ghcr.io/nvidia/openshell-community/sandboxes/base:latest
10
+
11
+ ARG GIT_USER_NAME=""
12
+ ARG GIT_USER_EMAIL=""
13
+ ARG DEFAULT_MODEL="claude-sonnet-4-20250514"
14
+
15
+ RUN apt-get update && apt-get install -y --no-install-recommends \
16
+ jq \
17
+ && rm -rf /var/lib/apt/lists/*
18
+
19
+ RUN git config --system commit.gpgsign true && \
20
+ git config --system gpg.format ssh && \
21
+ git config --system user.signingkey /sandbox/.ssh/id_ed25519 && \
22
+ git config --system user.name "${GIT_USER_NAME}" && \
23
+ git config --system user.email "${GIT_USER_EMAIL}"
24
+
25
+ ENV CLAUDE_CODE_USE_VERTEX=1
26
+ ENV CLOUD_ML_REGION=global
@@ -0,0 +1,37 @@
1
+ # Default sandbox network policy
2
+ # Allows access to common development services
3
+ #
4
+ # Customize per-profile via [sandbox] policy field
5
+
6
+ network:
7
+ outbound:
8
+ allow:
9
+ # Git hosting
10
+ - github.com
11
+ - api.github.com
12
+ - gitlab.com
13
+ # Package registries
14
+ - pypi.org
15
+ - files.pythonhosted.org
16
+ - registry.npmjs.org
17
+ - proxy.golang.org
18
+ # Container registries
19
+ - ghcr.io
20
+ - registry.access.redhat.com
21
+ # Claude / Vertex AI
22
+ - global-aiplatform.googleapis.com
23
+ - us-central1-aiplatform.googleapis.com
24
+ - us-east1-aiplatform.googleapis.com
25
+ - oauth2.googleapis.com
26
+ - accounts.google.com
27
+ - statsig.anthropic.com
28
+ - sentry.io
29
+
30
+ filesystem:
31
+ readonly:
32
+ - /usr
33
+ - /bin
34
+ - /sbin
35
+ writable:
36
+ - /sandbox
37
+ - /tmp
@@ -0,0 +1,16 @@
1
+ # AI-assisted development sandbox profile
2
+ # Includes Claude Code with Vertex AI provider
3
+ # Usage: sandboxctl create --profile ai-dev
4
+
5
+ [sandbox]
6
+ # default_repo = "my-ai-project"
7
+ # model = "claude-sonnet-4-20250514"
8
+
9
+ [workspace]
10
+ theme = "Default Dark Modern"
11
+ zoom = -1
12
+
13
+ [repos]
14
+ github = [
15
+ # "owner/ai-project",
16
+ ]
@@ -0,0 +1,14 @@
1
+ # General development sandbox profile
2
+ # Usage: sandboxctl create --profile dev
3
+
4
+ [sandbox]
5
+ # default_repo = "my-project"
6
+
7
+ [workspace]
8
+ theme = "Default Dark Modern"
9
+ zoom = -1
10
+
11
+ [repos]
12
+ github = [
13
+ # "owner/repo-name",
14
+ ]
@@ -0,0 +1,8 @@
1
+ # Minimal sandbox profile — no repos, no extras
2
+ # Usage: sandboxctl create --profile minimal
3
+
4
+ [sandbox]
5
+
6
+ [workspace]
7
+
8
+ [repos]