@datarails-ai/dr-appspace-cli 0.12.84 → 0.12.85

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/cli.js +5 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import { fileURLToPath as fileURLToPath6 } from "url";
13
13
  // package.json
14
14
  var package_default = {
15
15
  name: "@datarails-ai/dr-appspace-cli",
16
- version: "0.12.84",
16
+ version: "0.12.85",
17
17
  description: "Datarails App Space CLI \u2014 build, try, push and publish App Space apps",
18
18
  type: "module",
19
19
  engines: {
@@ -57,7 +57,7 @@ var package_default = {
57
57
  };
58
58
 
59
59
  // src/buildInfo.ts
60
- var BUILD_TIME = "2026-11-12T20:49:18.849Z";
60
+ var BUILD_TIME = "2026-11-12T21:51:09.014Z";
61
61
  function formatBuildTime(iso) {
62
62
  if (iso === "") return "";
63
63
  const d = new Date(iso);
@@ -8306,6 +8306,7 @@ var contract_schema_default = {
8306
8306
  }
8307
8307
  },
8308
8308
  capabilities: { type: "object" },
8309
+ http: { $ref: "#/$defs/http" },
8309
8310
  data_model: { oneOf: [{ type: "null" }, { $ref: "#/$defs/data_model" }] },
8310
8311
  shell: {
8311
8312
  type: "object",
@@ -8368,6 +8369,8 @@ var contract_schema_default = {
8368
8369
  }
8369
8370
  }
8370
8371
  },
8372
+ http: { type: "object", description: "manifest.http - the outside HTTPS hosts the app may call through ctx.http (DR-59641; docs/appspace/ctx-http.md). OPTIONAL: absent means the app calls no outside host. An app only: a dashboard declares no http. compileApp writes it into manifest.json as it is, and the extractor reads it back. Each entry needs the Owner's approval at push (--approve-hosts). The rules this schema cannot state are compileApp's and the push's (appspace/contract.py validate_http): at most 20 entries, an entry name of lower-case letters, digits and _ that starts with a letter (at most 32 characters), no method twice, header and prefix only with secret, and no transport, cookie or proxy header.", additionalProperties: { $ref: "#/$defs/http_entry" } },
8373
+ http_entry: { type: "object", description: 'One outside host, by the name a handler passes: ctx.http.get("fx", "/v1/rates").', required: ["host", "methods"], additionalProperties: false, properties: { host: { type: "string", maxLength: 253, pattern: "^(?!.*(?:localhost|\\.local|\\.internal|\\.localdomain|\\.svc|\\.home\\.arpa)$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$(?!\\n)", description: "A lower-case DNS name of two labels or more, for example api.example.com. No scheme, path, port or IP address, and not a name that is only internal (localhost, .local, .internal, .localdomain, .svc, .home.arpa)." }, methods: { type: "array", minItems: 1, items: { enum: ["GET", "POST", "PUT", "PATCH", "DELETE"] }, description: "The methods a handler may send to this host. Not empty, no method twice." }, secret: { type: "string", pattern: "^[a-z][a-z0-9_]{0,63}$(?!\\n)", description: "OPTIONAL. The name of an app secret (docs/appspace/app-secrets.md). The platform puts its value in the header. The app never sees the value." }, header: { type: "string", pattern: "^[A-Za-z0-9!#$%&'*+.^_`|~-]{1,64}$(?!\\n)", description: "OPTIONAL, needs secret. The header the secret goes into. Absent means Authorization." }, prefix: { type: "string", maxLength: 64, pattern: "^[ -~]*$(?!\\n)", description: 'OPTIONAL, needs secret. Printable ASCII text before the secret, for example "Bearer ". Absent means no prefix.' } } },
8371
8374
  pin: {
8372
8375
  type: "object",
8373
8376
  required: ["module", "version", "file", "path", "rel", "pages", "order"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarails-ai/dr-appspace-cli",
3
- "version": "0.12.84",
3
+ "version": "0.12.85",
4
4
  "description": "Datarails App Space CLI — build, try, push and publish App Space apps",
5
5
  "type": "module",
6
6
  "engines": {