@kody-ade/kody-engine 0.4.600 → 0.4.601

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bin/kody.js +11 -17
  2. package/package.json +1 -1
package/dist/bin/kody.js CHANGED
@@ -15,7 +15,7 @@ var init_package = __esm({
15
15
  "package.json"() {
16
16
  package_default = {
17
17
  name: "@kody-ade/kody-engine",
18
- version: "0.4.600",
18
+ version: "0.4.601",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -18385,15 +18385,15 @@ function writeKodyStorageState(input) {
18385
18385
  repo: input.repo,
18386
18386
  token: input.token,
18387
18387
  addedAt: now,
18388
- isLogin: true,
18389
- user: input.user
18388
+ isLogin: true
18390
18389
  };
18390
+ const unresolvedUser = { login: "", avatar_url: "", id: 0 };
18391
18391
  const auth = {
18392
18392
  repoUrl: input.repoUrl,
18393
18393
  owner: input.owner,
18394
18394
  repo: input.repo,
18395
18395
  token: input.token,
18396
- user: input.user,
18396
+ user: unresolvedUser,
18397
18397
  loggedInAt: now,
18398
18398
  repos: [repoEntry],
18399
18399
  currentRepoIndex: 0
@@ -18478,25 +18478,19 @@ async function prepareKodyRepositoryBrowserAuth(ctx, profile, input) {
18478
18478
  let state;
18479
18479
  try {
18480
18480
  const requested = githubRepositoryParts(repositoryUrl);
18481
- const [user, repository] = await Promise.all([
18482
- githubJson("https://api.github.com/user", credential.value, "user"),
18483
- githubJson(
18484
- `https://api.github.com/repos/${encodeURIComponent(requested.owner)}/${encodeURIComponent(requested.repo)}`,
18485
- credential.value,
18486
- "repository"
18487
- )
18488
- ]);
18481
+ const repository = await githubJson(
18482
+ `https://api.github.com/repos/${encodeURIComponent(requested.owner)}/${encodeURIComponent(requested.repo)}`,
18483
+ credential.value,
18484
+ "repository"
18485
+ );
18489
18486
  const [owner, repo] = repository.full_name.split("/");
18490
- if (!owner || !repo || !user.login || !user.avatar_url || typeof user.id !== "number") {
18491
- throw new Error("GitHub returned incomplete identity data");
18492
- }
18487
+ if (!owner || !repo) throw new Error("GitHub returned incomplete repository data");
18493
18488
  state = writeKodyStorageState({
18494
18489
  origin: browserOrigin(input.targetUrl),
18495
18490
  repoUrl: `https://github.com/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}`,
18496
18491
  owner,
18497
18492
  repo,
18498
- token: credential.value,
18499
- user
18493
+ token: credential.value
18500
18494
  });
18501
18495
  configurePlaywright(profile, state.file);
18502
18496
  const authDirectory = state.directory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.600",
3
+ "version": "0.4.601",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",