@domicile-desktop/system-apps 0.0.0-alpha-9478a19f9ca2 → 0.0.0-alpha-710b2dd1d825

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/package.json +2 -2
  2. package/src/bookmark.ts +11 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@cprussin/option-result": "^2.0.1",
4
- "@domicile-desktop/sdk": "0.0.0-alpha-9478a19f9ca2",
4
+ "@domicile-desktop/sdk": "0.0.0-alpha-710b2dd1d825",
5
5
  "zod": "^4.5.4"
6
6
  },
7
7
  "description": "Installed applications and bookmarks for a Domicile shell's launcher, read through @domicile-desktop/sdk/system.",
@@ -56,5 +56,5 @@
56
56
  "test:unit": "bun test"
57
57
  },
58
58
  "type": "module",
59
- "version": "0.0.0-alpha-9478a19f9ca2"
59
+ "version": "0.0.0-alpha-710b2dd1d825"
60
60
  }
package/src/bookmark.ts CHANGED
@@ -11,6 +11,17 @@ import { ranked } from "./ranked";
11
11
  const bookmarkSchema = z.strictObject({
12
12
  /** The row's label, which queries match. */
13
13
  name: z.string(),
14
+ /**
15
+ * The id of the browser profile it opens in, one of the config's
16
+ * `browser.profiles`. By default, the one its site opens in.
17
+ */
18
+ profile: z
19
+ .string()
20
+ .regex(
21
+ /^[a-z0-9-]+$/,
22
+ "a browser profile id is lowercase letters, digits and -",
23
+ )
24
+ .optional(),
14
25
  url: z
15
26
  .string()
16
27
  .regex(/^https?:\/\/./i, "a bookmark's URL must be http or https"),