Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@ name: Build
on:
workflow_dispatch:
pull_request:
paths-ignore: ['*.md']
types: [opened, synchronize, reopened, ready_for_review]
branches: ['master']
paths-ignore: ['*.md']

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
group: package-build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
if: github.event.pull_request.draft == false
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
permissions:
contents: read
uses: Start9Labs/start-technologies/.github/workflows/build.yml@master
# No DEV_KEY β€” a PR build doesn't publish, so it doesn't need the signing key.
18 changes: 18 additions & 0 deletions .github/workflows/pr-retarget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Retarget Build

on:
pull_request:
types: [edited]

permissions: {}

concurrency:
group: package-build-${{ github.event.changes.base && github.event.pull_request.number || format('metadata-{0}', github.event.pull_request.number) }}
cancel-in-progress: true

jobs:
build:
if: github.event.changes.base && github.event.pull_request.draft == false
permissions:
contents: read
uses: Start9Labs/start-technologies/.github/workflows/build.yml@master
8 changes: 8 additions & 0 deletions .github/workflows/syncNext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ name: Sync next
# Carries every change that lands on the base branch onto the paired `next`
# iteration branch, so `next` never drifts behind what has already shipped.
# `next` is created on the first run if the repo does not have one yet.
#
# List every base branch this package maintains. Most packages have one; the
# multi-branch packages list each major line or flavor (e.g. 28.x, 29.x). A
# package whose default branch is `main` must say `main` here β€” a workflow
# pointed at a branch the repo does not use never runs.
#
# No paths-ignore: a docs-only commit on the base still has to reach `next`,
# or the next merge back re-introduces the stale copy.
on:
push:
branches: ['master']
Expand Down
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@start9labs/start-sdk/prettier.config.json"
21 changes: 14 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,23 @@ Freshly scaffolded? Work the
guide page, not a file in this repo β€” read it, don't copy it in.

Keep `README.md` (technical reference for an AI support or administering agent) and
`instructions.md` (end-user docs) in sync with your changes.
`instructions.md` (end-user docs) in sync with your changes. This file restates neither:
whoever changes the package has both, so it carries only what they don't β€” repo mechanics,
a change that looks right and is not, where the next thing gets added, a naming trap, a
build or test invocation particular to this repo.

**Fix a defect you spot rather than reporting it** β€” you have the package open and the
context to be sure. File **a GitHub issue on this repo** only when the call isn't yours to
make: you can't pin the cause down, two defensible fixes exist, or it's too large to ride on
the work in hand. An open issue is a report, not a queue β€” implement one when you're asked
to or when it's labelled `Approved`, then close it with `Closes #<n>`.

**Bugs and feature requests are GitHub issues on this repo** β€” file them as you find them.
Don't record work in the repo instead: no `TODO.md`, no `NOTES.md`, no `PLAN.md`. What you
verified, tried, and decided belongs in the commit message and the PR body.

## This repo

- **`assets/ui/` is ours, not upstream's.** The upstream project ships an API and no interface; the chat page here is a single hand-written `index.html` served by nginx. It is not upstream's Maple client and doesn't track it.
- **nginx reaches the proxy at `127.0.0.1:8080` because subcontainers share the service's network namespace.** That is also why exporting the `ui` interface exports the API surface with it β€” `proxy_pass` on `/v1/` makes the UI address answer API calls.
- **`MAPLE_API_KEY` is omitted from the env when empty, not passed blank.** The two states are functionally different: with a key the proxy authenticates upstream itself, without one every caller must send its own. Don't "fix" this by defaulting it.
- **The ports in `utils.ts` are duplicated in `assets/ui/nginx.conf`.** We choose the API port (`MAPLE_PORT` is passed to the image), but nginx's `proxy_pass` and `listen` hardcode both β€” so changing one constant without the conf breaks the UI's API path silently while both health checks stay green.
- **The `configure` task is `important`, not `critical`, deliberately.** An unkeyed proxy is a supported configuration.
- **Don't rename or move `apiHostId` or `apiPort` in `startos/utils.ts`** β€” open-webui-startos imports both from that path to reach the proxy over the bridge.
- **Change the ports in `startos/utils.ts` and `assets/ui/nginx.conf` together** β€” nginx hardcodes both, and a mismatch breaks the UI's API path while both health checks stay green.
- **Don't default `MAPLE_API_KEY` to a blank value** β€” an absent key and an empty one mean different things to the proxy.
- **Keep the `configure` task `important`** β€” an unkeyed proxy is a supported configuration.
2 changes: 1 addition & 1 deletion UPDATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Maple Proxy ships two images: the upstream `maple-proxy` (pulled from GHCR) and
```
gh release view -R OpenSecretCloud/maple-proxy --json tagName -q .tagName
```
The pin lives in `startos/manifest/index.ts` under `images['maple-proxy'].source.dockerTag` (currently `ghcr.io/opensecretcloud/maple-proxy:0.1.10`). The GHCR tag matches the GitHub release tag with the leading `v` stripped.
The pin lives in `startos/manifest/index.ts` under `images['maple-proxy'].source.dockerTag` (currently `ghcr.io/opensecretcloud/maple-proxy:0.1.11`). The GHCR tag matches the GitHub release tag with the leading `v` stripped.

## Applying the bump

Expand Down
Loading
Loading