@leitwerk-dev/process-sdk 0.1.9 → 0.2.1
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/browser-ui-extension.d.ts +20 -0
- package/dist/browser-ui-extension.d.ts.map +1 -1
- package/dist/capabilities.d.ts +6 -0
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/{chunk-LIIP7FMU.js → chunk-5R6MVLHC.js} +1 -1
- package/dist/chunk-5R6MVLHC.js.map +1 -0
- package/dist/chunk-DVXW2ZUV.js +1 -0
- package/dist/chunk-DVXW2ZUV.js.map +1 -0
- package/dist/{chunk-TRQJ5PRM.js → chunk-I7U6HCLN.js} +1 -11
- package/dist/chunk-I7U6HCLN.js.map +1 -0
- package/dist/{chunk-5RJZ2E7D.js → chunk-TM2LTSW4.js} +2 -6
- package/dist/chunk-TM2LTSW4.js.map +1 -0
- package/dist/codecs.d.ts +1 -0
- package/dist/codecs.d.ts.map +1 -1
- package/dist/commit-message.d.ts +5 -0
- package/dist/commit-message.d.ts.map +1 -1
- package/dist/core-capabilities.d.ts +396 -44
- package/dist/core-capabilities.d.ts.map +1 -1
- package/dist/define-process.d.ts +209 -64
- package/dist/define-process.d.ts.map +1 -1
- package/dist/event-bus.d.ts +1 -0
- package/dist/event-bus.d.ts.map +1 -1
- package/dist/{extension-api-BBcwktmc.d.ts → extension-api-B4gG5w1K.d.ts} +1111 -153
- package/dist/extension-api.d.ts +481 -38
- package/dist/extension-api.d.ts.map +1 -1
- package/dist/external-action-source.d.ts +9 -0
- package/dist/external-action-source.d.ts.map +1 -0
- package/dist/external-source-poll.d.ts +22 -0
- package/dist/external-source-poll.d.ts.map +1 -0
- package/dist/flow.d.ts +380 -107
- package/dist/flow.d.ts.map +1 -1
- package/dist/form-contract.d.ts +1 -1
- package/dist/form-contract.d.ts.map +1 -1
- package/dist/fs-utils.d.ts +6 -0
- package/dist/fs-utils.d.ts.map +1 -1
- package/dist/git-binary.d.ts +2 -1
- package/dist/git-binary.d.ts.map +1 -1
- package/dist/git-binary.js +25 -33
- package/dist/git-binary.js.map +1 -1
- package/dist/graph-fragments.d.ts +16 -0
- package/dist/graph-fragments.d.ts.map +1 -1
- package/dist/host-capabilities.d.ts +9 -3
- package/dist/host-capabilities.d.ts.map +1 -1
- package/dist/index.d.ts +40 -29
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4876 -29
- package/dist/index.js.map +1 -1
- package/dist/integration-http.d.ts +32 -0
- package/dist/integration-http.d.ts.map +1 -0
- package/dist/json-data.d.ts +3 -0
- package/dist/json-data.d.ts.map +1 -0
- package/dist/leaf-outcome-renderer.d.ts +35 -0
- package/dist/leaf-outcome-renderer.d.ts.map +1 -1
- package/dist/leaf-outcome-renderer.js +86 -64
- package/dist/leaf-outcome-renderer.js.map +1 -1
- package/dist/leaf-outcomes.d.ts +3 -0
- package/dist/leaf-outcomes.d.ts.map +1 -1
- package/dist/model-provider.d.ts +144 -12
- package/dist/model-provider.d.ts.map +1 -1
- package/dist/pi-config-public.d.ts +2 -0
- package/dist/pi-config-public.d.ts.map +1 -0
- package/dist/pi-config-public.js +15 -0
- package/dist/pi-config-public.js.map +1 -0
- package/dist/pi-config.d.ts +41 -5
- package/dist/pi-config.d.ts.map +1 -1
- package/dist/pi-config.js +20 -180
- package/dist/pi-config.js.map +1 -1
- package/dist/process-definition-internals.d.ts +4 -0
- package/dist/process-definition-internals.d.ts.map +1 -1
- package/dist/process-flow-view.d.ts +2 -0
- package/dist/process-flow-view.d.ts.map +1 -1
- package/dist/process-graph.d.ts +34 -0
- package/dist/process-graph.d.ts.map +1 -1
- package/dist/process-launcher-builder.d.ts +5 -0
- package/dist/process-launcher-builder.d.ts.map +1 -1
- package/dist/process-watcher-builder.d.ts +5 -0
- package/dist/process-watcher-builder.d.ts.map +1 -1
- package/dist/process-watcher-source.d.ts +3 -1
- package/dist/process-watcher-source.d.ts.map +1 -1
- package/dist/project-binding.d.ts +13 -0
- package/dist/project-binding.d.ts.map +1 -0
- package/dist/registry-utils.d.ts +6 -0
- package/dist/registry-utils.d.ts.map +1 -1
- package/dist/repository-feedback.d.ts +47 -0
- package/dist/repository-feedback.d.ts.map +1 -0
- package/dist/repository-git-env.d.ts +8 -2
- package/dist/repository-git-env.d.ts.map +1 -1
- package/dist/repository-http.d.ts +31 -0
- package/dist/repository-http.d.ts.map +1 -0
- package/dist/repository-https.d.ts +3 -0
- package/dist/repository-https.d.ts.map +1 -0
- package/dist/repository-issue-watcher.d.ts +51 -0
- package/dist/repository-issue-watcher.d.ts.map +1 -0
- package/dist/repository-reconciliation.d.ts +5 -0
- package/dist/repository-reconciliation.d.ts.map +1 -0
- package/dist/repository-source-config.d.ts +58 -0
- package/dist/repository-source-config.d.ts.map +1 -0
- package/dist/repository-types.d.ts +63 -0
- package/dist/repository-types.d.ts.map +1 -0
- package/dist/review-flow-public.d.ts +2 -0
- package/dist/review-flow-public.d.ts.map +1 -0
- package/dist/review-flow-public.js +11 -0
- package/dist/review-flow-public.js.map +1 -0
- package/dist/review-flow.d.ts +6 -0
- package/dist/review-flow.d.ts.map +1 -1
- package/dist/review-flow.js +12 -43
- package/dist/review-flow.js.map +1 -1
- package/dist/runtime-internals-public.d.ts +2 -0
- package/dist/runtime-internals-public.d.ts.map +1 -0
- package/dist/runtime-internals-public.js +16 -0
- package/dist/runtime-internals-public.js.map +1 -0
- package/dist/runtime-internals.js +19 -2
- package/dist/runtime-internals.js.map +1 -1
- package/dist/server-events.d.ts +67 -0
- package/dist/server-events.d.ts.map +1 -1
- package/dist/server-process-builder.d.ts +7 -0
- package/dist/server-process-builder.d.ts.map +1 -1
- package/dist/state-helpers.d.ts +8 -0
- package/dist/state-helpers.d.ts.map +1 -1
- package/dist/subprocess-env.d.ts +4 -0
- package/dist/subprocess-env.d.ts.map +1 -1
- package/dist/tool-arguments.d.ts +9 -0
- package/dist/tool-arguments.d.ts.map +1 -0
- package/dist/tool-renderers.d.ts +6 -0
- package/dist/tool-renderers.d.ts.map +1 -1
- package/dist/turn-semantics.d.ts +18 -6
- package/dist/turn-semantics.d.ts.map +1 -1
- package/dist/types.d.ts +209 -38
- package/dist/types.d.ts.map +1 -1
- package/dist/ui-process-builder.d.ts +5 -0
- package/dist/ui-process-builder.d.ts.map +1 -1
- package/dist/worker-process-builder.d.ts +5 -0
- package/dist/worker-process-builder.d.ts.map +1 -1
- package/package.json +17 -15
- package/src/browser-ui-extension.ts +20 -0
- package/src/capabilities.ts +9 -1
- package/src/codecs.ts +1 -0
- package/src/commit-message.ts +5 -0
- package/src/core-capabilities.ts +464 -59
- package/src/define-process.ts +384 -332
- package/src/event-bus.ts +1 -0
- package/src/extension-api.ts +521 -41
- package/src/external-action-source.ts +17 -0
- package/src/external-source-poll.ts +61 -0
- package/src/flow.ts +674 -677
- package/src/form-contract.ts +0 -4
- package/src/fs-utils.ts +21 -2
- package/src/git-binary.ts +2 -1
- package/src/graph-fragments.ts +16 -0
- package/src/host-capabilities.ts +9 -6
- package/src/index.ts +51 -206
- package/src/integration-http.ts +70 -0
- package/src/json-data.ts +25 -0
- package/src/leaf-outcome-renderer.ts +35 -0
- package/src/leaf-outcomes.ts +4 -9
- package/src/model-provider.ts +179 -43
- package/src/pi-config-public.ts +7 -0
- package/src/pi-config.ts +48 -8
- package/src/process-definition-internals.ts +4 -0
- package/src/process-flow-view.ts +34 -88
- package/src/process-graph.ts +59 -51
- package/src/process-launcher-builder.ts +5 -0
- package/src/process-watcher-builder.ts +5 -0
- package/src/process-watcher-source.ts +9 -10
- package/src/project-binding.ts +40 -0
- package/src/registry-utils.ts +7 -5
- package/src/repository-feedback.ts +85 -0
- package/src/repository-git-env.ts +40 -2
- package/src/repository-http.ts +88 -0
- package/src/repository-https.ts +22 -0
- package/src/repository-issue-watcher.ts +122 -0
- package/src/repository-reconciliation.ts +30 -0
- package/src/repository-source-config.ts +79 -0
- package/src/repository-types.ts +63 -0
- package/src/review-flow-public.ts +5 -0
- package/src/review-flow.ts +6 -0
- package/src/runtime-internals-public.ts +7 -0
- package/src/server-events.ts +67 -0
- package/src/server-process-builder.ts +10 -1
- package/src/state-helpers.ts +14 -4
- package/src/subprocess-env.ts +9 -0
- package/src/tool-arguments.ts +39 -0
- package/src/tool-renderers.ts +6 -0
- package/src/turn-semantics.ts +45 -76
- package/src/types.ts +216 -44
- package/src/ui-process-builder.ts +8 -1
- package/src/worker-process-builder.ts +8 -1
- package/dist/browser-ui-extension.js +0 -2
- package/dist/browser-ui-extension.js.map +0 -1
- package/dist/capabilities.js +0 -7
- package/dist/capabilities.js.map +0 -1
- package/dist/chunk-5RJZ2E7D.js.map +0 -1
- package/dist/chunk-LIIP7FMU.js.map +0 -1
- package/dist/chunk-TRQJ5PRM.js.map +0 -1
- package/dist/codecs.js +0 -9
- package/dist/codecs.js.map +0 -1
- package/dist/commit-message.js +0 -3
- package/dist/commit-message.js.map +0 -1
- package/dist/core-capabilities.js +0 -6
- package/dist/core-capabilities.js.map +0 -1
- package/dist/define-process.js +0 -1078
- package/dist/define-process.js.map +0 -1
- package/dist/event-bus.js +0 -31
- package/dist/event-bus.js.map +0 -1
- package/dist/extension-api.js +0 -5
- package/dist/extension-api.js.map +0 -1
- package/dist/flow.js +0 -1645
- package/dist/flow.js.map +0 -1
- package/dist/form-contract.js +0 -2
- package/dist/form-contract.js.map +0 -1
- package/dist/fs-utils.js +0 -23
- package/dist/fs-utils.js.map +0 -1
- package/dist/graph-fragments.js +0 -57
- package/dist/graph-fragments.js.map +0 -1
- package/dist/host-capabilities.js +0 -42
- package/dist/host-capabilities.js.map +0 -1
- package/dist/launcher-contract.js +0 -2
- package/dist/launcher-contract.js.map +0 -1
- package/dist/leaf-outcomes.js +0 -52
- package/dist/leaf-outcomes.js.map +0 -1
- package/dist/model-provider.js +0 -171
- package/dist/model-provider.js.map +0 -1
- package/dist/process-definition-internals.js +0 -25
- package/dist/process-definition-internals.js.map +0 -1
- package/dist/process-flow-view.js +0 -418
- package/dist/process-flow-view.js.map +0 -1
- package/dist/process-graph.js +0 -212
- package/dist/process-graph.js.map +0 -1
- package/dist/process-launcher-builder.js +0 -43
- package/dist/process-launcher-builder.js.map +0 -1
- package/dist/process-watcher-builder.js +0 -40
- package/dist/process-watcher-builder.js.map +0 -1
- package/dist/process-watcher-source.js +0 -52
- package/dist/process-watcher-source.js.map +0 -1
- package/dist/registry-utils.js +0 -18
- package/dist/registry-utils.js.map +0 -1
- package/dist/repository-git-env.js +0 -26
- package/dist/repository-git-env.js.map +0 -1
- package/dist/server-events.js +0 -2
- package/dist/server-events.js.map +0 -1
- package/dist/server-process-builder.js +0 -52
- package/dist/server-process-builder.js.map +0 -1
- package/dist/state-helpers.js +0 -18
- package/dist/state-helpers.js.map +0 -1
- package/dist/subprocess-env.js +0 -34
- package/dist/subprocess-env.js.map +0 -1
- package/dist/tool-renderers.js +0 -63
- package/dist/tool-renderers.js.map +0 -1
- package/dist/turn-semantics.js +0 -365
- package/dist/turn-semantics.js.map +0 -1
- package/dist/types.js +0 -23
- package/dist/types.js.map +0 -1
- package/dist/ui-process-builder.js +0 -30
- package/dist/ui-process-builder.js.map +0 -1
- package/dist/worker-process-builder.js +0 -22
- package/dist/worker-process-builder.js.map +0 -1
package/dist/pi-config.js
CHANGED
|
@@ -1,182 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...toTemplateContextRecord(input.params),
|
|
22
|
-
};
|
|
23
|
-
if (input.process) {
|
|
24
|
-
context.processId = input.process.processId ?? undefined;
|
|
25
|
-
context.externalId = input.process.externalId ?? undefined;
|
|
26
|
-
context.externalUrl = input.process.externalUrl ?? undefined;
|
|
27
|
-
context.selectedTurnId = input.process.selectedTurnId ?? undefined;
|
|
28
|
-
}
|
|
29
|
-
const firstProject = input.projects?.[0];
|
|
30
|
-
if (firstProject) {
|
|
31
|
-
context.projectKey = firstProject.key;
|
|
32
|
-
context.repositoryUrl = firstProject.repoLocator;
|
|
33
|
-
context.baseBranch = firstProject.baseBranch;
|
|
34
|
-
context.workBranch = firstProject.workBranch ?? undefined;
|
|
35
|
-
}
|
|
36
|
-
return context;
|
|
37
|
-
}
|
|
38
|
-
export function interpolateTemplate(template, context) {
|
|
39
|
-
return Mustache.render(template, context);
|
|
40
|
-
}
|
|
41
|
-
function isTurnDefinitionSource(source) {
|
|
42
|
-
return "kind" in source;
|
|
43
|
-
}
|
|
44
|
-
function resolveToolSourceDefinition(source) {
|
|
45
|
-
return isTurnDefinitionSource(source) ? source : source.definition;
|
|
46
|
-
}
|
|
47
|
-
export function validatePiBuiltInToolArray(toolNames, context) {
|
|
48
|
-
const errors = [];
|
|
49
|
-
const seen = new Set();
|
|
50
|
-
for (const rawName of toolNames) {
|
|
51
|
-
if (typeof rawName !== "string") {
|
|
52
|
-
errors.push(`${context} must contain only string tool names`);
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
const name = rawName.trim();
|
|
56
|
-
if (name === "") {
|
|
57
|
-
errors.push(`${context} must not contain empty tool names`);
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
if (name !== rawName) {
|
|
61
|
-
errors.push(`${context} must use canonical Pi tool names without surrounding whitespace`);
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
if (!PI_BUILT_IN_TOOL_NAMES.includes(name)) {
|
|
65
|
-
errors.push(`${context} references unknown Pi tool '${name}'. Expected one of ${PI_BUILT_IN_TOOL_NAMES.join(", ")}`);
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
if (seen.has(name)) {
|
|
69
|
-
errors.push(`${context} must not contain duplicate Pi tool '${name}'`);
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
seen.add(name);
|
|
73
|
-
}
|
|
74
|
-
return errors;
|
|
75
|
-
}
|
|
76
|
-
export function resolveTurnAvailableToolNames(input) {
|
|
77
|
-
const errors = validatePiBuiltInToolArray(input.turnDef.availableTools, `turn '${input.turnId}' availableTools`);
|
|
78
|
-
if (errors.length > 0) {
|
|
79
|
-
throw new Error(errors.join("; "));
|
|
80
|
-
}
|
|
81
|
-
return [...input.turnDef.availableTools];
|
|
82
|
-
}
|
|
83
|
-
export function collectProcessAvailableToolNames(turns) {
|
|
84
|
-
const usedToolNames = new Set();
|
|
85
|
-
for (const source of turns ?? []) {
|
|
86
|
-
const definition = resolveToolSourceDefinition(source);
|
|
87
|
-
if (definition.kind !== "llm" || !("availableTools" in definition)) {
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
const errors = validatePiBuiltInToolArray(definition.availableTools, "LLM turn availableTools");
|
|
91
|
-
if (errors.length > 0) {
|
|
92
|
-
throw new Error(errors.join("; "));
|
|
93
|
-
}
|
|
94
|
-
for (const toolName of definition.availableTools) {
|
|
95
|
-
usedToolNames.add(toolName);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return PI_BUILT_IN_TOOL_NAMES.filter((toolName) => usedToolNames.has(toolName));
|
|
99
|
-
}
|
|
100
|
-
const DEFAULT_TOOL_DESCRIPTIONS = {
|
|
101
|
-
read: "Read file contents",
|
|
102
|
-
bash: "Execute bash commands (ls, grep, find, etc.)",
|
|
103
|
-
edit: "Make surgical edits to files (find exact text and replace)",
|
|
104
|
-
write: "Create or overwrite files",
|
|
105
|
-
grep: "Search file contents",
|
|
106
|
-
find: "Find files by name/path",
|
|
107
|
-
ls: "List directory contents",
|
|
1
|
+
import {
|
|
2
|
+
collectProcessAvailableToolNames,
|
|
3
|
+
createTemplateContext,
|
|
4
|
+
expandPiAgentDir,
|
|
5
|
+
interpolateTemplate,
|
|
6
|
+
resolvePiAgentDir,
|
|
7
|
+
resolveProcessPiConfig,
|
|
8
|
+
resolveTurnAvailableToolNames,
|
|
9
|
+
validatePiBuiltInToolArray
|
|
10
|
+
} from "./chunk-I7U6HCLN.js";
|
|
11
|
+
export {
|
|
12
|
+
collectProcessAvailableToolNames,
|
|
13
|
+
createTemplateContext,
|
|
14
|
+
expandPiAgentDir,
|
|
15
|
+
interpolateTemplate,
|
|
16
|
+
resolvePiAgentDir,
|
|
17
|
+
resolveProcessPiConfig,
|
|
18
|
+
resolveTurnAvailableToolNames as resolveTurnActiveToolNames,
|
|
19
|
+
resolveTurnAvailableToolNames,
|
|
20
|
+
validatePiBuiltInToolArray
|
|
108
21
|
};
|
|
109
|
-
function buildDefaultSystemPrompt(availableToolNames) {
|
|
110
|
-
const toolList = availableToolNames.length > 0
|
|
111
|
-
? availableToolNames
|
|
112
|
-
.map((toolName) => {
|
|
113
|
-
const description = DEFAULT_TOOL_DESCRIPTIONS[toolName] ?? "Built-in Pi tool";
|
|
114
|
-
return `- ${toolName}: ${description}`;
|
|
115
|
-
})
|
|
116
|
-
.join("\n")
|
|
117
|
-
: "- No built-in tools are available for this process unless a turn registers custom tools.";
|
|
118
|
-
return `You are an expert coding assistant operating inside pi, a coding agent harness. You help users by using the tools made available for the active turn.
|
|
119
|
-
|
|
120
|
-
Available built-in tools for this process:
|
|
121
|
-
${toolList}
|
|
122
|
-
|
|
123
|
-
In addition to the tools above, you may have access to other custom tools depending on the active turn.
|
|
124
|
-
|
|
125
|
-
Guidelines:
|
|
126
|
-
- Use only tools that are available in the active turn.
|
|
127
|
-
- Use read/search tools to examine files before editing.
|
|
128
|
-
- Use edit for precise changes when it is available (old text must match exactly).
|
|
129
|
-
- Use write only for new files or complete rewrites when it is available.
|
|
130
|
-
- When summarizing your actions, output plain text directly - do NOT use cat or bash to display what you did.
|
|
131
|
-
- Be concise in your responses.
|
|
132
|
-
- Show file paths clearly when working with files.`;
|
|
133
|
-
}
|
|
134
|
-
export function resolveProcessPiConfig(input) {
|
|
135
|
-
const processConfig = input.configSnapshot?.process_configs?.[input.processId];
|
|
136
|
-
const processPiOverride = processConfig?.pi;
|
|
137
|
-
const availableToolNames = collectProcessAvailableToolNames(input.turns);
|
|
138
|
-
const configSystemPromptTemplate = input.configSnapshot?.pi?.system_prompt_template;
|
|
139
|
-
const systemPromptTemplate = processPiOverride?.system_prompt_template ??
|
|
140
|
-
input.processPiConfig?.systemPromptTemplate ??
|
|
141
|
-
configSystemPromptTemplate;
|
|
142
|
-
const appendSystemPromptTemplate = processPiOverride?.append_system_prompt_template ??
|
|
143
|
-
input.processPiConfig?.appendSystemPromptTemplate;
|
|
144
|
-
const resolvedSystemPrompt = systemPromptTemplate
|
|
145
|
-
? interpolateTemplate(systemPromptTemplate, input.templateContext)
|
|
146
|
-
: buildDefaultSystemPrompt(availableToolNames);
|
|
147
|
-
const sessionCwd = input.processPiConfig?.sessionCwdTemplate
|
|
148
|
-
? interpolateTemplate(input.processPiConfig.sessionCwdTemplate, input.templateContext).trim()
|
|
149
|
-
: undefined;
|
|
150
|
-
return {
|
|
151
|
-
systemPrompt: resolvedSystemPrompt,
|
|
152
|
-
appendSystemPrompt: appendSystemPromptTemplate
|
|
153
|
-
? interpolateTemplate(appendSystemPromptTemplate, input.templateContext)
|
|
154
|
-
: undefined,
|
|
155
|
-
...(sessionCwd ? { sessionCwd } : {}),
|
|
156
|
-
availableToolNames,
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
export function resolveTurnActiveToolNames(input) {
|
|
160
|
-
return resolveTurnAvailableToolNames(input);
|
|
161
|
-
}
|
|
162
|
-
// Mirror Pi's PI_CODING_AGENT_DIR expansion semantics from
|
|
163
|
-
// pi-mono/packages/coding-agent/src/config.ts.
|
|
164
|
-
export function expandPiAgentDir(agentDir) {
|
|
165
|
-
if (agentDir === "~") {
|
|
166
|
-
return homedir();
|
|
167
|
-
}
|
|
168
|
-
if (agentDir.startsWith("~/")) {
|
|
169
|
-
return homedir() + agentDir.slice(1);
|
|
170
|
-
}
|
|
171
|
-
return agentDir;
|
|
172
|
-
}
|
|
173
|
-
export function resolvePiAgentDir(options) {
|
|
174
|
-
const configuredAgentDir = typeof options.agentDir === "string" && options.agentDir.trim() !== ""
|
|
175
|
-
? options.agentDir
|
|
176
|
-
: typeof options.configSnapshot?.pi?.agent_dir === "string" &&
|
|
177
|
-
options.configSnapshot.pi.agent_dir.trim() !== ""
|
|
178
|
-
? options.configSnapshot.pi.agent_dir
|
|
179
|
-
: options.fallbackDir;
|
|
180
|
-
return expandPiAgentDir(configuredAgentDir);
|
|
181
|
-
}
|
|
182
22
|
//# sourceMappingURL=pi-config.js.map
|
package/dist/pi-config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { ProcessTurnTransition } from "@leitwerk-dev/domain";
|
|
2
2
|
import type { ProcessTurnBinding } from "./extension-api.js";
|
|
3
|
+
/** @internal */
|
|
3
4
|
export declare function markDefinedProcess(value: object): void;
|
|
5
|
+
/** @internal */
|
|
4
6
|
export declare function isDefinedProcess(value: unknown): boolean;
|
|
7
|
+
/** @internal */
|
|
5
8
|
export declare function setProcessTurnTransitions(binding: object, transitions: readonly ProcessTurnTransition[]): void;
|
|
9
|
+
/** @internal */
|
|
6
10
|
export declare function getProcessTurnTransitions(binding: ProcessTurnBinding<unknown> | undefined): readonly ProcessTurnTransition[];
|
|
7
11
|
//# sourceMappingURL=process-definition-internals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-definition-internals.d.ts","sourceRoot":"","sources":["../src/process-definition-internals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAmB7D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAEtD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAExD;AAED,wBAAgB,yBAAyB,CACxC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,SAAS,qBAAqB,EAAE,GAC3C,IAAI,CAKN;AAED,wBAAgB,yBAAyB,CACxC,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS,GAC9C,SAAS,qBAAqB,EAAE,CAKlC"}
|
|
1
|
+
{"version":3,"file":"process-definition-internals.d.ts","sourceRoot":"","sources":["../src/process-definition-internals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAmB7D,gBAAgB;AAChB,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAEtD;AAED,gBAAgB;AAChB,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAExD;AAED,gBAAgB;AAChB,wBAAgB,yBAAyB,CACxC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,SAAS,qBAAqB,EAAE,GAC3C,IAAI,CAKN;AAED,gBAAgB;AAChB,wBAAgB,yBAAyB,CACxC,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS,GAC9C,SAAS,qBAAqB,EAAE,CAKlC"}
|
|
@@ -8,6 +8,7 @@ import type { ProcessGraphView } from "./process-graph.js";
|
|
|
8
8
|
* here and dropped later during edge construction. Entry turns and the declared
|
|
9
9
|
* happy path are remapped/filtered to stay consistent.
|
|
10
10
|
*/
|
|
11
|
+
/** @internal */
|
|
11
12
|
export declare function collapseRoutingTurns(graph: ProcessGraphView): ProcessGraphView;
|
|
12
13
|
/**
|
|
13
14
|
* Projects a process graph into a spine-first flow view for operator-facing
|
|
@@ -16,5 +17,6 @@ export declare function collapseRoutingTurns(graph: ProcessGraphView): ProcessGr
|
|
|
16
17
|
* The `aborted` end state is always present because abort is reachable from any
|
|
17
18
|
* active turn, even when no explicit transition targets it.
|
|
18
19
|
*/
|
|
20
|
+
/** @internal */
|
|
19
21
|
export declare function buildProcessFlowView(rawGraph: ProcessGraphView): ProcessFlowView;
|
|
20
22
|
//# sourceMappingURL=process-flow-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-flow-view.d.ts","sourceRoot":"","sources":["../src/process-flow-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"process-flow-view.d.ts","sourceRoot":"","sources":["../src/process-flow-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,eAAe,EAKpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAwB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAwJjF;;;;;;;GAOG;AACH,gBAAgB;AAChB,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,CA6D9E;AA+FD;;;;;;GAMG;AACH,gBAAgB;AAChB,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,eAAe,CAwFhF"}
|
package/dist/process-graph.d.ts
CHANGED
|
@@ -1,26 +1,47 @@
|
|
|
1
1
|
import type { ProcessSemanticEntryRefKey, ProcessTurnTransition, ProcessTurnType, SerializedProcessGraph, TurnId } from "@leitwerk-dev/domain";
|
|
2
2
|
import type { ExtensionProcessDefinition } from "./extension-api.js";
|
|
3
|
+
/** @internal */
|
|
3
4
|
export type ProcessGraphSource = ExtensionProcessDefinition<unknown, unknown>;
|
|
5
|
+
/** @internal */
|
|
4
6
|
export type ProcessGraphRegistry = ReadonlyMap<string, ProcessGraphSource>;
|
|
7
|
+
/** @internal */
|
|
5
8
|
export interface ProcessGraphTurnView {
|
|
9
|
+
/** @internal */
|
|
6
10
|
turnType: ProcessTurnType;
|
|
11
|
+
/** @internal */
|
|
7
12
|
description: string;
|
|
13
|
+
/** @internal */
|
|
8
14
|
transitions: readonly ProcessTurnTransition[];
|
|
15
|
+
/** @internal */
|
|
9
16
|
reviewProduct?: string;
|
|
17
|
+
/** @internal */
|
|
10
18
|
resultSemanticRef?: ProcessSemanticEntryRefKey;
|
|
19
|
+
/** @internal */
|
|
11
20
|
publishedProduct?: string;
|
|
21
|
+
/** @internal */
|
|
12
22
|
publishedProducts?: readonly string[];
|
|
23
|
+
/** @internal */
|
|
13
24
|
consumedProducts?: readonly string[];
|
|
25
|
+
/** @internal */
|
|
14
26
|
optionalConsumedProducts?: readonly string[];
|
|
27
|
+
/** @internal */
|
|
15
28
|
requiredSemanticMarkdownRefs?: readonly ProcessSemanticEntryRefKey[];
|
|
29
|
+
/** @internal */
|
|
16
30
|
optionalSemanticMarkdownRefs?: readonly ProcessSemanticEntryRefKey[];
|
|
31
|
+
/** @internal */
|
|
17
32
|
turnResultMarkdownRequired?: boolean;
|
|
18
33
|
}
|
|
34
|
+
/** @internal */
|
|
19
35
|
export interface ProcessGraphView {
|
|
36
|
+
/** @internal */
|
|
20
37
|
id: string;
|
|
38
|
+
/** @internal */
|
|
21
39
|
primaryEntryTurnId: TurnId;
|
|
40
|
+
/** @internal */
|
|
22
41
|
entryTurnIds: ReadonlySet<TurnId>;
|
|
42
|
+
/** @internal */
|
|
23
43
|
happyPath: readonly TurnId[] | null;
|
|
44
|
+
/** @internal */
|
|
24
45
|
turns: ReadonlyMap<TurnId, ProcessGraphTurnView>;
|
|
25
46
|
}
|
|
26
47
|
/**
|
|
@@ -28,17 +49,30 @@ export interface ProcessGraphView {
|
|
|
28
49
|
* All server lifecycle, validation, model-selection and serialization code should use this view
|
|
29
50
|
* instead of maintaining a second graph representation.
|
|
30
51
|
*/
|
|
52
|
+
/** @internal */
|
|
31
53
|
export declare function toProcessGraphView(definition: ProcessGraphSource): ProcessGraphView;
|
|
54
|
+
/** @internal */
|
|
32
55
|
export declare function hasProcessGraph(registry: ProcessGraphRegistry, processId: string): boolean;
|
|
56
|
+
/** @internal */
|
|
33
57
|
export declare function getProcessGraph(registry: ProcessGraphRegistry, processId: string): ProcessGraphView;
|
|
58
|
+
/** @internal */
|
|
34
59
|
export declare function getAllProcessGraphs(registry: ProcessGraphRegistry): readonly ProcessGraphView[];
|
|
60
|
+
/** @internal */
|
|
35
61
|
export declare function getProcessTurnGraph(registry: ProcessGraphRegistry, processId: string, turnId: TurnId): ProcessGraphTurnView | undefined;
|
|
62
|
+
/** @internal */
|
|
36
63
|
export declare function getTurnTransitionsForProcessGraph(registry: ProcessGraphRegistry, processId: string, turnId: TurnId): readonly ProcessTurnTransition[];
|
|
64
|
+
/** @internal */
|
|
37
65
|
export declare function getReachableTurnIdsForProcessGraph(registry: ProcessGraphRegistry, processId: string): readonly TurnId[];
|
|
66
|
+
/** @internal */
|
|
38
67
|
export declare function isTurnAvailableForProcessGraph(registry: ProcessGraphRegistry, processId: string, turnId: TurnId): boolean;
|
|
68
|
+
/** @internal */
|
|
39
69
|
export declare function serializeProcessGraph(registry: ProcessGraphRegistry, processId: string): SerializedProcessGraph;
|
|
70
|
+
/** @internal */
|
|
40
71
|
export declare function listLlmTurnIdsForProcessGraph(registry: ProcessGraphRegistry, processId: string): readonly TurnId[];
|
|
72
|
+
/** @internal */
|
|
41
73
|
export declare function validateProcessGraphEntryTurns(graph: ProcessGraphView): readonly string[];
|
|
74
|
+
/** @internal */
|
|
42
75
|
export declare function validateProcessGraphProducts(graph: ProcessGraphView): readonly string[];
|
|
76
|
+
/** @internal */
|
|
43
77
|
export declare function validateProcessGraphTurnTransitions(graph: ProcessGraphView): readonly string[];
|
|
44
78
|
//# sourceMappingURL=process-graph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-graph.d.ts","sourceRoot":"","sources":["../src/process-graph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,0BAA0B,EAC1B,qBAAqB,EACrB,eAAe,EACf,sBAA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B,CAC5C,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,MAAM,GACf,SAAS,MAAM,EAAE,CAInB;AAMD,gBAAgB;AAChB,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,MAAM,EAAE,CAQzF;AAED,gBAAgB;AAChB,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,MAAM,EAAE,CAiCvF;AAED,gBAAgB;AAChB,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,MAAM,EAAE,CA4B9F"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { ExtensionProcessDefinition, ProcessLauncherAPI, ProcessLauncherDefinition } from "./extension-api.js";
|
|
2
|
+
/** @public */
|
|
2
3
|
export interface BuiltProcessLauncherDefinition<TParams = unknown> {
|
|
4
|
+
/** @public */
|
|
3
5
|
launchers: ReadonlyMap<string, ProcessLauncherDefinition<TParams>>;
|
|
4
6
|
}
|
|
7
|
+
/** @internal */
|
|
5
8
|
export declare function createProcessLauncherBuilder<TParams = unknown>(): ProcessLauncherAPI<TParams> & {
|
|
9
|
+
/** @internal */
|
|
6
10
|
getDefinition(): BuiltProcessLauncherDefinition<TParams>;
|
|
7
11
|
};
|
|
12
|
+
/** @public */
|
|
8
13
|
export declare function buildProcessLaunchers<TParams = unknown, TState = unknown>(process: ExtensionProcessDefinition<TParams, TState>): BuiltProcessLauncherDefinition<TParams> | undefined;
|
|
9
14
|
//# sourceMappingURL=process-launcher-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-launcher-builder.d.ts","sourceRoot":"","sources":["../src/process-launcher-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,0BAA0B,EAC1B,kBAAkB,EAClB,yBAAyB,EACzB,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,8BAA8B,CAAC,OAAO,GAAG,OAAO;IAChE,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAC,CAAC;CACnE;AAoBD,wBAAgB,4BAA4B,CAAC,OAAO,GAAG,OAAO,KAAK,kBAAkB,CAAC,OAAO,CAAC,GAAG;IAChG,aAAa,IAAI,8BAA8B,CAAC,OAAO,CAAC,CAAC;CACzD,CAgBA;AAED,wBAAgB,qBAAqB,CAAC,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,EACxE,OAAO,EAAE,0BAA0B,CAAC,OAAO,EAAE,MAAM,CAAC,GAClD,8BAA8B,CAAC,OAAO,CAAC,GAAG,SAAS,CAOrD"}
|
|
1
|
+
{"version":3,"file":"process-launcher-builder.d.ts","sourceRoot":"","sources":["../src/process-launcher-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,0BAA0B,EAC1B,kBAAkB,EAClB,yBAAyB,EACzB,MAAM,oBAAoB,CAAC;AAG5B,cAAc;AACd,MAAM,WAAW,8BAA8B,CAAC,OAAO,GAAG,OAAO;IAChE,cAAc;IACd,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAC,CAAC;CACnE;AAoBD,gBAAgB;AAChB,wBAAgB,4BAA4B,CAAC,OAAO,GAAG,OAAO,KAAK,kBAAkB,CAAC,OAAO,CAAC,GAAG;IAChG,gBAAgB;IAChB,aAAa,IAAI,8BAA8B,CAAC,OAAO,CAAC,CAAC;CACzD,CAgBA;AAED,cAAc;AACd,wBAAgB,qBAAqB,CAAC,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,EACxE,OAAO,EAAE,0BAA0B,CAAC,OAAO,EAAE,MAAM,CAAC,GAClD,8BAA8B,CAAC,OAAO,CAAC,GAAG,SAAS,CAOrD"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { ExtensionProcessDefinition, ProcessWatcherAPI, ProcessWatcherDefinition } from "./extension-api.js";
|
|
2
|
+
/** @public */
|
|
2
3
|
export interface BuiltProcessWatcherDefinition<TParams = unknown> {
|
|
4
|
+
/** @public */
|
|
3
5
|
watchers: ReadonlyMap<string, ProcessWatcherDefinition<TParams, unknown, unknown>>;
|
|
4
6
|
}
|
|
7
|
+
/** @internal */
|
|
5
8
|
export declare function createProcessWatcherBuilder<TParams = unknown>(): ProcessWatcherAPI<TParams> & {
|
|
9
|
+
/** @internal */
|
|
6
10
|
getDefinition(): BuiltProcessWatcherDefinition<TParams>;
|
|
7
11
|
};
|
|
12
|
+
/** @public */
|
|
8
13
|
export declare function buildProcessWatchers<TParams = unknown, TState = unknown>(process: ExtensionProcessDefinition<TParams, TState>): BuiltProcessWatcherDefinition<TParams> | undefined;
|
|
9
14
|
//# sourceMappingURL=process-watcher-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-watcher-builder.d.ts","sourceRoot":"","sources":["../src/process-watcher-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,6BAA6B,CAAC,OAAO,GAAG,OAAO;IAC/D,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;CACnF;AAmBD,wBAAgB,2BAA2B,CAAC,OAAO,GAAG,OAAO,KAAK,iBAAiB,CAAC,OAAO,CAAC,GAAG;IAC9F,aAAa,IAAI,6BAA6B,CAAC,OAAO,CAAC,CAAC;CACxD,CAuBA;AAED,wBAAgB,oBAAoB,CAAC,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,EACvE,OAAO,EAAE,0BAA0B,CAAC,OAAO,EAAE,MAAM,CAAC,GAClD,6BAA6B,CAAC,OAAO,CAAC,GAAG,SAAS,CAOpD"}
|
|
1
|
+
{"version":3,"file":"process-watcher-builder.d.ts","sourceRoot":"","sources":["../src/process-watcher-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,MAAM,oBAAoB,CAAC;AAG5B,cAAc;AACd,MAAM,WAAW,6BAA6B,CAAC,OAAO,GAAG,OAAO;IAC/D,cAAc;IACd,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;CACnF;AAmBD,gBAAgB;AAChB,wBAAgB,2BAA2B,CAAC,OAAO,GAAG,OAAO,KAAK,iBAAiB,CAAC,OAAO,CAAC,GAAG;IAC9F,gBAAgB;IAChB,aAAa,IAAI,6BAA6B,CAAC,OAAO,CAAC,CAAC;CACxD,CAuBA;AAED,cAAc;AACd,wBAAgB,oBAAoB,CAAC,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,EACvE,OAAO,EAAE,0BAA0B,CAAC,OAAO,EAAE,MAAM,CAAC,GAClD,6BAA6B,CAAC,OAAO,CAAC,GAAG,SAAS,CAOpD"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { LaunchModelConfigInput } from "@leitwerk-dev/domain";
|
|
2
2
|
import type { ProcessWatcherSource } from "./extension-api.js";
|
|
3
|
-
/** Parse the shared launch-model fragment nested inside extension-owned watcher config. */
|
|
3
|
+
/** Parse the shared launch-model fragment nested inside extension-owned watcher config. @public */
|
|
4
4
|
export declare function parseProcessWatcherLaunchModelConfig(value: unknown): LaunchModelConfigInput & {
|
|
5
|
+
/** @internal */
|
|
5
6
|
skillIds: string[];
|
|
6
7
|
};
|
|
8
|
+
/** @public */
|
|
7
9
|
export declare function defineProcessWatcherSource<TConfig, TEvent = unknown>(source: ProcessWatcherSource<TConfig, TEvent>): ProcessWatcherSource<TConfig, TEvent>;
|
|
8
10
|
//# sourceMappingURL=process-watcher-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-watcher-source.d.ts","sourceRoot":"","sources":["../src/process-watcher-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"process-watcher-source.d.ts","sourceRoot":"","sources":["../src/process-watcher-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAa/D,mGAAmG;AACnG,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB,GAAG;IAC9F,gBAAgB;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB,CA+BA;AAED,cAAc;AACd,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,EACnE,MAAM,EAAE,oBAAoB,CAAC,OAAO,EAAE,MAAM,CAAC,GAC3C,oBAAoB,CAAC,OAAO,EAAE,MAAM,CAAC,CAQvC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IntegrationToolExecutionContext } from "./extension-api.js";
|
|
2
|
+
/** @public */
|
|
3
|
+
export interface RepositoryProjectBinding {
|
|
4
|
+
/** @public */
|
|
5
|
+
owner: string;
|
|
6
|
+
/** @public */
|
|
7
|
+
repo: string;
|
|
8
|
+
/** @public */
|
|
9
|
+
profile: string;
|
|
10
|
+
}
|
|
11
|
+
/** Validate an authorized project's binding, retaining extension-selected legacy metadata. @public */
|
|
12
|
+
export declare function resolveRepositoryProjectBinding(ctx: Pick<IntegrationToolExecutionContext, "project" | "process">, provider: string, legacyMetadataKey?: string): RepositoryProjectBinding;
|
|
13
|
+
//# sourceMappingURL=project-binding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-binding.d.ts","sourceRoot":"","sources":["../src/project-binding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAG1E,cAAc;AACd,MAAM,WAAW,wBAAwB;IACxC,cAAc;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc;IACd,IAAI,EAAE,MAAM,CAAC;IACb,cAAc;IACd,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,sGAAsG;AACtG,wBAAgB,+BAA+B,CAC9C,GAAG,EAAE,IAAI,CAAC,+BAA+B,EAAE,SAAS,GAAG,SAAS,CAAC,EACjE,QAAQ,EAAE,MAAM,EAChB,iBAAiB,CAAC,EAAE,MAAM,GACxB,wBAAwB,CAqB1B"}
|
package/dist/registry-utils.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
/** @internal */
|
|
1
2
|
export interface UniqueRegistrationOptions<TValue> {
|
|
3
|
+
/** @internal */
|
|
2
4
|
duplicateMessage: string;
|
|
5
|
+
/** @internal */
|
|
3
6
|
validate?: (value: TValue) => void;
|
|
4
7
|
}
|
|
8
|
+
/** @internal */
|
|
5
9
|
export declare function registerUnique<TKey, TValue>(registry: Map<TKey, TValue>, key: TKey, value: TValue, options: UniqueRegistrationOptions<TValue>): void;
|
|
10
|
+
/** @internal */
|
|
6
11
|
export declare function cloneMap<TKey, TValue>(registry: ReadonlyMap<TKey, TValue>): Map<TKey, TValue>;
|
|
12
|
+
/** @internal */
|
|
7
13
|
export declare function cloneArrayValueMap<TKey, TValue>(registry: ReadonlyMap<TKey, readonly TValue[]>): Map<TKey, readonly TValue[]>;
|
|
8
14
|
//# sourceMappingURL=registry-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry-utils.d.ts","sourceRoot":"","sources":["../src/registry-utils.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB,CAAC,MAAM;IAChD,gBAAgB,EAAE,MAAM,CAAC;IACzB,QA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MAAM,CAAC,CAE7F;AAED,gBAAgB;AAChB,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAC9C,QAAQ,EAAE,WAAW,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC,GAC5C,GAAG,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC,CAE9B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** @public */
|
|
2
|
+
export interface RepositoryFeedbackItem {
|
|
3
|
+
/** @public */
|
|
4
|
+
kind: "conversation" | "review" | "inline";
|
|
5
|
+
/** @internal */
|
|
6
|
+
id: number;
|
|
7
|
+
/** @public */
|
|
8
|
+
body: string;
|
|
9
|
+
/** @internal */
|
|
10
|
+
createdAt: string;
|
|
11
|
+
/** @public */
|
|
12
|
+
author: string;
|
|
13
|
+
/** @internal */
|
|
14
|
+
path?: string;
|
|
15
|
+
/** @internal */
|
|
16
|
+
line?: number | null;
|
|
17
|
+
}
|
|
18
|
+
/** Batch already-authorized, unseen feedback after its quiet period. @internal */
|
|
19
|
+
export declare function repositoryFeedbackBatch(unseen: readonly RepositoryFeedbackItem[], config: Record<`${RepositoryFeedbackItem["kind"]}Cursor`, number> & {
|
|
20
|
+
/** @internal */
|
|
21
|
+
quietPeriodMs: number;
|
|
22
|
+
}, now: number): {
|
|
23
|
+
/** @internal */
|
|
24
|
+
event: {
|
|
25
|
+
/** @internal */
|
|
26
|
+
feedbackIds: {
|
|
27
|
+
/** @internal */
|
|
28
|
+
kind: "review" | "conversation" | "inline";
|
|
29
|
+
/** @internal */
|
|
30
|
+
id: number;
|
|
31
|
+
}[];
|
|
32
|
+
/** @internal */
|
|
33
|
+
cursors: {
|
|
34
|
+
/** @internal */
|
|
35
|
+
conversationCursor: number;
|
|
36
|
+
/** @internal */
|
|
37
|
+
reviewCursor: number;
|
|
38
|
+
/** @internal */
|
|
39
|
+
inlineCursor: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
mergeKey: string;
|
|
44
|
+
} | null;
|
|
45
|
+
/** Normalize common forge feedback fields; reject empty bodies and missing identities. @internal */
|
|
46
|
+
export declare function normalizeRepositoryFeedback(kind: RepositoryFeedbackItem["kind"], item: Record<string, unknown>): RepositoryFeedbackItem | null;
|
|
47
|
+
//# sourceMappingURL=repository-feedback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-feedback.d.ts","sourceRoot":"","sources":["../src/repository-feedback.ts"],"names":[],"mappings":"AAEA,cAAc;AACd,MAAM,WAAW,sBAAsB;IACtC,cAAc;IACd,IAAI,EAAE,cAAc,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3C,gBAAgB;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc;IACd,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc;IACd,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,kFAAkF;AAClF,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,SAAS,sBAAsB,EAAE,EACzC,MAAM,EAAE,MAAM,CAAC,GAAG,sBAAsB,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG;IACnE,gBAAgB;IAChB,aAAa,EAAE,MAAM,CAAC;CACtB,EACD,GAAG,EAAE,MAAM;IAkBV,gBAAgB;;QAEf,gBAAgB;;YAEf,gBAAgB;;YAEhB,gBAAgB;;;QAGjB,gBAAgB;;YArBjB,gBAAgB;;YAEhB,gBAAgB;;YAEhB,gBAAgB;;;;IAoBhB,gBAAgB;;SAGjB;AAED,oGAAoG;AACpG,wBAAgB,2BAA2B,CAC1C,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,EACpC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3B,sBAAsB,GAAG,IAAI,CAkB/B"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { type SubprocessEnvInput } from "./subprocess-env.js";
|
|
2
|
-
/** Worker-internal registration; the wrapper path is never copied to ordinary subprocesses. */
|
|
2
|
+
/** Worker-internal registration; the wrapper path is never copied to ordinary subprocesses. @internal */
|
|
3
3
|
export declare function setRepositoryGitSshWrapper(projectKey: string, wrapperPath: string): void;
|
|
4
|
+
/** @internal */
|
|
4
5
|
export declare function clearRepositoryGitSshWrappers(): void;
|
|
5
|
-
/**
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare function setRepositoryGitHttpsHelper(projectKey: string, helperPath: string): void;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare function clearRepositoryGitHttpsHelpers(): void;
|
|
10
|
+
/** Safe environment for a trusted Git invocation for one process project. @public */
|
|
6
11
|
export declare function repositoryGitSubprocessEnv(projectKey: string, overrides?: SubprocessEnvInput): NodeJS.ProcessEnv;
|
|
12
|
+
/** @public */
|
|
7
13
|
export declare function repositoryGitArgs(args: readonly string[]): string[];
|
|
8
14
|
//# sourceMappingURL=repository-git-env.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository-git-env.d.ts","sourceRoot":"","sources":["../src/repository-git-env.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"repository-git-env.d.ts","sourceRoot":"","sources":["../src/repository-git-env.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,kBAAkB,EAEvB,MAAM,qBAAqB,CAAC;AAM7B,yGAAyG;AACzG,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAExF;AAED,gBAAgB;AAChB,wBAAgB,6BAA6B,IAAI,IAAI,CAIpD;AAED,gBAAgB;AAChB,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAGxF;AAED,gBAAgB;AAChB,wBAAgB,8BAA8B,IAAI,IAAI,CAIrD;AAED,qFAAqF;AACrF,wBAAgB,0BAA0B,CACzC,UAAU,EAAE,MAAM,EAClB,SAAS,GAAE,kBAAuB,GAChC,MAAM,CAAC,UAAU,CAuBnB;AAED,cAAc;AACd,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAEnE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IntegrationHttpClient } from "./integration-http.js";
|
|
2
|
+
import type { RepositoryIssue, RepositoryPullRequest } from "./repository-types.js";
|
|
3
|
+
/** Common forge endpoints; extensions retain authentication and specialized operations. @public */
|
|
4
|
+
export declare class RepositoryHttpClient<Comment = Record<string, unknown>> extends IntegrationHttpClient {
|
|
5
|
+
/** @internal */
|
|
6
|
+
protected repositoryPath(owner: string, repo: string): string;
|
|
7
|
+
/** @internal */
|
|
8
|
+
getIssue(owner: string, repo: string, number: number, signal?: AbortSignal): Promise<RepositoryIssue>;
|
|
9
|
+
/** @public */
|
|
10
|
+
listIssueComments(owner: string, repo: string, number: number, signal?: AbortSignal): Promise<Comment[]>;
|
|
11
|
+
/** @public */
|
|
12
|
+
addIssueComment(owner: string, repo: string, number: number, body: string, signal?: AbortSignal): Promise<unknown>;
|
|
13
|
+
/** @public */
|
|
14
|
+
createPullRequest(owner: string, repo: string, input: {
|
|
15
|
+
/** @public */
|
|
16
|
+
title: string;
|
|
17
|
+
/** @public */
|
|
18
|
+
body: string;
|
|
19
|
+
/** @public */
|
|
20
|
+
head: string;
|
|
21
|
+
/** @public */
|
|
22
|
+
base: string;
|
|
23
|
+
}): Promise<RepositoryPullRequest>;
|
|
24
|
+
/** @public */
|
|
25
|
+
getPullRequest(owner: string, repo: string, number: number, signal?: AbortSignal): Promise<RepositoryPullRequest>;
|
|
26
|
+
/** @internal */
|
|
27
|
+
listPullRequests(owner: string, repo: string, state?: string): Promise<RepositoryPullRequest[]>;
|
|
28
|
+
/** @public */
|
|
29
|
+
updatePullRequest(owner: string, repo: string, number: number, patch: Record<string, unknown>, signal?: AbortSignal): Promise<RepositoryPullRequest>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=repository-http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-http.d.ts","sourceRoot":"","sources":["../src/repository-http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,mGAAmG;AACnG,qBAAa,oBAAoB,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAE,SAAQ,qBAAqB;IACjG,gBAAgB;IAChB,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM;IAI7D,gBAAgB;IAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW;IAM1E,cAAc;IACd,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW;IAOnF,cAAc;IACd,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW;IAS/F,cAAc;IACd,iBAAiB,CAChB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE;QACN,cAAc;QACd,KAAK,EAAE,MAAM,CAAC;QACd,cAAc;QACd,IAAI,EAAE,MAAM,CAAC;QACb,cAAc;QACd,IAAI,EAAE,MAAM,CAAC;QACb,cAAc;QACd,IAAI,EAAE,MAAM,CAAC;KACb;IASF,cAAc;IACd,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW;IAOhF,gBAAgB;IAChB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,SAAS;IAM5D,cAAc;IACd,iBAAiB,CAChB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,MAAM,CAAC,EAAE,WAAW;CASrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-https.d.ts","sourceRoot":"","sources":["../src/repository-https.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAoBrD"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** @public */
|
|
2
|
+
export interface RepositoryIssueWatcherConfig {
|
|
3
|
+
/** @internal */
|
|
4
|
+
profile: string;
|
|
5
|
+
/** @internal */
|
|
6
|
+
pollInterval: string;
|
|
7
|
+
/** @internal */
|
|
8
|
+
repositories: {
|
|
9
|
+
/** @internal */
|
|
10
|
+
include: readonly string[];
|
|
11
|
+
/** @internal */
|
|
12
|
+
exclude: readonly string[];
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
labels: {
|
|
16
|
+
/** @internal */
|
|
17
|
+
trigger: string;
|
|
18
|
+
/** @internal */
|
|
19
|
+
done: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare function matchesRepository(config: Pick<RepositoryIssueWatcherConfig, "repositories">, repository: {
|
|
24
|
+
/** @internal */
|
|
25
|
+
full_name: string;
|
|
26
|
+
}): boolean;
|
|
27
|
+
/** Parse shared issue watcher fields; extensions choose the legacy type and label policy. @internal */
|
|
28
|
+
export declare function parseRepositoryIssueWatcherConfig(raw: unknown, legacyType: string, distinctLabels?: boolean): {
|
|
29
|
+
/** @internal */
|
|
30
|
+
config: RepositoryIssueWatcherConfig;
|
|
31
|
+
/** @internal */
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
/** @internal */
|
|
34
|
+
launchModelConfig: import("@leitwerk-dev/domain").LaunchModelConfigInput & {
|
|
35
|
+
/** @internal */
|
|
36
|
+
skillIds: string[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare function presentRepositoryIssueWatcherConfig(config: RepositoryIssueWatcherConfig): {
|
|
41
|
+
/** @internal */
|
|
42
|
+
targetSummary: string;
|
|
43
|
+
/** @internal */
|
|
44
|
+
details: {
|
|
45
|
+
/** @internal */
|
|
46
|
+
label: string;
|
|
47
|
+
/** @internal */
|
|
48
|
+
value: string;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=repository-issue-watcher.d.ts.map
|