New nodejs agent - ts auto-completion

I am doing some restruction to the default project (TS), separating the collection customizations in different files in /forest directory - in order to not put all the code inside one file “index.ts”. The issue I got is the autocompletion is not working inside these new files, it works only inside the index.ts file.
For example in index.ts :

In another file (forest/c_besoin.ts):

Do you have any idea please?

  • Project name: clevermate v2
  • Environment name: …
  • Agent technology: (nodejs,
  • Agent (forest package) name & version: 1.58.3
  • Database type: postgres

Hello @Adel_de_Clevermate,

You can check our example package inside the agent-nodejs repository to take inspiration from.
It follows the architecture we envisioned our users would appreciate to use and work with.
Typing and auto-completion works as expected if you follow a similar structure and declaration.

More precisely, you can check the customization folder (which would be /forest in your case) and the agent.ts (index.ts in your case) where the agent is initialized and where we import the customizations.

Best regards,

1 Like