Repository navigation
[pull] main from Tencent:main - #4
Merged
Merged
Conversation
#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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )