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
@@ -5,11 +5,11 @@ storage:
|
||||
web:
|
||||
http: 0.0.0.0:5556
|
||||
staticClients:
|
||||
- id: weknora
|
||||
- id: academy
|
||||
redirectURIs:
|
||||
- 'http://127.0.0.1:5173/api/v1/auth/oidc/callback'
|
||||
- 'http://127.0.0.1/api/v1/auth/oidc/callback'
|
||||
name: 'WeKnora'
|
||||
name: 'Academy'
|
||||
# add a "secret" field here
|
||||
enablePasswordDB: true
|
||||
oauth2:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# WeKnora intro video
|
||||
# Academy intro video
|
||||
|
||||
The source for the product intro video (about 1:52, 1920×1080 at 30 fps, English on-screen text, no audio). The whole video is one HTML page, `index.html`, which draws any moment from its timestamp. `render.mjs` steps through the timeline with headless Chromium and pipes the frames into ffmpeg.
|
||||
|
||||
@@ -10,7 +10,7 @@ Requires Node 18+, ffmpeg and a Chromium build for Playwright.
|
||||
cd misc/intro-video
|
||||
npm install
|
||||
npx playwright-core install chromium # skip if CHROME_PATH points at a Chromium build
|
||||
npm run render # writes weknora-intro.mp4, takes a few minutes
|
||||
npm run render # writes academy-intro.mp4, takes a few minutes
|
||||
```
|
||||
|
||||
To check a few moments without rendering the whole video:
|
||||
@@ -24,7 +24,7 @@ To preview in a browser, open `index.html?t=22` for one frame, or `index.html?pl
|
||||
For a README upload under GitHub's 10 MB attachment limit, re-encode:
|
||||
|
||||
```bash
|
||||
ffmpeg -i weknora-intro.mp4 -c:v libx264 -preset slow -crf 24 -pix_fmt yuv420p -movflags +faststart weknora-intro-lite.mp4
|
||||
ffmpeg -i academy-intro.mp4 -c:v libx264 -preset slow -crf 24 -pix_fmt yuv420p -movflags +faststart academy-intro-lite.mp4
|
||||
```
|
||||
|
||||
## Structure
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>WeKnora Intro</title>
|
||||
<title>Academy Intro</title>
|
||||
<style>
|
||||
:root{
|
||||
--ink:#101f38; --ink-deep:#0a1526; --soft:#40536f; --mute:#6d7d94;
|
||||
@@ -355,7 +355,7 @@ svg.i{width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:
|
||||
|
||||
<!-- 7. Browser -->
|
||||
<section id="s-browser" class="prod">
|
||||
<div class="hdr"><div class="eyebrow">04 — LOCAL BROWSER</div><div class="h1">It can drive your own browser, too.</div><div class="sub">BrowserSkill connects WeKnora to the Chrome you already use. It opens pages, reads, clicks and fills forms, and you can pause or stop it anytime.</div></div>
|
||||
<div class="hdr"><div class="eyebrow">04 — LOCAL BROWSER</div><div class="h1">It can drive your own browser, too.</div><div class="sub">BrowserSkill connects Academy to the Chrome you already use. It opens pages, reads, clicks and fills forms, and you can pause or stop it anytime.</div></div>
|
||||
<div class="vp" id="brVp"></div>
|
||||
</section>
|
||||
|
||||
@@ -458,7 +458,7 @@ function sidebar(active,hist,activeHist){
|
||||
return `<div class="side"><div class="lg"><img src="assets/logo-light.png"><span>${I('search')}${I('panel')}</span></div>
|
||||
${navs.map(([k,l])=>`<div class="nav ${l===active?'on':''}">${I(k)}${l}</div>`).join('')}
|
||||
<div class="sec">Today</div>${hist.map((h,i)=>`<div class="hist ${i===activeHist?'on':''}">${h}</div>`).join('')}
|
||||
<div class="me"><b>D</b><div>demo<small>demo@weknora.local</small></div></div></div>`;
|
||||
<div class="me"><b>D</b><div>demo<small>demo@academy.local</small></div></div></div>`;
|
||||
}
|
||||
function wbar(url){return `<div class="wbar"><i></i><i></i><i></i><div class="url">${I('lock')}${url}</div></div>`}
|
||||
function inbox(id,model='deepseek-v3.2'){return `<div class="inbox"><div class="ph" id="${id}">Ask a question or describe a task…</div><div class="bar"><span class="pill">Smart Reasoning ${I('chevd')}</span>${I('clip')}${I('at')}<span class="send"><span class="pill">${model} ${I('chevd')}</span><i id="${id}S">${I('send')}</i></span></div></div>`}
|
||||
@@ -564,10 +564,10 @@ $('brVp').innerHTML=`
|
||||
<div class="ctabs"><span class="dots"><i></i><i></i><i></i></span><div class="ctab" id="ctab"><span id="ctabT">Releases · Tencent/WeKnora</span></div></div>
|
||||
<div class="ctool"><span style="color:#888">← → ↻</span><div class="omni">${I('lock')}<span id="omni">github.com/Tencent/WeKnora/releases</span></div></div>
|
||||
<div class="infobar" id="infobar">“BrowserSkill” started debugging this browser <span>Cancel</span></div>
|
||||
<div class="cpage" id="pgRepo"><div class="repo"><div class="rh">Tencent / <b>WeKnora</b></div>
|
||||
<div class="cpage" id="pgRepo"><div class="repo"><div class="rh">Tencent / <b>Academy</b></div>
|
||||
<div class="rt"><span>Code</span><span>Issues</span><span>Pull requests</span><span class="on">Releases</span><span>Discussions</span></div>
|
||||
<div class="rel"><div class="v">v0.8.2 <em>Latest</em></div><p>Released by the WeKnora maintainers</p>
|
||||
<ul><li>Unified rerank across search APIs, with diagnostics</li><li>MinerU 4.0 V1 API for self-hosted MinerU</li><li>Local browser pairing for WeKnora Lite</li><li>RSS: reject oversized responses</li></ul></div></div></div>
|
||||
<div class="rel"><div class="v">v0.8.2 <em>Latest</em></div><p>Released by the Academy maintainers</p>
|
||||
<ul><li>Unified rerank across search APIs, with diagnostics</li><li>MinerU 4.0 V1 API for self-hosted MinerU</li><li>Local browser pairing for Academy Lite</li><li>RSS: reject oversized responses</li></ul></div></div></div>
|
||||
<div class="cpage" id="pgForm"><div class="hb">
|
||||
<label>Customer name: <span class="f" id="f0"></span></label>
|
||||
<label>Telephone: <span class="f" id="f1"></span></label>
|
||||
@@ -583,7 +583,7 @@ $('brVp').innerHTML=`
|
||||
</div>
|
||||
<div class="wkmini" id="wkmini"><div class="hd"><img src="assets/logo-light.png"><span>● Local browser</span></div>
|
||||
<div class="body">
|
||||
<div class="umsg" id="brU"><div>Find the latest WeKnora release on GitHub, then fill in the httpbin order form with it. Don’t submit.</div></div>
|
||||
<div class="umsg" id="brU"><div>Find the latest Academy release on GitHub, then fill in the httpbin order form with it. Don’t submit.</div></div>
|
||||
<div class="sum" id="brSum"></div>
|
||||
<div class="steps" id="brSteps"></div>
|
||||
</div>
|
||||
@@ -788,7 +788,7 @@ function render(t){
|
||||
setHTML($('ctabT'),onForm?'httpbin.org/forms/post':'Releases · Tencent/WeKnora');
|
||||
setHTML($('prevHost'),onForm?'httpbin.org':'github.com');
|
||||
// form fill schedule
|
||||
const F=[['f0','WeKnora Demo',5.0],['f1','13800000000',5.8],['f2','demo@weknora.local',6.5],['r1',null,7.4],['c0',null,7.9],['c1',null,8.3],['f3','18:30',8.8],['f4','Include WeKnora v0.8.2',9.4]];
|
||||
const F=[['f0','Academy Demo',5.0],['f1','13800000000',5.8],['f2','demo@academy.local',6.5],['r1',null,7.4],['c0',null,7.9],['c1',null,8.3],['f3','18:30',8.8],['f4','Include Academy v0.8.2',9.4]];
|
||||
// positions of targets in chrome coords
|
||||
const POS={f0:[300,176],f1:[270,220],f2:[320,264],r1:[190,334],c0:[92,400],c1:[190,400],f3:[330,448],f4:[160,500]};
|
||||
F.forEach(([id,val,a],k)=>{const el=$(id);if(val!==null){const nxt=k+1<F.length?F[k+1][2]:99;el.textContent=typed(val,L,a+.2,26);el.classList.toggle('act',L>=a&&L<nxt)}else el.classList.toggle('on',L>=a+.15)});
|
||||
@@ -846,7 +846,7 @@ function render(t){
|
||||
const A=$('outA');const ao=1-lin(lt,6.4,7.0);A.style.opacity=ao;
|
||||
const hd=A.querySelector('.hd').children;show(hd[0],P(lt,.3,.6),10);show(hd[1],P(lt,.45,.7),16);show(hd[2],P(lt,.7,.7),12);
|
||||
const tw=A.querySelector('.termw');const tp=P(lt,.9,.8);tw.style.opacity=tp;tw.style.transform=`translateY(${(1-tp)*40}px)`;
|
||||
const L1='git clone https://github.com/Tencent/WeKnora.git',L2='cd WeKnora && cp .env.example .env',L3='docker compose up -d';
|
||||
const L1='git clone https://github.com/Tencent/WeKnora.git',L2='cd Academy && cp .env.example .env',L3='docker compose up -d';
|
||||
const a1=1.5,a2=a1+L1.length/40+.3,a3=a2+L2.length/40+.3,a4=a3+L3.length/40+.4;
|
||||
let o=`<span class="p">$</span> ${typed(L1,lt,a1,40)}`;
|
||||
if(lt>a2-.1)o+=`\n<span class="p">$</span> ${typed(L2,lt,a2,40)}`;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "weknora-intro-video",
|
||||
"name": "academy-intro-video",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"description": "Source for the WeKnora intro video: an HTML animation rendered frame by frame to MP4.",
|
||||
"description": "Source for the Academy intro video: an HTML animation rendered frame by frame to MP4.",
|
||||
"scripts": {
|
||||
"render": "node render.mjs video",
|
||||
"stills": "node render.mjs stills"
|
||||
|
||||
@@ -30,7 +30,7 @@ if (mode === 'stills') {
|
||||
await page.screenshot({ path: join(here, 'stills', `t${t.toFixed(2).padStart(7, '0')}.png`) });
|
||||
}
|
||||
} else if (mode === 'video') {
|
||||
const out = rest[0] || join(here, 'weknora-intro.mp4');
|
||||
const out = rest[0] || join(here, 'academy-intro.mp4');
|
||||
const dur = await page.evaluate(() => window.DUR);
|
||||
const ff = spawn('ffmpeg', ['-y', '-f', 'image2pipe', '-framerate', String(FPS), '-i', '-',
|
||||
'-c:v', 'libx264', '-preset', 'slow', '-crf', '17', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', out],
|
||||
|
||||
Reference in new issue
Block a user