-
Notifications
You must be signed in to change notification settings - Fork 0
[sync] ide: 5 commits from Forge #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Snider
wants to merge
5
commits into
main
Choose a base branch
from
dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a424c2d
feat: wire brain + agentic subsystems, update wails build artifacts
Snider eaeddfc
chore: bump forge deps for v0.1.0 release
Snider 4c4e0ed
chore: sync go.mod dependencies
Snider 14a41d1
chore: sync workspace dependencies
Snider 5efd2c6
chore: sync dependencies for v0.1.2
Snider File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,3 +7,4 @@ build/linux/appimage/build | |
| build/windows/nsis/MicrosoftEdgeWebview2Setup.exeide | ||
| .core/ | ||
| .idea/ | ||
| ide | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,5 +94,8 @@ | |
| } | ||
| } | ||
| } | ||
| }, | ||
| "cli": { | ||
| "analytics": false | ||
| } | ||
| } | ||
This file was deleted.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
frontend/bindings/changeme/index.ts → frontend/bindings/embed/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL | ||
| // This file is automatically generated. DO NOT EDIT | ||
|
|
||
| import * as GreetService from "./greetservice.js"; | ||
| export { | ||
| GreetService | ||
| }; | ||
| FS | ||
| } from "./models.js"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL | ||
| // This file is automatically generated. DO NOT EDIT | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
| // @ts-ignore: Unused imports | ||
| import { Create as $Create } from "@wailsio/runtime"; | ||
|
|
||
| /** | ||
| * An FS is a read-only collection of files, usually initialized with a //go:embed directive. | ||
| * When declared without a //go:embed directive, an FS is an empty file system. | ||
| * | ||
| * An FS is a read-only value, so it is safe to use from multiple goroutines | ||
| * simultaneously and also safe to assign values of type FS to each other. | ||
| * | ||
| * FS implements fs.FS, so it can be used with any package that understands | ||
| * file system interfaces, including net/http, text/template, and html/template. | ||
| * | ||
| * See the package documentation for more details about initializing an FS. | ||
| */ | ||
| export class FS { | ||
|
|
||
| /** Creates a new FS instance. */ | ||
| constructor($$source: Partial<FS> = {}) { | ||
|
|
||
| Object.assign(this, $$source); | ||
| } | ||
|
|
||
| /** | ||
| * Creates a new FS instance from a string or object. | ||
| */ | ||
| static createFrom($$source: any = {}): FS { | ||
| let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; | ||
| return new FS($$parsedSource as Partial<FS>); | ||
| } | ||
| } |
164 changes: 164 additions & 0 deletions
164
frontend/bindings/forge.lthn.ai/core/go/pkg/core/core.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,164 @@ | ||
| // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL | ||
| // This file is automatically generated. DO NOT EDIT | ||
|
|
||
| /** | ||
| * Core is the central application object that manages services, assets, and communication. | ||
| * @module | ||
| */ | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
| // @ts-ignore: Unused imports | ||
| import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
| // @ts-ignore: Unused imports | ||
| import * as embed$0 from "../../../../../embed/models.js"; | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
| // @ts-ignore: Unused imports | ||
| import * as $models from "./models.js"; | ||
|
|
||
| /** | ||
| * ACTION dispatches a message to all registered IPC handlers. | ||
| * This is the primary mechanism for services to communicate with each other. | ||
| */ | ||
| export function ACTION(msg: $models.Message): $CancellablePromise<void> { | ||
| return $Call.ByID(4292948361, msg); | ||
| } | ||
|
|
||
| /** | ||
| * Assets returns the embedded filesystem containing the application's assets. | ||
| */ | ||
| export function Assets(): $CancellablePromise<embed$0.FS> { | ||
| return $Call.ByID(3418392250).then(($result: any) => { | ||
| return $$createType0($result); | ||
| }); | ||
| } | ||
|
|
||
| /** | ||
| * Config returns the registered Config service. | ||
| */ | ||
| export function Config(): $CancellablePromise<$models.Config> { | ||
| return $Call.ByID(189298201); | ||
| } | ||
|
|
||
| /** | ||
| * Core returns self, implementing the CoreProvider interface. | ||
| */ | ||
| export function Core(): $CancellablePromise<$models.Core | null> { | ||
| return $Call.ByID(1780022976).then(($result: any) => { | ||
| return $$createType2($result); | ||
| }); | ||
| } | ||
|
|
||
| /** | ||
| * Crypt returns the registered Crypt service. | ||
| */ | ||
| export function Crypt(): $CancellablePromise<$models.Crypt> { | ||
| return $Call.ByID(2268164577); | ||
| } | ||
|
|
||
| /** | ||
| * Display returns the registered Display service. | ||
| */ | ||
| export function Display(): $CancellablePromise<$models.Display> { | ||
| return $Call.ByID(2677615899); | ||
| } | ||
|
|
||
| /** | ||
| * PERFORM dispatches a task to handlers until one executes it. | ||
| * Returns (result, handled, error). If no handler responds, handled is false. | ||
| */ | ||
| export function PERFORM(t: $models.Task): $CancellablePromise<[any, boolean]> { | ||
| return $Call.ByID(4123176972, t); | ||
| } | ||
|
|
||
| /** | ||
| * PerformAsync dispatches a task to be executed in a background goroutine. | ||
| * It returns a unique task ID that can be used to track the task's progress. | ||
| * The result of the task will be broadcasted via an ActionTaskCompleted message. | ||
| */ | ||
| export function PerformAsync(t: $models.Task): $CancellablePromise<string> { | ||
| return $Call.ByID(2093358608, t); | ||
| } | ||
|
|
||
| /** | ||
| * Progress broadcasts a progress update for a background task. | ||
| */ | ||
| export function Progress(taskID: string, progress: number, message: string, t: $models.Task): $CancellablePromise<void> { | ||
| return $Call.ByID(1583922996, taskID, progress, message, t); | ||
| } | ||
|
|
||
| /** | ||
| * QUERY dispatches a query to handlers until one responds. | ||
| * Returns (result, handled, error). If no handler responds, handled is false. | ||
| */ | ||
| export function QUERY(q: $models.Query): $CancellablePromise<[any, boolean]> { | ||
| return $Call.ByID(3538289785, q); | ||
| } | ||
|
|
||
| /** | ||
| * QUERYALL dispatches a query to all handlers and collects all responses. | ||
| * Returns all results from handlers that responded. | ||
| */ | ||
| export function QUERYALL(q: $models.Query): $CancellablePromise<any[]> { | ||
| return $Call.ByID(2503646560, q).then(($result: any) => { | ||
| return $$createType3($result); | ||
| }); | ||
| } | ||
|
|
||
| /** | ||
| * RegisterAction adds a new IPC handler to the Core. | ||
| */ | ||
| export function RegisterAction(handler: any): $CancellablePromise<void> { | ||
| return $Call.ByID(4133311524, handler); | ||
| } | ||
|
|
||
| /** | ||
| * RegisterActions adds multiple IPC handlers to the Core. | ||
| */ | ||
| export function RegisterActions(...handlers: any[]): $CancellablePromise<void> { | ||
| return $Call.ByID(736871669, handlers); | ||
| } | ||
|
|
||
| /** | ||
| * RegisterQuery adds a query handler to the Core. | ||
| */ | ||
| export function RegisterQuery(handler: $models.QueryHandler): $CancellablePromise<void> { | ||
| return $Call.ByID(3624744914, handler); | ||
| } | ||
|
|
||
| /** | ||
| * RegisterService adds a new service to the Core. | ||
| */ | ||
| export function RegisterService(name: string, api: any): $CancellablePromise<void> { | ||
| return $Call.ByID(984069509, name, api); | ||
| } | ||
|
|
||
| /** | ||
| * RegisterTask adds a task handler to the Core. | ||
| */ | ||
| export function RegisterTask(handler: $models.TaskHandler): $CancellablePromise<void> { | ||
| return $Call.ByID(2729221523, handler); | ||
| } | ||
|
|
||
| /** | ||
| * Service retrieves a registered service by name. | ||
| * It returns nil if the service is not found. | ||
| */ | ||
| export function Service(name: string): $CancellablePromise<any> { | ||
| return $Call.ByID(3781502542, name); | ||
| } | ||
|
|
||
| /** | ||
| * Workspace returns the registered Workspace service. | ||
| */ | ||
| export function Workspace(): $CancellablePromise<$models.Workspace> { | ||
| return $Call.ByID(3152134880); | ||
| } | ||
|
|
||
| // Private type creation functions | ||
| const $$createType0 = embed$0.FS.createFrom; | ||
| const $$createType1 = $models.Core.createFrom; | ||
| const $$createType2 = $Create.Nullable($$createType1); | ||
| const $$createType3 = $Create.Array($Create.Any); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL | ||
| // This file is automatically generated. DO NOT EDIT | ||
|
|
||
| import * as Core from "./core.js"; | ||
| export { | ||
| Core | ||
| }; | ||
|
|
||
| export { | ||
| Core, | ||
| Features | ||
| } from "./models.js"; | ||
|
|
||
| export type { | ||
| Config, | ||
| Crypt, | ||
| Display, | ||
| Message, | ||
| Query, | ||
| QueryHandler, | ||
| Task, | ||
| TaskHandler, | ||
| Workspace | ||
| } from "./models.js"; |
129 changes: 129 additions & 0 deletions
129
frontend/bindings/forge.lthn.ai/core/go/pkg/core/models.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL | ||
| // This file is automatically generated. DO NOT EDIT | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
| // @ts-ignore: Unused imports | ||
| import { Create as $Create } from "@wailsio/runtime"; | ||
|
|
||
| /** | ||
| * Config provides access to application configuration. | ||
| */ | ||
| export type Config = any; | ||
|
|
||
| /** | ||
| * Core is the central application object that manages services, assets, and communication. | ||
| */ | ||
| export class Core { | ||
| /** | ||
| * GUI runtime (e.g., Wails App) - set by WithApp option | ||
| */ | ||
| "App": any; | ||
| "Features": Features | null; | ||
|
|
||
| /** Creates a new Core instance. */ | ||
| constructor($$source: Partial<Core> = {}) { | ||
| if (!("App" in $$source)) { | ||
| this["App"] = null; | ||
| } | ||
| if (!("Features" in $$source)) { | ||
| this["Features"] = null; | ||
| } | ||
|
|
||
| Object.assign(this, $$source); | ||
| } | ||
|
|
||
| /** | ||
| * Creates a new Core instance from a string or object. | ||
| */ | ||
| static createFrom($$source: any = {}): Core { | ||
| const $$createField1_0 = $$createType1; | ||
| let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; | ||
| if ("Features" in $$parsedSource) { | ||
| $$parsedSource["Features"] = $$createField1_0($$parsedSource["Features"]); | ||
| } | ||
| return new Core($$parsedSource as Partial<Core>); | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * Crypt provides PGP-based encryption, signing, and key management. | ||
| */ | ||
| export type Crypt = any; | ||
|
|
||
| /** | ||
| * Display provides access to windowing and visual elements. | ||
| */ | ||
| export type Display = any; | ||
|
|
||
| /** | ||
| * Features provides a way to check if a feature is enabled. | ||
| * This is used for feature flagging and conditional logic. | ||
| */ | ||
| export class Features { | ||
| /** | ||
| * Flags is a list of enabled feature flags. | ||
| */ | ||
| "Flags": string[]; | ||
|
|
||
| /** Creates a new Features instance. */ | ||
| constructor($$source: Partial<Features> = {}) { | ||
| if (!("Flags" in $$source)) { | ||
| this["Flags"] = []; | ||
| } | ||
|
|
||
| Object.assign(this, $$source); | ||
| } | ||
|
|
||
| /** | ||
| * Creates a new Features instance from a string or object. | ||
| */ | ||
| static createFrom($$source: any = {}): Features { | ||
| const $$createField0_0 = $$createType2; | ||
| let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; | ||
| if ("Flags" in $$parsedSource) { | ||
| $$parsedSource["Flags"] = $$createField0_0($$parsedSource["Flags"]); | ||
| } | ||
| return new Features($$parsedSource as Partial<Features>); | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * Message is the interface for all messages that can be sent through the Core's IPC system. | ||
| * Any struct can be a message, allowing for structured data to be passed between services. | ||
| * Used with ACTION for fire-and-forget broadcasts. | ||
| */ | ||
| export type Message = any; | ||
|
|
||
| /** | ||
| * Query is the interface for read-only requests that return data. | ||
| * Used with QUERY (first responder) or QUERYALL (all responders). | ||
| */ | ||
| export type Query = any; | ||
|
|
||
| /** | ||
| * QueryHandler handles Query requests. Returns (result, handled, error). | ||
| * If handled is false, the query will be passed to the next handler. | ||
| */ | ||
| export type QueryHandler = any; | ||
|
|
||
| /** | ||
| * Task is the interface for requests that perform side effects. | ||
| * Used with PERFORM (first responder executes). | ||
| */ | ||
| export type Task = any; | ||
|
|
||
| /** | ||
| * TaskHandler handles Task requests. Returns (result, handled, error). | ||
| * If handled is false, the task will be passed to the next handler. | ||
| */ | ||
| export type TaskHandler = any; | ||
|
|
||
| /** | ||
| * Workspace provides management for encrypted user workspaces. | ||
| */ | ||
| export type Workspace = any; | ||
|
|
||
| // Private type creation functions | ||
| const $$createType0 = Features.createFrom; | ||
| const $$createType1 = $Create.Nullable($$createType0); | ||
| const $$createType2 = $Create.Array($Create.Any); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the malformed ignore pattern.
Line 7 ends with
exeideinstead of.exe, which appears to be a concatenation error. This malformed pattern prevents the executable from being properly ignored by Git. Please correct it to end with.exe:🐛 Proposed fix for the malformed pattern
📝 Committable suggestion
🤖 Prompt for AI Agents