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
4 changes: 3 additions & 1 deletion e2e/bub/src/powercontext_e2e/harbor_kimi_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@
write(manifestPath, manifest)
const skill = path.join(plugin, 'skills/powercontext-project-context/SKILL.md')
const guidance = fs.readFileSync(skill, 'utf8')
fs.writeFileSync(skill, guidance.replaceAll('__POWERCONTEXT_SCOPE_JSON__', () => JSON.stringify(scopeId)))
fs.writeFileSync(skill, guidance
.replaceAll('__POWERCONTEXT_SCOPE_JSON__', () => JSON.stringify(scopeId))
.replaceAll('__POWERCONTEXT_SCOPE_SCRIPT_JSON__', () => JSON.stringify(path.join(plugin, 'scripts/scope.mjs'))))
const now = new Date().toISOString()
write(path.join(home, 'plugins/installed.json'), {{ version: 1, plugins: [{{
id: 'powercontext', root: plugin, source: 'local-path', enabled: true,
Expand Down
7 changes: 6 additions & 1 deletion e2e/bub/tests/test_harbor_job_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,12 @@ def _kimi_installation(home: Path) -> dict[str, object]:
for path in sorted((home / "plugins").rglob("*")):
if path.is_file():
text = path.read_text(encoding="utf-8")
files[path.relative_to(home).as_posix()] = json.loads(text) if path.suffix == ".json" else text
if path.suffix == ".json":
files[path.relative_to(home).as_posix()] = json.loads(text)
else:
# The guidance names the installed Scope script by its path inside this test's directories.
text = text.replace(str(home.resolve()), "<home>").replace(str(home), "<home>")
files[path.relative_to(home).as_posix()] = text
for record in files["plugins/installed.json"]["plugins"]: # type: ignore[index]
# Each installation records its own time, and its source and root inside this test's directories.
for name in ("installedAt", "updatedAt", "originalSource"):
Expand Down
Loading