Skip to content

Commit 500f1d9

Browse files
committed
Merge origin/main into Steward Inbox cursors
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
2 parents 1768883 + 2daa3a4 commit 500f1d9

769 files changed

Lines changed: 56207 additions & 11548 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/desktop-release-artifacts.yml‎

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ on:
88
- "apps/presentation/dashboard/**"
99
- "examples/desktop-icon-alpha-smoke.py"
1010
- "examples/desktop-release-workflow-smoke.py"
11+
- "scripts/desktop_macos_signing.py"
1112
- "scripts/desktop_release_artifacts.py"
13+
- "tests/desktop/test_desktop_signing_workflow.py"
1214
release:
1315
types: [published]
1416
workflow_dispatch:
@@ -75,6 +77,19 @@ jobs:
7577
fi
7678
echo "release-tag=${release_tag}" >> "${GITHUB_OUTPUT}"
7779
80+
- name: Resolve macOS signing mode
81+
id: macos-signing
82+
if: github.event_name != 'pull_request' && runner.os == 'macOS'
83+
env:
84+
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
85+
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
86+
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
87+
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
88+
APPLE_ID: ${{ secrets.APPLE_ID }}
89+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
90+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
91+
run: python3 scripts/desktop_macos_signing.py resolve-mode
92+
7893
- name: Set up Node
7994
uses: actions/setup-node@v6
8095
with:
@@ -125,20 +140,42 @@ jobs:
125140
working-directory: apps/desktop/loopx-control-plane
126141
run: npm run build -- --bundles ${{ matrix.bundles }} --no-sign
127142

128-
- name: Build integrity-signed macOS release bundles
143+
- name: Build macOS release bundles
129144
if: github.event_name != 'pull_request' && runner.os == 'macOS'
130145
working-directory: apps/desktop/loopx-control-plane
131146
env:
132147
RELEASE_TAG: ${{ steps.identity.outputs.release-tag }}
148+
EXPECTED_SIGNING_MODE: ${{ steps.macos-signing.outputs.signing-mode }}
149+
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
150+
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
151+
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
152+
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
153+
APPLE_ID: ${{ secrets.APPLE_ID }}
154+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
155+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
133156
run: |
134157
set -euo pipefail
135158
release_version="${RELEASE_TAG#v}"
136159
if [[ ! "${release_version}" =~ ^[0-9]+\.[0-9]+\.[0-9]+([+-][0-9A-Za-z.-]+)?$ ]]; then
137160
echo "::error title=Invalid desktop release version::${RELEASE_TAG} is not a supported release tag"
138161
exit 1
139162
fi
140-
npm run build -- --bundles ${{ matrix.bundles }} \
141-
--config "{\"version\":\"${release_version}\",\"bundle\":{\"macOS\":{\"signingIdentity\":\"-\"}}}"
163+
python3 ../../../scripts/desktop_macos_signing.py build \
164+
--version "${release_version}" \
165+
--bundles ${{ matrix.bundles }} \
166+
--expected-mode "${EXPECTED_SIGNING_MODE}"
167+
168+
- name: Notarize macOS disk image
169+
if: github.event_name != 'pull_request' && runner.os == 'macOS' && steps.macos-signing.outputs.signing-mode == 'developer_id'
170+
env:
171+
APPLE_ID: ${{ secrets.APPLE_ID }}
172+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
173+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
174+
run: |
175+
set -euo pipefail
176+
dmg_path="$(find apps/desktop/loopx-control-plane/src-tauri/target/release/bundle/dmg -maxdepth 1 -name '*.dmg' -print -quit)"
177+
test -n "${dmg_path}"
178+
python3 scripts/desktop_macos_signing.py notarize-dmg --dmg "${dmg_path}"
142179
143180
- name: Build Windows release bundles
144181
if: github.event_name != 'pull_request' && runner.os == 'Windows'
@@ -159,15 +196,17 @@ jobs:
159196
- name: Verify macOS desktop bundles
160197
if: github.event_name != 'pull_request' && runner.os == 'macOS'
161198
shell: bash
199+
env:
200+
SIGNING_MODE: ${{ steps.macos-signing.outputs.signing-mode }}
162201
run: |
163202
set -euo pipefail
164203
app_path="apps/desktop/loopx-control-plane/src-tauri/target/release/bundle/macos/LoopX.app"
165204
dmg_path="$(find apps/desktop/loopx-control-plane/src-tauri/target/release/bundle/dmg -maxdepth 1 -name '*.dmg' -print -quit)"
166205
test -n "${dmg_path}"
167-
codesign --verify --deep --strict --verbose=2 "${app_path}"
168-
codesign --display --verbose=4 "${app_path}" 2>&1 \
169-
| grep -q '^Signature=adhoc$'
170-
hdiutil verify "${dmg_path}"
206+
python3 scripts/desktop_macos_signing.py verify \
207+
--signing-mode "${SIGNING_MODE}" \
208+
--app "${app_path}" \
209+
--dmg "${dmg_path}"
171210
172211
- name: Collect macOS desktop bundles
173212
if: runner.os == 'macOS'

‎.github/workflows/desktop-updater.yml‎

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
paths:
66
- 'apps/desktop/**'
77
- 'scripts/desktop_*'
8+
- 'tests/desktop/**'
89
- '.github/workflows/desktop-updater.yml'
910
release:
1011
types: [published]
@@ -107,6 +108,17 @@ jobs:
107108
- uses: actions/setup-python@v6
108109
with:
109110
python-version: "3.12"
111+
- name: Resolve macOS signing mode
112+
id: macos-signing
113+
env:
114+
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
115+
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
116+
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
117+
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
118+
APPLE_ID: ${{ secrets.APPLE_ID }}
119+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
120+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
121+
run: python3 scripts/desktop_macos_signing.py resolve-mode
110122
- uses: dtolnay/rust-toolchain@stable
111123
- uses: Swatinem/rust-cache@v2
112124
with:
@@ -120,12 +132,38 @@ jobs:
120132
env:
121133
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
122134
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ""
135+
EXPECTED_SIGNING_MODE: ${{ steps.macos-signing.outputs.signing-mode }}
136+
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
137+
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
138+
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
139+
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
140+
APPLE_ID: ${{ secrets.APPLE_ID }}
141+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
142+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
123143
VERSION: ${{ needs.identity.outputs.version }}
124144
BUNDLE: app
125145
run: |
126146
set -euo pipefail
127147
test -n "$TAURI_SIGNING_PRIVATE_KEY"
128-
npm run build -- --bundles "$BUNDLE" --config "{\"version\":\"$VERSION\",\"bundle\":{\"createUpdaterArtifacts\":true,\"macOS\":{\"signingIdentity\":\"-\"}}}"
148+
python3 ../../../scripts/desktop_macos_signing.py build \
149+
--version "$VERSION" \
150+
--bundles "$BUNDLE" \
151+
--create-updater-artifacts \
152+
--expected-mode "$EXPECTED_SIGNING_MODE"
153+
- name: Verify macOS updater bundle
154+
if: runner.os == 'macOS'
155+
shell: bash
156+
env:
157+
SIGNING_MODE: ${{ steps.macos-signing.outputs.signing-mode }}
158+
run: |
159+
set -euo pipefail
160+
app_path="apps/desktop/loopx-control-plane/src-tauri/target/release/bundle/macos/LoopX.app"
161+
updater_tar_gz="$(find apps/desktop/loopx-control-plane/src-tauri/target/release/bundle -type f -name '*.app.tar.gz' -print -quit)"
162+
test -n "${updater_tar_gz}"
163+
python3 scripts/desktop_macos_signing.py verify \
164+
--signing-mode "${SIGNING_MODE}" \
165+
--app "${app_path}" \
166+
--updater-tar-gz "${updater_tar_gz}"
129167
- name: Collect native updater artifacts
130168
shell: bash
131169
env:

‎.github/workflows/dsh-plugin-publish.yml‎

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717

1818
jobs:
1919
publish:
20-
if: github.repository == 'loopx-project/loopx' && github.ref_type == 'tag' && github.ref_name == inputs.release_tag
20+
if: github.repository == 'loopx-project/loopx' && ((github.ref_type == 'tag' && github.ref_name == inputs.release_tag) || (github.ref == 'refs/heads/main' && startsWith(inputs.release_tag, 'dsh-loopx-plugin-v')))
2121
runs-on: ubuntu-latest
2222
timeout-minutes: 10
2323
permissions:
@@ -32,7 +32,7 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v7
3434
with:
35-
ref: ${{ github.sha }}
35+
ref: refs/tags/${{ inputs.release_tag }}
3636
fetch-depth: 0
3737
- uses: actions/setup-node@v6
3838
with:
@@ -47,7 +47,7 @@ jobs:
4747
const manifest = JSON.parse(readFileSync('package.json', 'utf8'))
4848
assert.equal(process.env.RELEASE_TAG, `dsh-loopx-plugin-v${manifest.version}`)
4949
mkdirSync('output', { recursive: true })
50-
appendFileSync(process.env.GITHUB_ENV, `DSH_ARTIFACT=output/${manifest.name}-${manifest.version}.tgz\n`)
50+
appendFileSync(process.env.GITHUB_ENV, `DSH_ARTIFACT=./output/${manifest.name}-${manifest.version}.tgz\n`)
5151
NODE
5252
gh release view "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --json tagName,isDraft > output/release.json
5353
node -e 'const r=require("./output/release.json"); require("node:assert/strict").equal(r.isDraft, false)'
@@ -70,8 +70,38 @@ jobs:
7070
const exists = response.ok && !!(await response.json()).versions?.[source.version]
7171
appendFileSync(process.env.GITHUB_ENV, `DSH_ALREADY_PUBLISHED=${exists}\n`)
7272
NODE
73+
node --input-type=module <<'NODE'
74+
import { appendFileSync, readFileSync } from 'node:fs'
75+
const source = JSON.parse(readFileSync('package.json', 'utf8'))
76+
const response = await fetch(`https://registry.npmjs.org/${encodeURIComponent(source.name)}`, {
77+
signal: AbortSignal.timeout(15_000),
78+
})
79+
const missing = response.status === 404
80+
const body = response.ok ? await response.json() : null
81+
const versions = Object.keys(body?.versions ?? {})
82+
const stagingOnly = versions.length > 0 && versions.every(v => v === '0.0.0-stage') && !versions.includes(source.version)
83+
appendFileSync(process.env.GITHUB_ENV, `DSH_NPM_PACKAGE_MISSING=${missing}\nDSH_NPM_STAGING_PLACEHOLDER=${stagingOnly}\n`)
84+
NODE
7385
- name: Publish the same bytes with npm trusted publishing
7486
if: env.DSH_ALREADY_PUBLISHED != 'true'
75-
run: npm publish "$DSH_ARTIFACT" --access public --tag latest --ignore-scripts --provenance
87+
run: |
88+
set +e
89+
npm publish "$DSH_ARTIFACT" --access public --tag latest --ignore-scripts --provenance
90+
rc=$?
91+
set -e
92+
if [ "$rc" -ne 0 ]; then
93+
if [ "${DSH_NPM_PACKAGE_MISSING:-false}" = "true" ]; then
94+
echo "::error title=npm package bootstrap required::dsh-loopx-plugin returns HTTP 404 on registry.npmjs.org. npm OIDC Trusted Publishing cannot create a brand-new package: enable 2FA (auth-and-writes), run one-time web-auth 'npm publish <release.tgz> --access public --tag latest --ignore-scripts', run 'npm logout', then bind Trusted Publisher (loopx-project / loopx / dsh-plugin-publish.yml / blank Environment name / Allow npm publish checked)."
95+
elif [ "${DSH_NPM_STAGING_PLACEHOLDER:-false}" = "true" ]; then
96+
echo "::error title=npm package staging scan active::registry.npmjs.org still holds 0.0.0-stage from initial publish scan; wait 1-3 minutes for the target version to activate and re-dispatch."
97+
else
98+
echo "::error title=npm Trusted Publisher failed::Verify npmjs Trusted Publisher settings on https://www.npmjs.com/package/dsh-loopx-plugin/access (Provider: GitHub Actions, Organization or user: loopx-project, Repository: loopx, Workflow filename: dsh-plugin-publish.yml, Environment name: empty, Allow npm publish: checked)."
99+
fi
100+
exit "$rc"
101+
fi
76102
- name: Read back npm bytes, latest, and marketplace repository discovery
77-
run: node scripts/verify-distribution.mjs --tarball "$DSH_ARTIFACT"
103+
run: |
104+
if git cat-file -e origin/main:packages/dsh-loopx-plugin/scripts/verify-distribution.mjs 2>/dev/null; then
105+
git show origin/main:packages/dsh-loopx-plugin/scripts/verify-distribution.mjs > scripts/verify-distribution.mjs
106+
fi
107+
node scripts/verify-distribution.mjs --tarball "$DSH_ARTIFACT"

‎README.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ progress, decisions and verifiable results so work can continue across sessions.
1818

1919
</div>
2020

21+
https://github.com/user-attachments/assets/6d459488-4834-40ef-90bc-d6649c4f0ef1
22+
23+
<p align="center"><sub><b>60-second overview</b> — one sentence sets a long-horizon goal across Codex, Claude Code, Gemini &amp; DeepSeek; LoopX keeps Todos, replanning, human sign-off, and 3% first-read session recovery verifiable across 200+ hour runs (community film by <a href="https://x.com/lemomo_ai">@lemomo_ai</a> · <a href="#see-loopx-in-action">more product recordings below</a>).</sub></p>
24+
2125
---
2226

2327
<a id="quick-start"></a>
@@ -229,6 +233,13 @@ contract](docs/reference/protocols/lark-manager-context-authority-v0.md).
229233
loopx dashboard
230234
```
231235

236+
For the optional [Workbench](apps/workbench/README.md#统一启动命令), use
237+
`loopx workbench start`, `loopx workbench status`, and `loopx workbench stop`
238+
after installing its separate application. These commands preserve its data and
239+
leave independently managed Core services running. Opt in to current-user login
240+
startup and crash recovery with `loopx workbench start --autostart` (macOS launchd
241+
or Linux systemd); `stop --disable-autostart` removes that registration and keeps data.
242+
232243
`loopx dashboard` is the supported browser/PWA launch path. You can also download
233244
native desktop previews from the [current release](https://github.com/loopx-project/loopx/releases/latest);
234245
they reuse the same loopback services and Goal state. Apple Silicon macOS supports

‎README.zh-CN.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818

1919
</div>
2020

21+
https://github.com/user-attachments/assets/eeb95ecd-6e5b-43d7-a8aa-b3d1b4449423
22+
23+
<p align="center"><sub><b>60 秒看懂 LoopX</b>:一句话设定长程目标,跨 Codex、Claude Code、Gemini 与 DeepSeek 分工协作、未过校验自动重规划、关键决策人类拍板、首读上下文压至 3% 跨会话续跑 200+ 小时(社区贡献者 <a href="https://x.com/lemomo_ai">@lemomo_ai</a> 制作 · <a href="#看看-loopx-如何工作">更多实录演示见下文</a>)。</sub></p>
24+
2125
---
2226

2327
<a id="快速开始"></a>

0 commit comments

Comments
 (0)