@workos/oagen 0.3.0 → 0.4.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 +72 -0
- package/dist/cli/index.mjs +844 -56
- package/dist/cli/index.mjs.map +1 -1
- package/dist/compat/index.d.mts +1 -1
- package/dist/compat/index.mjs +9 -4
- package/dist/compat/index.mjs.map +1 -1
- package/dist/{diff-Cn6S74vV.mjs → diff-DcY93sii.mjs} +433 -14
- package/dist/diff-DcY93sii.mjs.map +1 -0
- package/dist/{differ-B6472Yef.mjs → differ-CG5ZErKl.mjs} +2 -2
- package/dist/{differ-B6472Yef.mjs.map → differ-CG5ZErKl.mjs.map} +1 -1
- package/dist/index.d.mts +107 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +337 -29
- package/dist/index.mjs.map +1 -1
- package/dist/scripts/smoke/baseline.mjs +314 -32
- package/dist/scripts/smoke/baseline.mjs.map +1 -1
- package/dist/smoke.d.mts +138 -0
- package/dist/smoke.d.mts.map +1 -1
- package/dist/smoke.mjs +314 -32
- package/dist/smoke.mjs.map +1 -1
- package/dist/{tree-sitter-DFRXfWg9.mjs → tree-sitter-C53w_0WE.mjs} +5 -7
- package/dist/tree-sitter-C53w_0WE.mjs.map +1 -0
- package/dist/{types-O25qZxMl.d.mts → types-D1tMqLVB.d.mts} +165 -2
- package/dist/types-D1tMqLVB.d.mts.map +1 -0
- package/dist/verify/index.d.mts +1 -1
- package/dist/verify/index.mjs +4 -4
- package/dist/verify/index.mjs.map +1 -1
- package/docs/architecture/ir-types.md +73 -1
- package/docs/cli.md +29 -8
- package/package.json +4 -4
- package/skills/review-operations/SKILL.md +83 -0
- package/dist/diff-Cn6S74vV.mjs.map +0 -1
- package/dist/tree-sitter-DFRXfWg9.mjs.map +0 -1
- package/dist/types-O25qZxMl.d.mts.map +0 -1
package/dist/compat/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as ApiField, Q as ApiEnum, X as Addition, Z as ApiClass, at as ApiTypeAlias, ct as LanguageHints, dt as Violation, et as ApiInterface, ft as ViolationCategory, it as ApiSurface, lt as MethodOverlay, nt as ApiParam, ot as DiffResult, pt as ViolationSeverity, rt as ApiProperty, st as Extractor, t as ApiSpec, tt as ApiMethod, ut as OverlayLookup } from "../types-D1tMqLVB.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/extractor-registry.d.ts
|
|
4
4
|
declare function registerExtractor(extractor: Extractor): void;
|
package/dist/compat/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as safeParse$1, v as ExtractorError } from "../tree-sitter-
|
|
2
|
-
import { _ as registerExtractor, a as specDerivedHttpKeys, c as buildOverlayLookup, d as defaultIsNullableOnlyDifference, f as namedTypeWordsOverlap, g as getExtractor, h as typeExistsInSurface, i as specDerivedFieldPaths, l as patchOverlay, m as resolveHints, n as filterSurface, o as specDerivedMethodPaths, p as nodeHints, r as specDerivedEnumValues, s as specDerivedNames, t as diffSurfaces, u as NAMED_TYPE_RE } from "../differ-
|
|
1
|
+
import { t as safeParse$1, v as ExtractorError } from "../tree-sitter-C53w_0WE.mjs";
|
|
2
|
+
import { _ as registerExtractor, a as specDerivedHttpKeys, c as buildOverlayLookup, d as defaultIsNullableOnlyDifference, f as namedTypeWordsOverlap, g as getExtractor, h as typeExistsInSurface, i as specDerivedFieldPaths, l as patchOverlay, m as resolveHints, n as filterSurface, o as specDerivedMethodPaths, p as nodeHints, r as specDerivedEnumValues, s as specDerivedNames, t as diffSurfaces, u as NAMED_TYPE_RE } from "../differ-CG5ZErKl.mjs";
|
|
3
3
|
import path, { basename, dirname, join, relative, resolve } from "node:path";
|
|
4
4
|
import Parser from "tree-sitter";
|
|
5
5
|
import ts from "typescript";
|
|
@@ -538,6 +538,7 @@ function parseClassDeclarations(tree, sourceFile, namespace) {
|
|
|
538
538
|
const properties = parseProperties$1(bodyNode);
|
|
539
539
|
const constants = parseConstants(bodyNode);
|
|
540
540
|
const resourceAttributes = parseResourceAttributes(bodyNode);
|
|
541
|
+
const hasCustomConstructor = methods.some((m) => m.name === "constructFromResponse" && m.isStatic);
|
|
541
542
|
classes.push({
|
|
542
543
|
name: nameNode.text,
|
|
543
544
|
namespace,
|
|
@@ -547,6 +548,7 @@ function parseClassDeclarations(tree, sourceFile, namespace) {
|
|
|
547
548
|
properties,
|
|
548
549
|
constants,
|
|
549
550
|
resourceAttributes,
|
|
551
|
+
hasCustomConstructor,
|
|
550
552
|
sourceFile
|
|
551
553
|
});
|
|
552
554
|
}
|
|
@@ -569,6 +571,7 @@ function parseInterfaceDeclarations(tree, sourceFile, namespace) {
|
|
|
569
571
|
properties: [],
|
|
570
572
|
constants: [],
|
|
571
573
|
resourceAttributes: [],
|
|
574
|
+
hasCustomConstructor: false,
|
|
572
575
|
sourceFile
|
|
573
576
|
});
|
|
574
577
|
}
|
|
@@ -607,6 +610,7 @@ function parseEnumDeclarations(tree, sourceFile, namespace) {
|
|
|
607
610
|
properties: [],
|
|
608
611
|
constants,
|
|
609
612
|
resourceAttributes: [],
|
|
613
|
+
hasCustomConstructor: false,
|
|
610
614
|
sourceFile
|
|
611
615
|
});
|
|
612
616
|
}
|
|
@@ -682,8 +686,9 @@ function buildSurface$6(allClasses, hints) {
|
|
|
682
686
|
interfaces[cls.name] = {
|
|
683
687
|
name: cls.name,
|
|
684
688
|
sourceFile: cls.sourceFile,
|
|
685
|
-
fields
|
|
686
|
-
extends: cls.extends ? [cls.extends] : []
|
|
689
|
+
fields,
|
|
690
|
+
extends: cls.extends ? [cls.extends] : [],
|
|
691
|
+
...cls.hasCustomConstructor ? { hasCustomConstructor: true } : {}
|
|
687
692
|
};
|
|
688
693
|
collector.add(cls.sourceFile, cls.name);
|
|
689
694
|
} else if (isEnumClass(cls)) {
|