@vellumai/assistant 0.12.1-dev.202609142113.d1590bc → 0.12.1-dev.202609142215.1dfc46d

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": "@vellumai/assistant",
3
- "version": "0.12.1-dev.202609142113.d1590bc",
3
+ "version": "0.12.1-dev.202609142215.1dfc46d",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -31,10 +31,18 @@ test("preserves unrelated policies and does not rewrite on repeated startup", ()
31
31
  const otherPath = join(directory, "organization.json");
32
32
  const unrelated = '{ "HomepageLocation": "https://example.com" }\n';
33
33
  writeFileSync(otherPath, unrelated);
34
- writeFileSync(path, JSON.stringify({ DownloadRestrictions: 1 }));
34
+ writeFileSync(
35
+ path,
36
+ JSON.stringify({
37
+ CommandLineFlagSecurityWarningsEnabled: false,
38
+ DownloadRestrictions: 1,
39
+ }),
40
+ );
41
+ const original = statSync(path);
35
42
 
36
43
  writeDesktopChromePolicy(directory);
37
44
  const content = readFileSync(path, "utf8");
45
+ expect(statSync(path).ino).not.toBe(original.ino);
38
46
  expect(JSON.parse(content).DownloadRestrictions).toBe(1);
39
47
  expect(readFileSync(otherPath, "utf8")).toBe(unrelated);
40
48
  expect(readdirSync(directory).sort()).toEqual([
@@ -22,12 +22,17 @@ export function writeDesktopChromePolicy(policyDir: string): void {
22
22
  throw err;
23
23
  }
24
24
  }
25
- if (policy.CommandLineFlagSecurityWarningsEnabled === false) {
25
+ if (
26
+ policy.CommandLineFlagSecurityWarningsEnabled === false &&
27
+ policy.PasswordManagerEnabled === false
28
+ ) {
26
29
  return;
27
30
  }
28
31
 
29
32
  // This suppresses command-line warnings; Chrome's sandbox stays unchanged.
30
33
  policy.CommandLineFlagSecurityWarningsEnabled = false;
34
+ // Suppress save prompts while keeping previously saved passwords usable.
35
+ policy.PasswordManagerEnabled = false;
31
36
  mkdirSync(policyDir, { recursive: true });
32
37
  const staging = mkdtempSync(join(policyDir, ".vellum-desktop-"));
33
38
  try {