Other B4J v10.5 BETA with integrated Code Bundle tool has been released

Erel

B4X founder
Staff member
Licensed User
Longtime User
Code Bundle is a tool that packs your project together with additional relevant information into a single json file, that can be provided to AI assistants for debugging, learning, refactoring and other tasks.

B4J_gi6VqO4yty.gif


The bundle is created with a click of a button (Ctrl + R). The bundle includes:
  • Project code + list of public APIs. Keys are sanitized based on heuristic templates.
  • (optional) Logs + compilation output + warnings and errors list. Compilation output is included when the dialog is visible.
  • (optional) Layouts + designer script.
  • (optional) Paths configuration.
  • List of files. Files content is not added.
  • List of libraries with additional information for each library.
  • Current caret location with the code around it - the AI knows where you are focused on right now.
  • Additional information about the IDE and useful links for the AI to find more information.
How to use:
- Click on Ctrl + R. A json file will be created and copied to the clipboard. Paste into the AI assistant and ask questions.

I tested it with several AI platforms and the results are quite good. The answers are mostly to the point. Not always so be cautious.

Other improvements:
  • Autocomplete in #If lines:
    1772023445202.png


  • Fix for String.ToLower not explicitly setting the locale. Mainly fixes the Turkish I: https://www.b4x.com/android/forum/t...ctly-for-the-turkish-language.163961/#content
  • PyBridge template updated.
  • New #Macro / comment link options:
    • librariesrefresh - set to True to automatically refresh the libraries after the task runs.
    • codesync - set to True to force the IDE to synchronize the code modules with the files.
    • autosave - set to True to automatically save the project BEFORE running the task. Note that Tools - IDE Options - Auto Save should be enabled for this to have effect.
    • filessync (not new) - set to True to synchronize the Files tab after the task.
    • cleanproject (not new) - set to True to "clean project" after the task
    • %STATE1% - new variable that causes the IDE to create a temporary file with the IDE state based on the new options under Tools - IDE Options. The file path will be passed to the process. This is used by Code Bundle and can be used by other similar tools. Note that the format is not final and can be modified.
  • Objects\Temp folder is deleted when cleaning project.
  • Json library updated and maps now preserve order when writing or reading.
  • Other bug fixes and minor improvements.

Download link: https://www.b4x.com/b4j/files/beta.exe

Edit: a file is missing that causes non-ui apps to fail in debug mode. You can download it here: https://www.b4x.com/android/forum/t...e-tool-has-been-released.170433/#post-1043406
 
Last edited:

Mashiane

Expert
Licensed User
Longtime User
Hello @Mashiane,
You should start a new thread regarding this matter, as this really isn't the place for it. You already have my personal response via pm

Cheers and enjoy 🍻


My personal thoughts are simple:
I don't mind my B4X code being used to help train the LLM that I use now and again, especially on my account. Some people on here moan and complain that LLMs are not perfect with the B4X language (even though they scrapes the forum to learn from), yet those same people also say that they don't want their own fully working code on LLM to help it learn. And no, I'm not having a go at any one individual, I'm just saying.

Anyway:
Set Auto-Delete: All my accounts have this set either to not save data at all, or to save for only 3 months, except for my location data, that's on all the time for my history of holidays abroad.

You can tell Google to automatically wipe your data after a specific period. Obviously some B4X users on here are bound to say that Google don't really do that, preempt.

You have the setting:
In certain regions (like the UK and EU), you have more granular control over whether your data is used to improve the model.

You can always use "Incognito" or Guest Modes.
On some platforms, using a Guest mode or not signing in prevents the session from being linked to your permanent account history, though some basic logging for safety still occurs.

Sorry Erel for the hijack, I'm all for your Code Bundle tool and I will definitely be using it more and more in the future, thank you 👍
I perfectly agree. Actually I thought the same thing during the day, that we hijacked Erels thread and I felt a little off about it. It's such that people will use the "CodeBundle" for AI related tasks and if we dont know what we are doing, we might end up regretting some decisions. I'm very new in this AI stuff and its always better to ask when you dont know about something.

Anyway, I really appreciate the feedback and inputs into this matter and moreover @Erel highlights. I continue to learn new things everyday.

Our sincere apologies Erel for highjacking your thread and thanks again for changing the world. I bow out of this thread about AI related stuff. 🙏

Kind Regards

Mashy.
 
Upvote 0
Top