shark-ai 0.4.5 → 0.4.6

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/bin/shark.js CHANGED
@@ -1008,6 +1008,20 @@ var TypeScriptEditor = class {
1008
1008
  return false;
1009
1009
  }
1010
1010
  }
1011
+ async getProperty(filePath, className, propertyName) {
1012
+ try {
1013
+ const sourceFile = this.getSourceFile(filePath);
1014
+ const classDecl = this.getClass(sourceFile, className);
1015
+ const property = classDecl.getProperty(propertyName);
1016
+ if (!property) {
1017
+ return void 0;
1018
+ }
1019
+ return property.getText();
1020
+ } catch (error) {
1021
+ console.error(`Failed to get property "${propertyName}":`, error);
1022
+ return void 0;
1023
+ }
1024
+ }
1011
1025
  async modifyProperty(filePath, className, propertyName, newCode) {
1012
1026
  try {
1013
1027
  const sourceFile = this.getSourceFile(filePath);