@telorun/sdk 0.70.0 → 0.72.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.
@@ -88,6 +88,17 @@ export interface RuntimeCheckOptions {
88
88
  * detail of one editor transport, and this contract is read by a Rust or Go
89
89
  * kernel too. */
90
90
  export type CheckDiagnosticSeverity = "error" | "warning" | "info" | "hint";
91
+ /** A mechanically applicable repair for a finding: `replacement` is the whole
92
+ * corrected value at `path` — never a fragment — so a consumer applies it
93
+ * without parsing the language inside.
94
+ *
95
+ * That is why `path` travels with it. `source` / `line` / `column` locate a
96
+ * finding for a human reading text; a module applying a repair works on the
97
+ * parsed manifest, where a line number is not an address. A repair without its
98
+ * anchor is one nothing can apply. */
99
+ export interface CheckDiagnosticFix {
100
+ replacement: string;
101
+ }
91
102
  /** One analyzer finding, flattened to data. Positions are zero-based, matching
92
103
  * the analyzer's own range model. */
93
104
  export interface CheckDiagnostic {
@@ -98,6 +109,15 @@ export interface CheckDiagnostic {
98
109
  source?: string;
99
110
  line?: number;
100
111
  column?: number;
112
+ /** `<kind>/<name>` of the resource the finding is pinned to. */
113
+ resource?: string;
114
+ /** Dotted path of the offending value within that resource
115
+ * (`steps[0].inputs.flag`) — the address `fix` applies at. */
116
+ path?: string;
117
+ /** Present only when the repair is decidable — a fix that might not be
118
+ * correct is worse than none, since the point of the field is that it can be
119
+ * applied without review. */
120
+ fix?: CheckDiagnosticFix;
101
121
  }
102
122
  export interface RuntimeCheckResult {
103
123
  diagnostics: CheckDiagnostic[];
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-seam.d.ts","sourceRoot":"","sources":["../src/runtime-seam.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,O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AI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,uBAAuB,CAAC;IAClC,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;mEAC+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;kCAE8B;IAC9B,GAAG,CAAC,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B;iEAC6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telorun/sdk",
3
- "version": "0.70.0",
3
+ "version": "0.72.0",
4
4
  "description": "Telo SDK - Public API for Telo module authors.",
5
5
  "keywords": [
6
6
  "telo",
@@ -94,6 +94,18 @@ export interface RuntimeCheckOptions {
94
94
  * kernel too. */
95
95
  export type CheckDiagnosticSeverity = "error" | "warning" | "info" | "hint";
96
96
 
97
+ /** A mechanically applicable repair for a finding: `replacement` is the whole
98
+ * corrected value at `path` — never a fragment — so a consumer applies it
99
+ * without parsing the language inside.
100
+ *
101
+ * That is why `path` travels with it. `source` / `line` / `column` locate a
102
+ * finding for a human reading text; a module applying a repair works on the
103
+ * parsed manifest, where a line number is not an address. A repair without its
104
+ * anchor is one nothing can apply. */
105
+ export interface CheckDiagnosticFix {
106
+ replacement: string;
107
+ }
108
+
97
109
  /** One analyzer finding, flattened to data. Positions are zero-based, matching
98
110
  * the analyzer's own range model. */
99
111
  export interface CheckDiagnostic {
@@ -104,6 +116,15 @@ export interface CheckDiagnostic {
104
116
  source?: string;
105
117
  line?: number;
106
118
  column?: number;
119
+ /** `<kind>/<name>` of the resource the finding is pinned to. */
120
+ resource?: string;
121
+ /** Dotted path of the offending value within that resource
122
+ * (`steps[0].inputs.flag`) — the address `fix` applies at. */
123
+ path?: string;
124
+ /** Present only when the repair is decidable — a fix that might not be
125
+ * correct is worse than none, since the point of the field is that it can be
126
+ * applied without review. */
127
+ fix?: CheckDiagnosticFix;
107
128
  }
108
129
 
109
130
  export interface RuntimeCheckResult {