@lumenflow/cli 5.0.0 → 5.0.2

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.
@@ -190,6 +190,9 @@ tools:
190
190
  - type: path
191
191
  pattern: .agent-runtime/**
192
192
  access: read
193
+ - type: path
194
+ pattern: .agent-runtime/**
195
+ access: write
193
196
  required_approvals: []
194
197
  input_schema:
195
198
  type: object
@@ -208,6 +211,9 @@ tools:
208
211
  - type: path
209
212
  pattern: .agent-runtime/**
210
213
  access: read
214
+ - type: path
215
+ pattern: .agent-runtime/**
216
+ access: write
211
217
  required_approvals:
212
218
  - agent-runtime:remote_control
213
219
  input_schema:
@@ -227,6 +233,9 @@ tools:
227
233
  - type: path
228
234
  pattern: .agent-runtime/**
229
235
  access: read
236
+ - type: path
237
+ pattern: .agent-runtime/**
238
+ access: write
230
239
  required_approvals:
231
240
  - agent-runtime:remote_control
232
241
  input_schema:
@@ -246,6 +255,9 @@ tools:
246
255
  - type: path
247
256
  pattern: .agent-runtime/**
248
257
  access: read
258
+ - type: path
259
+ pattern: .agent-runtime/**
260
+ access: write
249
261
  required_approvals:
250
262
  - agent-runtime:remote_control
251
263
  input_schema:
@@ -265,6 +277,9 @@ tools:
265
277
  - type: path
266
278
  pattern: .agent-runtime/**
267
279
  access: read
280
+ - type: path
281
+ pattern: .agent-runtime/**
282
+ access: write
268
283
  required_approvals: []
269
284
  input_schema:
270
285
  type: object
@@ -283,6 +298,9 @@ tools:
283
298
  - type: path
284
299
  pattern: .agent-runtime/**
285
300
  access: read
301
+ - type: path
302
+ pattern: .agent-runtime/**
303
+ access: write
286
304
  required_approvals: []
287
305
  input_schema:
288
306
  type: object
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumenflow/packs-agent-runtime",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "Agent runtime pack scaffold for LumenFlow — governed model-turn execution, pack config, and provider capability baselines",
5
5
  "keywords": [
6
6
  "lumenflow",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumenflow/packs-sidekick",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "Sidekick personal assistant pack for LumenFlow — 16 tools for task management, typed memory, channels, routines, and audit",
5
5
  "keywords": [
6
6
  "lumenflow",
@@ -31,6 +31,51 @@ export type {
31
31
  } from './manifest-schema.js';
32
32
 
33
33
  const FULL_WORKSPACE_SCOPE_PATTERN = '**';
34
+ const SOFTWARE_DELIVERY_WRITE_DIRECTORY_PATTERNS = [
35
+ '.changeset/**',
36
+ '.claude/**',
37
+ '.codex/**',
38
+ '.cursor/**',
39
+ '.github/**',
40
+ '.git/**',
41
+ '.husky/**',
42
+ '.lumenflow/**',
43
+ '.vercel/**',
44
+ '.windsurf/**',
45
+ 'apps/**',
46
+ 'docs/**',
47
+ 'packages/**',
48
+ 'scripts/**',
49
+ 'tools/**',
50
+ 'worktrees/**',
51
+ ] as const;
52
+ const SOFTWARE_DELIVERY_ROOT_WRITE_FILE_PATTERNS = [
53
+ '.gitignore',
54
+ '.npmrc',
55
+ 'LUMENFLOW.md',
56
+ 'README.md',
57
+ 'package.json',
58
+ 'pnpm-lock.yaml',
59
+ 'pnpm-workspace.yaml',
60
+ 'turbo.json',
61
+ 'workspace.yaml',
62
+ '*.cjs',
63
+ '*.js',
64
+ '*.json',
65
+ '*.md',
66
+ '*.mjs',
67
+ '*.sh',
68
+ '*.toml',
69
+ '*.ts',
70
+ '*.tsx',
71
+ '*.txt',
72
+ '*.yaml',
73
+ '*.yml',
74
+ ] as const;
75
+ const SOFTWARE_DELIVERY_WRITE_SCOPE_PATTERNS = [
76
+ ...SOFTWARE_DELIVERY_WRITE_DIRECTORY_PATTERNS,
77
+ ...SOFTWARE_DELIVERY_ROOT_WRITE_FILE_PATTERNS,
78
+ ] as const;
34
79
  const GIT_STATUS_TOOL_ENTRY = 'tool-impl/git-tools.ts#gitStatusTool';
35
80
  const WU_STATUS_TOOL_ENTRY = 'tool-impl/wu-lifecycle-tools.ts#wuStatusTool';
36
81
  const WU_CREATE_TOOL_ENTRY = 'tool-impl/wu-lifecycle-tools.ts#wuCreateTool';
@@ -354,17 +399,23 @@ export interface SoftwareDeliveryMigrationScorecard {
354
399
  realHandlerEntries: number;
355
400
  }
356
401
 
402
+ function createPathScopes(
403
+ patterns: readonly string[],
404
+ access: (typeof TOOL_SCOPE_ACCESS)[keyof typeof TOOL_SCOPE_ACCESS],
405
+ ): PathScope[] {
406
+ return patterns.map((pattern) => ({
407
+ type: TOOL_SCOPE_TYPES.PATH,
408
+ pattern,
409
+ access,
410
+ }));
411
+ }
412
+
357
413
  function requiredScopesForPermission(permission: ToolPermission): PathScope[] {
358
- return [
359
- {
360
- type: TOOL_SCOPE_TYPES.PATH,
361
- pattern: FULL_WORKSPACE_SCOPE_PATTERN,
362
- access:
363
- permission === TOOL_PERMISSION_VALUES.READ
364
- ? TOOL_SCOPE_ACCESS.READ
365
- : TOOL_SCOPE_ACCESS.WRITE,
366
- },
367
- ];
414
+ if (permission === TOOL_PERMISSION_VALUES.READ) {
415
+ return createPathScopes([FULL_WORKSPACE_SCOPE_PATTERN], TOOL_SCOPE_ACCESS.READ);
416
+ }
417
+
418
+ return createPathScopes(SOFTWARE_DELIVERY_WRITE_SCOPE_PATTERNS, TOOL_SCOPE_ACCESS.WRITE);
368
419
  }
369
420
 
370
421
  /**