Skip to content

Commit f0ac90c

Browse files
committed
chore(satellite): sync platon from aicom monorepo
Auto-generated by scripts/mirror_satellites.sh
0 parents  commit f0ac90c

96 files changed

Lines changed: 13114 additions & 0 deletions

File tree

Some content is hidden

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

.env.example

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Platon oracle & LLM providers
2+
# Keys can live in this file, in ~/.hermes/.env (HERMES_ENV_FILE), or host env.
3+
# Standard env names (no prefix) are preferred — same as Hermes / Alien Monitor.
4+
5+
PLATON_PUBLIC_URL=http://78.17.126.214
6+
7+
# Provider selection:
8+
# auto — first available: deepseek → openai → anthropic → ollama → template
9+
# deepseek — DeepSeek only (OpenAI-compatible API)
10+
# openai — OpenAI only
11+
# anthropic — Anthropic Messages API only
12+
# ollama — local Ollama only
13+
# template — no LLM, deterministic witnesses
14+
PLATON_ORACLE_PROVIDER=auto
15+
16+
# Cloud API keys (pick one or more for auto fallback chain)
17+
DEEPSEEK_API_KEY=
18+
OPENAI_API_KEY=
19+
ANTHROPIC_API_KEY=
20+
21+
# Per-provider overrides (optional)
22+
PLATON_DEEPSEEK_MODEL=deepseek-chat
23+
PLATON_DEEPSEEK_BASE_URL=https://api.deepseek.com/v1
24+
PLATON_OPENAI_MODEL=gpt-4o-mini
25+
PLATON_OPENAI_BASE_URL=https://api.openai.com/v1
26+
PLATON_ANTHROPIC_MODEL=claude-3-5-haiku-latest
27+
PLATON_ANTHROPIC_BASE_URL=https://api.anthropic.com/v1
28+
29+
# Local models (Ollama, LM Studio OpenAI shim, etc.)
30+
PLATON_OLLAMA_URL=http://127.0.0.1:11434
31+
PLATON_OLLAMA_MODEL=mistral:7b-instruct-q4_K_M
32+
33+
# Ecosystem
34+
PLATON_ALIEN_MONITOR_WEBHOOK=http://127.0.0.1:9100/api/integrations/platon/event
35+
HERMES_ENV_FILE=/root/.hermes/.env
36+
37+
# AIMarket hub federation (real hub: modelmarket.dev)
38+
PLATON_HUB_URL=https://modelmarket.dev
39+
# Operator-only: set on the HUB to enable /federation/announce + seed crawl.
40+
PLATON_HUB_ADMIN_TOKEN=
41+
42+
# CORS: comma-separated origins. "*" disables credentials (CORS spec). Set
43+
# explicit origins (e.g. https://magic-ai-factory.com) to allow credentials.
44+
PLATON_CORS_ORIGINS=*
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Bug report
2+
description: Something is broken or incorrect
3+
labels: ["bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for filing a bug. Include enough detail for a maintainer to reproduce.
9+
- type: textarea
10+
id: summary
11+
attributes:
12+
label: Summary
13+
description: What went wrong in one or two sentences?
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: steps
18+
attributes:
19+
label: Steps to reproduce
20+
placeholder: |
21+
1. ...
22+
2. ...
23+
3. ...
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: expected
28+
attributes:
29+
label: Expected behavior
30+
validations:
31+
required: true
32+
- type: textarea
33+
id: actual
34+
attributes:
35+
label: Actual behavior
36+
validations:
37+
required: true
38+
- type: input
39+
id: version
40+
attributes:
41+
label: Version or commit
42+
placeholder: v1.2.3 or main@abc1234
43+
- type: dropdown
44+
id: component
45+
attributes:
46+
label: Area
47+
options:
48+
- CI / build
49+
- Documentation
50+
- Hub / protocol
51+
- SDK / client
52+
- UI / frontend
53+
- Other
54+
validations:
55+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Security policy
4+
url: mailto:security@aicom.io
5+
about: Report vulnerabilities responsibly (see SECURITY.md in this repository)
6+
- name: Ecosystem docs
7+
url: https://modeldev.modelmarket.dev
8+
about: AI-Factory + AIMarket overview and live demos
9+
issue_templates:
10+
- name: Bug report
11+
description: Something is broken or incorrect
12+
labels: ["bug"]
13+
filename: bug_report.yml
14+
- name: Feature request
15+
description: Propose an improvement
16+
labels: ["enhancement"]
17+
filename: feature_request.yml
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Feature request
2+
description: Propose an improvement
3+
labels: ["enhancement"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Describe the problem and the change you want. Link related issues or specs if any.
9+
- type: textarea
10+
id: problem
11+
attributes:
12+
label: Problem / use case
13+
description: What pain point does this solve?
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: proposal
18+
attributes:
19+
label: Proposed solution
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: alternatives
24+
attributes:
25+
label: Alternatives considered
26+
- type: checkboxes
27+
id: scope
28+
attributes:
29+
label: Contribution
30+
options:
31+
- label: I am willing to open a PR for this
32+
required: false

.github/pull_request_template.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Summary
2+
3+
<!-- What changed and why (1–3 sentences). -->
4+
5+
## Type
6+
7+
- [ ] Bug fix
8+
- [ ] Feature
9+
- [ ] Refactor / chore
10+
- [ ] Docs
11+
- [ ] Security
12+
13+
## Checklist
14+
15+
- [ ] Tests added or updated (or N/A — explain why)
16+
- [ ] CI passes locally or on fork
17+
- [ ] No secrets, API keys, or `.env` values committed
18+
- [ ] Docs updated if behavior or env vars changed
19+
- [ ] Breaking changes called out below (if any)
20+
21+
## Breaking changes
22+
23+
<!-- None, or describe migration steps. -->
24+
25+
## Test plan
26+
27+
<!-- How a reviewer can verify this PR. -->

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ci
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.11"
16+
17+
- name: Backend tests + coverage badge
18+
env:
19+
PLATON_TESTING: "1"
20+
AICOM_CI_ENFORCE_BADGE_SYNC: "1"
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -e "backend[dev]"
24+
bash scripts/ci_coverage_badge.sh -- backend/tests -q --cov=backend
25+
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: "20"
29+
cache: npm
30+
cache-dependency-path: frontend/package-lock.json
31+
32+
- name: Frontend build
33+
working-directory: frontend
34+
run: npm ci && npm run build

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Python
2+
.venv/
3+
**/__pycache__/
4+
**/.pytest_cache/
5+
*.pyc
6+
*.egg-info/
7+
.coverage
8+
coverage.json
9+
**/coverage.json
10+
11+
# Node
12+
**/node_modules/
13+
**/frontend/dist/
14+
15+
# Secrets & runtime data
16+
data/
17+
**/data/
18+
**/*_signing_key
19+
.env
20+
.env.*
21+
!.env.example
22+
23+
# OS / IDE
24+
.DS_Store
25+
*.log

CODE_OF_CONDUCT.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Code of Conduct
2+
3+
We are committed to a respectful, inclusive, and harassment-free community.
4+
5+
## Our standards
6+
7+
- Be constructive and professional.
8+
- Assume good intent and ask clarifying questions.
9+
- Focus critique on code and decisions, not people.
10+
- Welcome contributors with different levels of experience.
11+
12+
## Unacceptable behavior
13+
14+
- Harassment, insults, discrimination, intimidation, or hate speech.
15+
- Publishing private information without consent.
16+
- Personal attacks, trolling, or repeated disruption of technical discussions.
17+
18+
## Enforcement responsibilities
19+
20+
Project maintainers are responsible for clarifying and enforcing this policy and may:
21+
22+
- edit or remove harmful content
23+
- issue warnings
24+
- temporarily restrict participation
25+
- ban repeat or severe offenders
26+
27+
## Reporting
28+
29+
Report CoC incidents privately to maintainers at **security@aicom.io**. Include links, screenshots, and context where possible.
30+
31+
## Attribution
32+
33+
This Code of Conduct is adapted from the Contributor Covenant, version 2.1:
34+
https://www.contributor-covenant.org/version/2/1/code_of_conduct/

0 commit comments

Comments
 (0)