Skip to content

Commit f9d042b

Browse files
author
root
committed
remove appos-agent
1 parent ec5c6a9 commit f9d042b

259 files changed

Lines changed: 4054 additions & 5328 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.

.github/workflows/release.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -57,31 +57,6 @@ jobs:
5757
- name: Build release notes
5858
run: node .github/scripts/build-release-notes.mjs "${GITHUB_REF_NAME}"
5959

60-
- name: Build appos-agent artifact
61-
run: |
62-
set -euo pipefail
63-
mkdir -p artifacts/agent
64-
cd backend
65-
for arch in amd64 arm64; do
66-
output="../artifacts/agent/appos-agent-linux-${arch}"
67-
CGO_ENABLED=0 GOOS=linux GOARCH="${arch}" \
68-
go build -ldflags="-w -s -X main.version=${{ steps.convert_version.outputs.VERSION }}" \
69-
-o "${output}" ./cmd/appos-agent
70-
chmod +x "${output}"
71-
done
72-
cp ../artifacts/agent/appos-agent-linux-amd64 ../artifacts/agent/appos-agent
73-
chmod +x ../artifacts/agent/appos-agent
74-
75-
- name: Generate appos-agent installer
76-
run: |
77-
set -euo pipefail
78-
installer_base_url="https://artifact.websoft9.com/${{ steps.convert_version.outputs.CHANNEL }}/appos/agent"
79-
sed \
80-
-e "s|__APPOS_AGENT_BINARY_URL_AMD64__|${installer_base_url}/appos-agent-linux-amd64|g" \
81-
-e "s|__APPOS_AGENT_BINARY_URL_ARM64__|${installer_base_url}/appos-agent-linux-arm64|g" \
82-
backend/domain/software/scripts/appos-agent-install.sh > artifacts/agent/appos-agent-install.sh
83-
chmod +x artifacts/agent/appos-agent-install.sh
84-
8560
- name: Upload release review artifacts
8661
uses: actions/upload-artifact@v5
8762
with:
@@ -90,9 +65,6 @@ jobs:
9065
CHANGELOG.md
9166
release-notes.md
9267
docs/version-compatibility-matrix.md
93-
artifacts/agent/appos-agent-linux-amd64
94-
artifacts/agent/appos-agent-linux-arm64
95-
artifacts/agent/appos-agent-install.sh
9668
if-no-files-found: error
9769

9870
- name: Upload release assets
@@ -103,7 +75,4 @@ jobs:
10375
body_path: release-notes.md
10476
files: |
10577
CHANGELOG.md
106-
docs/version-compatibility-matrix.md
107-
artifacts/agent/appos-agent-linux-amd64
108-
artifacts/agent/appos-agent-linux-arm64
109-
artifacts/agent/appos-agent-install.sh
78+
docs/version-compatibility-matrix.md

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Build artifacts
22
backend/appos
3-
dashboard/dist/
43

5-
# Dependencies
4+
# Web
65
node_modules/
7-
dashboard/node_modules/
6+
web/dist/
7+
web/node_modules/
88

99
# Environment
1010
build/.env
@@ -19,3 +19,4 @@ sbom.spdx.json
1919

2020
# other
2121
session
22+

Makefile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ help:
3939
@echo " make install Install dev dependencies (Go tools, build-essential, npm packages)"
4040
@echo " make tidy Tidy Go modules"
4141
@echo " make build Build all (backend + web)"
42-
@echo " make build backend Build Go binaries → backend/appos + backend/appos-agent"
42+
@echo " make build backend Build Go binary → backend/appos"
4343
@echo " make build web Build React app → web/dist"
4444
@echo " make run Copy artifacts + restart services (~10s)"
4545
@echo " make run 9092 Copy artifacts + restart on custom port"
@@ -200,8 +200,7 @@ ifeq ($(ARG2),backend)
200200
@echo "Building backend binaries (static, no dependencies)..."
201201
@$(MAKE) openapi-sync
202202
@cd backend && CGO_ENABLED=0 go build -ldflags="-w -s" -o appos ./cmd/appos
203-
@cd backend && CGO_ENABLED=0 go build -ldflags="-w -s" -o appos-agent ./cmd/appos-agent
204-
@echo "✓ Backend built → backend/appos + backend/appos-agent (statically linked)"
203+
@echo "✓ Backend built → backend/appos (statically linked)"
205204
else ifeq ($(ARG2),web)
206205
@echo "Building web app..."
207206
@cd web && npm run build
@@ -212,8 +211,7 @@ else
212211
@echo "Building all..."
213212
@$(MAKE) openapi-sync
214213
@cd backend && CGO_ENABLED=0 go build -ldflags="-w -s" -o appos ./cmd/appos
215-
@cd backend && CGO_ENABLED=0 go build -ldflags="-w -s" -o appos-agent ./cmd/appos-agent
216-
@echo "✓ Backend built → backend/appos + backend/appos-agent"
214+
@echo "✓ Backend built → backend/appos"
217215
@cd web && npm run build
218216
@echo "✓ Web app built → web/dist/"
219217
@echo "✓ All built"
@@ -235,7 +233,6 @@ redo:
235233
run:
236234
@echo "Hot reload: copying pre-built artifacts..."
237235
@docker cp backend/appos $(CONTAINER):/usr/local/bin/appos
238-
@docker cp backend/appos-agent $(CONTAINER):/usr/local/bin/appos-agent
239236
@docker cp web/dist/. $(CONTAINER):/usr/share/nginx/html/web/
240237
@docker cp build/nginx.conf $(CONTAINER):/etc/nginx/nginx.conf
241238
@docker exec $(CONTAINER) nginx -t
@@ -878,7 +875,6 @@ else ifeq ($(ARG2),build-local)
878875
@echo "Building dev image (pre-built artifacts)..."
879876
@# Verify artifacts exist
880877
@test -f backend/appos || { echo "Error: backend/appos not found. Run 'make build backend' first."; exit 1; }
881-
@test -f backend/appos-agent || { echo "Error: backend/appos-agent not found. Run 'make build backend' first."; exit 1; }
882878
@test -d web/dist || { echo "Error: web/dist/ not found. Run 'make build web' first."; exit 1; }
883879
@# Pass host proxy into build (replace 127.0.0.1 with host-gateway for container access)
884880
$(eval HOST_PROXY := $(shell \

Note.md

Lines changed: 4 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77

88
### 服务器
99

10-
- detail page
1110
- 服务器特殊环境配置:Docker 仓库地址、Docker 加速地址、代理地址
1211
- 环境预装机制:在线一键脚本或由 AppOS 推送到服务器后执行
13-
- Create Server 是,需要针对两种类型做一定的体验改善
14-
1512

1613
## 隧道
1714

@@ -110,92 +107,6 @@ Settings(配置层)
110107
2. Install from store 和 Custom Deployment 区块没有考虑 dark 模式
111108
3.
112109

113-
backend/
114-
├── cmd/
115-
│ └── appos/main.go
116-
117-
├── domain/
118-
│ ├── lifecycle/ # Domain: Application Lifecycle
119-
│ │ ├── appinstance/ # Subdomain: App Instance Management
120-
│ │ │ ├── model.go
121-
│ │ │ ├── service.go
122-
│ │ │ └── api.go
123-
│ │ ├── operation/ # Subdomain: Operation Management
124-
│ │ │ ├── model.go
125-
│ │ │ ├── service.go
126-
│ │ │ └── api.go
127-
│ │ ├── release/ # Subdomain: Release Management
128-
│ │ ├── exposure/ # Subdomain: Exposure Management
129-
│ │ └── recovery/ # Subdomain: Recovery Management
130-
│ │
131-
│ ├── execution/ # Domain: Lifecycle Execution
132-
│ │ ├── pipeline/ # Subdomain: Pipeline Execution
133-
│ │ ├── worker/ # Subdomain: Worker Scheduling
134-
│ │ ├── projection/ # Subdomain: Projection Update
135-
│ │ └── compensation/ # Subdomain: Compensation Control
136-
│ │
137-
│ ├── resourceops/ # Domain: Resource Operations Platform
138-
│ │ ├── remoteaccess/ # Subdomain: Remote Access (tunnel)
139-
│ │ ├── terminal/ # Subdomain: Terminal Operations
140-
│ │ ├── fileops/ # Subdomain: File Operations
141-
│ │ ├── serviceops/ # Subdomain: Service Operations
142-
│ │ └── containerops/ # Subdomain: Container Operations
143-
│ │
144-
│ ├── observability/ # Domain: Observability
145-
│ │ ├── telemetry/ # Subdomain: Telemetry
146-
│ │ ├── health/ # Subdomain: Health & Diagnostics
147-
│ │ └── platformstatus/ # Subdomain: Platform Self-Observation
148-
│ │
149-
│ ├── operations/ # Domain: Operations Management
150-
│ │ ├── inventory/ # Subdomain: Resource Inventory & Topology
151-
│ │ ├── topics/ # Subdomain: Operational Knowledge (Topics)
152-
│ │ ├── space/ # Subdomain: Operational Knowledge (Space)
153-
│ │ ├── incidents/ # Subdomain: Incident Response
154-
│ │ └── automation/ # Subdomain: Operations Automation
155-
│ │
156-
│ ├── catalog/ # Domain: App Catalog
157-
│ │ ├── apps/ # Subdomain: Catalog Apps
158-
│ │ ├── custom/ # Subdomain: Custom Apps
159-
│ │ ├── templates/ # Subdomain: Templates
160-
│ │ └── favorites/ # Subdomain: Favorites / Notes
161-
│ │
162-
│ ├── gateway/ # Domain: Gateway Management
163-
│ │ ├── domainbinding/ # Subdomain: Domain Binding
164-
│ │ ├── routing/ # Subdomain: Routing & Upstreams
165-
│ │ ├── certbinding/ # Subdomain: Certificate Binding
166-
│ │ └── policies/ # Subdomain: Gateway Policies
167-
│ │
168-
│ ├── secrets/ # Domain: Security and Secret Management
169-
│ │ ├── vault/ # Subdomain: Secrets
170-
│ │ └── policies/ # Subdomain: Secret Policies
171-
│ │
172-
│ ├── config/ # Domain: Platform Configuration
173-
│ │ └── settings/
174-
│ │
175-
│ ├── identity/ # Domain: Identity and Access
176-
│ │ └── access/
177-
│ │
178-
│ ├── audit/ # Domain: Audit and Policy
179-
│ │ └── logging/
180-
│ │
181-
│ └── integrations/ # Domain: Integrations & Connectors
182-
│ ├── sources/ # Subdomain: Source Integrations
183-
│ ├── registries/ # Subdomain: Artifact & Registry
184-
│ ├── notifications/ # Subdomain: Notification Integrations
185-
│ └── ai/ # Subdomain: AI Provider Integrations
186-
187-
├── infra/ # 跨领域技术基础设施
188-
│ ├── docker/
189-
│ ├── crypto/
190-
│ ├── fileutil/
191-
│ └── cronutil/
192-
193-
└── platform/ # 平台级关注点
194-
├── migrations/
195-
├── components/
196-
├── hooks/
197-
└── supervisor/
198-
199110

200111

201112
但它们不等于宇宙完备分类。将来还可能出现这些不太适合硬塞进去的类型:
@@ -255,4 +166,7 @@ Current version
255166
3. Status 列应该表示这个组件的真实运行态,installed 其实不属于这个态。
256167

257168

258-
server detail 的所有tab,当 Connection 都要验证ssh 连接是否存在,如何无法连接,直接显示无法连接,而不是默认的布局
169+
server detail 的所有tab,当 Connection 都要验证ssh 连接是否存在,如何无法连接,直接显示无法连接,而不是默认的布局
170+
171+
172+
ports tab 不稳定,经常打开显示 somethins wrong

artifacts/agent/appos-agent

-6.55 MB
Binary file not shown.

0 commit comments

Comments
 (0)