ccprofiles-core 0.3.0 → 0.4.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/dist/adopt.js CHANGED
@@ -33,6 +33,7 @@ export function buildManifest(live, platform) {
33
33
  links,
34
34
  mcp: Object.keys(lp.mcpServers).sort(),
35
35
  settingsEnv: lp.settingsEnv,
36
+ skipPermissions: false,
36
37
  };
37
38
  });
38
39
  return { version: 1, hub, profiles, mcpServers };
@@ -41,6 +41,7 @@ declare const ProfileSchema: z.ZodObject<{
41
41
  links: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
42
42
  mcp: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
43
43
  settingsEnv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
44
+ skipPermissions: z.ZodDefault<z.ZodBoolean>;
44
45
  }, "strip", z.ZodTypeAny, {
45
46
  env: Record<string, string>;
46
47
  name: string;
@@ -50,6 +51,7 @@ declare const ProfileSchema: z.ZodObject<{
50
51
  links: Record<string, string>;
51
52
  mcp: string[];
52
53
  settingsEnv: Record<string, string>;
54
+ skipPermissions: boolean;
53
55
  }, {
54
56
  name: string;
55
57
  dir: string;
@@ -59,6 +61,7 @@ declare const ProfileSchema: z.ZodObject<{
59
61
  links?: Record<string, string> | undefined;
60
62
  mcp?: string[] | undefined;
61
63
  settingsEnv?: Record<string, string> | undefined;
64
+ skipPermissions?: boolean | undefined;
62
65
  }>;
63
66
  declare const ManifestSchema: z.ZodObject<{
64
67
  version: z.ZodLiteral<1>;
@@ -72,6 +75,7 @@ declare const ManifestSchema: z.ZodObject<{
72
75
  links: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
73
76
  mcp: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
74
77
  settingsEnv: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
78
+ skipPermissions: z.ZodDefault<z.ZodBoolean>;
75
79
  }, "strip", z.ZodTypeAny, {
76
80
  env: Record<string, string>;
77
81
  name: string;
@@ -81,6 +85,7 @@ declare const ManifestSchema: z.ZodObject<{
81
85
  links: Record<string, string>;
82
86
  mcp: string[];
83
87
  settingsEnv: Record<string, string>;
88
+ skipPermissions: boolean;
84
89
  }, {
85
90
  name: string;
86
91
  dir: string;
@@ -90,6 +95,7 @@ declare const ManifestSchema: z.ZodObject<{
90
95
  links?: Record<string, string> | undefined;
91
96
  mcp?: string[] | undefined;
92
97
  settingsEnv?: Record<string, string> | undefined;
98
+ skipPermissions?: boolean | undefined;
93
99
  }>, "many">;
94
100
  mcpServers: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
95
101
  command: z.ZodOptional<z.ZodString>;
@@ -134,6 +140,7 @@ declare const ManifestSchema: z.ZodObject<{
134
140
  links: Record<string, string>;
135
141
  mcp: string[];
136
142
  settingsEnv: Record<string, string>;
143
+ skipPermissions: boolean;
137
144
  }[];
138
145
  mcpServers: Record<string, z.objectOutputType<{
139
146
  command: z.ZodOptional<z.ZodString>;
@@ -154,6 +161,7 @@ declare const ManifestSchema: z.ZodObject<{
154
161
  links?: Record<string, string> | undefined;
155
162
  mcp?: string[] | undefined;
156
163
  settingsEnv?: Record<string, string> | undefined;
164
+ skipPermissions?: boolean | undefined;
157
165
  }[];
158
166
  mcpServers: Record<string, z.objectInputType<{
159
167
  command: z.ZodOptional<z.ZodString>;
package/dist/manifest.js CHANGED
@@ -23,6 +23,7 @@ const ProfileSchema = z.object({
23
23
  links: z.record(z.string()).default({}),
24
24
  mcp: z.array(z.string()).default([]),
25
25
  settingsEnv: z.record(z.string()).default({}),
26
+ skipPermissions: z.boolean().default(false),
26
27
  });
27
28
  const ManifestSchema = z.object({
28
29
  version: z.literal(1),
package/dist/rcblock.js CHANGED
@@ -23,7 +23,8 @@ function renderPosix(pr, p) {
23
23
  ? ` export ${k}="$(ccprofiles secrets get ${v.slice(SECRET_PREFIX.length)})"`
24
24
  : ` export ${k}="${escapePosix(v)}"`);
25
25
  }
26
- lines.push(` CLAUDE_CONFIG_DIR="${profileDirExpr(pr, p)}" claude "$@"`, '}');
26
+ const flag = pr.skipPermissions ? ' --dangerously-skip-permissions' : '';
27
+ lines.push(` CLAUDE_CONFIG_DIR="${profileDirExpr(pr, p)}" claude${flag} "$@"`, '}');
27
28
  return lines.join('\n');
28
29
  }
29
30
  function renderPwsh(pr, p) {
@@ -33,7 +34,8 @@ function renderPwsh(pr, p) {
33
34
  ? ` $env:${k} = (ccprofiles secrets get ${v.slice(SECRET_PREFIX.length)})`
34
35
  : ` $env:${k} = "${escapePwsh(v)}"`);
35
36
  }
36
- lines.push(` $env:CLAUDE_CONFIG_DIR = "${profileDirExpr(pr, p)}"`, ' claude @args', '}');
37
+ const flag = pr.skipPermissions ? ' --dangerously-skip-permissions' : '';
38
+ lines.push(` $env:CLAUDE_CONFIG_DIR = "${profileDirExpr(pr, p)}"`, ` claude${flag} @args`, '}');
37
39
  return lines.join('\n');
38
40
  }
39
41
  export function renderRcBlock(m, p) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccprofiles-core",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Core library for ccprofiles — discovery, manifest, secrets, apply, and LAN sync for Claude Code multi-account setups",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",