Skip to content

Commit c8469e3

Browse files
authored
feat: create operations and file upload. (#4)
* fix: openai create and write files * feat: working upload tool * fix: examples * feat: add proper filtering * fix: tests * feat: flat structure * feat: linting * fix: packages * fix: linting
1 parent 13575ea commit c8469e3

58 files changed

Lines changed: 1370 additions & 820 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursor/rules/examples-standards.mdc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description:
3-
globs:
2+
description: Standards for creating and maintaining examples for all functionality
3+
globs: examples/*
44
---
55
# Examples Standards
66

@@ -13,8 +13,6 @@ description: Standards for creating and maintaining examples for all functionali
1313
filters:
1414
- type: path
1515
pattern: "^examples/.*"
16-
- type: path
17-
pattern: "^packages/.*/.*"
1816

1917
actions:
2018
- type: suggest

.cursor/rules/new-stackone-package.mdc

Lines changed: 0 additions & 69 deletions
This file was deleted.

.cursor/rules/package-installation.mdc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ actions:
2929

3030
2. Package Level Dependencies:
3131
```bash
32-
# Navigate to package directory
33-
cd packages/stackone-core
34-
3532
# Install package dependencies
3633
uv add pydantic
3734
uv add requests
@@ -52,7 +49,10 @@ actions:
5249
uv run pytest
5350

5451
# Run specific package tests
55-
uv run pytest packages/stackone-core/tests/
52+
uv run pytest stackone_ai
53+
54+
#Run tests on examples
55+
uv run pytest examples
5656
```
5757

5858
5. Package Dependencies:
@@ -72,7 +72,6 @@ examples:
7272
uv add --dev black
7373

7474
# Good: Installing package dependencies
75-
cd packages/stackone-core
7675
uv add pydantic
7776

7877
# Bad: Using pip install

.cursor/rules/test-standards.mdc

Lines changed: 0 additions & 81 deletions
This file was deleted.

.cursor/rules/uv-scripts.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ filters:
1414
- type: path
1515
pattern: "^scripts/.*"
1616
- type: exclude_path
17-
pattern: "^(packages|examples)/.*" # Exclude packages and examples
17+
pattern: "^(stackone_ai|examples)/.*" # Exclude package and examples
1818

1919
actions:
2020
- type: suggest

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
args: check .
2727

2828
- name: Run Mypy
29-
run: uv run mypy packages/stackone-ai/stackone_ai
29+
run: uv run mypy stackone_ai

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,5 @@ jobs:
3535
env:
3636
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
3737
run: |
38-
cd packages/stackone-ai
3938
uv build --no-sources
4039
uv publish

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ __pycache__
1111
# Documentation build
1212
.docs/
1313
site/
14+
15+
*.egg-info
16+
dist/
17+
build/

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
rev: v1.8.0
1111
hooks:
1212
- id: mypy
13-
files: ^packages/stackone-ai/stackone_ai/
13+
files: ^stackone_ai/
1414
additional_dependencies:
1515
- types-requests
1616
- types-PyYAML

.release-please-config.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2+
"release-type": "python",
3+
"changelog-path": "CHANGELOG.md",
4+
"bump-minor-pre-major": true,
5+
"bump-patch-for-minor-pre-major": true,
6+
"draft": false,
7+
"prerelease": false,
8+
"include-v-in-tag": true,
29
"packages": {
3-
"packages/stackone-ai": {
4-
"release-type": "python",
5-
"changelog-path": "CHANGELOG.md",
6-
"bump-minor-pre-major": true,
7-
"bump-patch-for-minor-pre-major": true,
8-
"draft": false,
9-
"prerelease": false,
10-
"include-component-in-tag": true,
11-
"include-v-in-tag": true
10+
".": {
11+
"package-name": "stackone-ai"
1212
}
1313
},
1414
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"

0 commit comments

Comments
 (0)