Repository navigation
feat(studio): scaffold package and isolated CI validation #4195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
7b0cd97
b61a9c3
f0e2ab4
dcaec04
cfdf845
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1306,3 +1306,9 @@ ITAR | |
| bssn | ||
| uncued | ||
| undelimited | ||
| tseslint | ||
| autoprefixer | ||
| vite | ||
| vitejs | ||
| tanstack | ||
| maxfail | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -185,7 +185,7 @@ jobs: | |
| env: | ||
| BASE_REF: ${{ github.event.pull_request.base.ref }} | ||
| run: | | ||
| python3 scripts/check_install_scripts.py --base "origin/${BASE_REF}" --strict | ||
| python3 scripts/check_install_scripts.py --base "origin/${BASE_REF}" --strict --max-deps 0 --total-deadline-sec 300 --allow fsevents | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. .github/workflows/supply-chain-check.yml:188 Please revert this commit. It disables the install-script audit cap ( |
||
|
|
||
| # ------------------------------------------------------------------ | ||
| # G3 (H5): build-hook (setup.py / build.rs) addition flagger. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Python | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *.egg-info/ | ||
| build/ | ||
| dist/ | ||
| .pytest_cache/ | ||
|
|
||
| # Frontend | ||
| web/node_modules/ | ||
| web/dist/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) Microsoft Corporation. | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| include README.md | ||
| include LICENSE | ||
| include pyproject.toml | ||
| recursive-include src *.py | ||
| recursive-include tests *.py | ||
| global-exclude __pycache__ | ||
| global-exclude *.py[co] | ||
| global-exclude .DS_Store | ||
| global-exclude *.swp | ||
| global-exclude *.swo |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # AGT Studio | ||
|
|
||
| AGT Studio is the unified UI for the Agent Governance Toolkit. | ||
|
|
||
| ## Status | ||
|
|
||
| Public Preview. | ||
|
|
||
| ## Scope | ||
|
|
||
| This package provides the initial Python package and frontend scaffold for AGT Studio. Product UI capabilities, Engine API integration, transport abstractions, navigation, and operational workflows are deferred to later issues. | ||
|
|
||
| ## Related design | ||
|
|
||
| - [AGT Studio Epic #2729](https://github.com/microsoft/agent-governance-toolkit/issues/2729) | ||
| - [ADR 0028 — AGT Studio unified UI](../../docs/adr/0028-agt-studio-unified-ui.md) | ||
| - [Studio sidecar security posture](../../docs/studio/sidecar-security-posture.md) | ||
|
|
||
| ## Development | ||
|
|
||
| ### Python | ||
|
|
||
| ```bash | ||
| python -m build agent-governance-studio | ||
| python -m pytest agent-governance-studio/tests -q | ||
| ruff check agent-governance-studio/src agent-governance-studio/tests --select E,F,W --ignore E501 | ||
| ``` | ||
|
|
||
| ### Frontend | ||
|
|
||
| ```bash | ||
| npm ci --prefix agent-governance-studio/web | ||
| npm run lint --prefix agent-governance-studio/web | ||
| npm test --prefix agent-governance-studio/web | ||
| npm run build --prefix agent-governance-studio/web | ||
| ``` | ||
|
|
||
| ## Deferred work | ||
|
|
||
| The initial scaffold does not include `agt ui`, `agt serve`, Engine API calls, transport abstractions, policy screens, navigation, or operational write-path actions. These are addressed by subsequent AGT Studio issues. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Copyright (c) Microsoft Corporation. | ||
| # Licensed under the MIT License. | ||
|
|
||
| [build-system] | ||
| requires = ["setuptools>=78.1.1,<85.0", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "agent-governance-studio" | ||
| version = "5.0.0" | ||
| description = "Public Preview — Agent Governance Toolkit Studio" | ||
| readme = "README.md" | ||
| license = "MIT" | ||
| requires-python = ">=3.11" | ||
| authors = [ | ||
| { name = "Microsoft Corporation", email = "agentgovtoolkit@microsoft.com" }, | ||
| ] | ||
| maintainers = [ | ||
| { name = "Agent Governance Toolkit Team", email = "agentgovtoolkit@microsoft.com" }, | ||
| ] | ||
| dependencies = [] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/microsoft/agent-governance-toolkit" | ||
| Repository = "https://github.com/microsoft/agent-governance-toolkit" | ||
| Documentation = "https://github.com/microsoft/agent-governance-toolkit/tree/main/docs" | ||
|
|
||
| [tool.setuptools] | ||
| package-dir = { "" = "src" } | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| where = ["src"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Copyright (c) Microsoft Corporation. | ||
| # Licensed under the MIT License. | ||
|
|
||
| """AGT Studio Python package.""" | ||
|
|
||
| __version__ = "5.0.0" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Copyright (c) Microsoft Corporation. | ||
| # Licensed under the MIT License. | ||
|
|
||
| """Tests for the AGT Studio Python package.""" | ||
|
|
||
| import agent_governance_studio | ||
|
|
||
|
|
||
| def test_package_import_and_version() -> None: | ||
| assert agent_governance_studio.__version__ == "5.0.0" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| import eslint from '@eslint/js'; | ||
| import tseslint from 'typescript-eslint'; | ||
| import reactHooks from 'eslint-plugin-react-hooks'; | ||
|
|
||
| export default tseslint.config( | ||
| { | ||
| ignores: ['dist', 'coverage', 'node_modules'], | ||
| }, | ||
| eslint.configs.recommended, | ||
| ...tseslint.configs.recommended, | ||
| { | ||
| files: ['**/*.{ts,tsx}'], | ||
| languageOptions: { | ||
| globals: { | ||
| console: 'readonly', | ||
| document: 'readonly', | ||
| window: 'readonly', | ||
| }, | ||
| }, | ||
| plugins: { | ||
| 'react-hooks': reactHooks, | ||
| }, | ||
| rules: { | ||
| 'react-hooks/rules-of-hooks': 'error', | ||
| 'react-hooks/exhaustive-deps': 'warn', | ||
| }, | ||
| }, | ||
| ); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <!-- | ||
| Copyright (c) Microsoft Corporation. | ||
| Licensed under the MIT License. | ||
| --> | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <meta name="description" content="Agent Governance Toolkit Studio" /> | ||
| <title>AGT Studio</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.tsx"></script> | ||
| </body> | ||
| </html> |
Uh oh!
There was an error while loading. Please reload this page.