refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名) - 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块) - docreader proto 描述符采用等长替换,保持序列化字节布局有效 - Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像 - 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
@@ -31,11 +31,11 @@ CREATE INDEX IF NOT EXISTS idx_im_channel_session ON im_channel_sessions (sessio
|
||||
-- Partial index for soft deletes (only index deleted rows)
|
||||
CREATE INDEX IF NOT EXISTS idx_im_channel_deleted ON im_channel_sessions (deleted_at) WHERE deleted_at IS NOT NULL;
|
||||
|
||||
COMMENT ON TABLE im_channel_sessions IS 'Maps IM platform channels to WeKnora conversation sessions';
|
||||
COMMENT ON TABLE im_channel_sessions IS 'Maps IM platform channels to Academy conversation sessions';
|
||||
COMMENT ON COLUMN im_channel_sessions.platform IS 'IM platform identifier: wecom, feishu, etc.';
|
||||
COMMENT ON COLUMN im_channel_sessions.user_id IS 'Platform-specific user identifier';
|
||||
COMMENT ON COLUMN im_channel_sessions.chat_id IS 'Platform-specific chat/group identifier, empty for direct messages';
|
||||
COMMENT ON COLUMN im_channel_sessions.session_id IS 'Associated WeKnora session ID';
|
||||
COMMENT ON COLUMN im_channel_sessions.session_id IS 'Associated Academy session ID';
|
||||
COMMENT ON COLUMN im_channel_sessions.tenant_id IS 'Tenant that owns this channel mapping';
|
||||
COMMENT ON COLUMN im_channel_sessions.agent_id IS 'Custom agent ID used for this channel, empty for default';
|
||||
COMMENT ON COLUMN im_channel_sessions.status IS 'Channel status: active, paused, expired';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- Description: Add credentials column to tenants for third-party provider credentials (e.g. WeKnoraCloud AppID/AppSecret).
|
||||
-- Description: Add credentials column to tenants for third-party provider credentials (e.g. AcademyCloud AppID/AppSecret).
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000035] Adding credentials column to tenants'; END $$;
|
||||
|
||||
ALTER TABLE tenants ADD COLUMN IF NOT EXISTS credentials JSONB DEFAULT NULL;
|
||||
COMMENT ON COLUMN tenants.credentials IS 'Third-party provider credentials (e.g. WeKnoraCloud AppID/AppSecret); encrypted at application level';
|
||||
COMMENT ON COLUMN tenants.credentials IS 'Third-party provider credentials (e.g. AcademyCloud AppID/AppSecret); encrypted at application level';
|
||||
@@ -6,15 +6,15 @@
|
||||
-- Only intended for development rollbacks, never for production.
|
||||
--
|
||||
-- Operators who really need to run this in a non-dev environment must set
|
||||
-- the session-level GUC `weknora.allow_destructive_migration` to 'true'
|
||||
-- first (e.g. `SET weknora.allow_destructive_migration = 'true';`).
|
||||
-- the session-level GUC `academy.allow_destructive_migration` to 'true'
|
||||
-- first (e.g. `SET academy.allow_destructive_migration = 'true';`).
|
||||
-- Otherwise the migration aborts before touching any data.
|
||||
DO $$
|
||||
BEGIN
|
||||
IF coalesce(current_setting('weknora.allow_destructive_migration', true), 'false') <> 'true' THEN
|
||||
IF coalesce(current_setting('academy.allow_destructive_migration', true), 'false') <> 'true' THEN
|
||||
RAISE EXCEPTION
|
||||
'[Migration 000043 down] BLOCKED: refuse to drop tenant_members / creator_id / runnable_by_viewer. '
|
||||
'Set weknora.allow_destructive_migration = ''true'' in this session to override.';
|
||||
'Set academy.allow_destructive_migration = ''true'' in this session to override.';
|
||||
END IF;
|
||||
RAISE WARNING '[Migration 000043 down] Reverting tenant RBAC — role data will be lost';
|
||||
END $$;
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
-- for development rollbacks, never for production.
|
||||
--
|
||||
-- Operators who really need to run this in a non-dev environment must
|
||||
-- set the session-level GUC `weknora.allow_destructive_migration` to
|
||||
-- set the session-level GUC `academy.allow_destructive_migration` to
|
||||
-- 'true' first. Otherwise the migration aborts before touching any data.
|
||||
DO $$
|
||||
BEGIN
|
||||
IF coalesce(current_setting('weknora.allow_destructive_migration', true), 'false') <> 'true' THEN
|
||||
IF coalesce(current_setting('academy.allow_destructive_migration', true), 'false') <> 'true' THEN
|
||||
RAISE EXCEPTION
|
||||
'[Migration 000044 down] BLOCKED: refuse to drop audit_logs. '
|
||||
'Set weknora.allow_destructive_migration = ''true'' in this session to override.';
|
||||
'Set academy.allow_destructive_migration = ''true'' in this session to override.';
|
||||
END IF;
|
||||
RAISE WARNING '[Migration 000044 down] Dropping audit_logs — durable history will be lost';
|
||||
END $$;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
-- The old `organization_members` table is RENAMEd to
|
||||
-- `organization_members_pre_plan3` so a `down.sql` rollback can restore
|
||||
-- it. A future destructive migration (gated on
|
||||
-- `weknora.allow_destructive_migration`) will DROP it once the new model
|
||||
-- `academy.allow_destructive_migration`) will DROP it once the new model
|
||||
-- is settled.
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000045] Starting Plan 3: org members → org tenant members'; END $$;
|
||||
|
||||
@@ -58,6 +58,6 @@ COMMENT ON COLUMN embed_channels.allow_file_upload IS
|
||||
COMMENT ON COLUMN embed_channels.default_locale IS
|
||||
'Default visitor UI locale (zh-CN, en-US, ko-KR, ru-RU); empty follows browser';
|
||||
COMMENT ON COLUMN embed_channels.webhook_url IS 'HTTPS endpoint for outbound message_sent / message_received events';
|
||||
COMMENT ON COLUMN embed_channels.webhook_secret IS 'Optional HMAC-SHA256 secret for X-WeKnora-Signature header';
|
||||
COMMENT ON COLUMN embed_channels.webhook_secret IS 'Optional HMAC-SHA256 secret for X-Academy-Signature header';
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000060] embed_channels created'; END $$;
|
||||
@@ -23,7 +23,7 @@ CREATE TABLE IF NOT EXISTS tenant_skills (
|
||||
deleted_at TIMESTAMPTZ
|
||||
);
|
||||
|
||||
COMMENT ON COLUMN tenant_skills.name IS 'Also the directory name inside the image: /opt/weknora/tenant/skills/<name>';
|
||||
COMMENT ON COLUMN tenant_skills.name IS 'Also the directory name inside the image: /opt/academy/tenant/skills/<name>';
|
||||
COMMENT ON COLUMN tenant_skills.enabled IS 'Visibility to the agent only; files stay in the image until the skill is removed';
|
||||
|
||||
-- The unique index doubles as the "list skills of a config" index: its leftmost
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000120] Adding tenants.assistant_config...'; END $$;
|
||||
|
||||
-- Workspace setting of the WeKnora assistant: display name and the highest
|
||||
-- Workspace setting of the Academy assistant: display name and the highest
|
||||
-- access level a member may pick.
|
||||
ALTER TABLE tenants ADD COLUMN IF NOT EXISTS assistant_config JSONB;
|
||||
@@ -1,7 +1,7 @@
|
||||
ALTER TABLE sessions ADD COLUMN IF NOT EXISTS kind VARCHAR(32) NOT NULL DEFAULT '';
|
||||
|
||||
UPDATE sessions SET kind = 'assistant'
|
||||
WHERE agent_config->>'agent_id' = 'builtin-weknora-assistant';
|
||||
WHERE agent_config->>'agent_id' = 'builtin-academy-assistant';
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_sessions_tenant_kind_user_updated
|
||||
ON sessions (tenant_id, kind, user_id, updated_at DESC)
|
||||
|
||||
@@ -1 +1 @@
|
||||
ALTER TABLE automations ADD COLUMN agent_id VARCHAR(64) NOT NULL DEFAULT 'builtin-weknora-assistant';
|
||||
ALTER TABLE automations ADD COLUMN agent_id VARCHAR(64) NOT NULL DEFAULT 'builtin-academy-assistant';
|
||||
Reference in new issue
Block a user