@ibgib/web-gib 0.0.1
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/.ibgibignore +30 -0
- package/.vscode/ibgib-snippets.code-snippets +309 -0
- package/.vscode/launch.json +25 -0
- package/.vscode/settings.json +68 -0
- package/.vscode/tasks.json +38 -0
- package/CHANGELOG.md +427 -0
- package/README.md +66 -0
- package/dist/agent-texts/common-agent-texts.d.mts +14 -0
- package/dist/agent-texts/common-agent-texts.d.mts.map +1 -0
- package/dist/agent-texts/common-agent-texts.mjs +51 -0
- package/dist/agent-texts/common-agent-texts.mjs.map +1 -0
- package/dist/agent-texts/primary-agent-texts.d.mts +16 -0
- package/dist/agent-texts/primary-agent-texts.d.mts.map +1 -0
- package/dist/agent-texts/primary-agent-texts.mjs +27 -0
- package/dist/agent-texts/primary-agent-texts.mjs.map +1 -0
- package/dist/agent-texts/project-agent-texts.d.mts +8 -0
- package/dist/agent-texts/project-agent-texts.d.mts.map +1 -0
- package/dist/agent-texts/project-agent-texts.mjs +29 -0
- package/dist/agent-texts/project-agent-texts.mjs.map +1 -0
- package/dist/agent-texts/project-child-text-agent-texts.d.mts +5 -0
- package/dist/agent-texts/project-child-text-agent-texts.d.mts.map +1 -0
- package/dist/agent-texts/project-child-text-agent-texts.mjs +26 -0
- package/dist/agent-texts/project-child-text-agent-texts.mjs.map +1 -0
- package/dist/agent-texts/projects-agent-texts.d.mts +4 -0
- package/dist/agent-texts/projects-agent-texts.d.mts.map +1 -0
- package/dist/agent-texts/projects-agent-texts.mjs +15 -0
- package/dist/agent-texts/projects-agent-texts.mjs.map +1 -0
- package/dist/agent-texts/raw-agent-texts.d.mts +4 -0
- package/dist/agent-texts/raw-agent-texts.d.mts.map +1 -0
- package/dist/agent-texts/raw-agent-texts.mjs +17 -0
- package/dist/agent-texts/raw-agent-texts.mjs.map +1 -0
- package/dist/agent-texts/text-editor-agent-texts.d.mts +6 -0
- package/dist/agent-texts/text-editor-agent-texts.d.mts.map +1 -0
- package/dist/agent-texts/text-editor-agent-texts.mjs +19 -0
- package/dist/agent-texts/text-editor-agent-texts.mjs.map +1 -0
- package/dist/api/api-constants.d.mts +9 -0
- package/dist/api/api-constants.d.mts.map +1 -0
- package/dist/api/api-constants.mjs +9 -0
- package/dist/api/api-constants.mjs.map +1 -0
- package/dist/api/api-index.d.mts +10 -0
- package/dist/api/api-index.d.mts.map +1 -0
- package/dist/api/api-index.mjs +121 -0
- package/dist/api/api-index.mjs.map +1 -0
- package/dist/api/api-types.d.mts +36 -0
- package/dist/api/api-types.d.mts.map +1 -0
- package/dist/api/api-types.mjs +2 -0
- package/dist/api/api-types.mjs.map +1 -0
- package/dist/api/commands/chat/chat-index.d.mts +3 -0
- package/dist/api/commands/chat/chat-index.d.mts.map +1 -0
- package/dist/api/commands/chat/chat-index.mjs +9 -0
- package/dist/api/commands/chat/chat-index.mjs.map +1 -0
- package/dist/api/commands/chat/get-context-info.d.mts +71 -0
- package/dist/api/commands/chat/get-context-info.d.mts.map +1 -0
- package/dist/api/commands/chat/get-context-info.mjs +130 -0
- package/dist/api/commands/chat/get-context-info.mjs.map +1 -0
- package/dist/api/commands/chat/hello-world.d.mts +63 -0
- package/dist/api/commands/chat/hello-world.d.mts.map +1 -0
- package/dist/api/commands/chat/hello-world.mjs +132 -0
- package/dist/api/commands/chat/hello-world.mjs.map +1 -0
- package/dist/api/commands/chat/tell-user.d.mts +57 -0
- package/dist/api/commands/chat/tell-user.d.mts.map +1 -0
- package/dist/api/commands/chat/tell-user.mjs +199 -0
- package/dist/api/commands/chat/tell-user.mjs.map +1 -0
- package/dist/api/commands/command-constants.d.mts +22 -0
- package/dist/api/commands/command-constants.d.mts.map +1 -0
- package/dist/api/commands/command-constants.mjs +17 -0
- package/dist/api/commands/command-constants.mjs.map +1 -0
- package/dist/api/commands/command-helpers.d.mts +47 -0
- package/dist/api/commands/command-helpers.d.mts.map +1 -0
- package/dist/api/commands/command-helpers.mjs +76 -0
- package/dist/api/commands/command-helpers.mjs.map +1 -0
- package/dist/api/commands/command-service-v1.d.mts +28 -0
- package/dist/api/commands/command-service-v1.d.mts.map +1 -0
- package/dist/api/commands/command-service-v1.mjs +122 -0
- package/dist/api/commands/command-service-v1.mjs.map +1 -0
- package/dist/api/commands/command-service.respec.d.mts +7 -0
- package/dist/api/commands/command-service.respec.d.mts.map +1 -0
- package/dist/api/commands/command-service.respec.mjs +66 -0
- package/dist/api/commands/command-service.respec.mjs.map +1 -0
- package/dist/api/commands/command-types.d.mts +48 -0
- package/dist/api/commands/command-types.d.mts.map +1 -0
- package/dist/api/commands/command-types.mjs +12 -0
- package/dist/api/commands/command-types.mjs.map +1 -0
- package/dist/api/commands/ibgib/get-ibgibs.d.mts +94 -0
- package/dist/api/commands/ibgib/get-ibgibs.d.mts.map +1 -0
- package/dist/api/commands/ibgib/get-ibgibs.mjs +219 -0
- package/dist/api/commands/ibgib/get-ibgibs.mjs.map +1 -0
- package/dist/api/commands/ibgib/ibgib-index.d.mts +3 -0
- package/dist/api/commands/ibgib/ibgib-index.d.mts.map +1 -0
- package/dist/api/commands/ibgib/ibgib-index.mjs +7 -0
- package/dist/api/commands/ibgib/ibgib-index.mjs.map +1 -0
- package/dist/api/commands/ibgib/mut8-ibgib.d.mts +135 -0
- package/dist/api/commands/ibgib/mut8-ibgib.d.mts.map +1 -0
- package/dist/api/commands/ibgib/mut8-ibgib.mjs +318 -0
- package/dist/api/commands/ibgib/mut8-ibgib.mjs.map +1 -0
- package/dist/api/commands/templates/api-function-info.template.d.mts +73 -0
- package/dist/api/commands/templates/api-function-info.template.d.mts.map +1 -0
- package/dist/api/commands/templates/api-function-info.template.mjs +161 -0
- package/dist/api/commands/templates/api-function-info.template.mjs.map +1 -0
- package/dist/api/commands/text/text-edit.d.mts +54 -0
- package/dist/api/commands/text/text-edit.d.mts.map +1 -0
- package/dist/api/commands/text/text-edit.mjs +170 -0
- package/dist/api/commands/text/text-edit.mjs.map +1 -0
- package/dist/api/commands/text/text-index.d.mts +3 -0
- package/dist/api/commands/text/text-index.d.mts.map +1 -0
- package/dist/api/commands/text/text-index.mjs +5 -0
- package/dist/api/commands/text/text-index.mjs.map +1 -0
- package/dist/api/commands/ui/ui-index.d.mts +3 -0
- package/dist/api/commands/ui/ui-index.d.mts.map +1 -0
- package/dist/api/commands/ui/ui-index.mjs +5 -0
- package/dist/api/commands/ui/ui-index.mjs.map +1 -0
- package/dist/api/commands/ui/update-css-variables.d.mts +48 -0
- package/dist/api/commands/ui/update-css-variables.d.mts.map +1 -0
- package/dist/api/commands/ui/update-css-variables.mjs +145 -0
- package/dist/api/commands/ui/update-css-variables.mjs.map +1 -0
- package/dist/api/function-infos.web.d.mts +15 -0
- package/dist/api/function-infos.web.d.mts.map +1 -0
- package/dist/api/function-infos.web.mjs +63 -0
- package/dist/api/function-infos.web.mjs.map +1 -0
- package/dist/assumptions.respec.d.mts +2 -0
- package/dist/assumptions.respec.d.mts.map +1 -0
- package/dist/assumptions.respec.mjs +41 -0
- package/dist/assumptions.respec.mjs.map +1 -0
- package/dist/common/project/project-constants.d.mts +38 -0
- package/dist/common/project/project-constants.d.mts.map +1 -0
- package/dist/common/project/project-constants.mjs +71 -0
- package/dist/common/project/project-constants.mjs.map +1 -0
- package/dist/common/project/project-helper.d.mts +127 -0
- package/dist/common/project/project-helper.d.mts.map +1 -0
- package/dist/common/project/project-helper.mjs +683 -0
- package/dist/common/project/project-helper.mjs.map +1 -0
- package/dist/common/project/project-types.d.mts +91 -0
- package/dist/common/project/project-types.d.mts.map +1 -0
- package/dist/common/project/project-types.mjs +31 -0
- package/dist/common/project/project-types.mjs.map +1 -0
- package/dist/common/prompt-functions.web.d.mts +90 -0
- package/dist/common/prompt-functions.web.d.mts.map +1 -0
- package/dist/common/prompt-functions.web.mjs +426 -0
- package/dist/common/prompt-functions.web.mjs.map +1 -0
- package/dist/common/settings/settings-constants.d.mts +33 -0
- package/dist/common/settings/settings-constants.d.mts.map +1 -0
- package/dist/common/settings/settings-constants.mjs +54 -0
- package/dist/common/settings/settings-constants.mjs.map +1 -0
- package/dist/common/settings/settings-helpers.d.mts +59 -0
- package/dist/common/settings/settings-helpers.d.mts.map +1 -0
- package/dist/common/settings/settings-helpers.mjs +253 -0
- package/dist/common/settings/settings-helpers.mjs.map +1 -0
- package/dist/common/settings/settings-types.d.mts +118 -0
- package/dist/common/settings/settings-types.d.mts.map +1 -0
- package/dist/common/settings/settings-types.mjs +13 -0
- package/dist/common/settings/settings-types.mjs.map +1 -0
- package/dist/constants.d.mts +34 -0
- package/dist/constants.d.mts.map +1 -0
- package/dist/constants.mjs +35 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/foo.d.mts +2 -0
- package/dist/foo.d.mts.map +1 -0
- package/dist/foo.mjs +19 -0
- package/dist/foo.mjs.map +1 -0
- package/dist/helpers.d.mts +137 -0
- package/dist/helpers.d.mts.map +1 -0
- package/dist/helpers.mjs +514 -0
- package/dist/helpers.mjs.map +1 -0
- package/dist/helpers.web.d.mts +324 -0
- package/dist/helpers.web.d.mts.map +1 -0
- package/dist/helpers.web.mjs +1133 -0
- package/dist/helpers.web.mjs.map +1 -0
- package/dist/helpers.web.respec.d.mts +2 -0
- package/dist/helpers.web.respec.d.mts.map +1 -0
- package/dist/helpers.web.respec.mjs +12 -0
- package/dist/helpers.web.respec.mjs.map +1 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -0
- package/dist/respec-gib.node.d.mts +2 -0
- package/dist/respec-gib.node.d.mts.map +1 -0
- package/dist/respec-gib.node.mjs +211 -0
- package/dist/respec-gib.node.mjs.map +1 -0
- package/dist/spec-helper.node.respec.d.mts +13 -0
- package/dist/spec-helper.node.respec.d.mts.map +1 -0
- package/dist/spec-helper.node.respec.mjs +50 -0
- package/dist/spec-helper.node.respec.mjs.map +1 -0
- package/dist/storage/storage-helpers.web.d.mts +108 -0
- package/dist/storage/storage-helpers.web.d.mts.map +1 -0
- package/dist/storage/storage-helpers.web.mjs +757 -0
- package/dist/storage/storage-helpers.web.mjs.map +1 -0
- package/dist/storage/storage-types.web.d.mts +30 -0
- package/dist/storage/storage-types.web.d.mts.map +1 -0
- package/dist/storage/storage-types.web.mjs +2 -0
- package/dist/storage/storage-types.web.mjs.map +1 -0
- package/dist/types.web.d.mts +42 -0
- package/dist/types.web.d.mts.map +1 -0
- package/dist/types.web.mjs +2 -0
- package/dist/types.web.mjs.map +1 -0
- package/dist/ui/component/component-types.d.mts +225 -0
- package/dist/ui/component/component-types.d.mts.map +1 -0
- package/dist/ui/component/component-types.mjs +2 -0
- package/dist/ui/component/component-types.mjs.map +1 -0
- package/dist/ui/component/ibgib-component-service.d.mts +70 -0
- package/dist/ui/component/ibgib-component-service.d.mts.map +1 -0
- package/dist/ui/component/ibgib-component-service.mjs +201 -0
- package/dist/ui/component/ibgib-component-service.mjs.map +1 -0
- package/dist/ui/component/ibgib-dynamic-component-bases.d.mts +338 -0
- package/dist/ui/component/ibgib-dynamic-component-bases.d.mts.map +1 -0
- package/dist/ui/component/ibgib-dynamic-component-bases.mjs +1304 -0
- package/dist/ui/component/ibgib-dynamic-component-bases.mjs.map +1 -0
- package/dist/ui/ui-constants.d.mts +12 -0
- package/dist/ui/ui-constants.d.mts.map +1 -0
- package/dist/ui/ui-constants.mjs +93 -0
- package/dist/ui/ui-constants.mjs.map +1 -0
- package/dist/ui/ui-helpers.d.mts +42 -0
- package/dist/ui/ui-helpers.d.mts.map +1 -0
- package/dist/ui/ui-helpers.mjs +198 -0
- package/dist/ui/ui-helpers.mjs.map +1 -0
- package/dist/ui/ui-types.d.mts +13 -0
- package/dist/ui/ui-types.d.mts.map +1 -0
- package/dist/ui/ui-types.mjs +2 -0
- package/dist/ui/ui-types.mjs.map +1 -0
- package/dist/witness/agent/agent-constants.d.mts +97 -0
- package/dist/witness/agent/agent-constants.d.mts.map +1 -0
- package/dist/witness/agent/agent-constants.mjs +98 -0
- package/dist/witness/agent/agent-constants.mjs.map +1 -0
- package/dist/witness/agent/agent-helpers.d.mts +106 -0
- package/dist/witness/agent/agent-helpers.d.mts.map +1 -0
- package/dist/witness/agent/agent-helpers.mjs +601 -0
- package/dist/witness/agent/agent-helpers.mjs.map +1 -0
- package/dist/witness/agent/agent-one-file.app.d.mts +2 -0
- package/dist/witness/agent/agent-one-file.app.d.mts.map +1 -0
- package/dist/witness/agent/agent-one-file.app.mjs +8 -0
- package/dist/witness/agent/agent-one-file.app.mjs.map +1 -0
- package/dist/witness/agent/agent-one-file.d.mts +478 -0
- package/dist/witness/agent/agent-one-file.d.mts.map +1 -0
- package/dist/witness/agent/agent-one-file.mjs +1462 -0
- package/dist/witness/agent/agent-one-file.mjs.map +1 -0
- package/dist/witness/agent/agent-types.d.mts +83 -0
- package/dist/witness/agent/agent-types.d.mts.map +1 -0
- package/dist/witness/agent/agent-types.mjs +2 -0
- package/dist/witness/agent/agent-types.mjs.map +1 -0
- package/dist/witness/agent/agents-service-v1.d.mts +99 -0
- package/dist/witness/agent/agents-service-v1.d.mts.map +1 -0
- package/dist/witness/agent/agents-service-v1.mjs +453 -0
- package/dist/witness/agent/agents-service-v1.mjs.map +1 -0
- package/dist/witness/agent/function-info/function-info-one-file.d.mts +192 -0
- package/dist/witness/agent/function-info/function-info-one-file.d.mts.map +1 -0
- package/dist/witness/agent/function-info/function-info-one-file.mjs +192 -0
- package/dist/witness/agent/function-info/function-info-one-file.mjs.map +1 -0
- package/dist/witness/agent/gemini/agent-witness-gemini-v1.d.mts +51 -0
- package/dist/witness/agent/gemini/agent-witness-gemini-v1.d.mts.map +1 -0
- package/dist/witness/agent/gemini/agent-witness-gemini-v1.mjs +928 -0
- package/dist/witness/agent/gemini/agent-witness-gemini-v1.mjs.map +1 -0
- package/dist/witness/agent/gemini/gemini-agent-factory.d.mts +27 -0
- package/dist/witness/agent/gemini/gemini-agent-factory.d.mts.map +1 -0
- package/dist/witness/agent/gemini/gemini-agent-factory.mjs +144 -0
- package/dist/witness/agent/gemini/gemini-agent-factory.mjs.map +1 -0
- package/dist/witness/agent/gemini/gemini-constants.d.mts +36 -0
- package/dist/witness/agent/gemini/gemini-constants.d.mts.map +1 -0
- package/dist/witness/agent/gemini/gemini-constants.mjs +47 -0
- package/dist/witness/agent/gemini/gemini-constants.mjs.map +1 -0
- package/dist/witness/agent/gemini/gemini-helpers.d.mts +58 -0
- package/dist/witness/agent/gemini/gemini-helpers.d.mts.map +1 -0
- package/dist/witness/agent/gemini/gemini-helpers.mjs +210 -0
- package/dist/witness/agent/gemini/gemini-helpers.mjs.map +1 -0
- package/dist/witness/agent/gemini/gemini-types.d.mts +82 -0
- package/dist/witness/agent/gemini/gemini-types.d.mts.map +1 -0
- package/dist/witness/agent/gemini/gemini-types.mjs +3 -0
- package/dist/witness/agent/gemini/gemini-types.mjs.map +1 -0
- package/dist/witness/live-proxy-ibgib/live-proxy-ibgib-one-file.d.mts +136 -0
- package/dist/witness/live-proxy-ibgib/live-proxy-ibgib-one-file.d.mts.map +1 -0
- package/dist/witness/live-proxy-ibgib/live-proxy-ibgib-one-file.mjs +334 -0
- package/dist/witness/live-proxy-ibgib/live-proxy-ibgib-one-file.mjs.map +1 -0
- package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace-helper.d.mts +35 -0
- package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace-helper.d.mts.map +1 -0
- package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace-helper.mjs +267 -0
- package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace-helper.mjs.map +1 -0
- package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace.d.mts +134 -0
- package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace.d.mts.map +1 -0
- package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace.mjs +389 -0
- package/dist/witness/space/metaspace/metaspace-webspace/metaspace-webspace.mjs.map +1 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-constants.d.mts +2 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-constants.d.mts.map +1 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-constants.mjs +2 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-constants.mjs.map +1 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-helper.d.mts +104 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-helper.d.mts.map +1 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-helper.mjs +457 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-helper.mjs.map +1 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-types.d.mts +93 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-types.d.mts.map +1 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-types.mjs +98 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-types.mjs.map +1 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-v1.d.mts +73 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-v1.d.mts.map +1 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-v1.mjs +650 -0
- package/dist/witness/space/web-filesystem-space/web-filesystem-space-v1.mjs.map +1 -0
- package/generate-version-file.js +29 -0
- package/package.json +60 -0
- package/src/agent-texts/common-agent-texts.mts +61 -0
- package/src/agent-texts/primary-agent-texts.mts +32 -0
- package/src/agent-texts/project-agent-texts.mts +29 -0
- package/src/agent-texts/project-child-text-agent-texts.mts +30 -0
- package/src/agent-texts/projects-agent-texts.mts +17 -0
- package/src/agent-texts/raw-agent-texts.mts +18 -0
- package/src/agent-texts/text-editor-agent-texts.mts +20 -0
- package/src/api/api-constants.mts +8 -0
- package/src/api/api-index.mts +110 -0
- package/src/api/api-types.mts +36 -0
- package/src/api/commands/chat/chat-index.mts +10 -0
- package/src/api/commands/chat/get-context-info.mts +196 -0
- package/src/api/commands/chat/hello-world.mts +183 -0
- package/src/api/commands/chat/tell-user.mts +241 -0
- package/src/api/commands/command-constants.mts +17 -0
- package/src/api/commands/command-helpers.mts +105 -0
- package/src/api/commands/command-service-v1.mts +136 -0
- package/src/api/commands/command-service.respec.mts +72 -0
- package/src/api/commands/command-types.mts +71 -0
- package/src/api/commands/ibgib/get-ibgibs.mts +269 -0
- package/src/api/commands/ibgib/ibgib-index.mts +8 -0
- package/src/api/commands/ibgib/mut8-ibgib.mts +418 -0
- package/src/api/commands/templates/api-function-info.template.mts +212 -0
- package/src/api/commands/text/text-edit.mts +217 -0
- package/src/api/commands/text/text-index.mts +6 -0
- package/src/api/commands/ui/ui-index.mts +6 -0
- package/src/api/commands/ui/update-css-variables.mts +187 -0
- package/src/api/function-infos.web.mts +66 -0
- package/src/assets/fullscreen-dialog.html +18 -0
- package/src/assumptions.respec.mts +51 -0
- package/src/common/project/project-constants.mts +83 -0
- package/src/common/project/project-helper.mts +730 -0
- package/src/common/project/project-types.mts +121 -0
- package/src/common/prompt-functions.web.mts +447 -0
- package/src/common/settings/settings-constants.mts +72 -0
- package/src/common/settings/settings-helpers.mts +280 -0
- package/src/common/settings/settings-types.mts +137 -0
- package/src/constants.mts +39 -0
- package/src/foo.mts +13 -0
- package/src/helpers.mts +574 -0
- package/src/helpers.web.mts +1277 -0
- package/src/helpers.web.respec.mts +16 -0
- package/src/index.mts +3 -0
- package/src/respec-gib.node.mts +199 -0
- package/src/spec-helper.node.respec.mts +50 -0
- package/src/storage/storage-helpers.web.mts +728 -0
- package/src/storage/storage-types.web.mts +29 -0
- package/src/types.web.mts +42 -0
- package/src/ui/component/component-types.mts +241 -0
- package/src/ui/component/ibgib-component-service.mts +201 -0
- package/src/ui/component/ibgib-dynamic-component-bases.mts +1369 -0
- package/src/ui/ui-constants.mts +101 -0
- package/src/ui/ui-helpers.mts +222 -0
- package/src/ui/ui-types.mts +11 -0
- package/src/witness/agent/agent-constants.mts +122 -0
- package/src/witness/agent/agent-helpers.mts +681 -0
- package/src/witness/agent/agent-one-file.app.mts +8 -0
- package/src/witness/agent/agent-one-file.mts +1665 -0
- package/src/witness/agent/agent-types.mts +92 -0
- package/src/witness/agent/agents-service-v1.mts +482 -0
- package/src/witness/agent/function-info/function-info-one-file.mts +362 -0
- package/src/witness/agent/gemini/agent-witness-gemini-v1.mts +910 -0
- package/src/witness/agent/gemini/gemini-agent-factory.mts +135 -0
- package/src/witness/agent/gemini/gemini-constants.mts +79 -0
- package/src/witness/agent/gemini/gemini-helpers.mts +216 -0
- package/src/witness/agent/gemini/gemini-types.mts +88 -0
- package/src/witness/live-proxy-ibgib/live-proxy-ibgib-one-file.mts +321 -0
- package/src/witness/space/metaspace/metaspace-webspace/metaspace-webspace-helper.mts +290 -0
- package/src/witness/space/metaspace/metaspace-webspace/metaspace-webspace.mts +407 -0
- package/src/witness/space/web-filesystem-space/web-filesystem-space-constants.mts +1 -0
- package/src/witness/space/web-filesystem-space/web-filesystem-space-helper.mts +491 -0
- package/src/witness/space/web-filesystem-space/web-filesystem-space-types.mts +172 -0
- package/src/witness/space/web-filesystem-space/web-filesystem-space-v1.mts +670 -0
- package/tsconfig.json +17 -0
- package/tsconfig.test.json +10 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GEMINI_SCHEMA_AGENT_ID, GEMINI_SCHEMA_AGENTS_SELF_IDENTIFIED_NAME } from "../../witness/agent/agent-constants.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* common properties for available functions passed to models.
|
|
4
|
+
*/
|
|
5
|
+
export const COMMAND_BASE_SCHEMA_PROPERTIES = {
|
|
6
|
+
agentId: GEMINI_SCHEMA_AGENT_ID,
|
|
7
|
+
agentName: GEMINI_SCHEMA_AGENTS_SELF_IDENTIFIED_NAME,
|
|
8
|
+
repromptWithResult: {
|
|
9
|
+
type: 'boolean',
|
|
10
|
+
description: `Set this to true if you want to be reprompted with the function's result. Unless you really want a fire-and-forget style of function call, set this to true. NOTE: This is ignored with tellUser command, so you can't call tellUser and then repromptWithResult of true and then tellUser again.`,
|
|
11
|
+
},
|
|
12
|
+
notesToSelf: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'Quick note scratchpad related to a requested function. For example, you could write your intent here.',
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=command-constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-constants.mjs","sourceRoot":"","sources":["../../../src/api/commands/command-constants.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,yCAAyC,EAAE,MAAM,yCAAyC,CAAC;AAE5H;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC1C,OAAO,EAAE,sBAAsB;IAC/B,SAAS,EAAE,yCAAyC;IACpD,kBAAkB,EAAE;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,mSAAmS;KACnT;IACD,WAAW,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,uGAAuG;KACvH;CACK,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { APIFunctionInfo } from "../api-types.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* customizing function to create the schema specific to some concrete schema
|
|
4
|
+
* description/instructions.
|
|
5
|
+
*/
|
|
6
|
+
export declare function tweakGeminiSchema({ baseSchema, addlDescription, }: {
|
|
7
|
+
/**
|
|
8
|
+
* starting schema which we will customize.
|
|
9
|
+
*/
|
|
10
|
+
baseSchema: any;
|
|
11
|
+
/**
|
|
12
|
+
* additional description, to be used for concrete schema descriptions.
|
|
13
|
+
* If there is no description to begin with, this will simply set the
|
|
14
|
+
* description.
|
|
15
|
+
*
|
|
16
|
+
* For example, with destroy renderable, describe that this will recursively
|
|
17
|
+
* destroy children. With update renderable, this will apply the changes
|
|
18
|
+
* recursively to all children (like setting color).
|
|
19
|
+
*/
|
|
20
|
+
addlDescription?: string;
|
|
21
|
+
}): {
|
|
22
|
+
type: 'boolean';
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* wraps the given {@link fn} inside of a {@link APIFunctionInfo} that can be
|
|
27
|
+
* executed on the api command service.
|
|
28
|
+
*
|
|
29
|
+
* ## intent
|
|
30
|
+
*
|
|
31
|
+
* I want to be able to execute certain functions serially similar to a barrier
|
|
32
|
+
* or critical section. This was the "easiest" way for me to do it, since each
|
|
33
|
+
* command is executed serially on the commanding service. And I didn't want to
|
|
34
|
+
* have to create APIFunctionInfo objects for things that will not be exposed to
|
|
35
|
+
* agents proper.
|
|
36
|
+
*
|
|
37
|
+
* ## NOT for agents' use
|
|
38
|
+
*
|
|
39
|
+
* because this is anon function, there is NO schema generated. So this can't be
|
|
40
|
+
* used with agents directly.
|
|
41
|
+
*/
|
|
42
|
+
export declare function commandifyAnonFn<TFunc extends (...args: any[]) => Promise<any> = (...args: any[]) => Promise<void>>({ fn, nameOrId, cmdCategory, }: {
|
|
43
|
+
fn: TFunc;
|
|
44
|
+
nameOrId?: string;
|
|
45
|
+
cmdCategory?: string;
|
|
46
|
+
}): APIFunctionInfo<TFunc>;
|
|
47
|
+
//# sourceMappingURL=command-helpers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-helpers.d.mts","sourceRoot":"","sources":["../../../src/api/commands/command-helpers.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAMnD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,UAAU,EACV,eAAe,GAClB,EAAE;IACC;;OAEG;IACH,UAAU,EAAE,GAAG,CAAC;IAChB;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAK3C;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,EAAE,EACjH,EAAE,EACF,QAAQ,EACR,WAAW,GACd,EAAE;IACC,EAAE,EAAE,KAAK,CAAC;IACV,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,eAAe,CAAC,KAAK,CAAC,CAyCzB"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { clone, extractErrorMsg, pickRandom_Letters } from "@ibgib/helper-gib/dist/helpers/utils-helper.mjs";
|
|
2
|
+
import { GLOBAL_LOG_A_LOT } from "../../constants.mjs";
|
|
3
|
+
import { getCommandService } from "./command-service-v1.mjs";
|
|
4
|
+
const logalot = GLOBAL_LOG_A_LOT;
|
|
5
|
+
/**
|
|
6
|
+
* customizing function to create the schema specific to some concrete schema
|
|
7
|
+
* description/instructions.
|
|
8
|
+
*/
|
|
9
|
+
export function tweakGeminiSchema({ baseSchema, addlDescription, }) {
|
|
10
|
+
if (!baseSchema) {
|
|
11
|
+
throw new Error(`(UNEXPECTED) baseSchema falsy? (E: 338a083d88ab9ae5286edc7d0c20c825)`);
|
|
12
|
+
}
|
|
13
|
+
const resSchema = clone(baseSchema);
|
|
14
|
+
resSchema.description = `${resSchema.description ?? ''}\n${addlDescription}`;
|
|
15
|
+
return resSchema;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* wraps the given {@link fn} inside of a {@link APIFunctionInfo} that can be
|
|
19
|
+
* executed on the api command service.
|
|
20
|
+
*
|
|
21
|
+
* ## intent
|
|
22
|
+
*
|
|
23
|
+
* I want to be able to execute certain functions serially similar to a barrier
|
|
24
|
+
* or critical section. This was the "easiest" way for me to do it, since each
|
|
25
|
+
* command is executed serially on the commanding service. And I didn't want to
|
|
26
|
+
* have to create APIFunctionInfo objects for things that will not be exposed to
|
|
27
|
+
* agents proper.
|
|
28
|
+
*
|
|
29
|
+
* ## NOT for agents' use
|
|
30
|
+
*
|
|
31
|
+
* because this is anon function, there is NO schema generated. So this can't be
|
|
32
|
+
* used with agents directly.
|
|
33
|
+
*/
|
|
34
|
+
export function commandifyAnonFn({ fn, nameOrId, cmdCategory, }) {
|
|
35
|
+
const lc = `[${commandifyAnonFn.name}]`;
|
|
36
|
+
try {
|
|
37
|
+
if (logalot) {
|
|
38
|
+
console.log(`${lc} starting... (I: e302e6a0f13584968379c9149406f225)`);
|
|
39
|
+
}
|
|
40
|
+
const cmdName = (nameOrId ?? fn.name) + `_${pickRandom_Letters({ count: 8 })}`;
|
|
41
|
+
cmdCategory ??= 'anon';
|
|
42
|
+
const cmdModifiers = [cmdName];
|
|
43
|
+
const fnViaCmd = async (opts) => {
|
|
44
|
+
cmdCategory ??= 'anon';
|
|
45
|
+
const commandService = getCommandService();
|
|
46
|
+
const command = {
|
|
47
|
+
cmd: cmdCategory,
|
|
48
|
+
cmdModifiers,
|
|
49
|
+
...opts,
|
|
50
|
+
};
|
|
51
|
+
return new Promise((resolve, reject) => {
|
|
52
|
+
commandService.enqueueCommand({ command, resolve, reject, anonApiFn });
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
const anonApiFn = {
|
|
56
|
+
nameOrId: cmdName,
|
|
57
|
+
cmd: cmdCategory,
|
|
58
|
+
cmdModifiers: [cmdName],
|
|
59
|
+
fnViaCmd,
|
|
60
|
+
functionImpl: fn,
|
|
61
|
+
schema: undefined,
|
|
62
|
+
isAnon: true,
|
|
63
|
+
};
|
|
64
|
+
return anonApiFn;
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
console.error(`${lc} ${extractErrorMsg(error)}`);
|
|
68
|
+
throw error;
|
|
69
|
+
}
|
|
70
|
+
finally {
|
|
71
|
+
if (logalot) {
|
|
72
|
+
console.log(`${lc} complete.`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=command-helpers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-helpers.mjs","sourceRoot":"","sources":["../../../src/api/commands/command-helpers.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAE7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAEjC;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAC9B,UAAU,EACV,eAAe,GAgBlB;IACG,IAAI,CAAC,UAAU,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;KAAE;IAC7G,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IACpC,SAAS,CAAC,WAAW,GAAG,GAAG,SAAS,CAAC,WAAW,IAAI,EAAE,KAAK,eAAe,EAAE,CAAC;IAC7E,OAAO,SAAS,CAAC;AACrB,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,gBAAgB,CAAqF,EACjH,EAAE,EACF,QAAQ,EACR,WAAW,GAKd;IACG,MAAM,EAAE,GAAG,IAAI,gBAAgB,CAAC,IAAI,GAAG,CAAC;IACxC,IAAI;QACA,IAAI,OAAO,EAAE;YAAE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,oDAAoD,CAAC,CAAC;SAAE;QAExF,MAAM,OAAO,GACT,CAAC,QAAQ,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACnE,WAAW,KAAK,MAAM,CAAC;QACvB,MAAM,YAAY,GAAG,CAAC,OAAO,CAAC,CAAC;QAE/B,MAAM,QAAQ,GAAQ,KAAK,EAAE,IAAS,EAAE,EAAE;YACtC,WAAW,KAAK,MAAM,CAAC;YACvB,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;YAC3C,MAAM,OAAO,GAA6D;gBACtE,GAAG,EAAE,WAAW;gBAChB,YAAY;gBACZ,GAAG,IAAI;aACV,CAAC;YACF,OAAO,IAAI,OAAO,CAAM,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACxC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;YAC3E,CAAC,CAAC,CAAC;QACP,CAAC,CAAA;QAED,MAAM,SAAS,GAA2B;YACtC,QAAQ,EAAE,OAAO;YACjB,GAAG,EAAE,WAAW;YAChB,YAAY,EAAE,CAAC,OAAO,CAAC;YACvB,QAAQ;YACR,YAAY,EAAE,EAAE;YAChB,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,IAAI;SACf,CAAA;QAED,OAAO,SAAS,CAAC;KAEpB;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACjD,MAAM,KAAK,CAAC;KACf;YAAS;QACN,IAAI,OAAO,EAAE;YAAE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;SAAE;KACnD;AACL,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CommandDataBase, CommandService, EnqueuedCommand } from "./command-types.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @class CommandService_V1 - Implementation of the command service.
|
|
4
|
+
* Implements the {@link CommandService} interface.
|
|
5
|
+
*/
|
|
6
|
+
export declare class CommandService_V1 implements CommandService {
|
|
7
|
+
protected lc: string;
|
|
8
|
+
private commandQueue;
|
|
9
|
+
private isProcessing;
|
|
10
|
+
constructor();
|
|
11
|
+
enqueueCommand<TCommand extends CommandDataBase<string, string[]>>(enqueuedCommand: EnqueuedCommand<TCommand>): void;
|
|
12
|
+
private startProcessing;
|
|
13
|
+
processQueue(): Promise<void>;
|
|
14
|
+
private executeCommand;
|
|
15
|
+
/**
|
|
16
|
+
* todo: change the structure so these explicit calls aren't necessary.
|
|
17
|
+
* @param cmdData about the cmd to invoke
|
|
18
|
+
* @param functionInfo full function info corresponding to cmd
|
|
19
|
+
* @returns args that the cmd expects depending on incoming {@link cmdData}
|
|
20
|
+
*/
|
|
21
|
+
private getCommandArgs;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Gets the singleton instance of the CommandService.
|
|
25
|
+
* @returns {CommandService} The CommandService instance.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getCommandService(): CommandService;
|
|
28
|
+
//# sourceMappingURL=command-service-v1.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-service-v1.d.mts","sourceRoot":"","sources":["../../../src/api/commands/command-service-v1.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGvF;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,cAAc;IACpD,SAAS,CAAC,EAAE,EAAE,MAAM,CAAiC;IACrD,OAAO,CAAC,YAAY,CAA4D;IAChF,OAAO,CAAC,YAAY,CAAS;;IAc7B,cAAc,CAAC,QAAQ,SAAS,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,eAAe,EAAE,eAAe,CAAC,QAAQ,CAAC,GAAG,IAAI;IAOpH,OAAO,CAAC,eAAe;IAUjB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;YAiBrB,cAAc;IAgC5B;;;;;OAKG;IACH,OAAO,CAAC,cAAc;CAoBzB;AAOD;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAKlD"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { extractErrorMsg, pretty } from "@ibgib/helper-gib/dist/helpers/utils-helper.mjs";
|
|
2
|
+
import { getAllFunctionInfos } from "../api-index.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @class CommandService_V1 - Implementation of the command service.
|
|
5
|
+
* Implements the {@link CommandService} interface.
|
|
6
|
+
*/
|
|
7
|
+
export class CommandService_V1 {
|
|
8
|
+
lc = `[${CommandService_V1.name}]`;
|
|
9
|
+
commandQueue = [];
|
|
10
|
+
isProcessing = false;
|
|
11
|
+
// private anonFns: Map<string, APIFunctionInfo<any>> = new Map();
|
|
12
|
+
constructor() { }
|
|
13
|
+
// registerAnonFn({ apiFnInfo }: { apiFnInfo: APIFunctionInfo<any> }): void {
|
|
14
|
+
// const lc = `${this.lc}[${this.registerAnonFn.name}]`;
|
|
15
|
+
// if (this.anonFns.has(apiFnInfo.nameOrId)) {
|
|
16
|
+
// console.warn(`${lc} anonFn already registered? (W: c6721a63affe97f5514d54bbe780f625)`)
|
|
17
|
+
// }
|
|
18
|
+
// this.anonFns.set(apiFnInfo.nameOrId, apiFnInfo);
|
|
19
|
+
// }
|
|
20
|
+
enqueueCommand(enqueuedCommand) {
|
|
21
|
+
this.commandQueue.push(enqueuedCommand);
|
|
22
|
+
if (!this.isProcessing) {
|
|
23
|
+
this.startProcessing();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
startProcessing() {
|
|
27
|
+
this.isProcessing = true;
|
|
28
|
+
this.processQueue().finally(() => {
|
|
29
|
+
this.isProcessing = false;
|
|
30
|
+
if (this.commandQueue.length > 0) {
|
|
31
|
+
this.startProcessing(); // If more commands were added, process them
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
async processQueue() {
|
|
36
|
+
const lc = `${this.lc}[${this.processQueue.name}]`;
|
|
37
|
+
while (this.commandQueue.length > 0) {
|
|
38
|
+
const enqueuedCommand = this.commandQueue.shift();
|
|
39
|
+
if (enqueuedCommand) {
|
|
40
|
+
try {
|
|
41
|
+
const result = await this.executeCommand(enqueuedCommand.command, enqueuedCommand.anonApiFn);
|
|
42
|
+
enqueuedCommand.resolve(result);
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
console.error(`Error executing command ${enqueuedCommand.command.cmd} ${enqueuedCommand.command.cmdModifiers?.join(',') ?? ''}:`, error);
|
|
46
|
+
enqueuedCommand.reject(error);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async executeCommand(cmdData, anonApiFn) {
|
|
52
|
+
const lc = `[${CommandService_V1.name}.${this.executeCommand.name}]`;
|
|
53
|
+
try {
|
|
54
|
+
const functionInfo = anonApiFn ??
|
|
55
|
+
Array.from(getAllFunctionInfos().entries())
|
|
56
|
+
.map(x => x[1])
|
|
57
|
+
.find((info) => {
|
|
58
|
+
return info.cmd === cmdData.cmd &&
|
|
59
|
+
info.cmdModifiers.every(modifier => !!cmdData.cmdModifiers?.includes(modifier));
|
|
60
|
+
});
|
|
61
|
+
if (functionInfo) {
|
|
62
|
+
console.log(`${lc} command executing. cmdData: ${pretty(cmdData)}`);
|
|
63
|
+
// Type checking and argument passing will need refinement based on schema
|
|
64
|
+
if (cmdData.notesToSelf) {
|
|
65
|
+
console.log(`${lc} Notes to self: ${cmdData.notesToSelf}. (I: ebcc5471b2b309ba186281c134f77e25)`);
|
|
66
|
+
}
|
|
67
|
+
const args = this.getCommandArgs(cmdData, functionInfo);
|
|
68
|
+
const result = await functionInfo.functionImpl(args);
|
|
69
|
+
return result;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
throw new Error(`${lc} Unknown command: ${cmdData.cmd} with modifiers ${cmdData.cmdModifiers?.join(', ')} (E: cc9cb829f118de05b762020213ef2825)`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
debugger; // error in command svc exec
|
|
77
|
+
const errorMsg = `${lc} ${extractErrorMsg(error)}`;
|
|
78
|
+
console.error(errorMsg);
|
|
79
|
+
return { errorMsg };
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* todo: change the structure so these explicit calls aren't necessary.
|
|
84
|
+
* @param cmdData about the cmd to invoke
|
|
85
|
+
* @param functionInfo full function info corresponding to cmd
|
|
86
|
+
* @returns args that the cmd expects depending on incoming {@link cmdData}
|
|
87
|
+
*/
|
|
88
|
+
getCommandArgs(cmdData, functionInfo) {
|
|
89
|
+
return cmdData;
|
|
90
|
+
// // This will need to be refined based on the actual function signature and schema
|
|
91
|
+
// if (functionInfo.nameOrId === 'renderableCreate') {
|
|
92
|
+
// // return { initialStates: (cmdData as RenderableCreateCommandData).initialStates, };
|
|
93
|
+
// return cmdData as RenderableCreateCommandData;
|
|
94
|
+
// } else if (functionInfo.nameOrId === 'renderableUpdate') {
|
|
95
|
+
// // return { handle: (cmdData as RenderableUpdateCommandData).handle,
|
|
96
|
+
// // updatedState: (cmdData as RenderableUpdateCommandData).updatedState
|
|
97
|
+
// // };
|
|
98
|
+
// return cmdData as RenderableUpdateCommandData;
|
|
99
|
+
// } else if (functionInfo.nameOrId === 'renderableDestroy') {
|
|
100
|
+
// return cmdData as RenderableDestroyCommandData;
|
|
101
|
+
// } else if (functionInfo.nameOrId === 'tellUser') {
|
|
102
|
+
// return { text: (cmdData as TellUserCommandData).text };
|
|
103
|
+
// } else {
|
|
104
|
+
// throw new Error(`(UNEXPECTED) unknown command? functionInfo.nameOrId: ${functionInfo.nameOrId}, cmdData: ${pretty(cmdData)} (E: 376725f2024d48c5056a9f8989616125)`);
|
|
105
|
+
// }
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @private
|
|
110
|
+
*/
|
|
111
|
+
let globalCommandService;
|
|
112
|
+
/**
|
|
113
|
+
* Gets the singleton instance of the CommandService.
|
|
114
|
+
* @returns {CommandService} The CommandService instance.
|
|
115
|
+
*/
|
|
116
|
+
export function getCommandService() {
|
|
117
|
+
if (!globalCommandService) {
|
|
118
|
+
globalCommandService = new CommandService_V1();
|
|
119
|
+
}
|
|
120
|
+
return globalCommandService;
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=command-service-v1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-service-v1.mjs","sourceRoot":"","sources":["../../../src/api/commands/command-service-v1.mts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-service.respec.d.mts","sourceRoot":"","sources":["../../../src/api/commands/command-service.respec.mts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module command-service respec, not quite a real respec atow (01/2025).
|
|
3
|
+
* convert later when doing better testing. for now, just import the test function
|
|
4
|
+
* and run it to test.
|
|
5
|
+
*/
|
|
6
|
+
export {};
|
|
7
|
+
// import { RenderableHandle } from '../../render/render-one-file.mjs';
|
|
8
|
+
// import { renderableCreateFunctionInfo } from './renderable/create-renderables.mjs';
|
|
9
|
+
// import { renderableDestroyFunctionInfo } from './renderable/destroy-renderable.mts';
|
|
10
|
+
// import { renderableUpdateFunctionInfo } from './renderable/update-renderable.mts';
|
|
11
|
+
// /**
|
|
12
|
+
// * @function testCommandService - A test function to demonstrate using the command service.
|
|
13
|
+
// * @returns {Promise<void>}
|
|
14
|
+
// */
|
|
15
|
+
// export async function testCommandService(): Promise<void> {
|
|
16
|
+
// console.log('>>> Starting testCommandService...');
|
|
17
|
+
// // 1. Create a renderable
|
|
18
|
+
// let createHandle: RenderableHandle | undefined;
|
|
19
|
+
// try {
|
|
20
|
+
// const renderableCreateViaCmd = renderableCreateFunctionInfo.fnViaCmd;
|
|
21
|
+
// // createHandle = (await renderableCreateViaCmd({
|
|
22
|
+
// const resCreate = await renderableCreateViaCmd(
|
|
23
|
+
// {
|
|
24
|
+
// cmd: 'Renderable',
|
|
25
|
+
// initialStates: [{
|
|
26
|
+
// isVisible: true,
|
|
27
|
+
// color: { r: 1, g: 0, b: 0, a: 1 }, // Red
|
|
28
|
+
// position: { x: 10, y: 10, z: 0 },
|
|
29
|
+
// scale: { x: 1, y: 1 },
|
|
30
|
+
// geometry: { type: 'rect', parameters: { type: 'rect', width: 50, height: 50 } },
|
|
31
|
+
// }],
|
|
32
|
+
// });
|
|
33
|
+
// createHandle = resCreate.at(0);
|
|
34
|
+
// console.log(`testCommandService: Created renderable with handle ${createHandle.uuid}`);
|
|
35
|
+
// } catch (error) {
|
|
36
|
+
// console.error('testCommandService: Error creating renderable:', error);
|
|
37
|
+
// return;
|
|
38
|
+
// }
|
|
39
|
+
// if (!createHandle) {
|
|
40
|
+
// console.error('testCommandService: Error creating renderable - handle is undefined. (E: 6548f5560b07137bd683cb713a4fcc24)');
|
|
41
|
+
// return;
|
|
42
|
+
// }
|
|
43
|
+
// // 2. Update the renderable after a short delay
|
|
44
|
+
// await new Promise(resolve => setTimeout(resolve, 2000));
|
|
45
|
+
// try {
|
|
46
|
+
// const renderableUpdateViaCmd = renderableUpdateFunctionInfo.fnViaCmd;
|
|
47
|
+
// await renderableUpdateViaCmd({
|
|
48
|
+
// handle: createHandle,
|
|
49
|
+
// updatedState: { color: { r: 0, g: 1, b: 0, a: 1 }, position: { x: 100, y: 100, z: 0 } }, // Green, moved
|
|
50
|
+
// });
|
|
51
|
+
// console.log(`testCommandService: Updated renderable with handle ${createHandle.uuid}`);
|
|
52
|
+
// } catch (error) {
|
|
53
|
+
// console.error('testCommandService: Error updating renderable:', error);
|
|
54
|
+
// }
|
|
55
|
+
// // 3. Destroy the renderable after another short delay
|
|
56
|
+
// await new Promise(resolve => setTimeout(resolve, 2000));
|
|
57
|
+
// try {
|
|
58
|
+
// const renderableDestroyViaCmd = renderableDestroyFunctionInfo.fnViaCmd;
|
|
59
|
+
// await renderableDestroyViaCmd({ handle: createHandle });
|
|
60
|
+
// console.log(`testCommandService: Destroyed renderable with handle ${createHandle.uuid}`);
|
|
61
|
+
// } catch (error) {
|
|
62
|
+
// console.error('testCommandService: Error destroying renderable:', error);
|
|
63
|
+
// }
|
|
64
|
+
// console.log('>>> Finished testCommandService.');
|
|
65
|
+
// }
|
|
66
|
+
//# sourceMappingURL=command-service.respec.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-service.respec.mjs","sourceRoot":"","sources":["../../../src/api/commands/command-service.respec.mts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,uEAAuE;AACvE,sFAAsF;AACtF,uFAAuF;AACvF,qFAAqF;AAErF,MAAM;AACN,8FAA8F;AAC9F,8BAA8B;AAC9B,MAAM;AACN,8DAA8D;AAC9D,yDAAyD;AAEzD,gCAAgC;AAChC,sDAAsD;AACtD,YAAY;AACZ,gFAAgF;AAChF,4DAA4D;AAC5D,0DAA0D;AAC1D,gBAAgB;AAChB,qCAAqC;AACrC,oCAAoC;AACpC,uCAAuC;AACvC,gEAAgE;AAChE,wDAAwD;AACxD,6CAA6C;AAC7C,uGAAuG;AACvG,sBAAsB;AACtB,kBAAkB;AAElB,0CAA0C;AAC1C,kGAAkG;AAClG,wBAAwB;AACxB,kFAAkF;AAClF,kBAAkB;AAClB,QAAQ;AAER,2BAA2B;AAC3B,uIAAuI;AACvI,kBAAkB;AAClB,QAAQ;AAER,sDAAsD;AACtD,+DAA+D;AAC/D,YAAY;AACZ,gFAAgF;AAChF,yCAAyC;AACzC,oCAAoC;AACpC,uHAAuH;AACvH,cAAc;AACd,kGAAkG;AAClG,wBAAwB;AACxB,kFAAkF;AAClF,QAAQ;AAER,6DAA6D;AAC7D,+DAA+D;AAC/D,YAAY;AACZ,kFAAkF;AAClF,mEAAmE;AACnE,oGAAoG;AACpG,wBAAwB;AACxB,oFAAoF;AACpF,QAAQ;AAER,uDAAuD;AACvD,IAAI"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { WitnessCmdData } from "@ibgib/core-gib/dist/witness/witness-cmd/witness-cmd-types.mjs";
|
|
2
|
+
import { APIFunctionInfo } from "../api-types.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @interface CommandBase - Base interface for all commands.
|
|
5
|
+
* Extends the structure for witness commands.
|
|
6
|
+
*/
|
|
7
|
+
export interface CommandDataBase<TCmds extends string, TCmdModifiers extends string[]> extends WitnessCmdData<TCmds, TCmdModifiers> {
|
|
8
|
+
/**
|
|
9
|
+
* notes to self for use by the LLM to describe their use of the command.
|
|
10
|
+
*/
|
|
11
|
+
notesToSelf?: string;
|
|
12
|
+
/**
|
|
13
|
+
* set to true if the model desires notification as soon as the command is completed.
|
|
14
|
+
* Note that this is not part of the intrinsic command, rather it is
|
|
15
|
+
* metadata regarding agent (internal LLM model) workflow.
|
|
16
|
+
*/
|
|
17
|
+
repromptWithResult?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @interface EnqueuedCommand - Represents a command enqueued with its resolve
|
|
21
|
+
* and reject functions.
|
|
22
|
+
*/
|
|
23
|
+
export interface EnqueuedCommand<TCommand extends CommandDataBase<string, string[]>> {
|
|
24
|
+
command: TCommand;
|
|
25
|
+
resolve: (result: any) => void;
|
|
26
|
+
reject: (error: Error) => void;
|
|
27
|
+
/**
|
|
28
|
+
* If the command is anonymous, then this will be set. Otherwise, the APIFunctionInfo
|
|
29
|
+
* that will be used will be whitelisted from {@link getAllFunctionInfos}.
|
|
30
|
+
*/
|
|
31
|
+
anonApiFn?: APIFunctionInfo<any>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @interface CommandService - Interface for the command service.
|
|
35
|
+
*/
|
|
36
|
+
export interface CommandService {
|
|
37
|
+
/**
|
|
38
|
+
* Enqueues a command to be executed.
|
|
39
|
+
* @param {EnqueuedCommand<TCommand>} enqueuedCommand - The command to enqueue with its resolve and reject functions.
|
|
40
|
+
*/
|
|
41
|
+
enqueueCommand<TCommand extends CommandDataBase<string, string[]>>(enqueuedCommand: EnqueuedCommand<TCommand>): void;
|
|
42
|
+
/**
|
|
43
|
+
* Starts processing the command queue.
|
|
44
|
+
* @returns {Promise<void>} A promise that resolves when the queue is empty.
|
|
45
|
+
*/
|
|
46
|
+
processQueue(): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=command-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-types.d.mts","sourceRoot":"","sources":["../../../src/api/commands/command-types.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gEAAgE,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnD;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,KAAK,SAAS,MAAM,EAAE,aAAa,SAAS,MAAM,EAAE,CAAE,SAAQ,cAAc,CAAC,KAAK,EAAE,aAAa,CAAC;IAC/H;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,QAAQ,SAAS,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAC/E,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAS3B;;;OAGG;IACH,cAAc,CAAC,QAAQ,SAAS,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,eAAe,EAAE,eAAe,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IAErH;;;OAGG;IACH,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
// export const commandBaseSchemaProperties = {
|
|
3
|
+
// repromptWithResult: {
|
|
4
|
+
// type: 'boolean',
|
|
5
|
+
// description: `Set this to true if you want to be reprompted with the function's result.`,
|
|
6
|
+
// },
|
|
7
|
+
// notesToSelf: {
|
|
8
|
+
// type: 'string',
|
|
9
|
+
// description: `Use this as a note to yourself when looking at this function call and/or its result.`,
|
|
10
|
+
// },
|
|
11
|
+
// } as const;
|
|
12
|
+
//# sourceMappingURL=command-types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-types.mjs","sourceRoot":"","sources":["../../../src/api/commands/command-types.mts"],"names":[],"mappings":";AA6DA,+CAA+C;AAC/C,4BAA4B;AAC5B,2BAA2B;AAC3B,oGAAoG;AACpG,SAAS;AACT,qBAAqB;AACrB,0BAA0B;AAC1B,+GAA+G;AAC/G,SAAS;AACT,cAAc"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module get-ibgibs.mts
|
|
3
|
+
* Provides the API Function Info for the `getIbGibs` command, which allows
|
|
4
|
+
* editing an existing ibGib using the `mut8` transform.
|
|
5
|
+
*
|
|
6
|
+
* ## notes
|
|
7
|
+
*
|
|
8
|
+
* ### ordering imports
|
|
9
|
+
*
|
|
10
|
+
* import sections always go:
|
|
11
|
+
* 1. non-ibgib deps first
|
|
12
|
+
* 2. @ibgib/helper-gib, @ibgib/encrypt-gib, @ibgib/ts-gib, @ibgib/core-gib packages (in that order)
|
|
13
|
+
* 3. import GLOBAL_LOG_A_LOT then remaining project imports
|
|
14
|
+
* 4. code proper starts with the definition of `const logalot` (if applicable)
|
|
15
|
+
*
|
|
16
|
+
* Each section is separated by a blank line.
|
|
17
|
+
*/
|
|
18
|
+
import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/types.mjs';
|
|
19
|
+
import { IbGibAddr } from '@ibgib/ts-gib/dist/types.mjs';
|
|
20
|
+
import { SpaceId } from '@ibgib/core-gib/dist/witness/space/space-types.mjs';
|
|
21
|
+
import { APIFunctionInfo } from "../../api-types.mjs";
|
|
22
|
+
import { CommandDataBase } from "../command-types.mjs";
|
|
23
|
+
type IbGibMap = Record<IbGibAddr, IbGib_V1 | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* camelCased name of the command itself.
|
|
26
|
+
*/
|
|
27
|
+
declare const FUNCTION_NAME = "getIbGibs";
|
|
28
|
+
/**
|
|
29
|
+
* agent is the broad command which basically acts like a category of commands at this point.
|
|
30
|
+
*/
|
|
31
|
+
declare const CMD_CATEGORY = "ibgib";
|
|
32
|
+
/**
|
|
33
|
+
* getIbGibs here is the specific command modifier which narrows down to a command
|
|
34
|
+
* instance, similar to a fully curried function.
|
|
35
|
+
*
|
|
36
|
+
* This should be camelCased actual name of the function.
|
|
37
|
+
*/
|
|
38
|
+
declare const CMD_MODIFIERS: string[];
|
|
39
|
+
export declare const GEMINI_SCHEMA_IBGIB_ADDRS: {
|
|
40
|
+
type: string;
|
|
41
|
+
description: string;
|
|
42
|
+
items: {
|
|
43
|
+
type: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @interface GetIbGibsOpts - Options for the getIbGibs command.
|
|
49
|
+
*
|
|
50
|
+
* @extends CommandDataBase
|
|
51
|
+
*/
|
|
52
|
+
export interface GetIbGibsOpts extends CommandDataBase<typeof CMD_CATEGORY, typeof CMD_MODIFIERS> {
|
|
53
|
+
spaceId?: SpaceId;
|
|
54
|
+
/**
|
|
55
|
+
* @property ibGibAddr - The address (or tjp address) of the project ibGib to edit.
|
|
56
|
+
*/
|
|
57
|
+
ibGibAddrs: IbGibAddr[];
|
|
58
|
+
/**
|
|
59
|
+
* @property getLatest - flag that if true will get the latest version of
|
|
60
|
+
* the ibGib registered with the space.
|
|
61
|
+
*/
|
|
62
|
+
getLatest?: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @interface GetIbGibsCommandData - Command data for the getIbGibs command.
|
|
66
|
+
* @extends CommandDataBase
|
|
67
|
+
*/
|
|
68
|
+
export interface GetIbGibsCommandData extends CommandDataBase<typeof CMD_CATEGORY, [typeof FUNCTION_NAME]> {
|
|
69
|
+
/**
|
|
70
|
+
* @see {@link GetIbGibsOpts.spaceId}
|
|
71
|
+
*/
|
|
72
|
+
spaceId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @see {@link GetIbGibsOpts.ibGibAddrs}
|
|
75
|
+
*/
|
|
76
|
+
ibGibAddrs: IbGibAddr[];
|
|
77
|
+
/**
|
|
78
|
+
* @see {@link GetIbGibsOpts.getLatest}
|
|
79
|
+
*/
|
|
80
|
+
getLatest?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export type GetIbGibsResult = IbGibMap;
|
|
83
|
+
/**
|
|
84
|
+
* Wrapper function to enqueue the getIbGibs command.
|
|
85
|
+
* @param {GetIbGibsOpts} opts - @see {@link GetIbGibsOpts}
|
|
86
|
+
* @returns {Promise<void>} A promise that resolves when the command finishes execution.
|
|
87
|
+
*/
|
|
88
|
+
declare function getIbGibsViaCmd(opts: GetIbGibsOpts): Promise<GetIbGibsResult>;
|
|
89
|
+
/**
|
|
90
|
+
* API function info for the getIbGibs command.
|
|
91
|
+
*/
|
|
92
|
+
export declare const getIbGibsFunctionInfo: APIFunctionInfo<typeof getIbGibsViaCmd>;
|
|
93
|
+
export {};
|
|
94
|
+
//# sourceMappingURL=get-ibgibs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-ibgibs.d.mts","sourceRoot":"","sources":["../../../../src/api/commands/ibgib/get-ibgibs.mts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,oDAAoD,CAAC;AAG7E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAOvD,KAAK,QAAQ,GAAG,MAAM,CAAC,SAAS,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC;AAIxD;;GAEG;AACH,QAAA,MAAM,aAAa,cAAc,CAAC;AAElC;;GAEG;AACH,QAAA,MAAM,YAAY,UAAU,CAAC;AAC7B;;;;;GAKG;AACH,QAAA,MAAM,aAAa,EAAE,MAAM,EAAoB,CAAC;AA2BhD,eAAO,MAAM,yBAAyB;;;;;;;CAOrC,CAAC;AAyBF;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,eAAe,CAAC,OAAO,YAAY,EAAE,OAAO,aAAa,CAAC;IAC7F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,eAAe,CAAC,OAAO,YAAY,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC;IACtG;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEvC;;;;GAIG;AACH,iBAAS,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAUtE;AA0FD;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,eAAe,CAAC,OAAO,eAAe,CAOzE,CAAC"}
|