gjallar 0.13.0__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.
- gjallar-0.13.0/.github/workflows/publish-gjallar.yml +131 -0
- gjallar-0.13.0/.gitignore +25 -0
- gjallar-0.13.0/CHANGELOG.md +1301 -0
- gjallar-0.13.0/CLAUDE.md +57 -0
- gjallar-0.13.0/MIGRATION.md +71 -0
- gjallar-0.13.0/PKG-INFO +510 -0
- gjallar-0.13.0/PUBLISHING.md +210 -0
- gjallar-0.13.0/README.md +472 -0
- gjallar-0.13.0/SPLIT.md +34 -0
- gjallar-0.13.0/docs/glossary.md +89 -0
- gjallar-0.13.0/docs/guides/01-quickstart.md +359 -0
- gjallar-0.13.0/docs/guides/02-google-adk.md +351 -0
- gjallar-0.13.0/docs/guides/03-examples.md +772 -0
- gjallar-0.13.0/docs/guides/04-registration.md +422 -0
- gjallar-0.13.0/docs/guides/README.md +263 -0
- gjallar-0.13.0/docs/protocols/GJALLAR-migration-http-shim.md +288 -0
- gjallar-0.13.0/docs/protocols/GJALLAR-spec.md +375 -0
- gjallar-0.13.0/docs/protocols/README.md +44 -0
- gjallar-0.13.0/docs/protocols/a2a-bidirectional-communication.md +155 -0
- gjallar-0.13.0/docs/protocols/a2a-protocol.md +213 -0
- gjallar-0.13.0/docs/protocols/agent-card-schema.md +177 -0
- gjallar-0.13.0/docs/protocols/broadcast-discovery-pattern.md +234 -0
- gjallar-0.13.0/docs/protocols/mcp-vs-a2a-comparison.md +120 -0
- gjallar-0.13.0/examples/reference-agent/main.py +28 -0
- gjallar-0.13.0/legacy/typescript/ARCHIVED.md +11 -0
- gjallar-0.13.0/legacy/typescript/README.md +147 -0
- gjallar-0.13.0/legacy/typescript/examples/restaurant-agent.ts +142 -0
- gjallar-0.13.0/legacy/typescript/package-lock.json +3332 -0
- gjallar-0.13.0/legacy/typescript/package.json +26 -0
- gjallar-0.13.0/legacy/typescript/src/agent.ts +288 -0
- gjallar-0.13.0/legacy/typescript/src/index.ts +23 -0
- gjallar-0.13.0/legacy/typescript/src/registry.ts +105 -0
- gjallar-0.13.0/legacy/typescript/src/types.ts +157 -0
- gjallar-0.13.0/legacy/typescript/tests/registry.test.ts +108 -0
- gjallar-0.13.0/legacy/typescript/tests/types.test.ts +69 -0
- gjallar-0.13.0/legacy/typescript/tsconfig.json +14 -0
- gjallar-0.13.0/legacy/typescript/vitest.config.ts +13 -0
- gjallar-0.13.0/mock_agent.py +44 -0
- gjallar-0.13.0/pyproject.toml +59 -0
- gjallar-0.13.0/src/gjallar/GJALLAR-spec.md +375 -0
- gjallar-0.13.0/src/gjallar/__init__.py +59 -0
- gjallar-0.13.0/src/gjallar/__main__.py +19 -0
- gjallar-0.13.0/src/gjallar/_adapter_blocks.py +133 -0
- gjallar-0.13.0/src/gjallar/_dev_cmd.py +23 -0
- gjallar-0.13.0/src/gjallar/_init_cmd.py +213 -0
- gjallar-0.13.0/src/gjallar/_init_templates.py +311 -0
- gjallar-0.13.0/src/gjallar/_proposal_editor.py +269 -0
- gjallar-0.13.0/src/gjallar/_spec_cmd.py +48 -0
- gjallar-0.13.0/src/gjallar/_term.py +68 -0
- gjallar-0.13.0/src/gjallar/_verify_cmd.py +297 -0
- gjallar-0.13.0/src/gjallar/adapters.py +401 -0
- gjallar-0.13.0/src/gjallar/agent.py +338 -0
- gjallar-0.13.0/src/gjallar/analyzer.py +547 -0
- gjallar-0.13.0/src/gjallar/auth.py +387 -0
- gjallar-0.13.0/src/gjallar/cli.py +1169 -0
- gjallar-0.13.0/src/gjallar/history.py +146 -0
- gjallar-0.13.0/src/gjallar/llm.py +130 -0
- gjallar-0.13.0/src/gjallar/models.py +93 -0
- gjallar-0.13.0/src/gjallar/server.py +263 -0
- gjallar-0.13.0/src/gjallar/signing.py +174 -0
- gjallar-0.13.0/src/gjallar/simple.py +356 -0
- gjallar-0.13.0/src/gjallar/telemetry.py +177 -0
- gjallar-0.13.0/src/gjallar/test_client.py +134 -0
- gjallar-0.13.0/src/gjallar/wrap_detection.py +686 -0
- gjallar-0.13.0/tests/__init__.py +0 -0
- gjallar-0.13.0/tests/conftest.py +22 -0
- gjallar-0.13.0/tests/test_adapters.py +205 -0
- gjallar-0.13.0/tests/test_analyzer.py +659 -0
- gjallar-0.13.0/tests/test_auth.py +457 -0
- gjallar-0.13.0/tests/test_card.py +59 -0
- gjallar-0.13.0/tests/test_cli.py +2380 -0
- gjallar-0.13.0/tests/test_decorators.py +57 -0
- gjallar-0.13.0/tests/test_history.py +250 -0
- gjallar-0.13.0/tests/test_llm.py +188 -0
- gjallar-0.13.0/tests/test_server_wire.py +532 -0
- gjallar-0.13.0/tests/test_simple.py +468 -0
- gjallar-0.13.0/tests/test_telemetry.py +129 -0
- gjallar-0.13.0/tests/test_wrap_detection.py +789 -0
- gjallar-0.13.0/uv.lock +2436 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# Automated release of the gjallar Python library to PyPI.
|
|
2
|
+
#
|
|
3
|
+
# Security note: this workflow does not interpolate any untrusted user
|
|
4
|
+
# input (issue/PR/comment bodies, head refs, commit messages) into
|
|
5
|
+
# `run:` shell commands. The only ${{ ... }} uses are in `if:`
|
|
6
|
+
# expressions and `name:` fields, which are not shell-interpreted.
|
|
7
|
+
#
|
|
8
|
+
# Triggers on tag pushes matching v* (e.g. v0.1.1, v0.2.0). Uses PyPI's
|
|
9
|
+
# Trusted Publishing (OIDC) — no long-lived tokens in GitHub secrets.
|
|
10
|
+
#
|
|
11
|
+
# One-time setup on PyPI:
|
|
12
|
+
# https://pypi.org/manage/account/publishing/ → Add a new pending publisher
|
|
13
|
+
# Project name: gjallar
|
|
14
|
+
# Owner: <your github org or username>
|
|
15
|
+
# Repository: gjallar-sdk
|
|
16
|
+
# Workflow filename: publish-gjallar.yml
|
|
17
|
+
# Environment name: pypi
|
|
18
|
+
#
|
|
19
|
+
# To release:
|
|
20
|
+
# 1. Bump version in pyproject.toml AND src/gjallar/__init__.py
|
|
21
|
+
# 2. git commit + push
|
|
22
|
+
# 3. git tag -a v0.1.1 -m "gjallar 0.1.1"
|
|
23
|
+
# 4. git push --tags
|
|
24
|
+
# The rest is automated.
|
|
25
|
+
|
|
26
|
+
name: publish-gjallar
|
|
27
|
+
|
|
28
|
+
on:
|
|
29
|
+
push:
|
|
30
|
+
tags:
|
|
31
|
+
- "v*"
|
|
32
|
+
workflow_dispatch:
|
|
33
|
+
inputs:
|
|
34
|
+
target:
|
|
35
|
+
description: "Publish target"
|
|
36
|
+
type: choice
|
|
37
|
+
required: true
|
|
38
|
+
default: "testpypi"
|
|
39
|
+
options:
|
|
40
|
+
- testpypi
|
|
41
|
+
- pypi
|
|
42
|
+
|
|
43
|
+
jobs:
|
|
44
|
+
build:
|
|
45
|
+
name: Build distribution
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/checkout@v4
|
|
49
|
+
|
|
50
|
+
- name: Set up Python
|
|
51
|
+
uses: actions/setup-python@v5
|
|
52
|
+
with:
|
|
53
|
+
python-version: "3.12"
|
|
54
|
+
|
|
55
|
+
- name: Install build backend
|
|
56
|
+
run: python -m pip install --upgrade build
|
|
57
|
+
|
|
58
|
+
- name: Build wheel and sdist
|
|
59
|
+
run: python -m build
|
|
60
|
+
|
|
61
|
+
- name: Run tests against the built package
|
|
62
|
+
run: |
|
|
63
|
+
python -m pip install dist/*.whl pytest
|
|
64
|
+
python -m pytest tests/ -q
|
|
65
|
+
|
|
66
|
+
- name: Upload built distributions
|
|
67
|
+
uses: actions/upload-artifact@v4
|
|
68
|
+
with:
|
|
69
|
+
name: gjallar-dist
|
|
70
|
+
path: dist/*
|
|
71
|
+
|
|
72
|
+
publish-testpypi:
|
|
73
|
+
name: Publish to TestPyPI
|
|
74
|
+
needs: build
|
|
75
|
+
runs-on: ubuntu-latest
|
|
76
|
+
if: github.event_name == 'workflow_dispatch' && inputs.target == 'testpypi'
|
|
77
|
+
environment:
|
|
78
|
+
name: testpypi
|
|
79
|
+
url: https://test.pypi.org/p/gjallar
|
|
80
|
+
permissions:
|
|
81
|
+
id-token: write
|
|
82
|
+
steps:
|
|
83
|
+
- uses: actions/download-artifact@v4
|
|
84
|
+
with:
|
|
85
|
+
name: gjallar-dist
|
|
86
|
+
path: dist/
|
|
87
|
+
- name: Publish to TestPyPI
|
|
88
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
89
|
+
with:
|
|
90
|
+
repository-url: https://test.pypi.org/legacy/
|
|
91
|
+
packages-dir: dist/
|
|
92
|
+
|
|
93
|
+
publish-pypi:
|
|
94
|
+
name: Publish to PyPI
|
|
95
|
+
needs: build
|
|
96
|
+
runs-on: ubuntu-latest
|
|
97
|
+
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.target == 'pypi')
|
|
98
|
+
environment:
|
|
99
|
+
name: pypi
|
|
100
|
+
url: https://pypi.org/p/gjallar
|
|
101
|
+
permissions:
|
|
102
|
+
id-token: write
|
|
103
|
+
steps:
|
|
104
|
+
- uses: actions/download-artifact@v4
|
|
105
|
+
with:
|
|
106
|
+
name: gjallar-dist
|
|
107
|
+
path: dist/
|
|
108
|
+
- name: Publish to PyPI
|
|
109
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
110
|
+
with:
|
|
111
|
+
packages-dir: dist/
|
|
112
|
+
|
|
113
|
+
create-release:
|
|
114
|
+
name: Create GitHub Release
|
|
115
|
+
needs: publish-pypi
|
|
116
|
+
runs-on: ubuntu-latest
|
|
117
|
+
if: github.event_name == 'push'
|
|
118
|
+
permissions:
|
|
119
|
+
contents: write
|
|
120
|
+
steps:
|
|
121
|
+
- uses: actions/checkout@v4
|
|
122
|
+
- uses: actions/download-artifact@v4
|
|
123
|
+
with:
|
|
124
|
+
name: gjallar-dist
|
|
125
|
+
path: dist/
|
|
126
|
+
- name: Create GitHub Release
|
|
127
|
+
uses: softprops/action-gh-release@v2
|
|
128
|
+
with:
|
|
129
|
+
name: "gjallar ${{ github.ref_name }}"
|
|
130
|
+
generate_release_notes: true
|
|
131
|
+
files: dist/*
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.eggs/
|
|
6
|
+
build/
|
|
7
|
+
dist/
|
|
8
|
+
*.whl
|
|
9
|
+
|
|
10
|
+
# Virtualenvs
|
|
11
|
+
.venv/
|
|
12
|
+
venv/
|
|
13
|
+
env/
|
|
14
|
+
|
|
15
|
+
# Tooling caches
|
|
16
|
+
.pytest_cache/
|
|
17
|
+
.ruff_cache/
|
|
18
|
+
.mypy_cache/
|
|
19
|
+
|
|
20
|
+
# OS
|
|
21
|
+
.DS_Store
|
|
22
|
+
|
|
23
|
+
# Env
|
|
24
|
+
.env
|
|
25
|
+
.env.local
|