@websitelabs/n8n-nodes-software-teams 0.12.3
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/ARCHITECTURE.md +1232 -0
- package/CONTRACT.md +450 -0
- package/README.md +491 -0
- package/dist/agents/software-teams-architect.md +155 -0
- package/dist/agents/software-teams-backend.md +93 -0
- package/dist/agents/software-teams-codebase-mapper.md +67 -0
- package/dist/agents/software-teams-committer.md +90 -0
- package/dist/agents/software-teams-debugger.md +91 -0
- package/dist/agents/software-teams-dev-planner.md +175 -0
- package/dist/agents/software-teams-devops.md +92 -0
- package/dist/agents/software-teams-feedback-learner.md +118 -0
- package/dist/agents/software-teams-frontend.md +107 -0
- package/dist/agents/software-teams-game-ai-engineer.md +179 -0
- package/dist/agents/software-teams-game-art-pipeline.md +180 -0
- package/dist/agents/software-teams-game-designer.md +245 -0
- package/dist/agents/software-teams-game-devops.md +134 -0
- package/dist/agents/software-teams-game-engineer.md +146 -0
- package/dist/agents/software-teams-game-producer.md +288 -0
- package/dist/agents/software-teams-game-qa.md +297 -0
- package/dist/agents/software-teams-game-tech-artist.md +186 -0
- package/dist/agents/software-teams-head-engineering.md +37 -0
- package/dist/agents/software-teams-perf-analyst.md +124 -0
- package/dist/agents/software-teams-phase-researcher.md +75 -0
- package/dist/agents/software-teams-plan-checker.md +87 -0
- package/dist/agents/software-teams-planner.md +456 -0
- package/dist/agents/software-teams-pr-feedback.md +127 -0
- package/dist/agents/software-teams-pr-generator.md +107 -0
- package/dist/agents/software-teams-producer.md +203 -0
- package/dist/agents/software-teams-product-lead.md +51 -0
- package/dist/agents/software-teams-programmer.md +126 -0
- package/dist/agents/software-teams-qa-tester.md +165 -0
- package/dist/agents/software-teams-quality.md +153 -0
- package/dist/agents/software-teams-researcher.md +151 -0
- package/dist/agents/software-teams-security.md +126 -0
- package/dist/agents/software-teams-ux-designer.md +92 -0
- package/dist/agents/software-teams-verifier.md +87 -0
- package/dist/credentials/SoftwareTeamsApi.credentials.d.ts +18 -0
- package/dist/credentials/SoftwareTeamsApi.credentials.d.ts.map +1 -0
- package/dist/credentials/SoftwareTeamsApi.credentials.js +110 -0
- package/dist/credentials/SoftwareTeamsApi.credentials.js.map +1 -0
- package/dist/credentials/softwareTeamsApi.svg +14 -0
- package/dist/nodes/SoftwareTeamsAgent/SoftwareTeamsAgent.node.d.ts +23 -0
- package/dist/nodes/SoftwareTeamsAgent/SoftwareTeamsAgent.node.d.ts.map +1 -0
- package/dist/nodes/SoftwareTeamsAgent/SoftwareTeamsAgent.node.js +308 -0
- package/dist/nodes/SoftwareTeamsAgent/SoftwareTeamsAgent.node.js.map +1 -0
- package/dist/nodes/SoftwareTeamsAgent/softwareTeamsAgent.svg +18 -0
- package/dist/nodes/SoftwareTeamsCleanup/SoftwareTeamsCleanup.node.d.ts +24 -0
- package/dist/nodes/SoftwareTeamsCleanup/SoftwareTeamsCleanup.node.d.ts.map +1 -0
- package/dist/nodes/SoftwareTeamsCleanup/SoftwareTeamsCleanup.node.js +2635 -0
- package/dist/nodes/SoftwareTeamsCleanup/SoftwareTeamsCleanup.node.js.map +1 -0
- package/dist/nodes/SoftwareTeamsCleanup/SoftwareTeamsCleanup.svg +6 -0
- package/dist/nodes/SoftwareTeamsFinaliser/SoftwareTeamsFinaliser.node.d.ts +6 -0
- package/dist/nodes/SoftwareTeamsFinaliser/SoftwareTeamsFinaliser.node.d.ts.map +1 -0
- package/dist/nodes/SoftwareTeamsFinaliser/SoftwareTeamsFinaliser.node.js +231 -0
- package/dist/nodes/SoftwareTeamsFinaliser/SoftwareTeamsFinaliser.node.js.map +1 -0
- package/dist/nodes/SoftwareTeamsFinaliser/softwareTeamsFinaliser.svg +11 -0
- package/dist/nodes/SoftwareTeamsHitl/SoftwareTeamsHitl.node.d.ts +25 -0
- package/dist/nodes/SoftwareTeamsHitl/SoftwareTeamsHitl.node.d.ts.map +1 -0
- package/dist/nodes/SoftwareTeamsHitl/SoftwareTeamsHitl.node.js +366 -0
- package/dist/nodes/SoftwareTeamsHitl/SoftwareTeamsHitl.node.js.map +1 -0
- package/dist/nodes/SoftwareTeamsHitl/softwareTeamsHitl.svg +11 -0
- package/dist/nodes/SoftwareTeamsOrchestrator/SoftwareTeamsOrchestrator.node.d.ts +15 -0
- package/dist/nodes/SoftwareTeamsOrchestrator/SoftwareTeamsOrchestrator.node.d.ts.map +1 -0
- package/dist/nodes/SoftwareTeamsOrchestrator/SoftwareTeamsOrchestrator.node.js +373 -0
- package/dist/nodes/SoftwareTeamsOrchestrator/SoftwareTeamsOrchestrator.node.js.map +1 -0
- package/dist/nodes/SoftwareTeamsOrchestrator/softwareTeamsOrchestrator.svg +20 -0
- package/dist/nodes/SoftwareTeamsOutput/SoftwareTeamsOutput.node.d.ts +6 -0
- package/dist/nodes/SoftwareTeamsOutput/SoftwareTeamsOutput.node.d.ts.map +1 -0
- package/dist/nodes/SoftwareTeamsOutput/SoftwareTeamsOutput.node.js +2685 -0
- package/dist/nodes/SoftwareTeamsOutput/SoftwareTeamsOutput.node.js.map +1 -0
- package/dist/nodes/SoftwareTeamsOutput/SoftwareTeamsOutput.svg +6 -0
- package/dist/nodes/SoftwareTeamsPrFeedback/SoftwareTeamsPrFeedback.node.d.ts +22 -0
- package/dist/nodes/SoftwareTeamsPrFeedback/SoftwareTeamsPrFeedback.node.d.ts.map +1 -0
- package/dist/nodes/SoftwareTeamsPrFeedback/SoftwareTeamsPrFeedback.node.js +2655 -0
- package/dist/nodes/SoftwareTeamsPrFeedback/SoftwareTeamsPrFeedback.node.js.map +1 -0
- package/dist/nodes/SoftwareTeamsPrFeedback/softwareTeamsPrFeedback.svg +8 -0
- package/dist/nodes/SoftwareTeamsSlackHitl/SoftwareTeamsSlackHitl.node.d.ts +19 -0
- package/dist/nodes/SoftwareTeamsSlackHitl/SoftwareTeamsSlackHitl.node.d.ts.map +1 -0
- package/dist/nodes/SoftwareTeamsSlackHitl/SoftwareTeamsSlackHitl.node.js +198 -0
- package/dist/nodes/SoftwareTeamsSlackHitl/SoftwareTeamsSlackHitl.node.js.map +1 -0
- package/dist/nodes/SoftwareTeamsSlackHitl/softwareTeamsSlackHitl.svg +10 -0
- package/dist/nodes/SoftwareTeamsTrigger/SoftwareTeamsTrigger.node.d.ts +6 -0
- package/dist/nodes/SoftwareTeamsTrigger/SoftwareTeamsTrigger.node.d.ts.map +1 -0
- package/dist/nodes/SoftwareTeamsTrigger/SoftwareTeamsTrigger.node.js +2601 -0
- package/dist/nodes/SoftwareTeamsTrigger/SoftwareTeamsTrigger.node.js.map +1 -0
- package/dist/nodes/SoftwareTeamsTrigger/SoftwareTeamsTrigger.node.svg +6 -0
- package/dist/nodes/SoftwareTeamsWorkspace/SoftwareTeamsWorkspace.node.d.ts +20 -0
- package/dist/nodes/SoftwareTeamsWorkspace/SoftwareTeamsWorkspace.node.d.ts.map +1 -0
- package/dist/nodes/SoftwareTeamsWorkspace/SoftwareTeamsWorkspace.node.js +175 -0
- package/dist/nodes/SoftwareTeamsWorkspace/SoftwareTeamsWorkspace.node.js.map +1 -0
- package/dist/nodes/SoftwareTeamsWorkspace/softwareTeamsWorkspace.svg +13 -0
- package/dist/src/execution/single-turn.d.ts +6 -0
- package/dist/src/execution/single-turn.d.ts.map +1 -0
- package/dist/src/execution/single-turn.js +2662 -0
- package/dist/src/execution/single-turn.js.map +1 -0
- package/dist/src/hitl/channels.d.ts +48 -0
- package/dist/src/hitl/channels.d.ts.map +1 -0
- package/dist/src/hitl/channels.js +297 -0
- package/dist/src/hitl/channels.js.map +1 -0
- package/dist/src/hitl/conversation-state.d.ts +45 -0
- package/dist/src/hitl/conversation-state.d.ts.map +1 -0
- package/dist/src/hitl/conversation-state.js +69 -0
- package/dist/src/hitl/conversation-state.js.map +1 -0
- package/dist/src/hitl/slack.d.ts +32 -0
- package/dist/src/hitl/slack.d.ts.map +1 -0
- package/dist/src/hitl/slack.js +202 -0
- package/dist/src/hitl/slack.js.map +1 -0
- package/dist/src/ingestion/context.d.ts +38 -0
- package/dist/src/ingestion/context.d.ts.map +1 -0
- package/dist/src/ingestion/context.js +2501 -0
- package/dist/src/ingestion/context.js.map +1 -0
- package/dist/src/ingestion/pr-feedback.d.ts +48 -0
- package/dist/src/ingestion/pr-feedback.d.ts.map +1 -0
- package/dist/src/ingestion/pr-feedback.js +85 -0
- package/dist/src/ingestion/pr-feedback.js.map +1 -0
- package/dist/src/n8n-cast.d.ts +11 -0
- package/dist/src/n8n-cast.d.ts.map +1 -0
- package/dist/src/n8n-cast.js +17 -0
- package/dist/src/n8n-cast.js.map +1 -0
- package/dist/src/orchestration/run-state/global-store.d.ts +7 -0
- package/dist/src/orchestration/run-state/global-store.d.ts.map +1 -0
- package/dist/src/orchestration/run-state/global-store.js +27 -0
- package/dist/src/orchestration/run-state/global-store.js.map +1 -0
- package/dist/src/orchestration/run-state/ordering.d.ts +14 -0
- package/dist/src/orchestration/run-state/ordering.d.ts.map +1 -0
- package/dist/src/orchestration/run-state/ordering.js +59 -0
- package/dist/src/orchestration/run-state/ordering.js.map +1 -0
- package/dist/src/orchestration/run-state/persistence.d.ts +9 -0
- package/dist/src/orchestration/run-state/persistence.d.ts.map +1 -0
- package/dist/src/orchestration/run-state/persistence.js +29 -0
- package/dist/src/orchestration/run-state/persistence.js.map +1 -0
- package/dist/src/orchestration/run-state/planning.d.ts +17 -0
- package/dist/src/orchestration/run-state/planning.d.ts.map +1 -0
- package/dist/src/orchestration/run-state/planning.js +117 -0
- package/dist/src/orchestration/run-state/planning.js.map +1 -0
- package/dist/src/orchestration/run-state/readiness.d.ts +20 -0
- package/dist/src/orchestration/run-state/readiness.d.ts.map +1 -0
- package/dist/src/orchestration/run-state/readiness.js +105 -0
- package/dist/src/orchestration/run-state/readiness.js.map +1 -0
- package/dist/src/orchestration/run-state/shapes.d.ts +53 -0
- package/dist/src/orchestration/run-state/shapes.d.ts.map +1 -0
- package/dist/src/orchestration/run-state/shapes.js +3 -0
- package/dist/src/orchestration/run-state/shapes.js.map +1 -0
- package/dist/src/orchestration/run-state/transitions.d.ts +46 -0
- package/dist/src/orchestration/run-state/transitions.d.ts.map +1 -0
- package/dist/src/orchestration/run-state/transitions.js +133 -0
- package/dist/src/orchestration/run-state/transitions.js.map +1 -0
- package/dist/src/orchestration/run-state.d.ts +8 -0
- package/dist/src/orchestration/run-state.d.ts.map +1 -0
- package/dist/src/orchestration/run-state.js +35 -0
- package/dist/src/orchestration/run-state.js.map +1 -0
- package/dist/src/output/github.d.ts +39 -0
- package/dist/src/output/github.d.ts.map +1 -0
- package/dist/src/output/github.js +2492 -0
- package/dist/src/output/github.js.map +1 -0
- package/dist/src/repo/git.d.ts +71 -0
- package/dist/src/repo/git.d.ts.map +1 -0
- package/dist/src/repo/git.js +207 -0
- package/dist/src/repo/git.js.map +1 -0
- package/dist/src/repo/merge.d.ts +36 -0
- package/dist/src/repo/merge.d.ts.map +1 -0
- package/dist/src/repo/merge.js +133 -0
- package/dist/src/repo/merge.js.map +1 -0
- package/dist/src/repo/repo-context.d.ts +23 -0
- package/dist/src/repo/repo-context.d.ts.map +1 -0
- package/dist/src/repo/repo-context.js +10 -0
- package/dist/src/repo/repo-context.js.map +1 -0
- package/dist/src/repo/teardown.d.ts +38 -0
- package/dist/src/repo/teardown.d.ts.map +1 -0
- package/dist/src/repo/teardown.js +171 -0
- package/dist/src/repo/teardown.js.map +1 -0
- package/dist/src/repo/validate.d.ts +4 -0
- package/dist/src/repo/validate.d.ts.map +1 -0
- package/dist/src/repo/validate.js +42 -0
- package/dist/src/repo/validate.js.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SoftwareTeamsCleanup.node.js","sourceRoot":"","sources":["../../../nodes/SoftwareTeamsCleanup/SoftwareTeamsCleanup.node.ts"],"names":[],"mappings":";;;AAAA,+CAQsB;AAEtB,gEAAkE;AAClE,iFAAgF;AAChF,0EAAgE;AAChE,sDAMiC;AACjC,iDAAkD;AAYlD;;;;;;;;;;;;;;;;;GAiBG;A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ACH,MAAM,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC;QAC1B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IAClE,CAAC;IAAC,OAAO,GAAY,EAAE,CAAC;QACtB,MAAM,GAAG,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC7D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,GAAG,EAAE,EAAE,CAAC;IAC3D,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none">
|
|
2
|
+
<!-- Cleanup / broom icon for the Software Teams Cleanup node -->
|
|
3
|
+
<circle cx="10" cy="10" r="9" fill="#24292F"/>
|
|
4
|
+
<!-- Trash/cleanup icon -->
|
|
5
|
+
<path d="M7 6V5.5C7 4.672 7.672 4 8.5 4h3C12.328 4 13 4.672 13 5.5V6M6 6h8M7 6v8.5a1 1 0 001 1h4a1 1 0 001-1V6M9 8.5v4M11 8.5v4" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class SoftwareTeamsFinaliser implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=SoftwareTeamsFinaliser.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SoftwareTeamsFinaliser.node.d.ts","sourceRoot":"","sources":["../../../nodes/SoftwareTeamsFinaliser/SoftwareTeamsFinaliser.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAGrB,MAAM,cAAc,CAAC;AA+EtB,qBAAa,sBAAuB,YAAW,SAAS;IACtD,WAAW,EAAE,oBAAoB,CAiD/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CA0KxE"}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SoftwareTeamsFinaliser = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
const node_os_1 = require("node:os");
|
|
7
|
+
const n8n_cast_1 = require("../../src/n8n-cast");
|
|
8
|
+
const git_1 = require("../../src/repo/git");
|
|
9
|
+
const validate_1 = require("../../src/repo/validate");
|
|
10
|
+
const merge_1 = require("../../src/repo/merge");
|
|
11
|
+
const SINGLE_TURN_MODULE = '../../src/execution/single-turn';
|
|
12
|
+
const RUN_STATE_MODULE = '../../src/orchestration/run-state/transitions';
|
|
13
|
+
const GLOBAL_STORE_MODULE = '../../src/orchestration/run-state/global-store';
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
15
|
+
const { runAgentTurn } = require(SINGLE_TURN_MODULE);
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
17
|
+
const { enumerateAgentResults } = require(RUN_STATE_MODULE);
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
19
|
+
const { readRunState } = require(GLOBAL_STORE_MODULE);
|
|
20
|
+
function buildFeatureBranchName(correlationId) {
|
|
21
|
+
return `feat/st-run-${correlationId.slice(0, 8)}`;
|
|
22
|
+
}
|
|
23
|
+
function buildBranchUrl(ownerRepo, branchName) {
|
|
24
|
+
return `https://github.com/${ownerRepo}/tree/${branchName}`;
|
|
25
|
+
}
|
|
26
|
+
function buildRunSummary(opts) {
|
|
27
|
+
const { agentResults, branchName, ownerRepo, correlationId } = opts;
|
|
28
|
+
const lines = [
|
|
29
|
+
`## Software Teams Run Summary`,
|
|
30
|
+
``,
|
|
31
|
+
`**Correlation ID:** \`${correlationId}\``,
|
|
32
|
+
`**Branch:** \`${branchName}\``,
|
|
33
|
+
`**Repo:** \`${ownerRepo}\``,
|
|
34
|
+
``,
|
|
35
|
+
`### Agent Results`,
|
|
36
|
+
``,
|
|
37
|
+
];
|
|
38
|
+
for (const r of agentResults) {
|
|
39
|
+
const icon = r.status === 'done' ? '[ok]' : `[${r.status}]`;
|
|
40
|
+
const patch = r.changeRef ? ' (changes captured)' : ' (no changes)';
|
|
41
|
+
lines.push(`- **${r.agent}** (${r.taskId}): ${icon}${patch}`);
|
|
42
|
+
}
|
|
43
|
+
const failedAgents = agentResults.filter((r) => r.status === 'error');
|
|
44
|
+
if (failedAgents.length > 0) {
|
|
45
|
+
lines.push(``, `### Failed Agents`, ``);
|
|
46
|
+
for (const r of failedAgents) {
|
|
47
|
+
lines.push(`- \`${r.agent}\` (${r.taskId}) — check node logs for details`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
lines.push(``, `---`, `*Generated by [@websitelabs/n8n-nodes-software-teams](https://github.com/websitelabs/software-teams/tree/main/packages/n8n)*`);
|
|
51
|
+
return lines.join('\n');
|
|
52
|
+
}
|
|
53
|
+
class SoftwareTeamsFinaliser {
|
|
54
|
+
constructor() {
|
|
55
|
+
this.description = {
|
|
56
|
+
displayName: 'Software Teams Finaliser',
|
|
57
|
+
name: 'softwareTeamsFinaliser',
|
|
58
|
+
icon: 'file:softwareTeamsFinaliser.svg',
|
|
59
|
+
group: ['output'],
|
|
60
|
+
version: 1,
|
|
61
|
+
description: 'Terminal node for Software Teams repo-execution workflows (ADR-002). ' +
|
|
62
|
+
'Reads aggregated run-state, merges all agent changes with bounded conflict ' +
|
|
63
|
+
'resolution (≤3 resolver turns), pushes a feature branch, emits a branch ' +
|
|
64
|
+
'artifact, and synthesises a run summary.',
|
|
65
|
+
subtitle: '={{ $parameter["ownerRepo"] }}',
|
|
66
|
+
defaults: { name: 'Software Teams Finaliser' },
|
|
67
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
68
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
69
|
+
credentials: [
|
|
70
|
+
{ name: 'softwareTeamsApi', required: true },
|
|
71
|
+
],
|
|
72
|
+
properties: [
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Target Repository',
|
|
75
|
+
name: 'ownerRepo',
|
|
76
|
+
type: 'string',
|
|
77
|
+
default: '',
|
|
78
|
+
required: true,
|
|
79
|
+
placeholder: 'owner/repo',
|
|
80
|
+
description: 'GitHub repository in owner/repo format. Must match the repository ' +
|
|
81
|
+
'the Workspace node checked out.',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Base Branch',
|
|
85
|
+
name: 'baseBranch',
|
|
86
|
+
type: 'string',
|
|
87
|
+
default: 'main',
|
|
88
|
+
required: true,
|
|
89
|
+
description: 'The branch agents forked from. The feature branch merges into this.',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Clone URL',
|
|
93
|
+
name: 'cloneUrl',
|
|
94
|
+
type: 'string',
|
|
95
|
+
default: '',
|
|
96
|
+
description: 'Optional clone URL override. Defaults to the GitHub https URL derived from ' +
|
|
97
|
+
'"owner/repo". Useful for non-GitHub hosts or SSH.',
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
usableAsTool: true,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
async execute() {
|
|
104
|
+
var _a, _b;
|
|
105
|
+
const items = this.getInputData();
|
|
106
|
+
const returnData = [];
|
|
107
|
+
const credentials = await this.getCredentials('softwareTeamsApi');
|
|
108
|
+
process.env['ANTHROPIC_API_KEY'] = credentials.anthropicApiKey;
|
|
109
|
+
const githubToken = credentials.githubToken || undefined;
|
|
110
|
+
if (!githubToken) {
|
|
111
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No GitHub token found in the Software Teams API credential. ' +
|
|
112
|
+
'Set "GitHub Token" to a personal access token with repo + PR write scopes.');
|
|
113
|
+
}
|
|
114
|
+
const itemCount = items.length > 0 ? items.length : 1;
|
|
115
|
+
for (const [i] of Array.from({ length: itemCount }).entries()) {
|
|
116
|
+
try {
|
|
117
|
+
const ownerRepo = (0, validate_1.validateOwnerRepo)(this.getNodeParameter('ownerRepo', i).trim());
|
|
118
|
+
const baseBranch = (0, validate_1.validateBranchName)(this.getNodeParameter('baseBranch', i, 'main').trim() || 'main');
|
|
119
|
+
const cloneUrlParam = (this.getNodeParameter('cloneUrl', i, '') || '').trim();
|
|
120
|
+
const cloneUrl = cloneUrlParam
|
|
121
|
+
? (0, validate_1.validateCloneUrl)(cloneUrlParam)
|
|
122
|
+
: `https://github.com/${ownerRepo}.git`;
|
|
123
|
+
const upstream = ((_b = (_a = items[i]) === null || _a === void 0 ? void 0 : _a.json) !== null && _b !== void 0 ? _b : {});
|
|
124
|
+
const envelope = (0, n8n_cast_1.fromDataObject)(upstream);
|
|
125
|
+
if (!envelope || typeof envelope.correlationId !== 'string') {
|
|
126
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Incoming item is not a valid NodeEnvelope (missing correlationId). ' +
|
|
127
|
+
'Wire this node after Software Teams Agent nodes.', { itemIndex: i });
|
|
128
|
+
}
|
|
129
|
+
const correlationId = envelope.correlationId;
|
|
130
|
+
const staticData = this.getWorkflowStaticData('global');
|
|
131
|
+
const runState = readRunState(staticData, correlationId);
|
|
132
|
+
if (!runState) {
|
|
133
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `No aggregated run-state found for correlationId "${correlationId}". ` +
|
|
134
|
+
'The plan Orchestrator must seed the run and at least one Agent must ' +
|
|
135
|
+
'have run before the Finaliser can merge changes.', { itemIndex: i });
|
|
136
|
+
}
|
|
137
|
+
const agentResults = enumerateAgentResults(runState);
|
|
138
|
+
const changeRefs = agentResults
|
|
139
|
+
.filter((r) => r.changeRef !== undefined)
|
|
140
|
+
.map((r) => r.changeRef);
|
|
141
|
+
const repoDir = (0, node_path_1.join)((0, node_os_1.tmpdir)(), 'st-finaliser', correlationId);
|
|
142
|
+
const authenticatedCloneUrl = githubToken && cloneUrl.startsWith('https://')
|
|
143
|
+
? cloneUrl.replace('https://', `https://x-access-token:${githubToken}@`)
|
|
144
|
+
: cloneUrl;
|
|
145
|
+
await (0, git_1.cloneRepo)({ cloneUrl: authenticatedCloneUrl, branch: baseBranch, destDir: repoDir });
|
|
146
|
+
const branchName = buildFeatureBranchName(correlationId);
|
|
147
|
+
const mergeResult = await (0, merge_1.applyAndResolve)({
|
|
148
|
+
repoDir,
|
|
149
|
+
branchName,
|
|
150
|
+
baseBranch,
|
|
151
|
+
changeRefs,
|
|
152
|
+
resolver: async (conflictingFiles) => {
|
|
153
|
+
const repoContext = {
|
|
154
|
+
cloneUrl,
|
|
155
|
+
ownerRepo,
|
|
156
|
+
baseBranch,
|
|
157
|
+
correlationId,
|
|
158
|
+
worktreePath: repoDir,
|
|
159
|
+
};
|
|
160
|
+
const conflictPrompt = `You are a conflict resolver. The following files have git conflict markers:\n` +
|
|
161
|
+
conflictingFiles.map((f) => `- ${f}`).join('\n') +
|
|
162
|
+
`\n\nResolve all conflict markers in these files to produce a clean, ` +
|
|
163
|
+
`buildable merge. Edit the files directly. Do not leave any <<<<<<< / ` +
|
|
164
|
+
`======= / >>>>>>> markers. Stage your changes with git add.`;
|
|
165
|
+
const resolverEnvelope = {
|
|
166
|
+
correlationId,
|
|
167
|
+
agentId: 'software-teams-programmer',
|
|
168
|
+
status: 'ok',
|
|
169
|
+
input: { prompt: conflictPrompt, context: null },
|
|
170
|
+
result: { text: '' },
|
|
171
|
+
artifacts: [],
|
|
172
|
+
};
|
|
173
|
+
await runAgentTurn(resolverEnvelope, repoContext, githubToken);
|
|
174
|
+
},
|
|
175
|
+
});
|
|
176
|
+
if (mergeResult.kind === 'bounded-failure') {
|
|
177
|
+
const conflictList = mergeResult.conflictingFiles.join(', ');
|
|
178
|
+
const errorText = `Finaliser conflict resolution exhausted ${mergeResult.turnsExhausted} ` +
|
|
179
|
+
`resolver turn(s) without producing a clean tree. ` +
|
|
180
|
+
`Conflicting files: ${conflictList}. ` +
|
|
181
|
+
`A human must resolve these conflicts manually.`;
|
|
182
|
+
const errorEnvelope = {
|
|
183
|
+
...envelope,
|
|
184
|
+
status: 'error',
|
|
185
|
+
result: { text: errorText },
|
|
186
|
+
};
|
|
187
|
+
returnData.push({
|
|
188
|
+
json: (0, n8n_cast_1.toDataObject)(errorEnvelope),
|
|
189
|
+
pairedItem: { item: i },
|
|
190
|
+
});
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
await (0, merge_1.pushBranch)({
|
|
194
|
+
repoDir,
|
|
195
|
+
branchName,
|
|
196
|
+
remote: 'origin',
|
|
197
|
+
githubToken,
|
|
198
|
+
});
|
|
199
|
+
const branchUrl = buildBranchUrl(ownerRepo, branchName);
|
|
200
|
+
const runSummary = buildRunSummary({ agentResults, branchName, ownerRepo, correlationId });
|
|
201
|
+
const successEnvelope = {
|
|
202
|
+
...envelope,
|
|
203
|
+
agentId: 'software-teams-finaliser',
|
|
204
|
+
status: 'ok',
|
|
205
|
+
result: { text: runSummary },
|
|
206
|
+
artifacts: [
|
|
207
|
+
...envelope.artifacts,
|
|
208
|
+
{ type: 'branch', url: branchUrl },
|
|
209
|
+
],
|
|
210
|
+
};
|
|
211
|
+
returnData.push({
|
|
212
|
+
json: (0, n8n_cast_1.toDataObject)(successEnvelope),
|
|
213
|
+
pairedItem: { item: i },
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
catch (err) {
|
|
217
|
+
if (this.continueOnFail()) {
|
|
218
|
+
returnData.push({
|
|
219
|
+
json: { error: err instanceof Error ? err.message : String(err) },
|
|
220
|
+
pairedItem: { item: i },
|
|
221
|
+
});
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Software Teams Finaliser failed: ${err instanceof Error ? err.message : String(err)}`, { itemIndex: i });
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return [returnData];
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
exports.SoftwareTeamsFinaliser = SoftwareTeamsFinaliser;
|
|
231
|
+
//# sourceMappingURL=SoftwareTeamsFinaliser.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SoftwareTeamsFinaliser.node.js","sourceRoot":"","sources":["../../../nodes/SoftwareTeamsFinaliser/SoftwareTeamsFinaliser.node.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AACtB,yCAAiC;AACjC,qCAAiC;AAEjC,iDAAkE;AAClE,4CAA+C;AAC/C,sDAAkG;AAClG,gDAAmE;AAYnE,MAAM,kBAAkB,GAAG,iCAAiC,CAAC;AAC7D,MAAM,gBAAgB,GAAG,+CAA+C,CAAC;AACzE,MAAM,mBAAmB,GAAG,gDAAgD,CAAC;AAE7E,iEAAiE;AACjE,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAqC,CAAC;AACzF,iEAAiE;AACjE,MAAM,EAAE,qBAAqB,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAuD,CAAC;AAClH,iEAAiE;AACjE,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAqC,CAAC;AAE1F,SAAS,sBAAsB,CAAC,aAAqB;IACnD,OAAO,eAAe,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AACpD,CAAC;AAED,SAAS,cAAc,CAAC,SAAiB,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AAE,IAAI,EAAE,CAAC,EAAE;iBACxB,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC1B,UAAU,CAAC,IAAI,CAAC;wBACd,IAAI,EAAE,EAAE,KAAK,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;wBACjE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACxB,CAAC,CAAC;oBACH,SAAS;gBACX,CAAC;gBACD,MAAM,IAAI,iCAAkB,CAC1B,IAAI,CAAC,OAAO,EAAE,EACd,oCAAoC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EACtF,EAAE,SAAS,EAAE,CAAC,EAAE,CACjB,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC;CACF;AA9ND,wDA8NC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" width="60" height="60">
|
|
2
|
+
<rect width="60" height="60" rx="10" ry="10" fill="#1A5276"/>
|
|
3
|
+
<rect x="10" y="18" width="22" height="16" rx="3" ry="3" fill="none" stroke="white" stroke-width="2"/>
|
|
4
|
+
<rect x="10" y="37" width="22" height="8" rx="2" ry="2" fill="none" stroke="white" stroke-width="1.5" opacity="0.6"/>
|
|
5
|
+
<line x1="34" y1="26" x2="42" y2="26" stroke="white" stroke-width="2" stroke-linecap="round"/>
|
|
6
|
+
<line x1="39" y1="22" x2="43" y2="26" stroke="white" stroke-width="2" stroke-linecap="round"/>
|
|
7
|
+
<line x1="39" y1="30" x2="43" y2="26" stroke="white" stroke-width="2" stroke-linecap="round"/>
|
|
8
|
+
<circle cx="47" cy="26" r="6" fill="none" stroke="white" stroke-width="2"/>
|
|
9
|
+
<line x1="45" y1="26" x2="49" y2="26" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
10
|
+
<line x1="47" y1="24" x2="47" y2="28" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
/**
|
|
3
|
+
* Generic, channel-agnostic HITL node (T8 — AC3, AC4).
|
|
4
|
+
*
|
|
5
|
+
* Supports Slack, Email, n8n-notification, AND Discord. Multi-round: on
|
|
6
|
+
* resume, if the agent still needs input, re-parks with an incremented
|
|
7
|
+
* round instead of deleting state. State is only deleted once the agent
|
|
8
|
+
* returns ok/error.
|
|
9
|
+
*
|
|
10
|
+
* ASK MODE (status: 'needs-input'): posts the question via the selected
|
|
11
|
+
* channel adapter, saves state with channel + round + delivery ref, then
|
|
12
|
+
* putExecutionToWait.
|
|
13
|
+
*
|
|
14
|
+
* RESUME MODE (hitlAnswer + correlationId): loads state, acks via the
|
|
15
|
+
* channel adapter, merges answer into context, runs runAgentTurn. If the
|
|
16
|
+
* agent returns needs-input again, re-saves state with incremented round
|
|
17
|
+
* and re-waits (genuine multi-round). Only deletes state on ok/error.
|
|
18
|
+
*
|
|
19
|
+
* PASS-THROUGH: status 'ok' or 'error' passes unchanged.
|
|
20
|
+
*/
|
|
21
|
+
export declare class SoftwareTeamsHitl implements INodeType {
|
|
22
|
+
description: INodeTypeDescription;
|
|
23
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=SoftwareTeamsHitl.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SoftwareTeamsHitl.node.d.ts","sourceRoot":"","sources":["../../../nodes/SoftwareTeamsHitl/SoftwareTeamsHitl.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAGrB,MAAM,cAAc,CAAC;AAiCtB;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,iBAAkB,YAAW,SAAS;IACjD,WAAW,EAAE,oBAAoB,CA4D/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CA0QxE"}
|