@soederpop/luca 0.1.1 → 0.1.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/assistants/codingAssistant/hooks.ts +7 -0
- package/package.json +1 -1
- package/scripts/test-assistant-hooks.ts +13 -0
- package/src/agi/features/skills-library.ts +7 -0
- package/src/bootstrap/generated.ts +1 -1
- package/src/cli/build-info.ts +2 -2
- package/src/introspection/generated.agi.ts +486 -460
- package/src/introspection/generated.node.ts +1270 -1270
- package/src/introspection/generated.web.ts +1 -1
- package/src/node/features/transpiler.ts +34 -9
- package/src/node/features/vm.ts +3 -2
- package/src/python/generated.ts +1 -1
- package/src/scaffolds/generated.ts +1 -1
- package/test/assistant.test.ts +72 -0
- package/test/vm-loadmodule.test.ts +213 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soederpop/luca",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"website": "https://luca.soederpop.com",
|
|
5
5
|
"description": "lightweight universal conversational architecture AKA Le Ultimate Component Architecture AKA Last Universal Common Ancestor, part AI part Human",
|
|
6
6
|
"author": "jon soeder aka the people's champ <jon@soederpop.com>",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import container from '@soederpop/luca/agi'
|
|
2
|
+
|
|
3
|
+
const coder = container.feature('assistant', { folder: 'assistants/codingAssistant' })
|
|
4
|
+
|
|
5
|
+
await coder.start()
|
|
6
|
+
console.log("Available Tools", coder.availableTools)
|
|
7
|
+
|
|
8
|
+
if (coder.state.get('startedHookRan')) {
|
|
9
|
+
console.log('Started Hook Ran')
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
@@ -3,6 +3,7 @@ import { FeatureStateSchema, FeatureOptionsSchema, FeatureEventsSchema } from '.
|
|
|
3
3
|
import { type AvailableFeatures, Feature } from '@soederpop/luca/feature'
|
|
4
4
|
import { parse } from 'contentbase'
|
|
5
5
|
import type { DocsReader } from './docs-reader.js'
|
|
6
|
+
import type Assistant from './assistant.js'
|
|
6
7
|
|
|
7
8
|
declare module '@soederpop/luca/feature' {
|
|
8
9
|
interface AvailableFeatures {
|
|
@@ -100,6 +101,12 @@ export class SkillsLibrary extends Feature<SkillsLibraryState, SkillsLibraryOpti
|
|
|
100
101
|
skills: {},
|
|
101
102
|
}
|
|
102
103
|
}
|
|
104
|
+
|
|
105
|
+
override setupToolsConsumer(assistant: Assistant) {
|
|
106
|
+
console.log('setting up tools consumer', assistant.uuid)
|
|
107
|
+
assistant.state.set('toolsSetup', true)
|
|
108
|
+
return assistant
|
|
109
|
+
}
|
|
103
110
|
|
|
104
111
|
/** Discovered skills keyed by name. */
|
|
105
112
|
get skills(): Record<string, SkillInfo> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Auto-generated bootstrap content
|
|
2
|
-
// Generated at: 2026-03-
|
|
2
|
+
// Generated at: 2026-03-30T06:52:56.930Z
|
|
3
3
|
// Source: docs/bootstrap/*.md, docs/bootstrap/templates/*, docs/examples/*.md, docs/tutorials/*.md
|
|
4
4
|
//
|
|
5
5
|
// Do not edit manually. Run: luca build-bootstrap
|
package/src/cli/build-info.ts
CHANGED