@m6d/cortex-cli 0.2.0 → 0.4.0
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/package.json +1 -1
- package/src/cc/client.ts +58 -90
- package/src/cc/flags.ts +8 -11
- package/src/cc/output.ts +3 -6
- package/src/cc/profiles.ts +8 -11
- package/src/commands/cc.ts +18 -11
- package/src/commands/graph.ts +17 -18
- package/src/commands/new.ts +5 -6
- package/src/commands/swagger.ts +35 -49
- package/src/config/load.ts +6 -6
- package/src/config/validate.ts +2 -2
- package/src/contracts/charts/chart-spec.ts +9 -6
- package/src/contracts/credentials/index.ts +183 -0
- package/src/contracts/egress/index.ts +8 -62
- package/src/contracts/egress/scrub.ts +3 -1
- package/src/contracts/egress/url.ts +109 -0
- package/src/contracts/graph/helpers.ts +8 -10
- package/src/contracts/json/index.ts +21 -0
- package/src/contracts/runtime/api.ts +2 -2
- package/src/contracts/runtime/dataset-sql.ts +49 -70
- package/src/contracts/runtime/datasets.ts +33 -43
- package/src/contracts/runtime/grammar.ts +12 -11
- package/src/contracts/runtime/signature.ts +7 -8
- package/src/contracts/runtime/sync.ts +13 -2
- package/src/contracts/runtime/triggers.ts +4 -1
- package/src/contracts/wire/index.ts +12 -5
- package/src/graph/expand-domains.ts +7 -9
- package/src/graph/generate-cypher.ts +1 -1
- package/src/graph/seed.ts +6 -14
- package/src/scaffold/files.ts +23 -28
- package/src/swagger/extract-endpoints.ts +79 -76
- package/src/swagger/openapi-schema.ts +21 -14
- package/src/swagger/parse-response.ts +1 -1
- package/src/ui/report.ts +1 -1
|
@@ -8,7 +8,7 @@ import { deref, obj, pickContent, schemaType, toProp, toProps } from "./openapi-
|
|
|
8
8
|
|
|
9
9
|
type ResponseBody = { responseKind: ResponseKind; response: Prop[] };
|
|
10
10
|
|
|
11
|
-
const NO_BODY
|
|
11
|
+
const NO_BODY = { responseKind: "none", response: [] } satisfies ResponseBody;
|
|
12
12
|
|
|
13
13
|
const FILE_MIME = /(application\/octet-stream|application\/pdf|application\/vnd\.|text\/csv)/i;
|
|
14
14
|
|
package/src/ui/report.ts
CHANGED
|
@@ -31,12 +31,12 @@ function describe(error: unknown) {
|
|
|
31
31
|
// anything opened the box above it.
|
|
32
32
|
let open = false;
|
|
33
33
|
|
|
34
|
-
/** `┌ cortex graph seed` — opens a run. */
|
|
35
34
|
/** `1 node` / `3 nodes` — every count the box prints goes through this. */
|
|
36
35
|
export function plural(count: number, noun: string) {
|
|
37
36
|
return `${count} ${noun}${count === 1 ? "" : "s"}`;
|
|
38
37
|
}
|
|
39
38
|
|
|
39
|
+
/** `┌ cortex graph seed` — opens a run. */
|
|
40
40
|
export function header(title: string) {
|
|
41
41
|
open = true;
|
|
42
42
|
write(process.stdout, ["", `${pc.gray("┌")} ${title}`, BAR]);
|