abapgit-agent 1.17.1 → 1.17.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.
package/README.md CHANGED
@@ -45,7 +45,7 @@ abapgit-agent import
45
45
  abapgit-agent pull
46
46
  ```
47
47
 
48
- See [Creating New ABAP Projects](INSTALL.md#creating-new-abap-projects) to set up a new ABAP repository with Claude Code integration.
48
+ See [Creating New ABAP Projects](docs/install.md#creating-new-abap-projects) to set up a new ABAP repository with Claude Code integration.
49
49
 
50
50
  ## CLI Commands
51
51
 
@@ -115,9 +115,9 @@ npm run test:integration
115
115
  | Topic | File |
116
116
  |-------|------|
117
117
  | Full Documentation | [https://sylvoscai.github.io/abapgit-agent/](https://sylvoscai.github.io/abapgit-agent/) |
118
- | Installation & Setup | [INSTALL.md](INSTALL.md) |
118
+ | Installation & Setup | [docs/install.md](docs/install.md) |
119
119
  | All Commands Overview | [docs/commands.md](docs/commands.md) |
120
- | REST API Reference | [API.md](API.md) |
120
+ | REST API Reference | [docs/api.md](docs/api.md) |
121
121
 
122
122
  ## Dependent Projects
123
123
 
@@ -63,5 +63,14 @@ User asks to create a probe class
63
63
 
64
64
  ### When `disableProbeClasses = true` and `scratchWorkspace` is NOT configured
65
65
 
66
- Refuse and tell the user to configure `scratchWorkspace` in `.abapGitAgent`.
67
- → See `docs/run-command.md` (Scratch Workspace section) for setup instructions.
66
+ Refuse and tell the user to configure `scratchWorkspace` in `.abapGitAgent`:
67
+
68
+ ```json
69
+ {
70
+ "scratchWorkspace": {
71
+ "path": "/absolute/path/to/scratch-repo"
72
+ }
73
+ }
74
+ ```
75
+
76
+ The path must point to a separate git repo initialized with `abapgit-agent init --package <SCRATCH_PACKAGE>`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abapgit-agent",
3
- "version": "1.17.1",
3
+ "version": "1.17.2",
4
4
  "description": "ABAP Git Agent - Pull and activate ABAP code via abapGit from any git repository",
5
5
  "files": [
6
6
  "bin/",
@@ -129,7 +129,7 @@ Usage:
129
129
 
130
130
  Description:
131
131
  Initialize local repository configuration.
132
- Creates .abapGitAgent, .abapgit.xml, .gitignore, CLAUDE.md, and guidelines folder.
132
+ Creates .abapGitAgent, .abapgit-agent.json, .abapgit.xml, .gitignore, CLAUDE.md, and guidelines folder.
133
133
 
134
134
  Options:
135
135
  --package <PACKAGE> ABAP package name (required)
@@ -562,11 +562,42 @@ Uncomment and edit the rows that differ from the defaults in \`guidelines/object
562
562
  console.log(`✅ .abapgit.xml already exists, skipped`);
563
563
  }
564
564
 
565
+ // Create .abapgit-agent.json with default values (team config, checked into git)
566
+ const projectConfigPath = pathModule.join(process.cwd(), '.abapgit-agent.json');
567
+ if (!fs.existsSync(projectConfigPath)) {
568
+ const projectConfig = {
569
+ project: {
570
+ name: packageName,
571
+ description: ''
572
+ },
573
+ safeguards: {
574
+ requireFilesForPull: false,
575
+ disablePull: false,
576
+ disableRun: false,
577
+ disableImport: false,
578
+ requireImportMessage: false,
579
+ disableProbeClasses: false
580
+ },
581
+ conflictDetection: {
582
+ mode: 'abort'
583
+ }
584
+ };
585
+ try {
586
+ fs.writeFileSync(projectConfigPath, JSON.stringify(projectConfig, null, 2) + '\n');
587
+ console.log(`✅ Created .abapgit-agent.json (team config — commit this to git)`);
588
+ } catch (error) {
589
+ console.error(`Error creating .abapgit-agent.json: ${error.message}`);
590
+ }
591
+ } else {
592
+ console.log(`✅ .abapgit-agent.json already exists, skipped`);
593
+ }
594
+
565
595
  console.log(`
566
596
  📋 Next steps:
567
597
  1. Edit .abapGitAgent with your ABAP credentials (host, user, password)
568
- 2. Run 'abapgit-agent create --import' to create online repository
569
- 3. Run 'abapgit-agent pull' to activate objects
598
+ 2. Review .abapgit-agent.json and commit it to git (team settings)
599
+ 3. Run 'abapgit-agent create --import' to create online repository
600
+ 4. Run 'abapgit-agent pull' to activate objects
570
601
 
571
602
  💡 Tips:
572
603
  • Only guidelines/objects.local.md needs to live in your repo.
@@ -215,4 +215,4 @@ npm test -- tests/unit/backgroundJobPoller.test.js
215
215
 
216
216
  - [Background Job Architecture](../../docs/architecture/README.md) - Complete architecture documentation
217
217
  - [Import Command](../commands/import.js) - Reference implementation
218
- - [API Documentation](../../API.md) - REST API for async commands
218
+ - [API Documentation](../../docs/api.md) - REST API for async commands