Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bfbf6cf55f | ||
|
|
f3caebfd8a | ||
|
|
1eeb288143 | ||
|
|
4272dd8e60 |
No files matched your search
@@ -27,7 +27,7 @@ jobs:
|
|||||||
build-and-publish:
|
build-and-publish:
|
||||||
name: 🚀 Build & Publish Multi-Platform Binaries
|
name: 🚀 Build & Publish Multi-Platform Binaries
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 60
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
env:
|
env:
|
||||||
@@ -183,9 +183,9 @@ jobs:
|
|||||||
local file="$1" filename expected_hash attempt info existing remote_hash asset_id response delete_failed
|
local file="$1" filename expected_hash attempt info existing remote_hash asset_id response delete_failed
|
||||||
filename=$(basename "$file")
|
filename=$(basename "$file")
|
||||||
expected_hash=$(sha256sum "$file" | awk '{ print $1 }')
|
expected_hash=$(sha256sum "$file" | awk '{ print $1 }')
|
||||||
for attempt in 1 2 3; do
|
for attempt in 1 2 3 4 5; do
|
||||||
if [ "$attempt" -gt 1 ]; then sleep "${GITEA_RETRY_DELAY:-3}"; fi
|
if [ "$attempt" -gt 1 ]; then sleep "${GITEA_RETRY_DELAY:-3}"; fi
|
||||||
echo " [start] Uploading ${filename} to Gitea (attempt ${attempt}/3)..."
|
echo " [start] Uploading ${filename} to Gitea (attempt ${attempt}/5)..."
|
||||||
if ! info=$(curl -fsS --connect-timeout 15 --max-time 60 -H "Authorization: token ${GITEA_TOKEN}" "${GITEA_HOST}/api/v1/repos/${GITEA_REPO}/releases/${RELEASE_ID}"); then
|
if ! info=$(curl -fsS --connect-timeout 15 --max-time 60 -H "Authorization: token ${GITEA_TOKEN}" "${GITEA_HOST}/api/v1/repos/${GITEA_REPO}/releases/${RELEASE_ID}"); then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
@@ -212,24 +212,16 @@ jobs:
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "::error::Failed to upload ${filename} after 3 attempts."
|
echo "::error::Failed to upload ${filename} after 5 attempts."
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Bound outbound traffic: large raw binaries must not compete with all archives.
|
# 串行上传:Gitea 维护期并发推大文件容易把重试窗口耗光,宁可慢也不要丢资产。
|
||||||
pids=()
|
# 配合 job 超时 60 分钟与单资产 5 次重试,给服务端抖动留出余量。
|
||||||
failed=0
|
failed=0
|
||||||
for file in dist/bin/hose-use-* dist/bin/checksums.txt; do
|
for file in dist/bin/hose-use-* dist/bin/checksums.txt; do
|
||||||
upload_asset "$file" &
|
upload_asset "$file" || failed=1
|
||||||
pids+=($!)
|
|
||||||
if [ "${#pids[@]}" -eq 2 ]; then
|
|
||||||
for pid in "${pids[@]}"; do wait "$pid" || failed=1; done
|
|
||||||
pids=()
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
if [ "${#pids[@]}" -gt 0 ]; then
|
|
||||||
for pid in "${pids[@]}"; do wait "$pid" || failed=1; done
|
|
||||||
fi
|
|
||||||
if [ "$failed" -ne 0 ]; then
|
if [ "$failed" -ne 0 ]; then
|
||||||
echo "::error::One or more Gitea assets failed to upload."
|
echo "::error::One or more Gitea assets failed to upload."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hose-use",
|
"name": "hose-use",
|
||||||
"version": "0.9.4",
|
"version": "0.9.5",
|
||||||
"description": "合思/易快报 (ekuaibao) 企业级 SaaS CLI 与底层 SDK:多账号登录、企业租户切换、单据明细检索、工作流管理、内置 HTTP 服务与常驻守护进程。",
|
"description": "合思/易快报 (ekuaibao) 企业级 SaaS CLI 与底层 SDK:多账号登录、企业租户切换、单据明细检索、工作流管理、内置 HTTP 服务与常驻守护进程。",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "yingqing"
|
"name": "yingqing"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# hose-use (v0.9.4)
|
# hose-use (v0.9.5)
|
||||||
|
|
||||||
合思/易快报(ekuaibao)企业级 CLI 命令行工具与底层 SDK。
|
合思/易快报(ekuaibao)企业级 CLI 命令行工具与底层 SDK。
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hose-use",
|
"name": "hose-use",
|
||||||
"version": "0.9.4",
|
"version": "0.9.5",
|
||||||
"module": "src/server.ts",
|
"module": "src/server.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ for arg in "$@"; do
|
|||||||
done
|
done
|
||||||
exit 22
|
exit 22
|
||||||
`, { mode: 0o755 });
|
`, { mode: 0o755 });
|
||||||
const result = spawnSync("bash", ["-eo", "pipefail", "-c", step.run], { cwd: f.root, env: { ...process.env, PATH: `${join(f.root, "tools")}:${process.env.PATH}`, GITEA_TOKEN: "fixture", GITEA_RETRY_DELAY: "0", GITEA_HOST: "https://example.test", GITEA_REPO: "test/repo", RELEASE_TAG: "v1.0.0" }, encoding: "utf8", timeout: 30_000 });
|
const result = spawnSync("bash", ["-eo", "pipefail", "-c", step.run], { cwd: f.root, env: { ...process.env, PATH: `${join(f.root, "tools")}:${process.env.PATH}`, GITEA_TOKEN: "fixture", GITEA_RETRY_DELAY: "0", GITEA_HOST: "https://example.test", GITEA_REPO: "test/repo", RELEASE_TAG: "v1.0.0" }, encoding: "utf8", timeout: 40_000 });
|
||||||
expect(result.status).toBe(1);
|
expect(result.status).toBe(1);
|
||||||
expect(result.stdout).toContain("assets failed to upload");
|
expect(result.stdout).toContain("assets failed to upload");
|
||||||
expect(result.stdout).not.toContain("Successfully published");
|
expect(result.stdout).not.toContain("Successfully published");
|
||||||
@@ -173,7 +173,7 @@ exit 22
|
|||||||
const result = f.run();
|
const result = f.run();
|
||||||
expect(result.status).toBe(0);
|
expect(result.status).toBe(0);
|
||||||
for (const name of f.files) expect(readFileSync(join(f.root, `count-${name}`), "utf8")).toBe("2");
|
for (const name of f.files) expect(readFileSync(join(f.root, `count-${name}`), "utf8")).toBe("2");
|
||||||
expect(result.stdout).toContain("attempt 2/3");
|
expect(result.stdout).toContain("attempt 2/5");
|
||||||
}, 60_000);
|
}, 60_000);
|
||||||
|
|
||||||
test("correct mirror assets are verified and retained without uploading replacements", () => {
|
test("correct mirror assets are verified and retained without uploading replacements", () => {
|
||||||
@@ -189,7 +189,7 @@ exit 22
|
|||||||
expect(readFileSync(join(f.root, "gh.log"), "utf8")).toContain("release download v1.0.0");
|
expect(readFileSync(join(f.root, "gh.log"), "utf8")).toContain("release download v1.0.0");
|
||||||
}, 60_000);
|
}, 60_000);
|
||||||
|
|
||||||
test("asset transfers never exceed two concurrent workers", () => {
|
test("asset transfers are serialized to a single worker", () => {
|
||||||
const f = mirrorFixture("concurrency");
|
const f = mirrorFixture("concurrency");
|
||||||
expect(f.run().status).toBe(0);
|
expect(f.run().status).toBe(0);
|
||||||
let active = 0, peak = 0;
|
let active = 0, peak = 0;
|
||||||
@@ -198,6 +198,6 @@ exit 22
|
|||||||
peak = Math.max(peak, active);
|
peak = Math.max(peak, active);
|
||||||
}
|
}
|
||||||
expect(active).toBe(0);
|
expect(active).toBe(0);
|
||||||
expect(peak).toBeLessThanOrEqual(2);
|
expect(peak).toBe(1);
|
||||||
}, 60_000);
|
}, 60_000);
|
||||||
});
|
});
|
||||||
@@ -2,11 +2,11 @@
|
|||||||
name: hose-aipro
|
name: hose-aipro
|
||||||
description: "合思 AI PRO(EASO AI PRO)确定性审批仲裁网关 CLI 与技能套件:单据挂载绑定、事实证据核验与打标 (PASS/FAIL/SKIP)、审核要点/规则场景库检索、确定性审批仲裁(同意/驳回/转人工硬阻断)、审计轨迹日志查询与常驻服务管理。用于一切合思 AI PRO 确定性审批仲裁与要点核验请求。"
|
description: "合思 AI PRO(EASO AI PRO)确定性审批仲裁网关 CLI 与技能套件:单据挂载绑定、事实证据核验与打标 (PASS/FAIL/SKIP)、审核要点/规则场景库检索、确定性审批仲裁(同意/驳回/转人工硬阻断)、审计轨迹日志查询与常驻服务管理。用于一切合思 AI PRO 确定性审批仲裁与要点核验请求。"
|
||||||
metadata:
|
metadata:
|
||||||
version: 0.9.4
|
version: 0.9.5
|
||||||
short-description: 合思 AI PRO 确定性审批仲裁网关与审核要点核验 skill
|
short-description: 合思 AI PRO 确定性审批仲裁网关与审核要点核验 skill
|
||||||
---
|
---
|
||||||
|
|
||||||
# hose-aipro (v0.9.4)
|
# hose-aipro (v0.9.5)
|
||||||
|
|
||||||
合思 AI PRO 确定性审批仲裁网关是专门面向企业财务核算、单据审核与自动化合规风控的确定性仲裁命令行与 SDK。
|
合思 AI PRO 确定性审批仲裁网关是专门面向企业财务核算、单据审核与自动化合规风控的确定性仲裁命令行与 SDK。
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
name: hose-use
|
name: hose-use
|
||||||
description: "合思/易快报(Ekuaibao)企业级 SaaS 一站式能力:hose-use CLI/SDK 多账号登录、租户切换、单据检索与审批动作、自建应用与工作流扫描、密钥与应用中心、常驻守护进程与 HTTP 文档/OpenAPI,以及工作流 MVEL 代码节点脚本生成调试、节点批量开通。用于一切合思/易快报相关请求。"
|
description: "合思/易快报(Ekuaibao)企业级 SaaS 一站式能力:hose-use CLI/SDK 多账号登录、租户切换、单据检索与审批动作、自建应用与工作流扫描、密钥与应用中心、常驻守护进程与 HTTP 文档/OpenAPI,以及工作流 MVEL 代码节点脚本生成调试、节点批量开通。用于一切合思/易快报相关请求。"
|
||||||
metadata:
|
metadata:
|
||||||
version: 0.9.4
|
version: 0.9.5
|
||||||
short-description: 合思/易快报 企业级 CLI 与工作流 skill 套件(含 MVEL 代码节点)
|
short-description: 合思/易快报 企业级 CLI 与工作流 skill 套件(含 MVEL 代码节点)
|
||||||
---
|
---
|
||||||
|
|
||||||
# hose-use (v0.9.4)
|
# hose-use (v0.9.5)
|
||||||
|
|
||||||
在具备 MCP 的 AI 智能体环境中,**优先使用 `hose_cli` 单工具网关**,传入 `command: string` 执行;在终端或自动化脚本中,直接调用全局 `hose` 或 `hose-use` 命令行。
|
在具备 MCP 的 AI 智能体环境中,**优先使用 `hose_cli` 单工具网关**,传入 `command: string` 执行;在终端或自动化脚本中,直接调用全局 `hose` 或 `hose-use` 命令行。
|
||||||
本 Skill 是智能体的路由分发层:保持主文档简明,遇到复杂业务时深入查阅对应的专属参考文档(`references/*.md`)。
|
本 Skill 是智能体的路由分发层:保持主文档简明,遇到复杂业务时深入查阅对应的专属参考文档(`references/*.md`)。
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
openapi: 3.1.0
|
openapi: 3.1.0
|
||||||
info:
|
info:
|
||||||
title: hose-use API & MCP Tools Specification
|
title: hose-use API & MCP Tools Specification
|
||||||
version: 0.9.4
|
version: 0.9.5
|
||||||
description: >-
|
description: >-
|
||||||
Unified Enterprise SaaS API, CLI, and MCP Specification for Ekuaibao (合思/易快报), EASO, and Piper Workflows.
|
Unified Enterprise SaaS API, CLI, and MCP Specification for Ekuaibao (合思/易快报), EASO, and Piper Workflows.
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"openapi": "3.1.0",
|
"openapi": "3.1.0",
|
||||||
"info": {
|
"info": {
|
||||||
"title": "hose-use API & MCP Tools Specification",
|
"title": "hose-use API & MCP Tools Specification",
|
||||||
"version": "0.9.4",
|
"version": "0.9.5",
|
||||||
"description": "Unified Enterprise SaaS API, CLI, and MCP Specification for Ekuaibao (合思/易快报), EASO, and Piper Workflows."
|
"description": "Unified Enterprise SaaS API, CLI, and MCP Specification for Ekuaibao (合思/易快报), EASO, and Piper Workflows."
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
|
|||||||
Reference in new issue
Block a user