Skip to content

[pull] main from Tencent:main - #4

Merged
pull[bot] merged 6 commits into
Walternater:mainfrom
Tencent:main
Aug 25, 2026
Merged

pull[bot] merged 6 commits into
Walternater:mainfrom
Tencent:main

Conversation

@pull

@pull pull Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

jeff-r2026 and others added 6 commits August 25, 2026 14:59
#321)

Adds src/__tests__/e2e/gitlab-provider-live.test.ts, mirroring the
cnb-provider-live pattern: skipped unless GITLAB_TOKEN is set, runs a
read-only whoami check via GET /user against the configured instance
(defaults to gitlab.com, or self-hosted via GITLAB_URL).

The mutating half (create -> clone -> push -> open-MR) was verified
manually against git.guazi-corp.com with the teamai-cli GitLab
provider shipping in 0.21.0-beta.0. Token auth + REST API + in-URL
oauth2 clone + createPullRequest (with reviewer_ids resolution) all
work end-to-end; the closed MR !2 with sha=e160899 and the
successful real clone under /tmp/teamai-gl-clone-* are the artefacts.

Refs #303

Co-authored-by: wangchongfei <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
`teamai source add` writes sources/publicSkills into the team repo's
teamai.yaml without committing, then tells the user to run `teamai push`.
But push did not handle teamai.yaml at all:

1. resetToCleanMaster's `git reset --hard` silently destroyed the
   uncommitted edit before it could be committed.
2. teamai.yaml was never in the commit file list (whitelist of resource
   dirs only), so even a surviving edit was ignored.
3. A config-only change (no resource edits) exited early with
   "No new or modified resources to push".

Fixes:
- Capture teamai.yaml working-tree content before reset, restore it on
  top of the freshly pulled branch (survives reset --hard).
- Include teamai.yaml in gitFiles when the user edited it, so it rides
  along in the same PR as resources.
- Add pushTeamConfigOnly() for the config-only case so `source add`'s
  "Run teamai push" advice actually propagates the change.

All provider-agnostic (no github/gitlab/tgit special-casing); PR
creation goes through the existing createPrWithFallback abstraction.

Also fixes the docs claim that sources live in local config.yaml — they
live in the team repo's teamai.yaml and are shared via push.

Tested:
- tsc --noEmit, npm run build, full vitest suite (2187 tests) green
- New real-git integration test (push-team-config.test.ts): source-add
  edit survives real reset --hard and lands on the pushed branch
- Real CLI e2e against git.woa.com: init e2e-test-repo, source add
  teamai-dev-repo, push --all → teamai.yaml with sources reached the
  remote branch; baseline master had none (test branch + MR cleaned up)
…ws (#324)

getBuiltinAgentsDir() used new URL(import.meta.url).pathname, which on
Windows yields a leading-slash path like /C:/.../dist that fs cannot
resolve. pathExists(builtinDir) then returned false and
deployBuiltinAgents() took the dev-environment early return, so the
teamai-recall subagent was never deployed on Windows (skills worked
because builtin-skills.ts already used fileURLToPath).

Mirror builtin-skills.ts by using path.dirname(fileURLToPath(import.meta.url)).

Refs #322
…cs tables (#327)

- Remove Discord chat badges (unused community)
- Drop the "For you or your whole team." tagline and single-repo-mode section
- Tagline lists the actual Harness surface (skills/rules/MCP/env/knowledge base)
- Clarify project- vs user-scope init are a choose-one pair
- Rename Overview's third group Governance -> Analytics and add
  Distribution Controls (roles/tags/sources) + Analytics (usage/sessions/dashboard) tables
- Widen Sources to cover both other teams' and your org's shared repos
- Add missing `teamai tags` to the command reference
- Simplify Git provider list; keep README.md / README.zh-CN.md in sync
@pull pull Bot locked and limited conversation to collaborators Aug 25, 2026
@pull pull Bot added the ⤵️ pull label Aug 25, 2026
@pull
pull Bot merged commit 12a49d5 into Walternater:main Aug 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants