@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,71 @@
|
|
|
1
|
+
import { SETTINGS_ATOM } from "../settings/settings-constants.mjs";
|
|
2
|
+
import { ChatAPIFunctionInfos } from "../../api/commands/chat/chat-index.mjs";
|
|
3
|
+
import { IbGibAPIFunctionInfos } from "../../api/commands/ibgib/ibgib-index.mjs";
|
|
4
|
+
// import { editProjectFunctionInfo } from "../../api/commands/project/project-edit.mjs";
|
|
5
|
+
import { TextAPIFunctionInfos } from "../../api/commands/text/text-index.mjs";
|
|
6
|
+
// import { MinigameFunctionInfos } from "../../api/commands/minigame/minigame-index.mjs";
|
|
7
|
+
import { updateCSSVariablesFunctionInfo } from "../../api/commands/ui/update-css-variables.mjs";
|
|
8
|
+
export const PROJECT_ATOM = 'project';
|
|
9
|
+
/**
|
|
10
|
+
* must match {@link PROJECT_MAX_NAME_LENGTH}
|
|
11
|
+
*/
|
|
12
|
+
export const PROJECT_NAME_REGEXP = /^[a-zA-Z0-9_\-. ]{1,128}$/;
|
|
13
|
+
export const PROJECT_DESC_REGEXP = /.{1,255}/;
|
|
14
|
+
/**
|
|
15
|
+
* must match {@link PROJECT_NAME_REGEXP}
|
|
16
|
+
*/
|
|
17
|
+
export const PROJECT_MAX_NAME_LENGTH = 128;
|
|
18
|
+
export const PROJECT_SETTINGS_SCOPE = `${SETTINGS_ATOM}_${PROJECT_ATOM}`;
|
|
19
|
+
export const DEFAULT_PROJECT_SAFE_NAME_LENGTH = 32;
|
|
20
|
+
/**
|
|
21
|
+
* change this in the future if we add more fields
|
|
22
|
+
*/
|
|
23
|
+
export const DEFAULT_PROJECT_ADDL_METADATA_LENGTH = 32;
|
|
24
|
+
// export const DEFAULT_PROJECT_DATA_V1 ,
|
|
25
|
+
// export const DEFAULT_PROJECT_REL8NS_V1,
|
|
26
|
+
export const PROJECT_REL8N_NAME = PROJECT_ATOM;
|
|
27
|
+
/**
|
|
28
|
+
* project children are ibgibs that are expected to be shown in a project tab.
|
|
29
|
+
* These are _kinda_ like contained files/folders when viewing the project as a
|
|
30
|
+
* folder.
|
|
31
|
+
*/
|
|
32
|
+
export const PROJECT_CHILD_DEFAULT_REL8N_NAME = 'child';
|
|
33
|
+
/**
|
|
34
|
+
* all over the place, but the idea is here that barring a few key rel8nNames
|
|
35
|
+
* (e.g. dna, ancestor, past, etc.), all other rel8nNames are considered
|
|
36
|
+
* "children".
|
|
37
|
+
*/
|
|
38
|
+
export const PROJECT_CHILD_TEXT_REL8N_NAME = 'text';
|
|
39
|
+
/**
|
|
40
|
+
* @constant ProjectAgentFunctionInfos - An array of all available API functions for project agents.
|
|
41
|
+
*/
|
|
42
|
+
export const ProjectFunctionInfos = [
|
|
43
|
+
// editProjectFunctionInfo,
|
|
44
|
+
];
|
|
45
|
+
export const ProjectChildTextFunctionInfos = [
|
|
46
|
+
// ?
|
|
47
|
+
];
|
|
48
|
+
export const AGENT_AVAILABLE_FUNCTIONS_PROJECTAGENT = [
|
|
49
|
+
updateCSSVariablesFunctionInfo,
|
|
50
|
+
...ChatAPIFunctionInfos,
|
|
51
|
+
...TextAPIFunctionInfos,
|
|
52
|
+
...IbGibAPIFunctionInfos,
|
|
53
|
+
...ProjectFunctionInfos,
|
|
54
|
+
];
|
|
55
|
+
export const AGENT_AVAILABLE_FUNCTIONS_PROJECTCHILDTEXTAGENT = [
|
|
56
|
+
...ChatAPIFunctionInfos,
|
|
57
|
+
...TextAPIFunctionInfos,
|
|
58
|
+
...IbGibAPIFunctionInfos,
|
|
59
|
+
];
|
|
60
|
+
// ugly hack for some circular dependency that I can't find
|
|
61
|
+
// setTimeout(async () => {
|
|
62
|
+
// while (!MinigameFunctionInfos) {
|
|
63
|
+
// await delay(100);
|
|
64
|
+
// debugger;
|
|
65
|
+
// }
|
|
66
|
+
// MinigameFunctionInfos.forEach(x => {
|
|
67
|
+
// AGENT_AVAILABLE_FUNCTIONS_PROJECTAGENT.push(x);
|
|
68
|
+
// AGENT_AVAILABLE_FUNCTIONS_PROJECTCHILDTEXTAGENT.push(x);
|
|
69
|
+
// }); // hasn't initialized yet
|
|
70
|
+
// });
|
|
71
|
+
//# sourceMappingURL=project-constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-constants.mjs","sourceRoot":"","sources":["../../../src/common/project/project-constants.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,yFAAyF;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,0FAA0F;AAC1F,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAEhG,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC;AACtC;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
|
2
|
+
import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/types.mjs';
|
|
3
|
+
import { CommentIbGib_V1 } from '@ibgib/core-gib/dist/common/comment/comment-types.mjs';
|
|
4
|
+
import { IbGibSpaceAny } from '@ibgib/core-gib/dist/witness/space/space-base-v1.mjs';
|
|
5
|
+
import { MetaspaceService } from '@ibgib/core-gib/dist/witness/space/metaspace/metaspace-types.mjs';
|
|
6
|
+
import { ProjectData_V1, ProjectIbGib_V1, ProjectIbInfo } from './project-types.mjs';
|
|
7
|
+
export declare function getProjectSafeName({ name }: {
|
|
8
|
+
name: string;
|
|
9
|
+
}): string;
|
|
10
|
+
/**
|
|
11
|
+
* Generates the `ib` string for a ProjectIbGib based on its data.
|
|
12
|
+
* The structure is: `${PROJECT_ATOM} ${safeName} ${addlMetadataText}`
|
|
13
|
+
* where addlMetadataText contains underscore-delimited fields like timestampInTicks.
|
|
14
|
+
*
|
|
15
|
+
* ## notes
|
|
16
|
+
*
|
|
17
|
+
* atow (04/2025), we are "descending" (forking) from a source comment ibgib to
|
|
18
|
+
* create the project. As such, we are positioning the project ibgib itself to
|
|
19
|
+
* have a similar structure to a comment ibgib. So the schema for the `ib`
|
|
20
|
+
* purposefully has the safeName in the second position just like a comment
|
|
21
|
+
* ibgib has a saferized version of the comment.data.text in its ib schema.
|
|
22
|
+
*
|
|
23
|
+
* WARNING
|
|
24
|
+
* WARNING
|
|
25
|
+
* ATOW (05/2025) THIS FUNCTION'S DETAILS ARE USED IN MUT8-IBGIB
|
|
26
|
+
* APIFUNCTIONINFO. IF THIS CHANGES, THEN THAT FUNCTION MUST BE CHANGED TOO.
|
|
27
|
+
* WARNING
|
|
28
|
+
* WARNING
|
|
29
|
+
*
|
|
30
|
+
* @see {@link ProjectIbInfo}
|
|
31
|
+
* @see {@link ProjectAddlMetadataInfo}
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare function getProjectIb({ data, }: {
|
|
35
|
+
data: ProjectData_V1;
|
|
36
|
+
}): string;
|
|
37
|
+
export declare function validateProjectIb({ ib, }: {
|
|
38
|
+
ib: Ib;
|
|
39
|
+
}): string[] | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Parses a project `ib` string into its components.
|
|
42
|
+
*
|
|
43
|
+
* @see {@link getProjectIb} for expected ib schema
|
|
44
|
+
*/
|
|
45
|
+
export declare function parseProjectIb({ ib, }: {
|
|
46
|
+
ib: Ib;
|
|
47
|
+
}): ProjectIbInfo;
|
|
48
|
+
/**
|
|
49
|
+
* Validates the ProjectData_V1 structure.
|
|
50
|
+
* Returns array of error messages if invalid, otherwise undefined.
|
|
51
|
+
*/
|
|
52
|
+
export declare function validateProjectData_V1({ data, }: {
|
|
53
|
+
data: ProjectData_V1 | any;
|
|
54
|
+
}): string[] | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Validates a ProjectIbGib_V1 intrinsically, its data, and the consistency
|
|
57
|
+
* between the ib string and the data content.
|
|
58
|
+
* Returns an array of error messages if invalid, otherwise undefined.
|
|
59
|
+
*/
|
|
60
|
+
export declare function validateProjectIbGib_V1({ ibGib, }: {
|
|
61
|
+
ibGib: IbGib_V1;
|
|
62
|
+
}): Promise<string[] | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Type guard to check if an object conforms to ProjectData_V1 structure.
|
|
65
|
+
*/
|
|
66
|
+
export declare function isProjectData_V1(data: any): data is ProjectData_V1;
|
|
67
|
+
/**
|
|
68
|
+
* Type guard to check if an IbGib_V1 is structurally a ProjectIbGib_V1.
|
|
69
|
+
* Verifies the atom in the ib and checks data structure using isProjectData_V1.
|
|
70
|
+
*/
|
|
71
|
+
export declare function isProjectIbGib_V1(ibGib: IbGib_V1): ibGib is ProjectIbGib_V1;
|
|
72
|
+
/**
|
|
73
|
+
* Creates a new Project ibGib.
|
|
74
|
+
*/
|
|
75
|
+
export declare function createProjectIbGib({ name, srcCommentIbGib, description, saveInSpace, space, }: {
|
|
76
|
+
name: string;
|
|
77
|
+
/**
|
|
78
|
+
* NOT implemented yet
|
|
79
|
+
*/
|
|
80
|
+
srcCommentIbGib?: CommentIbGib_V1;
|
|
81
|
+
description?: string;
|
|
82
|
+
/**
|
|
83
|
+
* If true, saves the newly created project ibgib and all intermediate
|
|
84
|
+
* dependency ibgibs (dna and others) in the given {@link space}, or default
|
|
85
|
+
* local space if that is falsy.
|
|
86
|
+
*/
|
|
87
|
+
saveInSpace?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* If set and {@link saveInSpace} is true, then this will be where all
|
|
90
|
+
* ibgibs are saved.
|
|
91
|
+
*/
|
|
92
|
+
space?: IbGibSpaceAny;
|
|
93
|
+
}): Promise<TransformResult<ProjectIbGib_V1>>;
|
|
94
|
+
interface AddChildOptsDetails_Text {
|
|
95
|
+
type: 'text';
|
|
96
|
+
title?: string;
|
|
97
|
+
text?: string;
|
|
98
|
+
}
|
|
99
|
+
interface AddChildOptsDetails_Canvas {
|
|
100
|
+
wakka: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* discriminate union other options here
|
|
104
|
+
*/
|
|
105
|
+
type AddChildOptsDetails = AddChildOptsDetails_Text | AddChildOptsDetails_Canvas;
|
|
106
|
+
interface AddChildOpts<TDetails extends AddChildOptsDetails = any> {
|
|
107
|
+
type: 'text';
|
|
108
|
+
ibGib: IbGib_V1;
|
|
109
|
+
details: TDetails;
|
|
110
|
+
/**
|
|
111
|
+
* rel8nName to use to rel8 the child to the ibgib.
|
|
112
|
+
*/
|
|
113
|
+
rel8nName?: string;
|
|
114
|
+
metaspace: MetaspaceService;
|
|
115
|
+
space: IbGibSpaceAny;
|
|
116
|
+
}
|
|
117
|
+
export declare function addChildIbGib(arg: AddChildOpts): Promise<IbGib_V1>;
|
|
118
|
+
/**
|
|
119
|
+
* Retrieves all the latest project ibGibs from a given space (or the default
|
|
120
|
+
* local user space).
|
|
121
|
+
*/
|
|
122
|
+
export declare function getProjects({ metaspace, space, }: {
|
|
123
|
+
metaspace: MetaspaceService;
|
|
124
|
+
space?: IbGibSpaceAny;
|
|
125
|
+
}): Promise<ProjectIbGib_V1[]>;
|
|
126
|
+
export {};
|
|
127
|
+
//# sourceMappingURL=project-helper.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-helper.d.mts","sourceRoot":"","sources":["../../../src/common/project/project-helper.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,QAAQ,EAAG,MAAM,iCAAiC,CAAC;AAK5D,OAAO,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAC;AAExF,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAErF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kEAAkE,CAAC;AASpG,OAAO,EACH,cAAc,EAAE,eAAe,EAAE,aAAa,EACjD,MAAM,qBAAqB,CAAC;AAM7B,wBAAgB,kBAAkB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAgBrE;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,YAAY,CAAC,EACzB,IAAI,GACP,EAAE;IACC,IAAI,EAAE,cAAc,CAAC;CACxB,GAAG,MAAM,CAmCT;AAED,wBAAgB,iBAAiB,CAAC,EAC9B,EAAE,GACL,EAAE;IACC,EAAE,EAAE,EAAE,CAAC;CACV,GAAG,MAAM,EAAE,GAAG,SAAS,CAoBvB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC3B,EAAE,GACL,EAAE;IACC,EAAE,EAAE,EAAE,CAAC;CACV,GAAG,aAAa,CA8ChB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,IAAI,GACP,EAAE;IACC,IAAI,EAAE,cAAc,GAAG,GAAG,CAAC;CAC9B,GAAG,MAAM,EAAE,GAAG,SAAS,CAuFvB;AAED;;;;GA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