@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,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* beginning of agent.ib
|
|
3
|
+
*/
|
|
4
|
+
export const AGENT_ATOM = 'witness_agent';
|
|
5
|
+
export const AGENT_NAME_REGEXP = /^[a-zA-Z0-9_\-.]{1,32}$/;
|
|
6
|
+
export const AGENT_DESC_REGEXP = /.{1,255}/;
|
|
7
|
+
export const DEFAULT_UUID_AGENT = '';
|
|
8
|
+
export const DEFAULT_NAME_AGENT = 'Manco';
|
|
9
|
+
export const DEFAULT_DESCRIPTION_AGENT = 'This is a generic, unspecified agent.';
|
|
10
|
+
/**
|
|
11
|
+
* demarcates a block of entries loaded from ibgibs requested by the model on a
|
|
12
|
+
* one-time basis.
|
|
13
|
+
*/
|
|
14
|
+
export const CONTEXT_DECOMPRESSION_TAG = 'CONTEXT_DECOMPRESSION_REFERENCE';
|
|
15
|
+
/**
|
|
16
|
+
* demarcates a block of function info ibgib addresses
|
|
17
|
+
*/
|
|
18
|
+
export const FUNCTION_CALL_REQUEST_COMMENT_TAG = 'List of function info ibgib addresses. These contain info on both the requests you made and the resultant values.';
|
|
19
|
+
// export const PRIMARY_AGENT_SPECIAL_IBGIB_TYPE = 'primaryagent';
|
|
20
|
+
// export const PRIMARY_AGENT_SPECIAL_IBGIB_NAME = 'Robbie';
|
|
21
|
+
/**
|
|
22
|
+
* this is the rel8nName ON the special ibgib index that points to its agents.
|
|
23
|
+
*
|
|
24
|
+
* So `agentIndex.rel8ns[AGENT_REL8N_NAME]` is a list of the agents (addrs)
|
|
25
|
+
* registered in the space.
|
|
26
|
+
*
|
|
27
|
+
* @see {@link MetaspaceService.getSpecialIbGib}
|
|
28
|
+
* @see {@link MetaspaceService.getSpecialRel8dIbGibs}
|
|
29
|
+
*/
|
|
30
|
+
export const AGENT_REL8N_NAME = 'agent';
|
|
31
|
+
export const GEMINI_SCHEMA_AGENT_ID = {
|
|
32
|
+
type: 'string',
|
|
33
|
+
description: 'unique identifier for the agent. Should be provided to the agent in system instructions upon creation.',
|
|
34
|
+
};
|
|
35
|
+
export const GEMINI_SCHEMA_AGENT_TYPE = {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'type of the agent that governs basic responsibilities. Should be provided to the agent in system instructions upon creation.',
|
|
38
|
+
};
|
|
39
|
+
export const GEMINI_SCHEMA_SPACE_ID_FORAGENTS = {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'the id of a space, usually local user space. Each agent, atow (04/2025), has two spaces: a superSpace and a subSpace. The superSpace right now is just the default local user space for all agents, though this may change. The subSpace is particular only to the agent and corresponds to where internal ibgib notes/memories should be stored. So use the subSpace for internal notes, and superSpace for any user/interagent communications/notes.',
|
|
42
|
+
};
|
|
43
|
+
// #region TextSource enum
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link TextSource.HARDCODED}
|
|
46
|
+
*/
|
|
47
|
+
const TEXT_SOURCE_HARDCODED = 'hardcoded';
|
|
48
|
+
/**
|
|
49
|
+
* @see {@link TextSource.HUMAN}
|
|
50
|
+
*/
|
|
51
|
+
const TEXT_SOURCE_HUMAN = 'human';
|
|
52
|
+
/**
|
|
53
|
+
* @see {@link TextSource.AI}
|
|
54
|
+
*/
|
|
55
|
+
const TEXT_SOURCE_AI = 'ai';
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link TextSource.FUNCTION}
|
|
58
|
+
*/
|
|
59
|
+
const TEXT_SOURCE_FUNCTION = 'function';
|
|
60
|
+
/**
|
|
61
|
+
* @see {@link TextSource.UNKNOWN}
|
|
62
|
+
*/
|
|
63
|
+
const TEXT_SOURCE_UNKNOWN = 'unknown';
|
|
64
|
+
/**
|
|
65
|
+
* The source of the text, which helps the LLM differentiate
|
|
66
|
+
*/
|
|
67
|
+
export const TextSource = {
|
|
68
|
+
/**
|
|
69
|
+
* The text was hardcoded in the system.
|
|
70
|
+
*/
|
|
71
|
+
HARDCODED: TEXT_SOURCE_HARDCODED,
|
|
72
|
+
/**
|
|
73
|
+
* The text originated from a human.
|
|
74
|
+
*/
|
|
75
|
+
HUMAN: TEXT_SOURCE_HUMAN,
|
|
76
|
+
/**
|
|
77
|
+
* The text originated from an AI.
|
|
78
|
+
*/
|
|
79
|
+
AI: TEXT_SOURCE_AI,
|
|
80
|
+
/**
|
|
81
|
+
* The text originated from a function, e.g. a function response/result.
|
|
82
|
+
*/
|
|
83
|
+
FUNCTION: TEXT_SOURCE_FUNCTION,
|
|
84
|
+
/**
|
|
85
|
+
* The origin is unknown.
|
|
86
|
+
*/
|
|
87
|
+
UNKNOWN: TEXT_SOURCE_UNKNOWN,
|
|
88
|
+
};
|
|
89
|
+
export const TEXT_SOURCE_VALUES = Object.freeze(Object.values(TextSource));
|
|
90
|
+
export function isTextSource(str) {
|
|
91
|
+
return !!str && TEXT_SOURCE_VALUES.includes(str);
|
|
92
|
+
}
|
|
93
|
+
// #endregion TextSource enum
|
|
94
|
+
export const GEMINI_SCHEMA_AGENTS_SELF_IDENTIFIED_NAME = {
|
|
95
|
+
type: 'string',
|
|
96
|
+
description: `The agent should pick a name with which to represent him/her/itself to the user. This should not be "Gemini" or something bland like that, rather, it should be a name that the agent likes. Should contain no spaces, only alphanumerics. Note that the example given has a name, but really it should be up to the agent's own preference. Please be consistent with this with yourself, i.e., don't change it once established. Must pass regex: ${AGENT_NAME_REGEXP.source}`,
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=agent-constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-constants.mjs","sourceRoot":"","sources":["../../../src/witness/agent/agent-constants.mts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AAC3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC;AAE5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC;AAC1C,MAAM,CAAC,MAAM,yBAAyB,GAAG,uCAAuC,CAAC;AAGjF;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,iCAAiC,CAAC;AAC3E;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,mHAAmH,CAAC;AAErK,kEAAkE;AAClE,4DAA4D;AAE5D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAExC,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,wGAAwG;CACxH,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,8HAA8H;CAC9I,CAAA;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC5C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,wbAAwb;CACxc,CAAA;AAED,0BAA0B;AAC1B;;GAEG;AACH,MAAM,qBAAqB,GAAG,WAAW,CAAC;AAC1C;;GAEG;AACH,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAClC;;GAEG;AACH,MAAM,cAAc,GAAG,IAAI,CAAC;AAC5B;;GAEG;AACH,MAAM,oBAAoB,GAAG,UAAU,CAAC;AACxC;;GAEG;AACH,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAatC;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB;;OAEG;IACH,SAAS,EAAE,qBAAmC;IAC9C;;OAEG;IACH,KAAK,EAAE,iBAA+B;IACtC;;OAEG;IACH,EAAE,EAAE,cAA4B;IAChC;;OAEG;IACH,QAAQ,EAAE,oBAAkC;IAC5C;;OAEG;IACH,OAAO,EAAE,mBAAiC;CACL,CAAC;AAE1C,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AAC3E,MAAM,UAAU,YAAY,CAAC,GAAW;IACpC,OAAO,CAAC,CAAC,GAAG,IAAI,kBAAkB,CAAC,QAAQ,CAAC,GAAiB,CAAC,CAAC;AACnE,CAAC;AAED,6BAA6B;AAE7B,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACrD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,ubAAub,iBAAiB,CAAC,MAAM,EAAE;CACje,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { IbGibAddr } from "@ibgib/ts-gib/dist/types.mjs";
|
|
2
|
+
import { IbGib_V1 } from "@ibgib/ts-gib/dist/V1/types.mjs";
|
|
3
|
+
import { MetaspaceService } from "@ibgib/core-gib/dist/witness/space/metaspace/metaspace-types.mjs";
|
|
4
|
+
import { SpaceId } from "@ibgib/core-gib/dist/witness/space/space-types.mjs";
|
|
5
|
+
import { SpecialIbGibType } from "@ibgib/core-gib/dist/common/other/other-types.mjs";
|
|
6
|
+
import { IbGibSpaceAny } from "@ibgib/core-gib/dist/witness/space/space-base-v1.mjs";
|
|
7
|
+
import { TagIbGib_V1 } from "@ibgib/core-gib/dist/common/tag/tag-types.mjs";
|
|
8
|
+
import { AgentWitnessAny, AgentWitnessIbGib_V1 } from "./agent-one-file.mjs";
|
|
9
|
+
import { CreateConcreteAgentWitnessFactory, CreateNewAgentArg } from "./agent-types.mjs";
|
|
10
|
+
/**
|
|
11
|
+
* helper that gets/creates the agents tag in the given {@link space}, or in the
|
|
12
|
+
* default local user space if {@link space} is falsy.
|
|
13
|
+
* @returns agents tag ibgib
|
|
14
|
+
*/
|
|
15
|
+
export declare function getTag_Agents({ metaspace, space, createIfNone, }: {
|
|
16
|
+
metaspace: MetaspaceService;
|
|
17
|
+
space: IbGibSpaceAny | undefined;
|
|
18
|
+
createIfNone?: boolean;
|
|
19
|
+
}): Promise<TagIbGib_V1>;
|
|
20
|
+
/**
|
|
21
|
+
* gets agents of a certain {@link type} in the local space corresponding to
|
|
22
|
+
* {@link spaceId} (or default local user space if falsy) via the agents tag.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getAgents({ metaspace, type, spaceId, space, }: {
|
|
25
|
+
metaspace: MetaspaceService;
|
|
26
|
+
type: SpecialIbGibType;
|
|
27
|
+
spaceId?: SpaceId;
|
|
28
|
+
space?: IbGibSpaceAny;
|
|
29
|
+
}): Promise<AgentWitnessAny[]>;
|
|
30
|
+
/**
|
|
31
|
+
* i'm updating the index proactively so we don't need to rely on jit getLatest
|
|
32
|
+
* any time we want to get the agent.
|
|
33
|
+
*/
|
|
34
|
+
export declare function updateAgentIndex({ metaspace, type, space, newAgentIbGib, }: {
|
|
35
|
+
metaspace: MetaspaceService;
|
|
36
|
+
type: SpecialIbGibType;
|
|
37
|
+
space: IbGibSpaceAny;
|
|
38
|
+
newAgentIbGib: AgentWitnessIbGib_V1;
|
|
39
|
+
}): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Generates a consistent special name for the agent index ibGib based on the
|
|
42
|
+
* domain ibGib's primitive ancestor's ib or the ibGibAddr's ib atom.
|
|
43
|
+
*
|
|
44
|
+
* RIGHT NOW I"M PRIORITIZING THE ATOM. I THINK IT ALWAYS RETURNS THE ATOM, I.E., THE FIRST SPACE-DELIMITED PIECE OF THE `ib`.
|
|
45
|
+
*
|
|
46
|
+
* I am doing this because the project ibgib actually forks from a comment
|
|
47
|
+
* ibgib, so its primitive ancestor is "comment^gib".
|
|
48
|
+
*
|
|
49
|
+
* ## notes
|
|
50
|
+
*
|
|
51
|
+
* We are trying to get a special ibgib index that maps from ibgibs (the domain)
|
|
52
|
+
* to what local agent is registered to handle that ibgib's timeline.
|
|
53
|
+
*
|
|
54
|
+
* Concretely, we're working on the project ibgibs and we need a way to get at
|
|
55
|
+
* the agent that is assigned to that project. But we can't just mut8 the
|
|
56
|
+
* project itself because this would cause issues once the project is spread out
|
|
57
|
+
* among multiple execution contexts (similar to "remotes" in git).
|
|
58
|
+
*
|
|
59
|
+
* So we will have a special ibgib registered with the local space which will
|
|
60
|
+
* act as this index that maps ibgib -> handling agent. This function helps get
|
|
61
|
+
* the *name* of that special indexing ibgib.
|
|
62
|
+
*
|
|
63
|
+
* This can be driven either by the ibgib itself, via the last primitive ancestor
|
|
64
|
+
* ibgib's address, or via the ib's atom (the first space-delimited term in the
|
|
65
|
+
* `ib` metadata).
|
|
66
|
+
*
|
|
67
|
+
* So if an ancestor is [comment^gib, specialComment^gib, specialComment
|
|
68
|
+
* abc123^ABC123.DEF456] (where the abc123 things are representative of the full
|
|
69
|
+
* hashes 64 characters long atow since we're using sha256), then the *last*
|
|
70
|
+
* primitive address is specialComment^gib.
|
|
71
|
+
*/
|
|
72
|
+
export declare function getAgentIndexNameFromIbGib({ ibGib, ibGibAddr, defaultNameIfError, }: {
|
|
73
|
+
ibGib?: IbGib_V1;
|
|
74
|
+
ibGibAddr?: IbGibAddr;
|
|
75
|
+
/**
|
|
76
|
+
* if truthy and an error is produced, then this will be returned.
|
|
77
|
+
*/
|
|
78
|
+
defaultNameIfError?: string;
|
|
79
|
+
}): string;
|
|
80
|
+
/**
|
|
81
|
+
* Registers a domain ibGib with its associated agent ibGib in the special agent index ibGib.
|
|
82
|
+
* This creates or updates a mapping from the domain ibGib's TJP address to the agent's address.
|
|
83
|
+
*/
|
|
84
|
+
export declare function registerDomainIbGibWithAgentIndex({ domainIbGib, agentIbGib, metaspace, space, }: {
|
|
85
|
+
domainIbGib: IbGib_V1;
|
|
86
|
+
agentIbGib: AgentWitnessIbGib_V1;
|
|
87
|
+
metaspace: MetaspaceService;
|
|
88
|
+
space: IbGibSpaceAny;
|
|
89
|
+
}): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves the agent ibGib associated with a domain ibGib from the special agent index ibGib.
|
|
92
|
+
*
|
|
93
|
+
* may have to change this to require the ibgib, not give an optional
|
|
94
|
+
* domainIbGibAddr
|
|
95
|
+
*/
|
|
96
|
+
export declare function getAgentForDomainIbGib({ ibGib, metaspace, space, }: {
|
|
97
|
+
ibGib: IbGib_V1;
|
|
98
|
+
metaspace: MetaspaceService;
|
|
99
|
+
space: IbGibSpaceAny;
|
|
100
|
+
}): Promise<AgentWitnessAny | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @returns factory to create concrete agent witnesses per given {@link arg}
|
|
104
|
+
*/
|
|
105
|
+
export declare function getConcreteAgentFactory(arg: CreateNewAgentArg): CreateConcreteAgentWitnessFactory;
|
|
106
|
+
//# sourceMappingURL=agent-helpers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-helpers.d.mts","sourceRoot":"","sources":["../../../src/witness/agent/agent-helpers.mts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAG,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kEAAkE,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,oDAAoD,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAGrF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAO5E,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAO7E,OAAO,EAAE,iCAAiC,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAUzF;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,EAChC,SAAS,EACT,KAAK,EACL,YAAY,GACf,EAAE;IACC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,aAAa,GAAG,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,OAAO,CAAC,WAAW,CAAC,CAwDvB;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAAC,EAC5B,SAAS,EACT,IAAI,EACJ,OAAO,EACP,KAAK,GACR,EAAE;IACC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAkE7B;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CAAC,EACnC,SAAS,EACT,IAAI,EACJ,KAAK,EACL,aAAa,GAChB,EAAE;IACC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,aAAa,CAAC;IACrB,aAAa,EAAE,oBAAoB,CAAC;CACvC,GAAG,OAAO,CAAC,IAAI,CAAC,CAkGhB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,0BAA0B,CAAC,EACvC,KAAK,EACL,SAAS,EACT,kBAAkB,GACrB,EAAE;IACC,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,GAAG,MAAM,CAiGT;AAED;;;GAGG;AACH,wBAAsB,iCAAiC,CAAC,EACpD,WAAW,EACX,UAAU,EACV,SAAS,EACT,KAAK,GACR,EAAE;IACC,WAAW,EAAE,QAAQ,CAAC;IACtB,UAAU,EAAE,oBAAoB,CAAC;IACjC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,aAAa,CAAC;CACxB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkHhB;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAAC,EACzC,KAAK,EACL,SAAS,EACT,KAAK,GACR,EAAE;IACC,KAAK,EAAE,QAAQ,CAAC;IAChB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,aAAa,CAAC;CACxB,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAsEvC;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,iBAAiB,GAAG,iCAAiC,CAiBjG"}
|