@apotech-os/support-kit 9.0.0 → 10.1.0
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/README.md +43 -12
- package/dist/{chunk-MHRKUDEZ.js → chunk-KEPXRZ7R.js} +597 -52
- package/dist/chunk-KEPXRZ7R.js.map +1 -0
- package/dist/index.cjs +1495 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -13
- package/dist/index.d.ts +15 -13
- package/dist/index.js +863 -37
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs +267 -171
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +186 -527
- package/dist/ui/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-MHRKUDEZ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -556,6 +556,13 @@ interface CompletionRequest {
|
|
|
556
556
|
label?: string;
|
|
557
557
|
resolve?: boolean;
|
|
558
558
|
};
|
|
559
|
+
/**
|
|
560
|
+
* The `vars` the node handed `PromptPort.resolve` for this prompt,
|
|
561
|
+
* forwarded to `ctx.api.llm.complete` so the platform records them on the
|
|
562
|
+
* generation (spec MCP §5.4.3: `explain_ticket` shows them). Absent when
|
|
563
|
+
* the prompt was resolved without variables.
|
|
564
|
+
*/
|
|
565
|
+
promptVariables?: Record<string, string>;
|
|
559
566
|
/** Forwarded verbatim to `ctx.api.llm.complete` v2's `trace` (S2). */
|
|
560
567
|
trace?: {
|
|
561
568
|
sessionId?: string;
|
|
@@ -2132,7 +2139,7 @@ declare const SUPPORT_KIT_SETTINGS_FIELDS: SettingsField[];
|
|
|
2132
2139
|
* French translation is now a COMPILE ERROR in that map, not a silent
|
|
2133
2140
|
* English leak an operator discovers on a live settings page.
|
|
2134
2141
|
*/
|
|
2135
|
-
type SettingsIssueKey = 'sourceViewId' | 'nodes' | 'nodePrompt' | 'senderEmail';
|
|
2142
|
+
type SettingsIssueKey = 'sourceViewId' | 'appScopeTag' | 'nodes' | 'nodePrompt' | 'senderEmail';
|
|
2136
2143
|
interface SettingsValidationIssue {
|
|
2137
2144
|
/** The offending settings key. */
|
|
2138
2145
|
key: SettingsIssueKey;
|
|
@@ -2140,8 +2147,8 @@ interface SettingsValidationIssue {
|
|
|
2140
2147
|
message: string;
|
|
2141
2148
|
}
|
|
2142
2149
|
/**
|
|
2143
|
-
* The two cross-field rules the spec names,
|
|
2144
|
-
* schema can express: `nodes.triage` must be configured. `nodes` has no
|
|
2150
|
+
* The two cross-field rules the spec names, the app's own ticket tag, plus
|
|
2151
|
+
* the one shape rule no schema can express: `nodes.triage` must be configured. `nodes` has no
|
|
2145
2152
|
* default (a defaulted "every step null" would install a pipeline that
|
|
2146
2153
|
* triages nothing), and `AgentProfile.nodes.triage` is non-nullable — this
|
|
2147
2154
|
* check is what makes both safe. Per-field typing (e.g. `batchLimit` being a
|
|
@@ -2162,7 +2169,7 @@ declare function validateSettings(settings: Record<string, unknown>): SettingsVa
|
|
|
2162
2169
|
* written in French straight away — unlike `validateSettings`' own, they are
|
|
2163
2170
|
* never logged, never returned by a handler, and so need no translation layer.
|
|
2164
2171
|
*/
|
|
2165
|
-
type SettingsWarningKey = 'appScopeTagVetoesFollowups' | 'appScopeTagCollision' | '
|
|
2172
|
+
type SettingsWarningKey = 'appScopeTagVetoesFollowups' | 'appScopeTagCollision' | 'noAutoSendChannels';
|
|
2166
2173
|
interface SettingsWarning {
|
|
2167
2174
|
key: SettingsWarningKey;
|
|
2168
2175
|
/** Operator-facing French, safe to show as-is. */
|
|
@@ -2187,16 +2194,13 @@ declare function settingsWarnings(settings: Record<string, unknown>): SettingsWa
|
|
|
2187
2194
|
* - `responseTtlMinutes` → `schedule.fastResponseTtlMinutes`, `batchLimit`
|
|
2188
2195
|
* → `schedule.triageBatchLimit`.
|
|
2189
2196
|
*
|
|
2190
|
-
*
|
|
2197
|
+
* Two settings have no profile counterpart on purpose:
|
|
2191
2198
|
* `dryRun` (read by the HANDLERS — `functions/triage-tick.ts` and
|
|
2192
2199
|
* `functions/process-response.ts` swap the `reply`/`state` ports for the
|
|
2193
2200
|
* recorders of `adapters/recording-ports.ts` and force `send: {mode:
|
|
2194
2201
|
* 'none'}` — not by the graph, which must run identically either way),
|
|
2195
|
-
* `statsTimezone` (a §3.8 rendering concern)
|
|
2196
|
-
*
|
|
2197
|
-
* account this app may answer a follow-up on is a routing decision, read by
|
|
2198
|
-
* the webhook's own gates, never by a node). `to-profile.spec.ts` pins that
|
|
2199
|
-
* list, so a new settings field cannot be forgotten here.
|
|
2202
|
+
* and `statsTimezone` (a §3.8 rendering concern). `to-profile.spec.ts` pins
|
|
2203
|
+
* that list, so a new settings field cannot be forgotten here.
|
|
2200
2204
|
*
|
|
2201
2205
|
* `prompts` is a PARAMETER, not derived here: `prompts.draft` is the agent
|
|
2202
2206
|
* record's own Langfuse binding (§3.4), which a settings blob cannot know.
|
|
@@ -2277,9 +2281,7 @@ interface SupportKitSettings {
|
|
|
2277
2281
|
autoRepliedTag: string;
|
|
2278
2282
|
needsReviewTag: string;
|
|
2279
2283
|
followupTag: string;
|
|
2280
|
-
/**
|
|
2281
|
-
webhookScopeTag: string;
|
|
2282
|
-
/** The tag this app stamps on every ticket its triage sees. Empty = stamps nothing (see `settings/fields.ts`). */
|
|
2284
|
+
/** The app's ticket tag: stamped by the triage, required by the follow-up webhook, served to the extension (see `settings/fields.ts`). */
|
|
2283
2285
|
appScopeTag: string;
|
|
2284
2286
|
autoSendEnabled: boolean;
|
|
2285
2287
|
senderEmail: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -556,6 +556,13 @@ interface CompletionRequest {
|
|
|
556
556
|
label?: string;
|
|
557
557
|
resolve?: boolean;
|
|
558
558
|
};
|
|
559
|
+
/**
|
|
560
|
+
* The `vars` the node handed `PromptPort.resolve` for this prompt,
|
|
561
|
+
* forwarded to `ctx.api.llm.complete` so the platform records them on the
|
|
562
|
+
* generation (spec MCP §5.4.3: `explain_ticket` shows them). Absent when
|
|
563
|
+
* the prompt was resolved without variables.
|
|
564
|
+
*/
|
|
565
|
+
promptVariables?: Record<string, string>;
|
|
559
566
|
/** Forwarded verbatim to `ctx.api.llm.complete` v2's `trace` (S2). */
|
|
560
567
|
trace?: {
|
|
561
568
|
sessionId?: string;
|
|
@@ -2132,7 +2139,7 @@ declare const SUPPORT_KIT_SETTINGS_FIELDS: SettingsField[];
|
|
|
2132
2139
|
* French translation is now a COMPILE ERROR in that map, not a silent
|
|
2133
2140
|
* English leak an operator discovers on a live settings page.
|
|
2134
2141
|
*/
|
|
2135
|
-
type SettingsIssueKey = 'sourceViewId' | 'nodes' | 'nodePrompt' | 'senderEmail';
|
|
2142
|
+
type SettingsIssueKey = 'sourceViewId' | 'appScopeTag' | 'nodes' | 'nodePrompt' | 'senderEmail';
|
|
2136
2143
|
interface SettingsValidationIssue {
|
|
2137
2144
|
/** The offending settings key. */
|
|
2138
2145
|
key: SettingsIssueKey;
|
|
@@ -2140,8 +2147,8 @@ interface SettingsValidationIssue {
|
|
|
2140
2147
|
message: string;
|
|
2141
2148
|
}
|
|
2142
2149
|
/**
|
|
2143
|
-
* The two cross-field rules the spec names,
|
|
2144
|
-
* schema can express: `nodes.triage` must be configured. `nodes` has no
|
|
2150
|
+
* The two cross-field rules the spec names, the app's own ticket tag, plus
|
|
2151
|
+
* the one shape rule no schema can express: `nodes.triage` must be configured. `nodes` has no
|
|
2145
2152
|
* default (a defaulted "every step null" would install a pipeline that
|
|
2146
2153
|
* triages nothing), and `AgentProfile.nodes.triage` is non-nullable — this
|
|
2147
2154
|
* check is what makes both safe. Per-field typing (e.g. `batchLimit` being a
|
|
@@ -2162,7 +2169,7 @@ declare function validateSettings(settings: Record<string, unknown>): SettingsVa
|
|
|
2162
2169
|
* written in French straight away — unlike `validateSettings`' own, they are
|
|
2163
2170
|
* never logged, never returned by a handler, and so need no translation layer.
|
|
2164
2171
|
*/
|
|
2165
|
-
type SettingsWarningKey = 'appScopeTagVetoesFollowups' | 'appScopeTagCollision' | '
|
|
2172
|
+
type SettingsWarningKey = 'appScopeTagVetoesFollowups' | 'appScopeTagCollision' | 'noAutoSendChannels';
|
|
2166
2173
|
interface SettingsWarning {
|
|
2167
2174
|
key: SettingsWarningKey;
|
|
2168
2175
|
/** Operator-facing French, safe to show as-is. */
|
|
@@ -2187,16 +2194,13 @@ declare function settingsWarnings(settings: Record<string, unknown>): SettingsWa
|
|
|
2187
2194
|
* - `responseTtlMinutes` → `schedule.fastResponseTtlMinutes`, `batchLimit`
|
|
2188
2195
|
* → `schedule.triageBatchLimit`.
|
|
2189
2196
|
*
|
|
2190
|
-
*
|
|
2197
|
+
* Two settings have no profile counterpart on purpose:
|
|
2191
2198
|
* `dryRun` (read by the HANDLERS — `functions/triage-tick.ts` and
|
|
2192
2199
|
* `functions/process-response.ts` swap the `reply`/`state` ports for the
|
|
2193
2200
|
* recorders of `adapters/recording-ports.ts` and force `send: {mode:
|
|
2194
2201
|
* 'none'}` — not by the graph, which must run identically either way),
|
|
2195
|
-
* `statsTimezone` (a §3.8 rendering concern)
|
|
2196
|
-
*
|
|
2197
|
-
* account this app may answer a follow-up on is a routing decision, read by
|
|
2198
|
-
* the webhook's own gates, never by a node). `to-profile.spec.ts` pins that
|
|
2199
|
-
* list, so a new settings field cannot be forgotten here.
|
|
2202
|
+
* and `statsTimezone` (a §3.8 rendering concern). `to-profile.spec.ts` pins
|
|
2203
|
+
* that list, so a new settings field cannot be forgotten here.
|
|
2200
2204
|
*
|
|
2201
2205
|
* `prompts` is a PARAMETER, not derived here: `prompts.draft` is the agent
|
|
2202
2206
|
* record's own Langfuse binding (§3.4), which a settings blob cannot know.
|
|
@@ -2277,9 +2281,7 @@ interface SupportKitSettings {
|
|
|
2277
2281
|
autoRepliedTag: string;
|
|
2278
2282
|
needsReviewTag: string;
|
|
2279
2283
|
followupTag: string;
|
|
2280
|
-
/**
|
|
2281
|
-
webhookScopeTag: string;
|
|
2282
|
-
/** The tag this app stamps on every ticket its triage sees. Empty = stamps nothing (see `settings/fields.ts`). */
|
|
2284
|
+
/** The app's ticket tag: stamped by the triage, required by the follow-up webhook, served to the extension (see `settings/fields.ts`). */
|
|
2283
2285
|
appScopeTag: string;
|
|
2284
2286
|
autoSendEnabled: boolean;
|
|
2285
2287
|
senderEmail: string;
|