@sweny-ai/core 0.1.5 → 0.1.6

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/dist/cli/main.js CHANGED
@@ -106,6 +106,8 @@ function buildCredentialMap() {
106
106
  "NR_API_KEY",
107
107
  "NR_REGION",
108
108
  "BETTERSTACK_API_TOKEN",
109
+ "BETTERSTACK_SOURCE_ID",
110
+ "BETTERSTACK_TABLE_NAME",
109
111
  "SLACK_BOT_TOKEN",
110
112
  "SLACK_TEAM_ID",
111
113
  "NOTION_TOKEN",
@@ -295,6 +297,13 @@ triageCmd.action(async (options) => {
295
297
  issueOverride: config.issueOverride,
296
298
  noveltyMode: config.noveltyMode,
297
299
  reviewMode: config.reviewMode,
300
+ observabilityProvider: config.observabilityProvider,
301
+ ...(config.observabilityCredentials.sourceId && {
302
+ betterstackSourceId: config.observabilityCredentials.sourceId,
303
+ }),
304
+ ...(config.observabilityCredentials.tableName && {
305
+ betterstackTableName: config.observabilityCredentials.tableName,
306
+ }),
298
307
  };
299
308
  try {
300
309
  const results = await execute(triageWorkflow, workflowInput, {
@@ -519,6 +528,13 @@ export async function workflowRunAction(file, options) {
519
528
  baseBranch: config.baseBranch,
520
529
  prLabels: config.prLabels,
521
530
  additionalInstructions: config.additionalInstructions,
531
+ observabilityProvider: config.observabilityProvider,
532
+ ...(config.observabilityCredentials.sourceId && {
533
+ betterstackSourceId: config.observabilityCredentials.sourceId,
534
+ }),
535
+ ...(config.observabilityCredentials.tableName && {
536
+ betterstackTableName: config.observabilityCredentials.tableName,
537
+ }),
522
538
  };
523
539
  try {
524
540
  const results = await execute(workflow, workflowInput, {
@@ -28,6 +28,8 @@ export const triageWorkflow = {
28
28
  2. **Source control**: Check recent commits, pull requests, and deploys that might be related.
29
29
  3. **Issue tracker**: Search for similar past issues or known problems.
30
30
 
31
+ If input.betterstackSourceId or input.betterstackTableName is provided, use those to scope your BetterStack log queries to the correct source.
32
+
31
33
  Be thorough — the investigation step depends on complete context. Use every tool available to you.`,
32
34
  skills: ["github", "sentry", "datadog", "linear"],
33
35
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sweny-ai/core",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sweny": "./dist/cli/main.js"