@datumos/datum-cli 0.0.0 → 0.588.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 CHANGED
@@ -1,7 +1,29 @@
1
1
  {
2
2
  "name": "@datumos/datum-cli",
3
- "version": "0.0.0",
4
- "description": "Placeholder — the datum CLI is published from CI.",
3
+ "version": "0.588.0",
4
+ "description": "Official CLI of the Datum API. Datum — an agentic service operations platform on the Claude Agent SDK: externally triggered agent runs with an admin panel for cases, sessions and autonomy.",
5
+ "type": "module",
6
+ "bin": {
7
+ "datum": "cli/datum.js",
8
+ "mca": "cli/datum.js"
9
+ },
10
+ "files": [
11
+ "cli/",
12
+ "openapi/",
13
+ "spaces/",
14
+ "LICENSE",
15
+ "NOTICE",
16
+ "npm-shrinkwrap.json"
17
+ ],
18
+ "dependencies": {
19
+ "@modelcontextprotocol/sdk": "^1.29.0"
20
+ },
21
+ "engines": {
22
+ "node": ">=22"
23
+ },
5
24
  "license": "Apache-2.0",
6
- "repository": { "type": "git", "url": "git+https://github.com/Ringier-Axel-Springer-PL/datum-core.git" }
25
+ "homepage": "https://datumos.ai",
26
+ "publishConfig": {
27
+ "access": "public"
28
+ }
7
29
  }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * The host labels of a space family that are never space slugs — kept
3
+ * WITHOUT any import so the `datum` CLI package can ship this module next to
4
+ * its own files (#2792, scripts/release/cliPackageFiles.mjs
5
+ * CLI_EXTERNAL_FILES): the CLI's `--space` needs to know that `auth.<domain>`
6
+ * sits beside the spaces, not above them. Re-exported by
7
+ * spaces.interfaces.ts, networkRelays.interfaces.ts and
8
+ * pushRelay.interfaces.ts — the one definition.
9
+ */
10
+ /** The network-relay ingress (#1951): relay.<domain> is where relays dial
11
+ * the hub's WebSocket — an ORGANISATION host, never a space. */
12
+ export const RELAY_HOST_LABEL = "relay";
13
+ /** The push relay (#2574): `push.<domain>` answers phones and every
14
+ * organisation's instance — reserved as a space slug. */
15
+ export const PUSH_RELAY_HOST_LABEL = "push";
16
+ /** The ACC preview gateway (#2926): `gw.<domain>` is the host a gateway
17
+ * variant's upstream points at — an ORGANISATION host that serves previews
18
+ * of every space (the `x-datum-address` header says which), never a space.
19
+ * Locally it is `<label>--gw.<preview domain>` (previewHostParts). */
20
+ export const GATEWAY_HOST_LABEL = "gw";
21
+ /** Subdomain labels that can never be space slugs (design decision D4):
22
+ * aliased in the Accelerator as dedicated zones (www/api/auth/status/docs)
23
+ * or reserved defensively so nobody can mint a tenant that LOOKS like the
24
+ * org console or a sign-in host (admin/login — §4b; the resolver routes
25
+ * reserved zones to the bootstrap space, so admin.<domain> simply serves
26
+ * the org surface). */
27
+ /** The subdomain the sign-in flow runs on: `auth.<space domain>`, the ONE host
28
+ * an identity provider holds a redirect URI for (design doc §6). Reserved
29
+ * below, so it resolves to the bootstrap space and can never be a tenant. */
30
+ export const AUTH_HOST_SLUG = "auth";
31
+ /**
32
+ * The subdomain the ORGANISATION's own surface is linked on:
33
+ * `www.<space domain>` — the bootstrap space's host in every server-built
34
+ * link (spaceUrl.ts) and in the panel's space switcher.
35
+ *
36
+ * Why a label and not the apex (design doc §6 said "root/www"): the apex is
37
+ * the one host of the family a deployment cannot count on owning — on
38
+ * production it is routinely aliased elsewhere (ours serves the dev tunnel),
39
+ * and a link built on it then lands the reader on ANOTHER instance. `www` is
40
+ * reserved below (so it resolves to the bootstrap space, never a tenant), it
41
+ * sits under the same wildcard vhost and certificate every space host needs,
42
+ * and it is inside the session cookie's `Domain=` family. The apex keeps
43
+ * WORKING as an entry point — it simply stops being what we hand out.
44
+ */
45
+ export const ORG_HOST_SLUG = "www";
46
+ export const RESERVED_SPACE_SLUGS = [
47
+ ORG_HOST_SLUG,
48
+ "api",
49
+ AUTH_HOST_SLUG,
50
+ "status",
51
+ "docs",
52
+ "admin",
53
+ "login",
54
+ // The model-key gateway's host (#1189): llm.<domain> is the LiteLLM
55
+ // inference endpoint on prod (the ALB routes its /v1/* before the panel),
56
+ // so no space may claim it.
57
+ "llm",
58
+ // The network-relay ingress (#1951).
59
+ RELAY_HOST_LABEL,
60
+ // The push relay (#2574): push.<domain> answers phones and every
61
+ // organisation's instance — never a space.
62
+ PUSH_RELAY_HOST_LABEL,
63
+ // The ACC preview gateway (#2926).
64
+ GATEWAY_HOST_LABEL,
65
+ ];
66
+ //# sourceMappingURL=reservedHostLabels.js.map