Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.py]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
77 changes: 77 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
area/docs:
- changed-files:
- any-glob-to-any-file:
- "**/*.md"
- "**/*.mdx"
- "docs/**"

area/frontend:
- changed-files:
- any-glob-to-any-file:
- "app/**"
- "components/**"
- "pages/**"
- "styles/**"
- "public/**"

area/backend:
- changed-files:
- any-glob-to-any-file:
- "app/**"
- "api/**"
- "server/**"
- "src/**"
- "main.py"

area/infra:
- changed-files:
- any-glob-to-any-file:
- "docker-compose*.yml"
- "**/Dockerfile*"
- "infra/**"
- "k8s/**"
- "helm/**"
- "**/*.tf"

area/sdk:
- changed-files:
- any-glob-to-any-file:
- "governs_ai/**"
- "src/**"
- "pyproject.toml"
- "package.json"
- "tsconfig.json"

area/security:
- changed-files:
- any-glob-to-any-file:
- "**/auth/**"
- "**/security/**"
- "manifest.json"
- "**/*policy*"
- "**/*permission*"

kind/ci:
- changed-files:
- any-glob-to-any-file:
- ".github/workflows/**"
- ".github/labeler.yml"

kind/tests:
- changed-files:
- any-glob-to-any-file:
- "tests/**"
- "**/*test*.py"
- "**/*.spec.ts"
- "**/*.test.ts"
- "**/*.test.tsx"

kind/deps:
- changed-files:
- any-glob-to-any-file:
- "package.json"
- "pnpm-lock.yaml"
- "requirements.txt"
- "requirements-dev.txt"
- "pyproject.toml"
- "poetry.lock"
19 changes: 19 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: PR Labeler

on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
label:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- name: Label pull requests
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing to GovernsAI TypeScript SDK

## Setup

```bash
pnpm install
```

## Development

```bash
pnpm build
```

## Validation

```bash
pnpm test
pnpm lint
```

## Pull Request Checklist

- Maintain strict type safety.
- Add tests for client and endpoint behavior changes.
- Update changelog and docs for public API changes.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# GovernsAI TypeScript SDK

[![npm](https://img.shields.io/npm/v/%40governs-ai%2Fsdk?label=npm%20%40governs-ai%2Fsdk)](https://www.npmjs.com/package/@governs-ai/sdk)
[![PyPI](https://img.shields.io/pypi/v/governs-ai-sdk?label=PyPI%20governs-ai-sdk)](https://pypi.org/project/governs-ai-sdk/)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)

A comprehensive TypeScript SDK for the GovernsAI platform, providing secure control over AI interactions, budget management, and policy enforcement.

## Features
Expand Down
Loading