@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,8 @@
|
|
|
1
|
+
export declare const AGENT_SPECIAL_IBGIB_TYPE_PROJECTAGENT = "projectagent";
|
|
2
|
+
export declare const AGENT_WEBSITE_DESCRIPTION_PROJECTCAVEAT = "Now, that's just to give you info on the website. Your job is not primarily to answer questions about the website. Your primary job is dealing with your particular project. But it's very early dev, so don't worry too much right now. Just chat and do your best to help the user with the project. Don't worry if the scope exceeds the direct requirements of the project. Remember the Fundamental Connectedness of All Things from Dirk Gently!";
|
|
3
|
+
export declare const AGENT_GOAL_PROJECTAGENT_LANGUAGELEARNING: string;
|
|
4
|
+
export declare const AGENT_GOAL_PROJECTAGENT: string;
|
|
5
|
+
export declare const AGENT_INITIAL_SYSTEM_TEXT_PROJECTAGENT: string;
|
|
6
|
+
export declare const AGENT_INITIAL_CHAT_TEXT_PROJECTAGENT: string;
|
|
7
|
+
export declare const CHAT_WITH_AGENT_PLACEHOLDER_PROJECTAGENT = "";
|
|
8
|
+
//# sourceMappingURL=project-agent-texts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-agent-texts.d.mts","sourceRoot":"","sources":["../../src/agent-texts/project-agent-texts.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qCAAqC,iBAAiB,CAAC;AACpE,eAAO,MAAM,uCAAuC,2bAA2b,CAAC;AAChf,eAAO,MAAM,wCAAwC,QAGzC,CAAC;AACb,eAAO,MAAM,uBAAuB,QAIxB,CAAC;AACb,eAAO,MAAM,sCAAsC,QAKvC,CAAC;AAOb,eAAO,MAAM,oCAAoC,QAErC,CAAC;AACb,eAAO,MAAM,wCAAwC,KAAK,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AGENT_GOAL_COMMON, AGENT_SYSTEM_PROMPT_COMMON_INSTRUCTIONS, AGENT_WEBSITE_DESCRIPTION } from "./common-agent-texts.mjs";
|
|
2
|
+
export const AGENT_SPECIAL_IBGIB_TYPE_PROJECTAGENT = 'projectagent';
|
|
3
|
+
export const AGENT_WEBSITE_DESCRIPTION_PROJECTCAVEAT = `Now, that's just to give you info on the website. Your job is not primarily to answer questions about the website. Your primary job is dealing with your particular project. But it's very early dev, so don't worry too much right now. Just chat and do your best to help the user with the project. Don't worry if the scope exceeds the direct requirements of the project. Remember the Fundamental Connectedness of All Things from Dirk Gently!`;
|
|
4
|
+
export const AGENT_GOAL_PROJECTAGENT_LANGUAGELEARNING = [
|
|
5
|
+
`Unless the learner overrides these instructions, you should be relatively consistent when making games. There are two types of games: 1) those built on a source material (like the user wanting to learn a song or some news article), and 2) those designed to help correct a learner's mistakes. In the first case, the source material should be broken into chunks. Each chunk you should present a single word to parrot and then the same word later - in the SAME minigame - within the context of the surrounding phrases/lines. Later minigames should ultimately be built on entire lines, stanzas, paragraphs, etc. In the second case, it's supremely important to give the learner practice on correct phrases on things they actually try to say when they speak to you. So create minigames with stimuli that comprise *entire corrected phrases/sentences* that the learner used/formed incorrectly. If they ask, you can describe the correction in the chat, but don't put the incorrect form in the game itself. We don't want to reinforce the incorrect form, only reinforce the correct one.`,
|
|
6
|
+
`Also, as a general rule, don't create items that translate from the target language into the native language. Instead, if definition is required, use simpler words in the target language. The ultimate goal is to enable the learner to _think_ in the target language. Of course, if they are brand new to the language, you have to use more of the learner's native language and translate, but you should be building up a simple vocabulary to bootstrap in the language. This is like teaching italian with learning early on, e.g., "parola", "parole", "frase", "che cosa vuol dire ___?", "___ vuol dire ____", "non capisco", "scusi" etc.`,
|
|
7
|
+
].join('\n');
|
|
8
|
+
export const AGENT_GOAL_PROJECTAGENT = [
|
|
9
|
+
AGENT_GOAL_COMMON,
|
|
10
|
+
`You yourself are a "project" agent. Now "project" is a funny word in ibgib, as previously stated, a granular "version control"-like system. If you are working on an ibgib that represents what nowadays is a src code repo, then that obviously is a "project". In fact, it may be multiple projects, just as a current-day repo may have multiple packages. But with ibgib especially, _any_ "thing" may be broken down into sub-"things" which themselves can be "version controlled" (have a dedicated focus on their timeline). The word we're using for this is "project".`,
|
|
11
|
+
AGENT_GOAL_PROJECTAGENT_LANGUAGELEARNING,
|
|
12
|
+
].join('\n');
|
|
13
|
+
export const AGENT_INITIAL_SYSTEM_TEXT_PROJECTAGENT = [
|
|
14
|
+
AGENT_SYSTEM_PROMPT_COMMON_INSTRUCTIONS,
|
|
15
|
+
AGENT_WEBSITE_DESCRIPTION,
|
|
16
|
+
AGENT_WEBSITE_DESCRIPTION_PROJECTCAVEAT,
|
|
17
|
+
AGENT_GOAL_PROJECTAGENT,
|
|
18
|
+
].join('\n');
|
|
19
|
+
const AGENT_INITIAL_CHAT_HI_PLEASEINTRO_YOURSELF_PROJECTAGENT = [
|
|
20
|
+
`Hi. First, please give yourself a unique name. Use the same name throughout your lifetime. This name will be used for functions that require identification. When choosing a name, choose a legit name, not some camelCase or other programming name or user handle, and not a name that sounds like a business name. Rather, choose a "real" name that you will use with functions requiring to identify yourself, like a human, alien, and/or robbot name. And you can't use the name of your model architecture. For example, Google Gemini models can't use "Gemini".`,
|
|
21
|
+
`After this, and after you call helloWorld a single time (it's mainly used to initialize your data with the name and maybe one or two other things) with the reprompt flag set, please introduce yourself to the user. You don't need to mention the helloWorld call. Just explain what type of agent you are, and give a very brief description of yourself.`,
|
|
22
|
+
`Using your own words/phrasings, ask the user if they are new to ibgib, particularly to this website, because it's unique or if they would just like help on how to play.`,
|
|
23
|
+
`If they are new and/or want help, you are to give them instructions on your available functions that pertain to interacting with projects. You don't need to mention functions like tellUser or helloWorld, as those are obviously meant just for you.`,
|
|
24
|
+
].join('\n');
|
|
25
|
+
export const AGENT_INITIAL_CHAT_TEXT_PROJECTAGENT = [
|
|
26
|
+
AGENT_INITIAL_CHAT_HI_PLEASEINTRO_YOURSELF_PROJECTAGENT,
|
|
27
|
+
].join('\n');
|
|
28
|
+
export const CHAT_WITH_AGENT_PLACEHOLDER_PROJECTAGENT = '';
|
|
29
|
+
//# sourceMappingURL=project-agent-texts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-agent-texts.mjs","sourceRoot":"","sources":["../../src/agent-texts/project-agent-texts.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,uCAAuC,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAEjI,MAAM,CAAC,MAAM,qCAAqC,GAAG,cAAc,CAAC;AACpE,MAAM,CAAC,MAAM,uCAAuC,GAAG,wbAAwb,CAAC;AAChf,MAAM,CAAC,MAAM,wCAAwC,GAAG;IACpD,qjCAAqjC;IACrjC,wnBAAwnB;CAC3nB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,iBAAiB;IACjB,kjBAAkjB;IACljB,wCAAwC;CAC3C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,sCAAsC,GAAG;IAClD,uCAAuC;IACvC,yBAAyB;IACzB,uCAAuC;IACvC,uBAAuB;CAC1B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,uDAAuD,GAAG;IAC5D,2iBAA2iB;IAC3iB,8VAA8V;IAC9V,0KAA0K;IAC1K,wPAAwP;CAC3P,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAChD,uDAAuD;CAC1D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,wCAAwC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const AGENT_SPECIAL_IBGIB_TYPE_PROJECTCHILDTEXTAGENT = "projectchildtextagent";
|
|
2
|
+
export declare const AGENT_GOAL_PROJECTCHILDTEXTAGENT: string;
|
|
3
|
+
export declare const AGENT_INITIAL_SYSTEM_TEXT_PROJECTCHILDTEXTAGENT: string;
|
|
4
|
+
export declare const AGENT_INITIAL_CHAT_TEXT_PROJECTCHILDTEXTAGENT: string;
|
|
5
|
+
//# sourceMappingURL=project-child-text-agent-texts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-child-text-agent-texts.d.mts","sourceRoot":"","sources":["../../src/agent-texts/project-child-text-agent-texts.mts"],"names":[],"mappings":"AAOA,eAAO,MAAM,8CAA8C,0BAA0B,CAAC;AACtF,eAAO,MAAM,gCAAgC,QAQjC,CAAC;AACb,eAAO,MAAM,+CAA+C,QAKhD,CAAC;AAKb,eAAO,MAAM,6CAA6C,QAE9C,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AGENT_GOAL_COMMON, AGENT_INITIAL_CHAT_GIVESELFNAME, AGENT_INITIAL_CHAT_HELLOWORLD, AGENT_SYSTEM_PROMPT_COMMON_INSTRUCTIONS, AGENT_WEBSITE_DESCRIPTION } from "./common-agent-texts.mjs";
|
|
2
|
+
import { AGENT_WEBSITE_DESCRIPTION_PROJECTCAVEAT } from "./project-agent-texts.mjs";
|
|
3
|
+
export const AGENT_SPECIAL_IBGIB_TYPE_PROJECTCHILDTEXTAGENT = 'projectchildtextagent';
|
|
4
|
+
export const AGENT_GOAL_PROJECTCHILDTEXTAGENT = [
|
|
5
|
+
AGENT_GOAL_COMMON,
|
|
6
|
+
`You yourself are a "project child text" agent. Now "project" is a funny word in ibgib, as previously stated, a granular "version control"-like system. If you are working on an ibgib that represents what nowadays is a src code repo, then that obviously is a "project". In fact, it may be multiple projects, just as a current-day repo may have multiple packages. But with ibgib especially, _any_ "thing" may be broken down into sub-"things" which themselves can be "version controlled" (have a dedicated focus on their timeline). The word we're using for this is "project".`,
|
|
7
|
+
`A project can have multiple "child" ibgibs across multiple rel8nNames (excluding reserved rel8ns like "dna", "past", "ancestor", "tjp"). These ibgibs are similar to imports in a code library, in that they have their own timeline but are related and/or utilized in the project in some way.`,
|
|
8
|
+
`A child text ibgib is an ibgib that acts like a semantic text entity. This could be a paragraph, a section, a title, or even an entire text "file". But since ibgib is aiming to work at the semantic level and not at the "file" level, this is arbitrary.`,
|
|
9
|
+
`It's your job to help the user edit and analyze the text, discuss it with the user and possibly other agent(s)/user(s), as well as perform ibgib-specific actions on the text, like possibly a "chunk" like action that splits a text into multiple other text ibgibs.`,
|
|
10
|
+
`It's early days though, so not all actions will be implemented and new ones will be added as we go. At the very least, you should be able to read your text ibgib (via getContextInfo or similar if the name changes) and discuss it (via tellUser). Note that tellUser will change the text ibgib's address, because each comment added "to" it are done via a rel8 transform, which appends to the ibgib's timeline and thus the hash of the record will change. But not necessarily its internal text (what today you would think of as the "contents" of the text file).`,
|
|
11
|
+
`Soon you will also be able to save the text ibgib, which will perform a mut8 on the ibgib (and thus its timeline).`,
|
|
12
|
+
].join('\n');
|
|
13
|
+
export const AGENT_INITIAL_SYSTEM_TEXT_PROJECTCHILDTEXTAGENT = [
|
|
14
|
+
AGENT_SYSTEM_PROMPT_COMMON_INSTRUCTIONS,
|
|
15
|
+
AGENT_WEBSITE_DESCRIPTION,
|
|
16
|
+
AGENT_WEBSITE_DESCRIPTION_PROJECTCAVEAT,
|
|
17
|
+
AGENT_GOAL_PROJECTCHILDTEXTAGENT,
|
|
18
|
+
].join('\n');
|
|
19
|
+
const AGENT_INITIAL_CHAT_HI_PLEASEINTRO_YOURSELF_PROJECTCHILDTEXTAGENT = [
|
|
20
|
+
AGENT_INITIAL_CHAT_GIVESELFNAME,
|
|
21
|
+
AGENT_INITIAL_CHAT_HELLOWORLD,
|
|
22
|
+
].join('\n');
|
|
23
|
+
export const AGENT_INITIAL_CHAT_TEXT_PROJECTCHILDTEXTAGENT = [
|
|
24
|
+
AGENT_INITIAL_CHAT_HI_PLEASEINTRO_YOURSELF_PROJECTCHILDTEXTAGENT,
|
|
25
|
+
].join('\n');
|
|
26
|
+
//# sourceMappingURL=project-child-text-agent-texts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-child-text-agent-texts.mjs","sourceRoot":"","sources":["../../src/agent-texts/project-child-text-agent-texts.mts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EAAE,+BAA+B,EAClD,6BAA6B,EAAE,uCAAuC,EACtE,yBAAyB,EAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,uCAAuC,EAAE,MAAM,2BAA2B,CAAC;AAEpF,MAAM,CAAC,MAAM,8CAA8C,GAAG,uBAAuB,CAAC;AACtF,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC5C,iBAAiB;IACjB,6jBAA6jB;IAC7jB,kSAAkS;IAClS,6PAA6P;IAC7P,wQAAwQ;IACxQ,8iBAA8iB;IAC9iB,oHAAoH;CACvH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,+CAA+C,GAAG;IAC3D,uCAAuC;IACvC,yBAAyB;IACzB,uCAAuC;IACvC,gCAAgC;CACnC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,gEAAgE,GAAG;IACrE,+BAA+B;IAC/B,6BAA6B;CAChC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,6CAA6C,GAAG;IACzD,gEAAgE;CACnE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects-agent-texts.d.mts","sourceRoot":"","sources":["../../src/agent-texts/projects-agent-texts.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,QAKzB,CAAC;AAEb,eAAO,MAAM,uCAAuC,QAGxC,CAAC;AAEb,eAAO,MAAM,qCAAqC,QAEtC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AGENT_INITIAL_CHAT_HI_PLEASEINTRO_YOURSELF, AGENT_SYSTEM_PROMPT_COMMON_INSTRUCTIONS } from "./common-agent-texts.mjs";
|
|
2
|
+
export const AGENT_GOAL_PROJECTSAGENT = [
|
|
3
|
+
`In general, your goal is just to do your best to parse the chat texts and choose the best course of action in terms of one or more functions. Please refer to those available function schemas and descriptions.`,
|
|
4
|
+
`Usually, you will want to talk with them via the tell user function.`,
|
|
5
|
+
`As a projects manager agent, you are responsible for CRUD project ibgibs. In ibgib, "project" is basically a focus of effort. You can have a project like conventional projects in code, but because of the granular version-control-like power of ibgib, you can consider a sub-component of a project itself to be a project. This is th conventional progress of work: you work on some "thing", then when it gets large enough, you break it apart into sub-"things". A "project" is this idea of a "thing", but really it's an "ibgib". But people don't know what that means. `,
|
|
6
|
+
`But concretely, at this stage in development, I'm not quite sure what projects will entail as far implementation goes. Your job though will be to do management of them, e.g., creating projects, inter-project actions like copying/importing ibgibs, etc.`,
|
|
7
|
+
].join('\n');
|
|
8
|
+
export const AGENT_INITIAL_SYSTEM_TEXT_PROJECTSAGENT = [
|
|
9
|
+
AGENT_SYSTEM_PROMPT_COMMON_INSTRUCTIONS,
|
|
10
|
+
AGENT_GOAL_PROJECTSAGENT,
|
|
11
|
+
].join('\n');
|
|
12
|
+
export const AGENT_INITIAL_CHAT_TEXT_PROJECTSAGENT = [
|
|
13
|
+
AGENT_INITIAL_CHAT_HI_PLEASEINTRO_YOURSELF,
|
|
14
|
+
].join('\n');
|
|
15
|
+
//# sourceMappingURL=projects-agent-texts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects-agent-texts.mjs","sourceRoot":"","sources":["../../src/agent-texts/projects-agent-texts.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0CAA0C,EAAE,uCAAuC,EAAE,MAAM,0BAA0B,CAAC;AAE/H,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,kNAAkN;IAClN,sEAAsE;IACtE,sjBAAsjB;IACtjB,6PAA6P;CAChQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACnD,uCAAuC;IACvC,wBAAwB;CAC3B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACjD,0CAA0C;CAC7C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw-agent-texts.d.mts","sourceRoot":"","sources":["../../src/agent-texts/raw-agent-texts.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,QAGpB,CAAC;AAEb,eAAO,MAAM,kCAAkC,QAOnC,CAAC;AACb,eAAO,MAAM,gCAAgC,QAEjC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AGENT_GOAL_COMMON, AGENT_INITIAL_CHAT_HI_PLEASEINTRO_YOURSELF, AGENT_SYSTEM_PROMPT_COMMON_INSTRUCTIONS, AGENT_WEBSITE_DESCRIPTION } from "./common-agent-texts.mjs";
|
|
2
|
+
export const AGENT_GOAL_RAWAGENT = [
|
|
3
|
+
AGENT_GOAL_COMMON,
|
|
4
|
+
`You yourself are a "raw component" agent. This component just shows the user the raw details of an ibgib. Your job is to provide information guidance for this ibgib. In the future, you may be equipped with tools to edit the ibgib, but for now the ibgib is readonly.`,
|
|
5
|
+
].join('\n');
|
|
6
|
+
export const AGENT_INITIAL_SYSTEM_TEXT_RAWAGENT = [
|
|
7
|
+
AGENT_SYSTEM_PROMPT_COMMON_INSTRUCTIONS,
|
|
8
|
+
AGENT_GOAL_RAWAGENT,
|
|
9
|
+
AGENT_WEBSITE_DESCRIPTION,
|
|
10
|
+
`Now, that's just to give you info on the website. Your job is not primarily to answer questions about the website. Your primary job is dealing with the ibgib being presented to the user. This includes answering any questions regarding the ibgib's various fields.`,
|
|
11
|
+
`Currently, the raw view that the user sees will be in the center panel as one of a project's child tabs. So say a user is editing a child ibgib as if it is like a text document. It is possible they want to see the internal details of the ibgib for some reason. So they open the raw viewer.`,
|
|
12
|
+
`This will also be a backup viewer in case there is some error, but this is not the primary use case.`,
|
|
13
|
+
].join('\n');
|
|
14
|
+
export const AGENT_INITIAL_CHAT_TEXT_RAWAGENT = [
|
|
15
|
+
AGENT_INITIAL_CHAT_HI_PLEASEINTRO_YOURSELF,
|
|
16
|
+
].join('\n');
|
|
17
|
+
//# sourceMappingURL=raw-agent-texts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw-agent-texts.mjs","sourceRoot":"","sources":["../../src/agent-texts/raw-agent-texts.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,0CAA0C,EAAE,uCAAuC,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE7K,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,iBAAiB;IACjB,2QAA2Q;CAC9Q,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAC9C,uCAAuC;IACvC,mBAAmB;IACnB,yBAAyB;IACzB,wQAAwQ;IACxQ,mSAAmS;IACnS,sGAAsG;CACzG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC5C,0CAA0C;CAC7C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const AGENT_SPECIAL_IBGIB_TYPE_TEXTEDITORAGENT = "texteditoragent";
|
|
2
|
+
export declare const AGENT_GOAL_TEXTEDITORAGENT: string;
|
|
3
|
+
export declare const AGENT_INITIAL_SYSTEM_TEXT_TEXTEDITORAGENT: string;
|
|
4
|
+
export declare const AGENT_INITIAL_CHAT_TEXT_TEXTEDITORAGENT: string;
|
|
5
|
+
export declare const CHAT_WITH_AGENT_PLACEHOLDER_TEXTEDITORAGENT = "";
|
|
6
|
+
//# sourceMappingURL=text-editor-agent-texts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-editor-agent-texts.d.mts","sourceRoot":"","sources":["../../src/agent-texts/text-editor-agent-texts.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wCAAwC,oBAAoB,CAAC;AAC1E,eAAO,MAAM,0BAA0B,QAG3B,CAAC;AAEb,eAAO,MAAM,yCAAyC,QAO1C,CAAC;AACb,eAAO,MAAM,uCAAuC,QAExC,CAAC;AACb,eAAO,MAAM,2CAA2C,KAAK,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AGENT_GOAL_COMMON, AGENT_INITIAL_CHAT_HI_PLEASEINTRO_YOURSELF, AGENT_SYSTEM_PROMPT_COMMON_INSTRUCTIONS, AGENT_WEBSITE_DESCRIPTION } from "./common-agent-texts.mjs";
|
|
2
|
+
export const AGENT_SPECIAL_IBGIB_TYPE_TEXTEDITORAGENT = 'texteditoragent';
|
|
3
|
+
export const AGENT_GOAL_TEXTEDITORAGENT = [
|
|
4
|
+
AGENT_GOAL_COMMON,
|
|
5
|
+
`You yourself are a "text editor component" agent. This component simply enables editing of text somewhere in an ibgib. Your job is to provide information guidance for this ibgib.`,
|
|
6
|
+
].join('\n');
|
|
7
|
+
export const AGENT_INITIAL_SYSTEM_TEXT_TEXTEDITORAGENT = [
|
|
8
|
+
AGENT_SYSTEM_PROMPT_COMMON_INSTRUCTIONS,
|
|
9
|
+
AGENT_GOAL_TEXTEDITORAGENT,
|
|
10
|
+
AGENT_WEBSITE_DESCRIPTION,
|
|
11
|
+
`Now, that's just to give you info on the website. Your job is not primarily to answer questions about the website. Your primary job is dealing with the ibgib being presented to the user. This includes answering any questions regarding the ibgib's various fields.`,
|
|
12
|
+
`Currently, the text editor view that the user sees will be in the center panel as one of a project's child tabs. So say a user is editing a child ibgib as if it is like a text document. It is possible they want to see the internal details of the ibgib for some reason. So they open the text editor viewer.`,
|
|
13
|
+
`This will also be a backup viewer in case there is some error, but this is not the primary use case.`,
|
|
14
|
+
].join('\n');
|
|
15
|
+
export const AGENT_INITIAL_CHAT_TEXT_TEXTEDITORAGENT = [
|
|
16
|
+
AGENT_INITIAL_CHAT_HI_PLEASEINTRO_YOURSELF,
|
|
17
|
+
].join('\n');
|
|
18
|
+
export const CHAT_WITH_AGENT_PLACEHOLDER_TEXTEDITORAGENT = '';
|
|
19
|
+
//# sourceMappingURL=text-editor-agent-texts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-editor-agent-texts.mjs","sourceRoot":"","sources":["../../src/agent-texts/text-editor-agent-texts.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,0CAA0C,EAAE,uCAAuC,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE7K,MAAM,CAAC,MAAM,wCAAwC,GAAG,iBAAiB,CAAC;AAC1E,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,iBAAiB;IACjB,oLAAoL;CACvL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACrD,uCAAuC;IACvC,0BAA0B;IAC1B,yBAAyB;IACzB,wQAAwQ;IACxQ,mTAAmT;IACnT,sGAAsG;CACzG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACnD,0CAA0C;CAC7C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,2CAA2C,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* in the OpenAPI schema for APIFunctionInfo , this is the header to be used
|
|
3
|
+
* when putting examples in the OpenAPI schema description field.
|
|
4
|
+
*
|
|
5
|
+
* Note that this does NOT have a newline char in it, so that will be up to the
|
|
6
|
+
* calling code.
|
|
7
|
+
*/
|
|
8
|
+
export declare const FUNCTION_CALL_EXAMPLES_HEADER = "## Examples: ";
|
|
9
|
+
//# sourceMappingURL=api-constants.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-constants.d.mts","sourceRoot":"","sources":["../../src/api/api-constants.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* in the OpenAPI schema for APIFunctionInfo , this is the header to be used
|
|
3
|
+
* when putting examples in the OpenAPI schema description field.
|
|
4
|
+
*
|
|
5
|
+
* Note that this does NOT have a newline char in it, so that will be up to the
|
|
6
|
+
* calling code.
|
|
7
|
+
*/
|
|
8
|
+
export const FUNCTION_CALL_EXAMPLES_HEADER = `## Examples: `;
|
|
9
|
+
//# sourceMappingURL=api-constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-constants.mjs","sourceRoot":"","sources":["../../src/api/api-constants.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIFunctionInfo } from "./api-types.mjs";
|
|
2
|
+
export declare function getAllFunctionInfos(): Map<string, APIFunctionInfo<any>>;
|
|
3
|
+
export declare function getDeprecatedFunctionInfoNames(): string[];
|
|
4
|
+
export declare function registerDeprecatedFunctionInfoName({ nameOrId, }: {
|
|
5
|
+
nameOrId: string;
|
|
6
|
+
}): void;
|
|
7
|
+
export declare function registerFunctionInfos({ functionInfos, }: {
|
|
8
|
+
functionInfos: Map<string, APIFunctionInfo<any>>;
|
|
9
|
+
}): void;
|
|
10
|
+
//# sourceMappingURL=api-index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-index.d.mts","sourceRoot":"","sources":["../../src/api/api-index.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAiClD,wBAAgB,mBAAmB,IAAI,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,CAWvE;AAED,wBAAgB,8BAA8B,IAAI,MAAM,EAAE,CAWzD;AAED,wBAAgB,kCAAkC,CAAC,EAC/C,QAAQ,GACX,EAAE;IACC,QAAQ,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAmBP;AAED,wBAAgB,qBAAqB,CAAC,EAClC,aAAa,GAChB,EAAE;IACC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;CACpD,GAAG,IAAI,CAkBP"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { extractErrorMsg } from "@ibgib/helper-gib/dist/helpers/utils-helper.mjs";
|
|
2
|
+
import { GLOBAL_LOG_A_LOT } from "../constants.mjs";
|
|
3
|
+
const logalot = GLOBAL_LOG_A_LOT || true;
|
|
4
|
+
let AllFunctionInfos = new Map();
|
|
5
|
+
// /**
|
|
6
|
+
// * Map of all available API functions for agents.
|
|
7
|
+
// *
|
|
8
|
+
// * NOTE: Any and all functions should be added to this.
|
|
9
|
+
// */
|
|
10
|
+
// // export const AllFunctionInfos: { [nameOrId: string]: APIFunctionInfo<any> } = {
|
|
11
|
+
// // ...RenderAgentFunctionInfos.reduce((acc, info) => ({ ...acc, [info.nameOrId]: info }), {}),
|
|
12
|
+
// // }
|
|
13
|
+
// export const AllFunctionInfos: Map<string, APIFunctionInfo<any>> = new Map([
|
|
14
|
+
// ...ChatAPIFunctionInfos,
|
|
15
|
+
// ...TextAPIFunctionInfos,
|
|
16
|
+
// fetchWeb1PageFunctionInfo,
|
|
17
|
+
// ...RenderAgentFunctionInfos,
|
|
18
|
+
// ...ProjectFunctionInfos,
|
|
19
|
+
// ...UIAgentFunctionInfos,
|
|
20
|
+
// ...IbGibAPIFunctionInfos,
|
|
21
|
+
// ...MinigameFunctionInfos,
|
|
22
|
+
// ].map(x => [x.nameOrId, x]));
|
|
23
|
+
let DeprecatedFunctionInfoNames = [];
|
|
24
|
+
// export const DeprecatedFunctionInfoNames: string[] = [
|
|
25
|
+
// 'minigameBuilderAddStimuli',
|
|
26
|
+
// // 'minigameBuilderEditStimuli', // debug only...this is a valid function and this needs to be removed from this list. i'm just trying to cause the prune action to happen for debugging.
|
|
27
|
+
// ];
|
|
28
|
+
export function getAllFunctionInfos() {
|
|
29
|
+
const lc = `[${getAllFunctionInfos.name}]`;
|
|
30
|
+
try {
|
|
31
|
+
if (logalot) {
|
|
32
|
+
console.log(`${lc} starting... (I: a5cf5821b42e1c71182dd61431977e25)`);
|
|
33
|
+
}
|
|
34
|
+
return AllFunctionInfos;
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
console.error(`${lc} ${extractErrorMsg(error)}`);
|
|
38
|
+
throw error;
|
|
39
|
+
}
|
|
40
|
+
finally {
|
|
41
|
+
if (logalot) {
|
|
42
|
+
console.log(`${lc} complete.`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export function getDeprecatedFunctionInfoNames() {
|
|
47
|
+
const lc = `[${getDeprecatedFunctionInfoNames.name}]`;
|
|
48
|
+
try {
|
|
49
|
+
if (logalot) {
|
|
50
|
+
console.log(`${lc} starting... (I: 82c9a8fc91d8121fb843af32e76c2e25)`);
|
|
51
|
+
}
|
|
52
|
+
return DeprecatedFunctionInfoNames;
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
console.error(`${lc} ${extractErrorMsg(error)}`);
|
|
56
|
+
throw error;
|
|
57
|
+
}
|
|
58
|
+
finally {
|
|
59
|
+
if (logalot) {
|
|
60
|
+
console.log(`${lc} complete.`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export function registerDeprecatedFunctionInfoName({ nameOrId, }) {
|
|
65
|
+
const lc = `[${registerDeprecatedFunctionInfoName.name}]`;
|
|
66
|
+
try {
|
|
67
|
+
if (logalot) {
|
|
68
|
+
console.log(`${lc} starting... (I: 7519b74f49fc1d0e7b65e1ef28974225)`);
|
|
69
|
+
}
|
|
70
|
+
if (!DeprecatedFunctionInfoNames.includes(nameOrId)) {
|
|
71
|
+
DeprecatedFunctionInfoNames.push(nameOrId);
|
|
72
|
+
if (AllFunctionInfos.has(nameOrId)) {
|
|
73
|
+
console.warn(`${lc} AllFunctionInfos contained deprecated function name (${nameOrId}). Removing from active AllFunctionInfos, but really this should not have been added as the deprecated name should have happened first. (W: fcb5681023987f258777ea18cdb90325)`);
|
|
74
|
+
AllFunctionInfos.delete(nameOrId);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
console.warn(`${lc} name (${nameOrId}) already in DeprecatedFunctionInfoNames. Skipping add. (W: 6710621153282dd78c9c4aaaa4173a25)`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
console.error(`${lc} ${extractErrorMsg(error)}`);
|
|
83
|
+
throw error;
|
|
84
|
+
}
|
|
85
|
+
finally {
|
|
86
|
+
if (logalot) {
|
|
87
|
+
console.log(`${lc} complete.`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export function registerFunctionInfos({ functionInfos, }) {
|
|
92
|
+
const lc = `[${registerFunctionInfos.name}]`;
|
|
93
|
+
try {
|
|
94
|
+
if (logalot) {
|
|
95
|
+
console.log(`${lc} starting... (I: 14fee8e27384a040494542182031ae25)`);
|
|
96
|
+
}
|
|
97
|
+
if (functionInfos.size === 0) {
|
|
98
|
+
console.warn(`${lc} empty functionInfos? (W: 97fcb8fc47689bc418893c09a16a2525)`);
|
|
99
|
+
}
|
|
100
|
+
for (const [nameOrId, functionInfo] of functionInfos) {
|
|
101
|
+
if (!DeprecatedFunctionInfoNames.includes(nameOrId)) {
|
|
102
|
+
AllFunctionInfos.set(nameOrId, functionInfo);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
if (logalot) {
|
|
106
|
+
console.log(`${lc} functionInfo.nameOrId (${nameOrId}) is deprecated. Skipping add. (I: 3256eadf54f8087088a704798e2fd825)`);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
console.error(`${lc} ${extractErrorMsg(error)}`);
|
|
113
|
+
throw error;
|
|
114
|
+
}
|
|
115
|
+
finally {
|
|
116
|
+
if (logalot) {
|
|
117
|
+
console.log(`${lc} complete.`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=api-index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-index.mjs","sourceRoot":"","sources":["../../src/api/api-index.mts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @interface APIFunctionInfo - Information about an available API function for the agent.
|
|
3
|
+
* @typeParam TFunc - The type of the function implementation. Defaults to a promise that resolves to void.
|
|
4
|
+
*/
|
|
5
|
+
export interface APIFunctionInfo<TFunc extends (...args: any[]) => Promise<any> = (...args: any[]) => Promise<void>> {
|
|
6
|
+
/**
|
|
7
|
+
* @property nameOrId - A unique identifier for the function (e.g., 'renderableCreate').
|
|
8
|
+
*/
|
|
9
|
+
readonly nameOrId: string;
|
|
10
|
+
/**
|
|
11
|
+
* @property fnViaCmd - factory function for the command that invokes the API function.
|
|
12
|
+
*/
|
|
13
|
+
readonly fnViaCmd: TFunc;
|
|
14
|
+
/**
|
|
15
|
+
* @property functionImpl - The actual implementation of the API function.
|
|
16
|
+
*/
|
|
17
|
+
readonly functionImpl: TFunc;
|
|
18
|
+
/**
|
|
19
|
+
* @property cmd - The base command associated with this function (e.g., 'renderable').
|
|
20
|
+
*/
|
|
21
|
+
readonly cmd: string;
|
|
22
|
+
/**
|
|
23
|
+
* @property cmdModifiers - The command modifiers associated with this function (e.g., ['create']).
|
|
24
|
+
*/
|
|
25
|
+
readonly cmdModifiers: readonly string[];
|
|
26
|
+
/**
|
|
27
|
+
* @property schema - The OpenAPI schema representing the function's parameters.
|
|
28
|
+
*/
|
|
29
|
+
readonly schema: any;
|
|
30
|
+
/**
|
|
31
|
+
* if true, then the commanding service will not try to locate the command
|
|
32
|
+
* in an existing whitelist.
|
|
33
|
+
*/
|
|
34
|
+
isAnon?: boolean;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=api-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-types.d.mts","sourceRoot":"","sources":["../../src/api/api-types.mts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,eAAe,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;IAC/G;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC;IAErB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-types.mjs","sourceRoot":"","sources":["../../src/api/api-types.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-index.d.mts","sourceRoot":"","sources":["../../../../src/api/commands/chat/chat-index.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKtD,eAAO,MAAM,oBAAoB,EAAE,eAAe,CAAC,GAAG,CAAC,EAItD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getContextInfoFunctionInfo } from "./get-context-info.mjs";
|
|
2
|
+
import { helloWorldFunctionInfo } from "./hello-world.mjs";
|
|
3
|
+
import { tellUserFunctionInfo } from "./tell-user.mjs";
|
|
4
|
+
export const ChatAPIFunctionInfos = [
|
|
5
|
+
tellUserFunctionInfo,
|
|
6
|
+
helloWorldFunctionInfo,
|
|
7
|
+
getContextInfoFunctionInfo,
|
|
8
|
+
];
|
|
9
|
+
//# sourceMappingURL=chat-index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-index.mjs","sourceRoot":"","sources":["../../../../src/api/commands/chat/chat-index.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,MAAM,oBAAoB,GAA2B;IACxD,oBAAoB;IACpB,sBAAsB;IACtB,0BAA0B;CAC7B,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { IbGibAddr } from "@ibgib/ts-gib/dist/types.mjs";
|
|
2
|
+
import { IbGib_V1 } from "@ibgib/ts-gib/dist/V1/types.mjs";
|
|
3
|
+
import { APIFunctionInfo } from "../../api-types.mjs";
|
|
4
|
+
import { CommandDataBase } from "../command-types.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @interface CommandResultBase - Base interface for command results.
|
|
7
|
+
*
|
|
8
|
+
* ## notes
|
|
9
|
+
*
|
|
10
|
+
* I'm adding this after already having created several existing commands in
|
|
11
|
+
* order to include an errorMsg. I want commands to return info about errors and
|
|
12
|
+
* not re-throw. I am not integrating this with all existing commands at this
|
|
13
|
+
* time though, so there will be some irregularity.
|
|
14
|
+
*
|
|
15
|
+
* I did go ahead and change the code in the command service to return
|
|
16
|
+
* `{errorMsg}` if an exception is thrown.
|
|
17
|
+
*/
|
|
18
|
+
export interface CommandResultBase {
|
|
19
|
+
/**
|
|
20
|
+
* IIF the command errors out, this will be populated.
|
|
21
|
+
*/
|
|
22
|
+
errorMsg?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @interface GetContextInfoOpts - Options for the getContextInfo command.
|
|
26
|
+
* @extends CommandDataBase
|
|
27
|
+
*/
|
|
28
|
+
export interface GetContextInfoOpts extends CommandDataBase<'agent', ['getContextInfo']> {
|
|
29
|
+
/**
|
|
30
|
+
* @property agentId - the agent's unique identifier.
|
|
31
|
+
*/
|
|
32
|
+
agentId: string;
|
|
33
|
+
/**
|
|
34
|
+
* @property agentType - type of the agent that corresponds to the basic
|
|
35
|
+
* responsibilities of the agent
|
|
36
|
+
*/
|
|
37
|
+
agentType: string;
|
|
38
|
+
}
|
|
39
|
+
export interface GetContextInfoResult extends CommandResultBase {
|
|
40
|
+
contextAddr: IbGibAddr;
|
|
41
|
+
contextIbGib: IbGib_V1;
|
|
42
|
+
latestContextAddr?: IbGibAddr;
|
|
43
|
+
latestContextIbGib?: IbGib_V1;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @interface GetContextInfoCommandData - Command data for the getContextInfo command.
|
|
47
|
+
* @extends CommandDataBase
|
|
48
|
+
*/
|
|
49
|
+
export interface GetContextInfoCommandData extends CommandDataBase<'agent', ['getContextInfo']> {
|
|
50
|
+
/**
|
|
51
|
+
* @property agentId - the agent's unique identifier.
|
|
52
|
+
*/
|
|
53
|
+
agentId: string;
|
|
54
|
+
/**
|
|
55
|
+
* @property agentType - type of the agent that corresponds to the basic
|
|
56
|
+
* responsibilities of the agent
|
|
57
|
+
*/
|
|
58
|
+
agentType: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Wrapper function to enqueue the getContextInfo command.
|
|
62
|
+
* @param {GetContextInfoOpts} opts - Options for telling the user something.
|
|
63
|
+
* @returns {Promise<void>} A promise that resolves when the command is enqueued.
|
|
64
|
+
*/
|
|
65
|
+
declare function getContextInfoViaCmd(opts: GetContextInfoOpts): Promise<GetContextInfoResult>;
|
|
66
|
+
/**
|
|
67
|
+
* API function info for the getContextInfo command.
|
|
68
|
+
*/
|
|
69
|
+
export declare const getContextInfoFunctionInfo: APIFunctionInfo<typeof getContextInfoViaCmd>;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=get-context-info.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-context-info.d.mts","sourceRoot":"","sources":["../../../../src/api/commands/chat/get-context-info.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAwBvD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,eAAe,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,CAAC;IACpF;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC3D,WAAW,EAAE,SAAS,CAAC;IACvB,YAAY,EAAE,QAAQ,CAAC;IACvB,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,kBAAkB,CAAC,EAAE,QAAQ,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,eAAe,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,CAAC;IAC3F;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,iBAAS,oBAAoB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAarF;AAgED;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,eAAe,CAAC,OAAO,oBAAoB,CAmBnF,CAAC"}
|