@kodycodes/cli 1.28.2 → 1.28.4
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.
- package/README.md +4 -2
- package/dist/{auth-TSEDVC4Q.js → auth-67R45WKR.js} +7 -7
- package/dist/bin.js +9 -9
- package/dist/capability-proxy.d.ts +7 -0
- package/dist/{chunk-ZL5FBDVT.js → chunk-44MCK4CO.js} +209 -372
- package/dist/chunk-44MCK4CO.js.map +6 -0
- package/dist/{chunk-FGD6ZQWV.js → chunk-4KZ7BGFE.js} +18 -6
- package/dist/chunk-4KZ7BGFE.js.map +6 -0
- package/dist/{chunk-HZN5DD3X.js → chunk-65UVHMB4.js} +3 -3
- package/dist/{chunk-I3ZREEX7.js → chunk-DY6FP3IV.js} +9 -7
- package/dist/chunk-DY6FP3IV.js.map +6 -0
- package/dist/{chunk-4IO7CCI3.js → chunk-EOUYOO3A.js} +10 -8
- package/dist/chunk-EOUYOO3A.js.map +6 -0
- package/dist/{chunk-TMKESCDS.js → chunk-F3UJD24O.js} +90 -38
- package/dist/chunk-F3UJD24O.js.map +6 -0
- package/dist/{chunk-7AXKW7HF.js → chunk-K5VI6QLH.js} +6 -6
- package/dist/chunk-LSFY5BNX.js +62 -0
- package/dist/chunk-LSFY5BNX.js.map +6 -0
- package/dist/{chunk-VP7LVFXJ.js → chunk-PBT726LZ.js} +3 -3
- package/dist/{chunk-DW5UTJ6T.js → chunk-PWWN6JI2.js} +2 -2
- package/dist/chunk-RWLCFDUG.js +199 -0
- package/dist/chunk-RWLCFDUG.js.map +6 -0
- package/dist/{chunk-GZIIFSK7.js → chunk-V62QV2YD.js} +19 -9
- package/dist/chunk-V62QV2YD.js.map +6 -0
- package/dist/{chunk-WMROAVLX.js → chunk-V7TJUMHF.js} +2 -2
- package/dist/{chunk-B6KBHKYB.js → chunk-XHKHDK76.js} +3 -3
- package/dist/cli.d.ts +13 -0
- package/dist/cli.js +13 -9
- package/dist/{dev-command-NVYQRSI5.js → dev-command-MHPICH3S.js} +23 -21
- package/dist/dev-command-MHPICH3S.js.map +6 -0
- package/dist/{git-credential-UGURBPWM.js → git-credential-BPAHXHYL.js} +8 -8
- package/dist/{local-execute-X7BKM24Z.js → local-execute-M64FPQAQ.js} +11 -9
- package/dist/local-execute-M64FPQAQ.js.map +6 -0
- package/dist/local-package-graph-NU2MP6Z3.js +47 -0
- package/dist/local-package-graph.d.ts +27 -7
- package/dist/{local-package-run-KM2YUOMJ.js → local-package-run-SSSFVIES.js} +9 -8
- package/dist/{mock-dep-resolve-NBMJYYW4.js → mock-dep-resolve-DTSDROG4.js} +8 -8
- package/dist/{mock-fetch-gateway-FWVNTLP2.js → mock-fetch-gateway-DIHCENGI.js} +4 -4
- package/dist/{mock-local-deps-VSBC6Q2Y.js → mock-local-deps-KSFUDRP6.js} +8 -6
- package/dist/mock-local-deps-KSFUDRP6.js.map +6 -0
- package/dist/{mock-server-5UDCIDSW.js → mock-server-NO5RFVAF.js} +5 -5
- package/dist/network-error.d.ts +22 -0
- package/dist/{open-api-client-JE2TCSRZ.js → open-api-client-DPKLG7EI.js} +5 -5
- package/dist/open-api-client.d.ts +7 -0
- package/dist/{remote-execute-DDAFTKEL.js → remote-execute-EVHQZY5W.js} +5 -5
- package/dist/{setup-git-GBF54KW5.js → setup-git-KGORJYEQ.js} +6 -6
- package/dist/setup-git-KGORJYEQ.js.map +6 -0
- package/package.json +1 -1
- package/dist/chunk-4GIFJVGT.js +0 -14
- package/dist/chunk-4GIFJVGT.js.map +0 -6
- package/dist/chunk-4IO7CCI3.js.map +0 -6
- package/dist/chunk-FGD6ZQWV.js.map +0 -6
- package/dist/chunk-GZIIFSK7.js.map +0 -6
- package/dist/chunk-I3ZREEX7.js.map +0 -6
- package/dist/chunk-TMKESCDS.js.map +0 -6
- package/dist/chunk-ZL5FBDVT.js.map +0 -6
- package/dist/dev-command-NVYQRSI5.js.map +0 -6
- package/dist/local-execute-X7BKM24Z.js.map +0 -6
- package/dist/mock-local-deps-VSBC6Q2Y.js.map +0 -6
- /package/dist/{auth-TSEDVC4Q.js.map → auth-67R45WKR.js.map} +0 -0
- /package/dist/{chunk-HZN5DD3X.js.map → chunk-65UVHMB4.js.map} +0 -0
- /package/dist/{chunk-7AXKW7HF.js.map → chunk-K5VI6QLH.js.map} +0 -0
- /package/dist/{chunk-VP7LVFXJ.js.map → chunk-PBT726LZ.js.map} +0 -0
- /package/dist/{chunk-DW5UTJ6T.js.map → chunk-PWWN6JI2.js.map} +0 -0
- /package/dist/{chunk-WMROAVLX.js.map → chunk-V7TJUMHF.js.map} +0 -0
- /package/dist/{chunk-B6KBHKYB.js.map → chunk-XHKHDK76.js.map} +0 -0
- /package/dist/{git-credential-UGURBPWM.js.map → git-credential-BPAHXHYL.js.map} +0 -0
- /package/dist/{local-package-run-KM2YUOMJ.js.map → local-package-graph-NU2MP6Z3.js.map} +0 -0
- /package/dist/{mock-fetch-gateway-FWVNTLP2.js.map → local-package-run-SSSFVIES.js.map} +0 -0
- /package/dist/{mock-dep-resolve-NBMJYYW4.js.map → mock-dep-resolve-DTSDROG4.js.map} +0 -0
- /package/dist/{mock-server-5UDCIDSW.js.map → mock-fetch-gateway-DIHCENGI.js.map} +0 -0
- /package/dist/{open-api-client-JE2TCSRZ.js.map → mock-server-NO5RFVAF.js.map} +0 -0
- /package/dist/{setup-git-GBF54KW5.js.map → open-api-client-DPKLG7EI.js.map} +0 -0
- /package/dist/{remote-execute-DDAFTKEL.js.map → remote-execute-EVHQZY5W.js.map} +0 -0
package/README.md
CHANGED
|
@@ -86,12 +86,14 @@ multi-org store as the active org (no re-login).
|
|
|
86
86
|
| `kody whoami` | Confirms the CLI MCP connection and lists tools. With a scoped API token (and no login), shows token identity via the Open API. |
|
|
87
87
|
| `kody search [query]` | Calls Kody `search` from the CLI (prefer the host MCP tool). Token-only auth uses Open API `GET /v1/search`. |
|
|
88
88
|
| `kody api <operationId>` | Thin Open API wrapper matching the MCP `api` tool: `operationId` + flat `--params` JSON. Auth: `--token` / `KODY_API_TOKEN` / stored `auth bootstrap` token. The parsed `/openapi.json` route map is cached under the Kody cache dir keyed by the document's `ETag` and revalidated with `If-None-Match` on each run. |
|
|
89
|
-
| `kody package publish` | Thin wrapper for `packagePublishExternalPush`. Optional positional `@owner/leaf`, bare leaf name, or package UUID (names are resolved to the package UUID via `packageList`); extra fields via `--params`. Same auth as `kody api`.
|
|
89
|
+
| `kody package publish` | Thin wrapper for `packagePublishExternalPush`. Optional positional `@owner/leaf`, bare leaf name, or package UUID (names are resolved to the package UUID via `packageList`); extra fields via `--params`. Same auth as `kody api`. Prints the API JSON and exits **0 on HTTP 2xx**, including refusal statuses (`checks_failed`, `locked`, `approval_required`, `not_fast_forward`) — read `status` in the body. Network failures exit 1; `--json` adds `{ error, message, sent }` on stdout (`sent: false` = not sent; `sent: "unknown"` = maybe sent — prefer `kody api workflowRunList` before retry). Re-publishing the same commit is safe (durable dedupe / `already_published`). |
|
|
90
90
|
| `kody package collaborators` / `grant` / `revoke` | Who can use one package, and add or remove teams and members of the org (`--org`). `<package>` is `@owner/leaf`, the kody id, or the package id. `grant <package> --team <slug>\|--user <username> [--preset use\|contribute\|manage]` (default `use`) adds or changes a collaborator via `packageCollaboratorSet`; people outside the org are refused. `revoke <package> --team\|--user\|--grant <grant_id>` removes one via `packageCollaboratorRemove`. Needs Manage on the package and a token with `package:manage_access` (`auth bootstrap --scopes …,package:manage_access`). Prints a summary, or JSON with `--json`. |
|
|
91
91
|
| `kody execute` | Calls Kody `execute` from the CLI (`--invoke`, `--code`, `--file`, or stdin via `--file -`). With a scoped API token and no login (or with `--token`), cloud execute goes through CapabilityProxy → `kody.execute` — no `kody login`. Add `--local` to run the module (and static `kody:@…` package modules) on this machine instead. `--credential key=name` (repeatable; `org:name` / `personal:name` / empty `=` for none) picks ADR 0068 credentials for `--local` or a `kody login` MCP session. `--allow-private-network` opts local execution into private and local network access. `--target prod\|mock` (default `prod`) sends CapabilityProxy / search hops to prod or the built-in CLI mock; `--target mock` implies local workerd. |
|
|
92
92
|
| `kody dev` | Local testing for unpublished packages. Serves `kody.app.entry` on localhost via workerd with hot reload. Subcommands: `fetch`, `job`, `webhook`, `emit`, `check`. Default `--target mock` (scratch storage, fake credentials). Covers exports, webhooks, schedules (run-once), and subscriptions. See [Local package testing](#local-package-testing-kody-dev). |
|
|
93
93
|
|
|
94
|
-
`--json` prints structured MCP results.
|
|
94
|
+
`--json` prints structured MCP results. On command failures it also prints a
|
|
95
|
+
JSON error object on stdout (`error`, `message`, and when a network hop failed
|
|
96
|
+
before an HTTP response, additive `sent: false | "unknown"`).
|
|
95
97
|
|
|
96
98
|
## Token-authenticated execute (no `kody login`)
|
|
97
99
|
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
login,
|
|
8
8
|
refreshStoredCredentials,
|
|
9
9
|
resolvePendingOrgSlug
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-ZILB2HWE.js";
|
|
10
|
+
} from "./chunk-K5VI6QLH.js";
|
|
12
11
|
import "./chunk-CASGRYOF.js";
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-ZILB2HWE.js";
|
|
13
|
+
import "./chunk-V62QV2YD.js";
|
|
14
14
|
import "./chunk-46IJPEID.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-PWWN6JI2.js";
|
|
16
|
+
import "./chunk-4KZ7BGFE.js";
|
|
17
|
+
import "./chunk-LSFY5BNX.js";
|
|
18
18
|
import "./chunk-CWWHR4FH.js";
|
|
19
19
|
import "./chunk-3H72XY5R.js";
|
|
20
20
|
import "./chunk-BTL3PJ2H.js";
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
refreshStoredCredentials,
|
|
29
29
|
resolvePendingOrgSlug
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=auth-
|
|
31
|
+
//# sourceMappingURL=auth-67R45WKR.js.map
|
package/dist/bin.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
runCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F3UJD24O.js";
|
|
6
6
|
import "./chunk-2XPH7L2P.js";
|
|
7
7
|
import "./chunk-SLNAWWQK.js";
|
|
8
8
|
import "./chunk-YDWTXEKQ.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-65UVHMB4.js";
|
|
10
|
+
import "./chunk-EOUYOO3A.js";
|
|
11
11
|
import "./chunk-6ZYUGXVW.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-ZILB2HWE.js";
|
|
12
|
+
import "./chunk-K5VI6QLH.js";
|
|
14
13
|
import "./chunk-CASGRYOF.js";
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ZILB2HWE.js";
|
|
15
|
+
import "./chunk-V62QV2YD.js";
|
|
16
16
|
import "./chunk-46IJPEID.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-PWWN6JI2.js";
|
|
18
|
+
import "./chunk-4KZ7BGFE.js";
|
|
19
|
+
import "./chunk-LSFY5BNX.js";
|
|
20
20
|
import "./chunk-7PRJ36I5.js";
|
|
21
21
|
import "./chunk-CWWHR4FH.js";
|
|
22
22
|
import "./chunk-3H72XY5R.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type IncomingMessage } from 'node:http';
|
|
2
2
|
import { Readable } from 'node:stream';
|
|
3
3
|
import { type CredentialCallMapInput } from './credential-call-map.js';
|
|
4
|
+
import { type RequestSentStatus } from './network-error.js';
|
|
4
5
|
/**
|
|
5
6
|
* HTTP contract for Kody's CapabilityProxy (Open API `/v1`). Local execute
|
|
6
7
|
* runs user code in workerd and forwards every `kody:runtime` call here with
|
|
@@ -97,9 +98,15 @@ export type CapabilityProxyClientInput = {
|
|
|
97
98
|
export declare class CapabilityProxyError extends Error {
|
|
98
99
|
readonly status: number | null;
|
|
99
100
|
readonly code: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* Set when the hop failed before an HTTP response. `false` = connect
|
|
103
|
+
* phase (nothing sent); `"unknown"` = body may have reached the server.
|
|
104
|
+
*/
|
|
105
|
+
readonly sent?: RequestSentStatus;
|
|
100
106
|
constructor(message: string, options?: {
|
|
101
107
|
status?: number | null;
|
|
102
108
|
code?: string | null;
|
|
109
|
+
sent?: RequestSentStatus;
|
|
103
110
|
});
|
|
104
111
|
}
|
|
105
112
|
/** The bearer token must not cross the network in cleartext. */
|