This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-gateway.git
from 9b01f66 feat(providers): let Gateway hold a ChatGPT subscription and
spend it like a key
new 44b4006 feat(providers): hold a Claude subscription too, in the shape
its endpoint answers
new f4e7505 feat(agents): drive an agent from Gateway and watch it answer
new 40ab857 feat(agents): drive an agent through the provider bound to it
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
agent/fingerprint.go | 5 +
agent/fingerprints/claude-code.json | 24 ++
agent/fingerprints/codebuddy.json | 26 +-
agent/fingerprints/codex-cli.json | 24 +-
agent/fingerprints/gemini-cli.json | 18 +-
agent/fingerprints/qwen-code.json | 26 +-
agent/headless.go | 90 +++++
agentprovider/claude_code.go | 12 +
agentprovider/gemini.go | 6 +
agentprovider/provider.go | 17 +
agentprovider/qwen.go | 6 +
agentsession/command_unix.go | 45 +++
agentsession/command_windows.go | 97 +++++
agentsession/env.go | 53 +++
agentsession/event.go | 80 ++++
agentsession/parse.go | 66 +++
agentsession/parse_claude.go | 175 ++++++++
agentsession/parse_codex.go | 165 ++++++++
.../system.go => agentsession/parse_text.go | 30 +-
agentsession/runner.go | 208 ++++++++++
agentsession/session.go | 100 +++++
agentsession/store.go | 361 +++++++++++++++++
controllers/agent.go | 2 +-
controllers/agent_provider.go | 76 +---
controllers/agent_session.go | 297 ++++++++++++++
controllers/proxy.go | 4 +
.../en/1-getting-started/1.4-quickstart.md | 2 +-
.../user-manual/en/3-providers/3.3-caller-login.md | 42 +-
docs/user-manual/en/6-faq/6.1-faq.md | 2 +-
.../zh/1-getting-started/1.4-quickstart.md | 2 +-
.../user-manual/zh/3-providers/3.3-caller-login.md | 42 +-
docs/user-manual/zh/6-faq/6.1-faq.md | 2 +-
main.go | 7 +
object/agent_session.go | 149 +++++++
object/ormer.go | 7 +
object/provider_subscription.go | 237 ++++++++++-
routers/router.go | 9 +
service/agent_endpoint.go | 121 ++++++
web/src/App.tsx | 2 +
web/src/backend/DriveBackend.ts | 69 ++++
web/src/components/ProviderAuditCard.tsx | 52 ++-
web/src/components/ProviderSourcePicker.tsx | 6 +-
web/src/lib/providers.ts | 7 +-
web/src/locales/en/data.json | 34 +-
web/src/locales/zh/data.json | 34 +-
web/src/nav.ts | 4 +
web/src/pages/ChatPage.tsx | 441 +++++++++++++++++++++
web/src/types.ts | 46 +++
48 files changed, 3140 insertions(+), 190 deletions(-)
create mode 100644 agent/headless.go
create mode 100644 agentsession/command_unix.go
create mode 100644 agentsession/command_windows.go
create mode 100644 agentsession/env.go
create mode 100644 agentsession/event.go
create mode 100644 agentsession/parse.go
create mode 100644 agentsession/parse_claude.go
create mode 100644 agentsession/parse_codex.go
copy controllers/system.go => agentsession/parse_text.go (53%)
create mode 100644 agentsession/runner.go
create mode 100644 agentsession/session.go
create mode 100644 agentsession/store.go
create mode 100644 controllers/agent_session.go
create mode 100644 object/agent_session.go
create mode 100644 service/agent_endpoint.go
create mode 100644 web/src/backend/DriveBackend.ts
create mode 100644 web/src/pages/ChatPage.tsx
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]