@lkangd/cc-env 1.0.0 → 1.1.1

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.
@@ -1,3 +1,8 @@
1
1
  {
2
- "env": {}
2
+ "env": {},
3
+ "permissions": {
4
+ "allow": [
5
+ "Bash(python3 *)"
6
+ ]
7
+ }
3
8
  }
package/CHANGELOG.md ADDED
@@ -0,0 +1,71 @@
1
+ # Changelog
2
+
3
+ ## 1.1.1 (2026-04-27)
4
+
5
+ ### Code Refactoring
6
+ * flatten preset subcommands to top-level CLI commands
7
+
8
+ ## 1.1.0 (2026-04-27)
9
+
10
+ ### Features
11
+ * add CLI descriptions and improve error formatting
12
+ * add env source and merge services
13
+ * add env validation and masking helpers
14
+ * add gradient ASCII art banner to CLI startup
15
+ * add initial project structure with .gitignore, package.json, and documentation
16
+ * add interactive preset creation flow
17
+ * add interactive preset delete with confirmation flow
18
+ * add interactive preset list UI with project/global source display
19
+ * add non-interactive preset creation
20
+ * add output and preset inspection commands
21
+ * add preset and history storage services
22
+ * add restore flow and command
23
+ * add runtime execution and dry-run
24
+ * add settings migration flow
25
+ * add shebang to CLI entry point
26
+ * auto-add .cc-env to .gitignore on project preset create and remove config service
27
+ * complete cc-env v1 command wiring
28
+ * migrate Claude env into managed shell blocks
29
+ * redesign run command as Claude launcher with interactive preset selection
30
+ * scope package as @lkangd/cc-env for public npm publish
31
+ * support project-level Claude settings in init and restore
32
+
33
+ ### Bug Fixes
34
+ * align preset create step progression
35
+ * complete interactive init and restore flows
36
+ * harden interactive preset create flow
37
+ * harden project env first-write handling
38
+ * harden restore flow selection
39
+ * harden run command validation and preview
40
+ * harden storage writes and preset deletion
41
+ * normalize preset create input errors
42
+ * resolve TypeScript exactOptionalPropertyTypes errors in preset create
43
+ * simplify interactive preset create flow
44
+ * support top-level run flags
45
+ * wire preset management commands and outputs
46
+
47
+ ### Code Refactoring
48
+ * align persisted history records with schema
49
+ * extract shared EnvSummary component and replace stdout writes with ink rendering
50
+ * merge preset list and show into single interactive show command
51
+ * remove debug command and runtime env service
52
+ * remove preset edit command and add .cc-env/ to gitignore
53
+ * remove proper-lockfile in favor of atomic writes
54
+ * reorder merge params to match priority and use ink in debug
55
+ * rewrite preset-create-app with full interactive wizard UI
56
+ * rewrite preset-create-flow state machine for full interactive wizard
57
+ * simplify preset create command to thin renderFlow wrapper
58
+ * use sources array in history schema and improve interactive UI
59
+
60
+ ### Documentation
61
+ * add preset create interactive refactor design spec
62
+ * add preset create interactive refactor implementation plan
63
+
64
+ ### Other Changes
65
+ * merge: integrate Claude shell env migration
66
+ * fix restore typing against persisted history schema
67
+ * fix signal exits and history record validation
68
+ * fix restore flow state invariants and CLI wiring
69
+ * fix interactive preset create flow wiring
70
+ * fix schema timestamp validation and secret masking
71
+ * fix package dependency versions for task 1 compliance
package/dist/cli.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import React from 'react';
2
3
  import { render } from 'ink';
3
4
  import { join } from 'node:path';
@@ -182,8 +183,7 @@ program
182
183
  })({
183
184
  yes: options.yes
184
185
  }));
185
- const presetCommand = program.command('preset').description('Manage environment presets');
186
- presetCommand
186
+ program
187
187
  .command('show')
188
188
  .description('List and view all presets')
189
189
  .action(createShowPresetsCommand({
@@ -194,7 +194,7 @@ presetCommand
194
194
  await app.waitUntilExit();
195
195
  }
196
196
  }));
197
- presetCommand
197
+ program
198
198
  .command('delete')
199
199
  .description('Delete a saved preset')
200
200
  .action(createDeletePresetCommand({
@@ -212,7 +212,7 @@ presetCommand
212
212
  return result;
213
213
  }
214
214
  }));
215
- presetCommand
215
+ program
216
216
  .command('create')
217
217
  .description('Create a new environment preset')
218
218
  .action(() => createPresetCreateCommand({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lkangd/cc-env",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/lkangd/cc-env#readme",
6
6
  "bugs": {
package/src/cli.ts CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  import React from 'react'
2
4
  import { render } from 'ink'
3
5
  import { join } from 'node:path'
@@ -233,8 +235,7 @@ program
233
235
  })
234
236
  )
235
237
 
236
- const presetCommand = program.command('preset').description('Manage environment presets')
237
- presetCommand
238
+ program
238
239
  .command('show')
239
240
  .description('List and view all presets')
240
241
  .action(
@@ -247,7 +248,8 @@ presetCommand
247
248
  }
248
249
  })
249
250
  )
250
- presetCommand
251
+
252
+ program
251
253
  .command('delete')
252
254
  .description('Delete a saved preset')
253
255
  .action(
@@ -269,7 +271,8 @@ presetCommand
269
271
  }
270
272
  })
271
273
  )
272
- presetCommand
274
+
275
+ program
273
276
  .command('create')
274
277
  .description('Create a new environment preset')
275
278
  .action(() =>