@moldea.ai/adapter-openai-agents-sdk 1.0.1 → 1.0.2
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/index.js
CHANGED
|
@@ -605,6 +605,103 @@ function getSafeModuleConstLiteral(expression, analysis, allowedReferences, kind
|
|
|
605
605
|
expression: initializer
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
|
+
var skipTransparentParents = (node) => {
|
|
609
|
+
let current = node;
|
|
610
|
+
while (ts.isAsExpression(current.parent) || ts.isParenthesizedExpression(current.parent) || ts.isSatisfiesExpression(current.parent)) current = current.parent;
|
|
611
|
+
return current;
|
|
612
|
+
};
|
|
613
|
+
var isAssignmentOperator = (kind) => kind >= ts.SyntaxKind.FirstAssignment && kind <= ts.SyntaxKind.LastAssignment;
|
|
614
|
+
var isMutatingTarget = (expression) => {
|
|
615
|
+
const candidate = skipTransparentParents(expression);
|
|
616
|
+
const parent = candidate.parent;
|
|
617
|
+
return ts.isBinaryExpression(parent) && parent.left === candidate && isAssignmentOperator(parent.operatorToken.kind) || (ts.isPrefixUnaryExpression(parent) || ts.isPostfixUnaryExpression(parent)) && parent.operand === candidate && (parent.operator === ts.SyntaxKind.PlusPlusToken || parent.operator === ts.SyntaxKind.MinusMinusToken) || ts.isDeleteExpression(parent) && parent.expression === candidate || (ts.isForInStatement(parent) || ts.isForOfStatement(parent)) && parent.initializer === candidate;
|
|
618
|
+
};
|
|
619
|
+
var getStaticMemberName = (member) => {
|
|
620
|
+
if (ts.isPropertyAccessExpression(member)) return member.name.text;
|
|
621
|
+
const argument = member.argumentExpression;
|
|
622
|
+
return argument !== void 0 && (ts.isStringLiteral(argument) || ts.isNoSubstitutionTemplateLiteral(argument)) ? argument.text : null;
|
|
623
|
+
};
|
|
624
|
+
var isIgnoredIdentifier = (identifier, declarationName) => identifier === declarationName || ts.isImportSpecifier(identifier.parent) || ts.isPropertyAccessExpression(identifier.parent) && identifier.parent.name === identifier || ts.isPropertyAssignment(identifier.parent) && identifier.parent.name === identifier;
|
|
625
|
+
var addObjectAssignmentMembers = (object, mutatedMembers) => {
|
|
626
|
+
let hasUnknownMutation = false;
|
|
627
|
+
for (const property of object.properties) {
|
|
628
|
+
if (!ts.isPropertyAssignment(property) && !ts.isShorthandPropertyAssignment(property) || ts.isComputedPropertyName(property.name)) {
|
|
629
|
+
hasUnknownMutation = true;
|
|
630
|
+
continue;
|
|
631
|
+
}
|
|
632
|
+
const propertyName = ts.isIdentifier(property.name) || ts.isStringLiteral(property.name) ? property.name.text : null;
|
|
633
|
+
if (propertyName === null) hasUnknownMutation = true;
|
|
634
|
+
else mutatedMembers.add(propertyName);
|
|
635
|
+
}
|
|
636
|
+
return hasUnknownMutation;
|
|
637
|
+
};
|
|
638
|
+
var analyzeMutationCall = (identifier, mutatedMembers) => {
|
|
639
|
+
const candidate = skipTransparentParents(identifier);
|
|
640
|
+
const parent = candidate.parent;
|
|
641
|
+
if (!ts.isCallExpression(parent)) return null;
|
|
642
|
+
const callee = unwrapExpression(parent.expression);
|
|
643
|
+
if (ts.isPropertyAccessExpression(callee) && ts.isIdentifier(callee.expression) && callee.expression.text === "Object" && callee.name.text === "assign" && parent.arguments[0] === candidate) {
|
|
644
|
+
let hasUnknownMutation = parent.arguments.length < 2;
|
|
645
|
+
for (const source of parent.arguments.slice(1)) {
|
|
646
|
+
const assignmentSource = unwrapExpression(source);
|
|
647
|
+
if (!ts.isObjectLiteralExpression(assignmentSource)) hasUnknownMutation = true;
|
|
648
|
+
else if (addObjectAssignmentMembers(assignmentSource, mutatedMembers)) hasUnknownMutation = true;
|
|
649
|
+
}
|
|
650
|
+
return hasUnknownMutation;
|
|
651
|
+
}
|
|
652
|
+
if (ts.isPropertyAccessExpression(callee) && ts.isIdentifier(callee.expression) && callee.expression.text === "Reflect" && callee.name.text === "set" && parent.arguments[0] === candidate) {
|
|
653
|
+
const member = parent.arguments[1];
|
|
654
|
+
if (member !== void 0 && (ts.isStringLiteral(member) || ts.isNoSubstitutionTemplateLiteral(member))) {
|
|
655
|
+
mutatedMembers.add(member.text);
|
|
656
|
+
return false;
|
|
657
|
+
}
|
|
658
|
+
return true;
|
|
659
|
+
}
|
|
660
|
+
return true;
|
|
661
|
+
};
|
|
662
|
+
/**
|
|
663
|
+
* Classifies module-local mutations and escapes for one returned object value.
|
|
664
|
+
* @param analysis The indexed source containing the binding.
|
|
665
|
+
* @param declaration The module-local constant declaration.
|
|
666
|
+
* @param allowedReferences Bare identifier uses proven to be supported registrations or targets.
|
|
667
|
+
* @returns Member-specific mutations and whether an unknown use can affect every relationship.
|
|
668
|
+
*/
|
|
669
|
+
var analyzeModuleValueMutations = (analysis, declaration, allowedReferences) => {
|
|
670
|
+
if (!ts.isIdentifier(declaration.name)) return Object.freeze({
|
|
671
|
+
hasUnknownMutation: true,
|
|
672
|
+
mutatedMembers: /* @__PURE__ */ new Set()
|
|
673
|
+
});
|
|
674
|
+
const mutatedMembers = /* @__PURE__ */ new Set();
|
|
675
|
+
let hasUnknownMutation = false;
|
|
676
|
+
for (const identifier of analysis.identifierUses.get(declaration.name.text) ?? []) {
|
|
677
|
+
if (isIgnoredIdentifier(identifier, declaration.name) || !isModuleBindingVisible(identifier, analysis) || allowedReferences.has(identifier)) continue;
|
|
678
|
+
const expression = skipTransparentParents(identifier);
|
|
679
|
+
const parent = expression.parent;
|
|
680
|
+
const member = (ts.isPropertyAccessExpression(parent) || ts.isElementAccessExpression(parent)) && parent.expression === expression ? parent : null;
|
|
681
|
+
if (member !== null) {
|
|
682
|
+
const memberName = getStaticMemberName(member);
|
|
683
|
+
if (memberName === null) hasUnknownMutation = true;
|
|
684
|
+
else if (isMutatingTarget(member)) mutatedMembers.add(memberName);
|
|
685
|
+
else {
|
|
686
|
+
const memberExpression = skipTransparentParents(member);
|
|
687
|
+
const memberParent = memberExpression.parent;
|
|
688
|
+
if ((ts.isPropertyAccessExpression(memberParent) || ts.isElementAccessExpression(memberParent)) && memberParent.expression === memberExpression && ts.isCallExpression(skipTransparentParents(memberParent).parent)) mutatedMembers.add(memberName);
|
|
689
|
+
else if (ts.isCallExpression(memberParent) && memberParent.expression === memberExpression) mutatedMembers.add(memberName);
|
|
690
|
+
}
|
|
691
|
+
continue;
|
|
692
|
+
}
|
|
693
|
+
if (isMutatingTarget(identifier)) {
|
|
694
|
+
hasUnknownMutation = true;
|
|
695
|
+
continue;
|
|
696
|
+
}
|
|
697
|
+
const mutationCall = analyzeMutationCall(identifier, mutatedMembers);
|
|
698
|
+
hasUnknownMutation ||= mutationCall ?? true;
|
|
699
|
+
}
|
|
700
|
+
return Object.freeze({
|
|
701
|
+
hasUnknownMutation,
|
|
702
|
+
mutatedMembers: new Set(mutatedMembers)
|
|
703
|
+
});
|
|
704
|
+
};
|
|
608
705
|
var getScriptKind = (path) => path.endsWith(".tsx") ? ts.ScriptKind.TSX : ts.ScriptKind.TS;
|
|
609
706
|
var createSyntaxProgram = (sourceFile, text) => {
|
|
610
707
|
return ts.createProgram({
|
|
@@ -753,105 +850,70 @@ var getConstExport = (analysis, symbol) => {
|
|
|
753
850
|
kind: "present-unsupported"
|
|
754
851
|
});
|
|
755
852
|
};
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
return current;
|
|
762
|
-
};
|
|
763
|
-
var isAssignmentOperator = (kind) => kind >= ts.SyntaxKind.FirstAssignment && kind <= ts.SyntaxKind.LastAssignment;
|
|
764
|
-
var isMutatingTarget = (expression) => {
|
|
765
|
-
const candidate = skipTransparentParents(expression);
|
|
766
|
-
const parent = candidate.parent;
|
|
767
|
-
return ts.isBinaryExpression(parent) && parent.left === candidate && isAssignmentOperator(parent.operatorToken.kind) || (ts.isPrefixUnaryExpression(parent) || ts.isPostfixUnaryExpression(parent)) && parent.operand === candidate && (parent.operator === ts.SyntaxKind.PlusPlusToken || parent.operator === ts.SyntaxKind.MinusMinusToken) || ts.isDeleteExpression(parent) && parent.expression === candidate || (ts.isForInStatement(parent) || ts.isForOfStatement(parent)) && parent.initializer === candidate;
|
|
768
|
-
};
|
|
769
|
-
var getStaticMemberName = (member) => {
|
|
770
|
-
if (ts.isPropertyAccessExpression(member)) return member.name.text;
|
|
771
|
-
const argument = member.argumentExpression;
|
|
772
|
-
return argument !== void 0 && (ts.isStringLiteral(argument) || ts.isNoSubstitutionTemplateLiteral(argument)) ? argument.text : null;
|
|
773
|
-
};
|
|
774
|
-
var isIgnoredIdentifier = (identifier, declarationName) => identifier === declarationName || ts.isImportSpecifier(identifier.parent) || ts.isPropertyAccessExpression(identifier.parent) && identifier.parent.name === identifier || ts.isPropertyAssignment(identifier.parent) && identifier.parent.name === identifier;
|
|
775
|
-
var addObjectAssignmentMembers = (object, mutatedMembers) => {
|
|
776
|
-
let hasUnknownMutation = false;
|
|
777
|
-
for (const property of object.properties) {
|
|
778
|
-
if (!ts.isPropertyAssignment(property) && !ts.isShorthandPropertyAssignment(property) || ts.isComputedPropertyName(property.name)) {
|
|
779
|
-
hasUnknownMutation = true;
|
|
780
|
-
continue;
|
|
781
|
-
}
|
|
782
|
-
const propertyName = ts.isIdentifier(property.name) || ts.isStringLiteral(property.name) ? property.name.text : null;
|
|
783
|
-
if (propertyName === null) hasUnknownMutation = true;
|
|
784
|
-
else mutatedMembers.add(propertyName);
|
|
853
|
+
var resolveCandidatePath = async (options, containingPath, moduleSpecifier) => {
|
|
854
|
+
const matchingPaths = [];
|
|
855
|
+
for (const candidate of resolveImportCandidatePaths(containingPath, moduleSpecifier)) {
|
|
856
|
+
const path = options.parsePath(candidate);
|
|
857
|
+
if ((await options.getEntry(path))?.type === "file") matchingPaths.push(path);
|
|
785
858
|
}
|
|
786
|
-
return
|
|
859
|
+
return matchingPaths.length === 1 ? matchingPaths[0] : null;
|
|
787
860
|
};
|
|
788
|
-
var
|
|
789
|
-
|
|
790
|
-
const
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
861
|
+
var resolveStaticStringExpression = async (options, analysis, expression, visited) => {
|
|
862
|
+
options.signal?.throwIfAborted();
|
|
863
|
+
const candidate = unwrapExpression(expression);
|
|
864
|
+
const literal = getStaticString(candidate);
|
|
865
|
+
if (literal !== null) return Object.freeze({
|
|
866
|
+
expression: candidate,
|
|
867
|
+
kind: "supported",
|
|
868
|
+
value: literal
|
|
869
|
+
});
|
|
870
|
+
if (!ts.isIdentifier(candidate) || !isModuleBindingVisible(candidate, analysis)) return Object.freeze({ kind: "unsupported" });
|
|
871
|
+
const localDeclaration = analysis.moduleConstDeclarations.get(candidate.text);
|
|
872
|
+
if (localDeclaration?.initializer !== void 0) {
|
|
873
|
+
const key = `${analysis.path}\0local\0${candidate.text}`;
|
|
874
|
+
if (visited.has(key)) return Object.freeze({ kind: "unsupported" });
|
|
875
|
+
visited.add(key);
|
|
876
|
+
const result = await resolveStaticStringExpression(options, analysis, localDeclaration.initializer, visited);
|
|
877
|
+
visited.delete(key);
|
|
878
|
+
return result;
|
|
801
879
|
}
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
880
|
+
const namedImport = analysis.namedImports.get(candidate.text);
|
|
881
|
+
if (namedImport === void 0) return Object.freeze({ kind: "unsupported" });
|
|
882
|
+
const importedPath = await resolveCandidatePath(options, analysis.path, namedImport.moduleSpecifier);
|
|
883
|
+
if (importedPath === null) return Object.freeze({ kind: "unsupported" });
|
|
884
|
+
const key = `${importedPath}\0export\0${namedImport.importedName}`;
|
|
885
|
+
if (visited.has(key)) return Object.freeze({ kind: "unsupported" });
|
|
886
|
+
visited.add(key);
|
|
887
|
+
const importedResult = await options.analyzeSource(importedPath);
|
|
888
|
+
if (importedResult.kind !== "valid") {
|
|
889
|
+
visited.delete(key);
|
|
890
|
+
return Object.freeze({ kind: "unsupported" });
|
|
809
891
|
}
|
|
810
|
-
|
|
892
|
+
const exported = getConstExport(importedResult.analysis, namedImport.importedName);
|
|
893
|
+
if (exported.kind !== "present-supported" || exported.expression === void 0) {
|
|
894
|
+
visited.delete(key);
|
|
895
|
+
return Object.freeze({ kind: "unsupported" });
|
|
896
|
+
}
|
|
897
|
+
const result = await resolveStaticStringExpression(options, importedResult.analysis, exported.expression, visited);
|
|
898
|
+
visited.delete(key);
|
|
899
|
+
return result;
|
|
811
900
|
};
|
|
812
901
|
/**
|
|
902
|
+
* Resolves one exact supported static string without normalization or execution.
|
|
903
|
+
* @param options The source, expression, repository callbacks, and parser for the relationship.
|
|
904
|
+
* @returns The exact compiler-parsed string or an unsupported state.
|
|
905
|
+
*/
|
|
906
|
+
var resolveStaticString = (options) => resolveStaticStringExpression(options, options.analysis, options.expression, /* @__PURE__ */ new Set());
|
|
907
|
+
//#endregion
|
|
908
|
+
//#region src/source-analysis/mutations.ts
|
|
909
|
+
/**
|
|
813
910
|
* Classifies module-local mutations and escapes for one returned SDK object.
|
|
814
911
|
* @param analysis The indexed source containing the binding.
|
|
815
912
|
* @param declaration The module-local constant declaration.
|
|
816
913
|
* @param allowedReferences Bare identifier uses proven to be supported registrations or targets.
|
|
817
914
|
* @returns Member-specific mutations and whether an unknown use can affect every relationship.
|
|
818
915
|
*/
|
|
819
|
-
var analyzeOpenAiAgentsSdkMutations = (analysis, declaration, allowedReferences) =>
|
|
820
|
-
if (!ts.isIdentifier(declaration.name)) return Object.freeze({
|
|
821
|
-
hasUnknownMutation: true,
|
|
822
|
-
mutatedMembers: /* @__PURE__ */ new Set()
|
|
823
|
-
});
|
|
824
|
-
const mutatedMembers = /* @__PURE__ */ new Set();
|
|
825
|
-
let hasUnknownMutation = false;
|
|
826
|
-
for (const identifier of analysis.identifierUses.get(declaration.name.text) ?? []) {
|
|
827
|
-
if (isIgnoredIdentifier(identifier, declaration.name) || !isModuleBindingVisible(identifier, analysis) || allowedReferences.has(identifier)) continue;
|
|
828
|
-
const expression = skipTransparentParents(identifier);
|
|
829
|
-
const parent = expression.parent;
|
|
830
|
-
const member = (ts.isPropertyAccessExpression(parent) || ts.isElementAccessExpression(parent)) && parent.expression === expression ? parent : null;
|
|
831
|
-
if (member !== null) {
|
|
832
|
-
const memberName = getStaticMemberName(member);
|
|
833
|
-
if (memberName === null) hasUnknownMutation = true;
|
|
834
|
-
else if (isMutatingTarget(member)) mutatedMembers.add(memberName);
|
|
835
|
-
else {
|
|
836
|
-
const memberExpression = skipTransparentParents(member);
|
|
837
|
-
const memberParent = memberExpression.parent;
|
|
838
|
-
if ((ts.isPropertyAccessExpression(memberParent) || ts.isElementAccessExpression(memberParent)) && memberParent.expression === memberExpression && ts.isCallExpression(skipTransparentParents(memberParent).parent)) mutatedMembers.add(memberName);
|
|
839
|
-
else if (ts.isCallExpression(memberParent) && memberParent.expression === memberExpression) mutatedMembers.add(memberName);
|
|
840
|
-
}
|
|
841
|
-
continue;
|
|
842
|
-
}
|
|
843
|
-
if (isMutatingTarget(identifier)) {
|
|
844
|
-
hasUnknownMutation = true;
|
|
845
|
-
continue;
|
|
846
|
-
}
|
|
847
|
-
const mutationCall = analyzeMutationCall(identifier, mutatedMembers);
|
|
848
|
-
hasUnknownMutation ||= mutationCall ?? true;
|
|
849
|
-
}
|
|
850
|
-
return Object.freeze({
|
|
851
|
-
hasUnknownMutation,
|
|
852
|
-
mutatedMembers: new Set(mutatedMembers)
|
|
853
|
-
});
|
|
854
|
-
};
|
|
916
|
+
var analyzeOpenAiAgentsSdkMutations = (analysis, declaration, allowedReferences) => analyzeModuleValueMutations(analysis, declaration, allowedReferences);
|
|
855
917
|
//#endregion
|
|
856
918
|
//#region src/source-analysis/agent-definitions.ts
|
|
857
919
|
var RELATIONSHIP_NAMES = [
|
|
@@ -1307,54 +1369,6 @@ var analyzeOpenAiAgentsSdkSource = (path, bytes, signal) => {
|
|
|
1307
1369
|
};
|
|
1308
1370
|
//#endregion
|
|
1309
1371
|
//#region src/source-analysis/static-strings.ts
|
|
1310
|
-
var resolveCandidatePath = async (session, containingPath, moduleSpecifier) => {
|
|
1311
|
-
const matchingPaths = [];
|
|
1312
|
-
for (const candidate of resolveImportCandidatePaths(containingPath, moduleSpecifier)) {
|
|
1313
|
-
const path = parseRepositoryPath(candidate);
|
|
1314
|
-
if ((await session.getEntry(path))?.type === "file") matchingPaths.push(path);
|
|
1315
|
-
}
|
|
1316
|
-
return matchingPaths.length === 1 ? matchingPaths[0] : null;
|
|
1317
|
-
};
|
|
1318
|
-
var resolveStaticString = async (session, analysis, expression, visited) => {
|
|
1319
|
-
session.signal?.throwIfAborted();
|
|
1320
|
-
const candidate = unwrapExpression(expression);
|
|
1321
|
-
const literal = getStaticString(candidate);
|
|
1322
|
-
if (literal !== null) return Object.freeze({
|
|
1323
|
-
expression: candidate,
|
|
1324
|
-
kind: "supported",
|
|
1325
|
-
value: literal
|
|
1326
|
-
});
|
|
1327
|
-
if (!ts.isIdentifier(candidate) || !isModuleBindingVisible(candidate, analysis)) return Object.freeze({ kind: "unsupported" });
|
|
1328
|
-
const localDeclaration = analysis.moduleConstDeclarations.get(candidate.text);
|
|
1329
|
-
if (localDeclaration?.initializer !== void 0) {
|
|
1330
|
-
const key = `${analysis.path}\0local\0${candidate.text}`;
|
|
1331
|
-
if (visited.has(key)) return Object.freeze({ kind: "unsupported" });
|
|
1332
|
-
visited.add(key);
|
|
1333
|
-
const result = await resolveStaticString(session, analysis, localDeclaration.initializer, visited);
|
|
1334
|
-
visited.delete(key);
|
|
1335
|
-
return result;
|
|
1336
|
-
}
|
|
1337
|
-
const namedImport = analysis.namedImports.get(candidate.text);
|
|
1338
|
-
if (namedImport === void 0) return Object.freeze({ kind: "unsupported" });
|
|
1339
|
-
const importedPath = await resolveCandidatePath(session, analysis.path, namedImport.moduleSpecifier);
|
|
1340
|
-
if (importedPath === null) return Object.freeze({ kind: "unsupported" });
|
|
1341
|
-
const key = `${importedPath}\0export\0${namedImport.importedName}`;
|
|
1342
|
-
if (visited.has(key)) return Object.freeze({ kind: "unsupported" });
|
|
1343
|
-
visited.add(key);
|
|
1344
|
-
const importedResult = await session.analyzeSource(importedPath);
|
|
1345
|
-
if (importedResult.kind !== "valid") {
|
|
1346
|
-
visited.delete(key);
|
|
1347
|
-
return Object.freeze({ kind: "unsupported" });
|
|
1348
|
-
}
|
|
1349
|
-
const exported = getConstExport(importedResult.analysis, namedImport.importedName);
|
|
1350
|
-
if (exported.kind !== "present-supported" || exported.expression === void 0) {
|
|
1351
|
-
visited.delete(key);
|
|
1352
|
-
return Object.freeze({ kind: "unsupported" });
|
|
1353
|
-
}
|
|
1354
|
-
const result = await resolveStaticString(session, importedResult.analysis, exported.expression, visited);
|
|
1355
|
-
visited.delete(key);
|
|
1356
|
-
return result;
|
|
1357
|
-
};
|
|
1358
1372
|
/**
|
|
1359
1373
|
* Resolves one exact supported static string without normalization or execution.
|
|
1360
1374
|
* @param session The operation-local source session.
|
|
@@ -1362,7 +1376,14 @@ var resolveStaticString = async (session, analysis, expression, visited) => {
|
|
|
1362
1376
|
* @param expression The candidate static string expression.
|
|
1363
1377
|
* @returns The exact compiler-parsed string or an unsupported state.
|
|
1364
1378
|
*/
|
|
1365
|
-
var resolveOpenAiAgentsSdkStaticString = (session, analysis, expression) => resolveStaticString(
|
|
1379
|
+
var resolveOpenAiAgentsSdkStaticString = (session, analysis, expression) => resolveStaticString({
|
|
1380
|
+
analysis,
|
|
1381
|
+
analyzeSource: (path) => session.analyzeSource(path),
|
|
1382
|
+
expression,
|
|
1383
|
+
getEntry: (path) => session.getEntry(path),
|
|
1384
|
+
parsePath: parseRepositoryPath,
|
|
1385
|
+
...session.signal === void 0 ? {} : { signal: session.signal }
|
|
1386
|
+
});
|
|
1366
1387
|
//#endregion
|
|
1367
1388
|
//#region src/source-analysis/tool-collections.ts
|
|
1368
1389
|
var getClosedToolArray = (relationship, analysis, allowedCollectionReferences) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/source-analysis/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/source-analysis/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AAE5E,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC9C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,GAC1C,UAAU,8BAA8B,EACxC,aAAa,EAAE,CAAC,mBAAmB,EACnC,mBAAmB,WAAW,CAAC,EAAE,CAAC,UAAU,CAAC,KAC5C,gCACoE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ts from 'typescript';
|
|
1
|
+
import type ts from 'typescript';
|
|
2
2
|
import type { IOpenAiAgentsSdkInspectionSession, IOpenAiAgentsSdkSourceAnalysis, IOpenAiAgentsSdkStaticStringResult } from '../contracts/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Resolves one exact supported static string without normalization or execution.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static-strings.d.ts","sourceRoot":"","sources":["../../src/source-analysis/static-strings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"static-strings.d.ts","sourceRoot":"","sources":["../../src/source-analysis/static-strings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAKjC,OAAO,KAAK,EACV,iCAAiC,EACjC,8BAA8B,EAC9B,kCAAkC,EACnC,MAAM,uBAAuB,CAAC;AAE/B;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,GAC7C,SAAS,iCAAiC,EAC1C,UAAU,8BAA8B,EACxC,YAAY,EAAE,CAAC,UAAU,KACxB,OAAO,CAAC,kCAAkC,CAQzC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moldea.ai/adapter-openai-agents-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Deterministic runtime evidence and diagnostics for direct OpenAI Agents SDK integrations.",
|
|
5
5
|
"homepage": "https://github.com/moldea-ai/packages/tree/main/projects/adapter-openai-agents-sdk#readme",
|
|
6
6
|
"bugs": {
|