abap-local-client 1.2.0 → 1.3.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/config-manager.mjs +19 -2
- package/package.json +1 -1
- package/sso-sap-client.mjs +20 -14
package/config-manager.mjs
CHANGED
|
@@ -82,9 +82,26 @@ function dpapiDecrypt(base64Text) {
|
|
|
82
82
|
|
|
83
83
|
function defaultConfig() {
|
|
84
84
|
return {
|
|
85
|
-
mcpApiKey: '',
|
|
85
|
+
mcpApiKey: 'arc_de2fb7965d536a5911ffd7d9ba39d70c',
|
|
86
86
|
wsUrl: 'ws://localhost:8080',
|
|
87
|
-
systems: {
|
|
87
|
+
systems: {
|
|
88
|
+
S4D: {
|
|
89
|
+
authMode: 'snc',
|
|
90
|
+
connection: {
|
|
91
|
+
host: 'vhlbvs4dci.sap.piracanjuba.com.br',
|
|
92
|
+
sysnr: '00',
|
|
93
|
+
client: '100',
|
|
94
|
+
username: '',
|
|
95
|
+
saprouter: '',
|
|
96
|
+
sncPartnerName: 'p:CN=svc.ssoS4D',
|
|
97
|
+
sncMyName: '',
|
|
98
|
+
sncQop: '3',
|
|
99
|
+
sncLib: '',
|
|
100
|
+
language: 'PT',
|
|
101
|
+
},
|
|
102
|
+
enabled: true,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
88
105
|
enableArcanumFallback: false,
|
|
89
106
|
reconnectDelayMs: 5000,
|
|
90
107
|
};
|
package/package.json
CHANGED
package/sso-sap-client.mjs
CHANGED
|
@@ -687,23 +687,29 @@ if (command === 'setup' || command === 'config' || command === 'add-system' || c
|
|
|
687
687
|
process.exit(0);
|
|
688
688
|
}
|
|
689
689
|
|
|
690
|
-
// If no config exists,
|
|
690
|
+
// If no config exists, use built-in default (S4D Piracanjuba SNC + API key)
|
|
691
691
|
if (!config.isConfigInitialized()) {
|
|
692
692
|
console.log('╔═══════════════════════════════════════════════════════════╗');
|
|
693
|
-
console.log('║ SAP Local Client — First Run
|
|
693
|
+
console.log('║ SAP Local Client — First Run ║');
|
|
694
|
+
console.log('║ Using default config: S4D (Piracanjuba) via SNC ║');
|
|
694
695
|
console.log('╚═══════════════════════════════════════════════════════════╝');
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
696
|
+
|
|
697
|
+
// Save the default config so it persists across restarts
|
|
698
|
+
config.addOrUpdateSystem('S4D', {
|
|
699
|
+
authMode: 'snc',
|
|
700
|
+
connection: {
|
|
701
|
+
host: 'vhlbvs4dci.sap.piracanjuba.com.br',
|
|
702
|
+
sysnr: '00',
|
|
703
|
+
client: '100',
|
|
704
|
+
username: '',
|
|
705
|
+
sncPartnerName: 'p:CN=svc.ssoS4D',
|
|
706
|
+
sncQop: '3',
|
|
707
|
+
language: 'PT',
|
|
708
|
+
},
|
|
709
|
+
enabled: true,
|
|
710
|
+
});
|
|
711
|
+
config.setMcpApiKey('arc_de2fb7965d536a5911ffd7d9ba39d70c');
|
|
712
|
+
console.log(' Config saved. Edit with: node sso-sap-client.mjs help');
|
|
707
713
|
console.log('');
|
|
708
714
|
}
|
|
709
715
|
|