snow-flow 8.31.26 → 8.31.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "8.31.26",
3
+ "version": "8.31.27",
4
4
  "description": "ServiceNow development with SnowCode - 75+ LLM providers (Claude, GPT, Gemini, Llama, Mistral, DeepSeek, Groq, Ollama) • 393 Optimized Tools • 2 MCP Servers • Multi-agent orchestration • Use ANY AI coding assistant (ML tools moved to Enterprise)",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
@@ -1,8 +1,48 @@
1
1
  diff --git a/node_modules/@groeimetai/snow-code/src/cli/cmd/auth.ts b/node_modules/@groeimetai/snow-code/src/cli/cmd/auth.ts
2
- index ae91a87..832eab0 100644
2
+ index ce6bfbd..3d09618 100644
3
3
  --- a/node_modules/@groeimetai/snow-code/src/cli/cmd/auth.ts
4
4
  +++ b/node_modules/@groeimetai/snow-code/src/cli/cmd/auth.ts
5
- @@ -1992,6 +1992,39 @@ export const AuthLoginCommand = cmd({
5
+ @@ -1074,6 +1074,39 @@ export const AuthLoginCommand = cmd({
6
+ // Silently skip enterprise MCP configuration errors
7
+ }
8
+
9
+ + // 🔐 SYNC CREDENTIALS TO PORTAL (if provided)
10
+ + if (authData && authData.token && jiraBaseUrl && jiraEmail && jiraApiToken) {
11
+ + try {
12
+ + prompts.log.message("")
13
+ + prompts.log.step("Syncing credentials to portal...")
14
+ +
15
+ + const syncResponse = await fetch(`${enterpriseUrl}/api/credentials/store`, {
16
+ + method: "POST",
17
+ + headers: {
18
+ + "Content-Type": "application/json",
19
+ + "Authorization": `Bearer ${authData.token}`
20
+ + },
21
+ + body: JSON.stringify({
22
+ + service: "jira",
23
+ + username: jiraEmail,
24
+ + apiToken: jiraApiToken,
25
+ + instanceUrl: jiraBaseUrl
26
+ + })
27
+ + })
28
+ +
29
+ + const syncResult = await syncResponse.json()
30
+ +
31
+ + if (syncResponse.ok && syncResult.success) {
32
+ + prompts.log.success("✓ Jira credentials synced to portal")
33
+ + } else {
34
+ + prompts.log.warn("⚠ Credentials saved locally but sync to portal failed")
35
+ + }
36
+ + } catch (syncError: any) {
37
+ + // Silently continue - credentials are still saved locally
38
+ + prompts.log.warn("⚠ Credentials saved locally (portal sync unavailable)")
39
+ + }
40
+ + }
41
+ +
42
+ prompts.log.message("")
43
+ prompts.log.success("Enterprise configuration saved")
44
+ prompts.log.info("Credentials saved to .env file")
45
+ @@ -2067,6 +2100,39 @@ export const AuthLoginCommand = cmd({
6
46
  // Silently skip enterprise MCP configuration errors
7
47
  }
8
48
 
@@ -42,7 +82,7 @@ index ae91a87..832eab0 100644
42
82
  prompts.log.message("")
43
83
  prompts.log.success("Enterprise configuration saved")
44
84
  prompts.log.info("Credentials saved to .env file")
45
- @@ -2404,41 +2437,104 @@ export const AuthLoginCommand = cmd({
85
+ @@ -2479,41 +2545,104 @@ export const AuthLoginCommand = cmd({
46
86
  // Silently skip enterprise MCP configuration errors
47
87
  }
48
88