bsmnt 0.6.2 → 0.6.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "bsmnt",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "description": "CLI to scaffold basement projects and add integrations",
6
6
  "type": "module",
@@ -87,25 +87,22 @@ if (existing.status === 0) {
87
87
  );
88
88
  }
89
89
 
90
- // 5. Create from a complete JSON template piped via stdin (`-` first) so the key
91
- // stays off argv. Flags like --category reset the field set, and fields need an `id`.
90
+ // 5. Create the item. Category/title/tags must be flags (op ignores them in a
91
+ // piped template); the key goes in the stdin template (`-` first) so it stays
92
+ // off argv. The field needs an `id` or op drops it.
93
+ const args = ["item", "create", "-", "--category", "Secure Note", "--title", title];
94
+ if (tag) args.push("--tags", tag);
95
+ args.push("--vault", VAULT, "--format", "json");
92
96
  const template = {
93
- title,
94
- category: "SECURE_NOTE",
95
- ...(tag ? { tags: [tag] } : {}),
96
97
  fields: [
97
98
  { id: "private-key", type: "CONCEALED", label: "private-key", value: privateKey },
98
99
  ],
99
100
  };
100
- const created = spawnSync(
101
- "op",
102
- ["item", "create", "-", "--vault", VAULT, "--format", "json"],
103
- {
104
- input: JSON.stringify(template),
105
- encoding: "utf-8",
106
- stdio: ["pipe", "pipe", "inherit"],
107
- },
108
- );
101
+ const created = spawnSync("op", args, {
102
+ input: JSON.stringify(template),
103
+ encoding: "utf-8",
104
+ stdio: ["pipe", "pipe", "inherit"],
105
+ });
109
106
  if (created.status !== 0) fail("\nFailed to create the 1Password item.");
110
107
 
111
108
  // 6. Reference the item by id (stable; survives renames), falling back to title.
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "new-york",
4
+ "rsc": true,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "lib/styles/global.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true,
11
+ "prefix": ""
12
+ },
13
+ "aliases": {
14
+ "components": "@/components",
15
+ "utils": "@/lib/styles/cn",
16
+ "ui": "@/components/ui",
17
+ "lib": "@/lib",
18
+ "hooks": "@/lib/hooks"
19
+ },
20
+ "iconLibrary": "phosphor",
21
+ "registries": {
22
+ "@basement": "https://basement-registry.vercel.app/r/{name}.json"
23
+ }
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "new-york",
4
+ "rsc": true,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "lib/styles/global.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true,
11
+ "prefix": ""
12
+ },
13
+ "aliases": {
14
+ "components": "@/components",
15
+ "utils": "@/lib/styles/cn",
16
+ "ui": "@/components/ui",
17
+ "lib": "@/lib",
18
+ "hooks": "@/lib/hooks"
19
+ },
20
+ "iconLibrary": "phosphor",
21
+ "registries": {
22
+ "@basement": "https://basement-registry.vercel.app/r/{name}.json"
23
+ }
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "new-york",
4
+ "rsc": true,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "lib/styles/global.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true,
11
+ "prefix": ""
12
+ },
13
+ "aliases": {
14
+ "components": "@/components",
15
+ "utils": "@/lib/styles/cn",
16
+ "ui": "@/components/ui",
17
+ "lib": "@/lib",
18
+ "hooks": "@/lib/hooks"
19
+ },
20
+ "iconLibrary": "phosphor",
21
+ "registries": {
22
+ "@basement": "https://basement-registry.vercel.app/r/{name}.json"
23
+ }
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "new-york",
4
+ "rsc": true,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "lib/styles/global.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true,
11
+ "prefix": ""
12
+ },
13
+ "aliases": {
14
+ "components": "@/components",
15
+ "utils": "@/lib/styles/cn",
16
+ "ui": "@/components/ui",
17
+ "lib": "@/lib",
18
+ "hooks": "@/lib/hooks"
19
+ },
20
+ "iconLibrary": "phosphor",
21
+ "registries": {
22
+ "@basement": "https://basement-registry.vercel.app/r/{name}.json"
23
+ }
24
+ }