@primitive.ai/prim 0.1.0-alpha.30 → 0.1.0-alpha.31

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.
@@ -18,7 +18,10 @@ var UNBOUND_BUCKET = "_unbound";
18
18
  var JOURNAL_BASENAME = "journal.ndjson";
19
19
  function envSlug(apiUrl) {
20
20
  const slug = apiUrl.replace(/^https?:\/\//, "").replace(/[^a-zA-Z0-9._-]/g, "_").replace(/^_+|_+$/g, "").toLowerCase();
21
- return slug.length > 0 ? slug : "default";
21
+ if (slug.length === 0 || slug === "." || slug === "..") {
22
+ return "default";
23
+ }
24
+ return slug;
22
25
  }
23
26
  function currentEnvDir() {
24
27
  return join(JOURNAL_DIR, envSlug(getSiteUrl()));
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  appendMove,
4
4
  resolveOrg
5
- } from "../chunk-C4UYMR7X.js";
5
+ } from "../chunk-H4OR42TJ.js";
6
6
  import {
7
7
  toCommitMove
8
8
  } from "../chunk-7GHOFNJ2.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  appendMove,
4
4
  resolveOrg
5
- } from "../chunk-C4UYMR7X.js";
5
+ } from "../chunk-H4OR42TJ.js";
6
6
  import {
7
7
  scrubFromCwd
8
8
  } from "../chunk-6LAQVM26.js";
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  listBuckets,
19
19
  listFlushing,
20
20
  readMovesFromPath
21
- } from "./chunk-C4UYMR7X.js";
21
+ } from "./chunk-H4OR42TJ.js";
22
22
  import {
23
23
  HttpError,
24
24
  REFRESH_TOKEN_PATH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primitive.ai/prim",
3
- "version": "0.1.0-alpha.30",
3
+ "version": "0.1.0-alpha.31",
4
4
  "description": "CLI for Primitive's decision graph — passive decision capture, conflict gate, and team presence",
5
5
  "type": "module",
6
6
  "license": "MIT",