maiass 5.9.1 → 5.9.5

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.
Files changed (2) hide show
  1. package/lib/devlog.js +12 -5
  2. package/package.json +1 -1
package/lib/devlog.js CHANGED
@@ -38,9 +38,13 @@ function isDevlogAvailable() {
38
38
  */
39
39
  function extractDevlogContext(gitInfo) {
40
40
  const remote = gitInfo?.remote || {};
41
- const project = remote.repo || process.env.MAIASS_DEVLOG_PROJECT || 'unknown-project';
42
- const client = remote.owner || process.env.MAIASS_DEVLOG_CLIENT || 'unknown-client';
41
+ const project = process.env.MAIASS_DEVLOG_PROJECT || remote.repo || 'unknown-project';
42
+ const client = process.env.MAIASS_DEVLOG_CLIENT || remote.owner || 'unknown-client';
43
+ const subClient = process.env.MAIASS_DEVLOG_SUBCLIENT || client;
43
44
  const jiraTicket = gitInfo?.jiraTicket || process.env.MAIASS_DEVLOG_JIRA_TICKET || 'no-ticket';
45
+
46
+
47
+
44
48
 
45
49
  return { project, client, jiraTicket };
46
50
  }
@@ -60,6 +64,7 @@ export function logThis(message, options = {}) {
60
64
  project = process.env.MAIASS_DEVLOG_PROJECT || 'unknown-project',
61
65
  client = process.env.MAIASS_DEVLOG_CLIENT || 'unknown-client',
62
66
  jiraTicket = process.env.MAIASS_DEVLOG_JIRA_TICKET || 'no-ticket',
67
+ subClient = process.env.MAIASS_DEVLOG_SUBCLIENT || client,
63
68
  type = 'c'
64
69
  } = options;
65
70
 
@@ -78,7 +83,7 @@ export function logThis(message, options = {}) {
78
83
  const escapedMessage = message.replace(/"/g, '\\"').replace(/\n/g, '; ');
79
84
 
80
85
  // Execute devlog.sh with the same parameters as the bash version (async, non-blocking)
81
- const command = `devlog.sh "${escapedMessage}" "?" "${project}" "${client}" "${jiraTicket}"`;
86
+ const command = `devlog.sh "${escapedMessage}" "?" "${project}" "${client}" "${jiraTicket}" "${subClient}"`;
82
87
 
83
88
  logger.debug(`Executing devlog.sh command: ${command}`);
84
89
 
@@ -118,7 +123,8 @@ export function logCommit(commitMessage, gitInfo) {
118
123
  type: 'c', // 'c' for commit
119
124
  project: context.project,
120
125
  client: context.client,
121
- jiraTicket: context.jiraTicket
126
+ jiraTicket: context.jiraTicket,
127
+ subClient: context.subClient
122
128
  };
123
129
 
124
130
  return logThis(cleanMessage, options);
@@ -142,7 +148,8 @@ export function logMerge(sourceBranch, targetBranch, gitInfo, operation = 'Merge
142
148
  type: 'c', // 'c' for commit/merge
143
149
  project: context.project,
144
150
  client: context.client,
145
- jiraTicket: context.jiraTicket
151
+ jiraTicket: context.jiraTicket,
152
+ subClient: context.subClient
146
153
  };
147
154
 
148
155
  return logThis(message, options);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maiass",
3
3
  "type": "module",
4
- "version": "5.9.1",
4
+ "version": "5.9.5",
5
5
  "description": "MAIASS - Modular AI-Augmented Semantic Scribe - Intelligent Git workflow automation",
6
6
  "main": "maiass.mjs",
7
7
  "bin": {