goatchain-cli-darwin-x64 0.0.73-beta.9 → 0.1.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/bin/goatchain +0 -0
- package/bin/node_modules/skills/bin/cli.mjs +14 -0
- package/bin/node_modules/skills/dist/_chunks/libs/@clack/core.mjs +767 -0
- package/bin/node_modules/skills/dist/_chunks/libs/@clack/prompts.mjs +334 -0
- package/bin/node_modules/skills/dist/_chunks/libs/@kwsites/file-exists.mjs +562 -0
- package/bin/node_modules/skills/dist/_chunks/libs/@kwsites/promise-deferred.mjs +37 -0
- package/bin/node_modules/skills/dist/_chunks/libs/@vercel/detect-agent.mjs +138 -0
- package/bin/node_modules/skills/dist/_chunks/libs/simple-git.mjs +3584 -0
- package/bin/node_modules/skills/dist/_chunks/libs/xdg-basedir.mjs +14 -0
- package/bin/node_modules/skills/dist/_chunks/rolldown-runtime.mjs +24 -0
- package/bin/node_modules/skills/dist/cli.d.mts +1 -0
- package/bin/node_modules/skills/dist/cli.mjs +6199 -0
- package/bin/node_modules/skills/package.json +143 -0
- package/bin/node_modules/yaml/LICENSE +13 -0
- package/bin/node_modules/yaml/README.md +172 -0
- package/bin/node_modules/yaml/bin.mjs +11 -0
- package/bin/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/bin/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/bin/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/bin/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/bin/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/bin/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/bin/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/bin/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/bin/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/bin/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/bin/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
- package/bin/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/bin/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/bin/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/bin/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/bin/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/bin/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/bin/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/bin/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/bin/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/bin/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/bin/node_modules/yaml/browser/dist/errors.js +57 -0
- package/bin/node_modules/yaml/browser/dist/index.js +17 -0
- package/bin/node_modules/yaml/browser/dist/log.js +11 -0
- package/bin/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
- package/bin/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/bin/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/bin/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/bin/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/bin/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/bin/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/bin/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/bin/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/bin/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/bin/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/bin/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/bin/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/bin/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/bin/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/bin/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/bin/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/bin/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/bin/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/bin/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/bin/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/bin/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/bin/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/bin/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/bin/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/bin/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/bin/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/bin/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/bin/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/bin/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/bin/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/bin/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/bin/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/bin/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/bin/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/bin/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/bin/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/bin/node_modules/yaml/browser/dist/util.js +11 -0
- package/bin/node_modules/yaml/browser/dist/visit.js +233 -0
- package/bin/node_modules/yaml/browser/index.js +5 -0
- package/bin/node_modules/yaml/browser/package.json +3 -0
- package/bin/node_modules/yaml/dist/cli.d.ts +8 -0
- package/bin/node_modules/yaml/dist/cli.mjs +201 -0
- package/bin/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/bin/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/bin/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/bin/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/bin/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/bin/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/bin/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/bin/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/bin/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/bin/node_modules/yaml/dist/compose/composer.js +224 -0
- package/bin/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/bin/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/bin/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/bin/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/bin/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/bin/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/bin/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/bin/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/bin/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/bin/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/bin/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/bin/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
- package/bin/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/bin/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/bin/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/bin/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/bin/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/bin/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/bin/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/bin/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/bin/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/bin/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/bin/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/bin/node_modules/yaml/dist/doc/Document.js +337 -0
- package/bin/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/bin/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/bin/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/bin/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/bin/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/bin/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/bin/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/bin/node_modules/yaml/dist/doc/directives.js +178 -0
- package/bin/node_modules/yaml/dist/errors.d.ts +21 -0
- package/bin/node_modules/yaml/dist/errors.js +62 -0
- package/bin/node_modules/yaml/dist/index.d.ts +25 -0
- package/bin/node_modules/yaml/dist/index.js +50 -0
- package/bin/node_modules/yaml/dist/log.d.ts +3 -0
- package/bin/node_modules/yaml/dist/log.js +19 -0
- package/bin/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/bin/node_modules/yaml/dist/nodes/Alias.js +118 -0
- package/bin/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/bin/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/bin/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/bin/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/bin/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/bin/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/bin/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/bin/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/bin/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/bin/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/bin/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/bin/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/bin/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/bin/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/bin/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/bin/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/bin/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/bin/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/bin/node_modules/yaml/dist/options.d.ts +350 -0
- package/bin/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/bin/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/bin/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/bin/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/bin/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/bin/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/bin/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/bin/node_modules/yaml/dist/parse/cst.js +112 -0
- package/bin/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/bin/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/bin/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/bin/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/bin/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/bin/node_modules/yaml/dist/parse/parser.js +980 -0
- package/bin/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/bin/node_modules/yaml/dist/public-api.js +107 -0
- package/bin/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/bin/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/bin/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/bin/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/bin/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/bin/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/bin/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/bin/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/bin/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/bin/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/bin/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/bin/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/bin/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/bin/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/bin/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/bin/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/bin/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/bin/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/bin/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/bin/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/bin/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/bin/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/bin/node_modules/yaml/dist/schema/tags.js +99 -0
- package/bin/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/bin/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/bin/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/bin/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/bin/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/bin/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/bin/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/bin/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/bin/node_modules/yaml/dist/test-events.js +134 -0
- package/bin/node_modules/yaml/dist/util.d.ts +16 -0
- package/bin/node_modules/yaml/dist/util.js +28 -0
- package/bin/node_modules/yaml/dist/visit.d.ts +102 -0
- package/bin/node_modules/yaml/dist/visit.js +236 -0
- package/bin/node_modules/yaml/package.json +97 -0
- package/bin/node_modules/yaml/util.js +2 -0
- package/bin/runtime/sandbox/dim-sandbox-runner +0 -0
- package/bin/runtime/sandbox/manifest.json +15 -0
- package/bin/skills-assets/artifact-static-site/SKILL.md +58 -0
- package/bin/skills-assets/artifact-static-site/agents/openai.yaml +6 -0
- package/bin/skills-assets/chrome-control/SKILL.md +96 -0
- package/bin/skills-assets/computer-use/SKILL.md +34 -0
- package/bin/skills-assets/deep-investigate/SKILL.md +101 -0
- package/bin/skills-assets/deep-investigate/references/prompts.md +75 -0
- package/bin/skills-assets/deep-investigate/references/templates.md +73 -0
- package/bin/skills-assets/deep-investigate/references/thinking-tools.md +36 -0
- package/bin/skills-assets/dim-modality/SKILL.md +88 -0
- package/bin/skills-assets/dim-modality/agents/openai.yaml +4 -0
- package/bin/skills-assets/dim-modality/references/cli-recipes.md +137 -0
- package/bin/skills-assets/dim-modality/references/model-notes.md +56 -0
- package/bin/skills-assets/dim-workflow/SKILL.md +125 -0
- package/bin/skills-assets/dim-workflow/agents/openai.yaml +6 -0
- package/bin/skills-assets/docs-sprint/SKILL.md +73 -0
- package/bin/skills-assets/docs-sprint/agents/openai.yaml +4 -0
- package/bin/skills-assets/docs-sprint/references/contract-discipline.md +30 -0
- package/bin/skills-assets/docs-sprint/references/delivery-plan.md +162 -0
- package/bin/skills-assets/docs-sprint/references/documentation-system.md +109 -0
- package/bin/skills-assets/docs-sprint/references/ui-layout.md +73 -0
- package/bin/skills-assets/docs-sprint/references/worktree-guide.md +45 -0
- package/bin/skills-assets/officecli/SKILL.md +423 -0
- package/bin/skills-assets/pdf/README.md +222 -0
- package/bin/skills-assets/pdf/SKILL.md +191 -0
- package/bin/skills-assets/pdf/design/design.md +381 -0
- package/bin/skills-assets/pdf/scripts/cover.py +1579 -0
- package/bin/skills-assets/pdf/scripts/fill_inspect.py +200 -0
- package/bin/skills-assets/pdf/scripts/fill_write.py +242 -0
- package/bin/skills-assets/pdf/scripts/make.sh +491 -0
- package/bin/skills-assets/pdf/scripts/merge.py +112 -0
- package/bin/skills-assets/pdf/scripts/palette.py +521 -0
- package/bin/skills-assets/pdf/scripts/reformat_parse.py +374 -0
- package/bin/skills-assets/pdf/scripts/render_body.py +1052 -0
- package/bin/skills-assets/pdf/scripts/render_cover.js +111 -0
- package/bin/skills-assets/plugin-creator/SKILL.md +148 -0
- package/bin/skills-assets/plugin-creator/references/installing-and-updating.md +66 -0
- package/bin/skills-assets/plugin-creator/references/plugin-json-spec.md +148 -0
- package/bin/skills-assets/plugin-creator/scripts/create_basic_plugin.py +189 -0
- package/bin/skills-assets/plugin-creator/scripts/validate_plugin.py +269 -0
- package/bin/skills-assets/skill-creator/SKILL.md +368 -0
- package/bin/skills-assets/skill-creator/agents/openai.yaml +5 -0
- package/bin/skills-assets/skill-creator/assets/skill-creator-small.svg +3 -0
- package/bin/skills-assets/skill-creator/assets/skill-creator.png +0 -0
- package/bin/skills-assets/skill-creator/license.txt +202 -0
- package/bin/skills-assets/skill-creator/references/openai_yaml.md +49 -0
- package/bin/skills-assets/skill-creator/scripts/generate_openai_yaml.py +226 -0
- package/bin/skills-assets/skill-creator/scripts/init_skill.py +397 -0
- package/bin/skills-assets/skill-creator/scripts/quick_validate.py +101 -0
- package/bin/skills-assets/skill-installer/LICENSE.txt +202 -0
- package/bin/skills-assets/skill-installer/SKILL.md +58 -0
- package/bin/skills-assets/skill-installer/agents/openai.yaml +5 -0
- package/bin/skills-assets/skill-installer/assets/skill-installer-small.svg +3 -0
- package/bin/skills-assets/skill-installer/assets/skill-installer.png +0 -0
- package/bin/skills-assets/skill-installer/scripts/github_utils.py +21 -0
- package/bin/skills-assets/skill-installer/scripts/install-skill-from-github.py +308 -0
- package/bin/skills-assets/skill-installer/scripts/list-skills.py +107 -0
- package/package.json +1 -1
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
fill_inspect.py — Inspect form fields in an existing PDF.
|
|
4
|
+
|
|
5
|
+
Usage:
|
|
6
|
+
python3 fill_inspect.py --input form.pdf
|
|
7
|
+
python3 fill_inspect.py --input form.pdf --out fields.json
|
|
8
|
+
|
|
9
|
+
Outputs a JSON summary of every fillable field: name, type, current value,
|
|
10
|
+
allowed values (for checkboxes / dropdowns), and page number.
|
|
11
|
+
|
|
12
|
+
Exit codes: 0 success, 1 bad args / file not found, 2 dep missing, 3 read error
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
import argparse
|
|
16
|
+
import json
|
|
17
|
+
import sys
|
|
18
|
+
import importlib.util
|
|
19
|
+
import os
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def ensure_deps():
|
|
25
|
+
if importlib.util.find_spec("pypdf") is None:
|
|
26
|
+
import subprocess
|
|
27
|
+
subprocess.check_call(
|
|
28
|
+
[sys.executable, "-m", "pip", "install", "--break-system-packages", "-q", "pypdf"]
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
ensure_deps()
|
|
33
|
+
from pypdf import PdfReader
|
|
34
|
+
from pypdf.generic import ArrayObject, DictionaryObject, NameObject, TextStringObject
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# ── Field type resolution ──────────────────────────────────────────────────────
|
|
38
|
+
def _field_type(field) -> str:
|
|
39
|
+
ft = field.get("/FT")
|
|
40
|
+
if ft is None:
|
|
41
|
+
return "unknown"
|
|
42
|
+
ft = str(ft)
|
|
43
|
+
if ft == "/Tx":
|
|
44
|
+
return "text"
|
|
45
|
+
if ft == "/Btn":
|
|
46
|
+
ff = int(field.get("/Ff", 0))
|
|
47
|
+
return "radio" if ff & (1 << 15) else "checkbox"
|
|
48
|
+
if ft == "/Ch":
|
|
49
|
+
ff = int(field.get("/Ff", 0))
|
|
50
|
+
return "dropdown" if ff & (1 << 17) else "listbox"
|
|
51
|
+
if ft == "/Sig":
|
|
52
|
+
return "signature"
|
|
53
|
+
return "unknown"
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def _field_value(field) -> str | None:
|
|
57
|
+
v = field.get("/V")
|
|
58
|
+
return str(v) if v is not None else None
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _field_options(field, ftype: str) -> dict:
|
|
62
|
+
extra = {}
|
|
63
|
+
if ftype in ("checkbox",):
|
|
64
|
+
ap = field.get("/AP")
|
|
65
|
+
if ap and "/N" in ap:
|
|
66
|
+
states = [str(k) for k in ap["/N"]]
|
|
67
|
+
extra["states"] = states
|
|
68
|
+
checked = next((s for s in states if s != "/Off"), None)
|
|
69
|
+
if checked:
|
|
70
|
+
extra["checked_value"] = checked
|
|
71
|
+
if ftype in ("dropdown", "listbox"):
|
|
72
|
+
opt = field.get("/Opt")
|
|
73
|
+
if opt:
|
|
74
|
+
choices = []
|
|
75
|
+
for item in opt:
|
|
76
|
+
if isinstance(item, (list, ArrayObject)) and len(item) >= 2:
|
|
77
|
+
choices.append({"value": str(item[0]), "label": str(item[1])})
|
|
78
|
+
else:
|
|
79
|
+
choices.append({"value": str(item), "label": str(item)})
|
|
80
|
+
extra["choices"] = choices
|
|
81
|
+
if ftype == "radio":
|
|
82
|
+
kids = field.get("/Kids")
|
|
83
|
+
if kids:
|
|
84
|
+
values = []
|
|
85
|
+
for kid in kids:
|
|
86
|
+
ap = kid.get("/AP")
|
|
87
|
+
if ap and "/N" in ap:
|
|
88
|
+
for k in ap["/N"]:
|
|
89
|
+
if str(k) != "/Off":
|
|
90
|
+
values.append(str(k))
|
|
91
|
+
extra["radio_values"] = values
|
|
92
|
+
return extra
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def _walk_fields(fields, page_map: dict, parent_name: str = "") -> list:
|
|
96
|
+
"""Recursively collect all leaf fields."""
|
|
97
|
+
result = []
|
|
98
|
+
for field in fields:
|
|
99
|
+
name = str(field.get("/T", ""))
|
|
100
|
+
full = f"{parent_name}.{name}" if parent_name else name
|
|
101
|
+
|
|
102
|
+
kids = field.get("/Kids")
|
|
103
|
+
# Kids that have /T are sub-fields (groups), not widget annotations
|
|
104
|
+
if kids:
|
|
105
|
+
named_kids = [k for k in kids if "/T" in k]
|
|
106
|
+
if named_kids:
|
|
107
|
+
result.extend(_walk_fields(named_kids, page_map, full))
|
|
108
|
+
continue
|
|
109
|
+
|
|
110
|
+
ftype = _field_type(field)
|
|
111
|
+
if ftype == "unknown":
|
|
112
|
+
continue
|
|
113
|
+
|
|
114
|
+
entry = {
|
|
115
|
+
"name": full,
|
|
116
|
+
"type": ftype,
|
|
117
|
+
"value": _field_value(field),
|
|
118
|
+
}
|
|
119
|
+
entry.update(_field_options(field, ftype))
|
|
120
|
+
|
|
121
|
+
# Page lookup via /P indirect reference
|
|
122
|
+
p_ref = field.get("/P")
|
|
123
|
+
if p_ref and hasattr(p_ref, "idnum"):
|
|
124
|
+
entry["page"] = page_map.get(p_ref.idnum, "?")
|
|
125
|
+
|
|
126
|
+
result.append(entry)
|
|
127
|
+
return result
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def inspect(pdf_path: str) -> dict:
|
|
131
|
+
try:
|
|
132
|
+
reader = PdfReader(pdf_path)
|
|
133
|
+
except Exception as e:
|
|
134
|
+
return {"status": "error", "error": str(e)}
|
|
135
|
+
|
|
136
|
+
# Build page-number lookup: {object_id: 1-based page number}
|
|
137
|
+
page_map = {}
|
|
138
|
+
for i, page in enumerate(reader.pages):
|
|
139
|
+
if hasattr(page, "indirect_reference") and page.indirect_reference:
|
|
140
|
+
page_map[page.indirect_reference.idnum] = i + 1
|
|
141
|
+
|
|
142
|
+
acroform = reader.trailer.get("/Root", {}).get("/AcroForm")
|
|
143
|
+
if acroform is None or "/Fields" not in acroform:
|
|
144
|
+
return {
|
|
145
|
+
"status": "ok",
|
|
146
|
+
"has_fields": False,
|
|
147
|
+
"field_count": 0,
|
|
148
|
+
"fields": [],
|
|
149
|
+
"note": "This PDF has no fillable form fields.",
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
fields = _walk_fields(list(acroform["/Fields"]), page_map)
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
"status": "ok",
|
|
156
|
+
"has_fields": bool(fields),
|
|
157
|
+
"field_count": len(fields),
|
|
158
|
+
"fields": fields,
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
def main():
|
|
163
|
+
parser = argparse.ArgumentParser(description="Inspect PDF form fields")
|
|
164
|
+
parser.add_argument("--input", required=True, help="PDF file to inspect")
|
|
165
|
+
parser.add_argument("--out", default="", help="Write JSON to file (optional)")
|
|
166
|
+
args = parser.parse_args()
|
|
167
|
+
|
|
168
|
+
if not os.path.exists(args.input):
|
|
169
|
+
print(json.dumps({"status": "error", "error": f"File not found: {args.input}"}),
|
|
170
|
+
file=sys.stderr)
|
|
171
|
+
sys.exit(1)
|
|
172
|
+
|
|
173
|
+
result = inspect(args.input)
|
|
174
|
+
|
|
175
|
+
output = json.dumps(result, indent=2, ensure_ascii=False)
|
|
176
|
+
|
|
177
|
+
if args.out:
|
|
178
|
+
with open(args.out, "w") as f:
|
|
179
|
+
f.write(output)
|
|
180
|
+
|
|
181
|
+
print(output)
|
|
182
|
+
|
|
183
|
+
# Human-readable summary
|
|
184
|
+
if result["status"] == "ok" and result["has_fields"]:
|
|
185
|
+
print(f"\n── Fields in {args.input} ──────────────────────────────",
|
|
186
|
+
file=sys.stderr)
|
|
187
|
+
for f in result["fields"]:
|
|
188
|
+
pg = f" p.{f['page']}" if "page" in f else ""
|
|
189
|
+
val = f" = {f['value']}" if f.get("value") else ""
|
|
190
|
+
extra = ""
|
|
191
|
+
if "choices" in f:
|
|
192
|
+
extra = f" [{', '.join(c['value'] for c in f['choices'][:4])}{'…' if len(f['choices'])>4 else ''}]"
|
|
193
|
+
elif "states" in f:
|
|
194
|
+
extra = f" {f['states']}"
|
|
195
|
+
print(f" {f['type']:12} {f['name']}{pg}{val}{extra}", file=sys.stderr)
|
|
196
|
+
print("", file=sys.stderr)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
if __name__ == "__main__":
|
|
200
|
+
main()
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
fill_write.py — Write values into PDF form fields.
|
|
4
|
+
|
|
5
|
+
Usage:
|
|
6
|
+
# From a JSON data file
|
|
7
|
+
python3 fill_write.py --input form.pdf --data values.json --out filled.pdf
|
|
8
|
+
|
|
9
|
+
# Inline JSON
|
|
10
|
+
python3 fill_write.py --input form.pdf --out filled.pdf \
|
|
11
|
+
--values '{"FirstName": "Jane", "Agree": "true"}'
|
|
12
|
+
|
|
13
|
+
values format:
|
|
14
|
+
{
|
|
15
|
+
"FieldName": "text value", # text field
|
|
16
|
+
"CheckBox1": "true", # checkbox (true / false)
|
|
17
|
+
"Dropdown1": "OptionValue", # dropdown (must match an existing choice value)
|
|
18
|
+
"Radio1": "/Choice2" # radio (must match a radio value)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
Exit codes: 0 success, 1 bad args, 2 dep missing, 3 read/write error, 4 validation error
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
import argparse
|
|
25
|
+
import json
|
|
26
|
+
import os
|
|
27
|
+
import sys
|
|
28
|
+
import importlib.util
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def ensure_deps():
|
|
34
|
+
if importlib.util.find_spec("pypdf") is None:
|
|
35
|
+
import subprocess
|
|
36
|
+
subprocess.check_call(
|
|
37
|
+
[sys.executable, "-m", "pip", "install", "--break-system-packages", "-q", "pypdf"]
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
ensure_deps()
|
|
42
|
+
from pypdf import PdfReader, PdfWriter
|
|
43
|
+
from pypdf.generic import NameObject, TextStringObject, BooleanObject
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# ── Field helpers ─────────────────────────────────────────────────────────────
|
|
47
|
+
def _field_type(field) -> str:
|
|
48
|
+
ft = str(field.get("/FT", ""))
|
|
49
|
+
if ft == "/Tx": return "text"
|
|
50
|
+
if ft == "/Btn":
|
|
51
|
+
ff = int(field.get("/Ff", 0))
|
|
52
|
+
return "radio" if ff & (1 << 15) else "checkbox"
|
|
53
|
+
if ft == "/Ch":
|
|
54
|
+
ff = int(field.get("/Ff", 0))
|
|
55
|
+
return "dropdown" if ff & (1 << 17) else "listbox"
|
|
56
|
+
return "unknown"
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _get_checkbox_on_value(field) -> str:
|
|
60
|
+
"""Return the /AP /N key that means 'checked' (anything except /Off)."""
|
|
61
|
+
ap = field.get("/AP")
|
|
62
|
+
if ap and "/N" in ap:
|
|
63
|
+
for k in ap["/N"]:
|
|
64
|
+
if str(k) != "/Off":
|
|
65
|
+
return str(k)
|
|
66
|
+
return "/Yes"
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def _get_dropdown_values(field) -> list[str]:
|
|
70
|
+
opt = field.get("/Opt")
|
|
71
|
+
if not opt:
|
|
72
|
+
return []
|
|
73
|
+
values = []
|
|
74
|
+
for item in opt:
|
|
75
|
+
try:
|
|
76
|
+
from pypdf.generic import ArrayObject
|
|
77
|
+
if isinstance(item, (list, ArrayObject)) and len(item) >= 1:
|
|
78
|
+
values.append(str(item[0]))
|
|
79
|
+
else:
|
|
80
|
+
values.append(str(item))
|
|
81
|
+
except Exception:
|
|
82
|
+
values.append(str(item))
|
|
83
|
+
return values
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# ── Walk + fill ───────────────────────────────────────────────────────────────
|
|
87
|
+
def _walk_and_fill(fields, data: dict, filled: list, errors: list, parent: str = ""):
|
|
88
|
+
for field in fields:
|
|
89
|
+
name = str(field.get("/T", ""))
|
|
90
|
+
full = f"{parent}.{name}" if parent else name
|
|
91
|
+
|
|
92
|
+
# Recurse into named groups
|
|
93
|
+
kids = field.get("/Kids")
|
|
94
|
+
if kids:
|
|
95
|
+
named = [k for k in kids if "/T" in k]
|
|
96
|
+
if named:
|
|
97
|
+
_walk_and_fill(named, data, filled, errors, full)
|
|
98
|
+
continue
|
|
99
|
+
|
|
100
|
+
if full not in data:
|
|
101
|
+
continue
|
|
102
|
+
|
|
103
|
+
value = data[full]
|
|
104
|
+
ftype = _field_type(field)
|
|
105
|
+
|
|
106
|
+
if ftype == "text":
|
|
107
|
+
field.update({
|
|
108
|
+
NameObject("/V"): TextStringObject(str(value)),
|
|
109
|
+
NameObject("/DV"): TextStringObject(str(value)),
|
|
110
|
+
})
|
|
111
|
+
filled.append(full)
|
|
112
|
+
|
|
113
|
+
elif ftype == "checkbox":
|
|
114
|
+
truthy = str(value).lower() in ("true", "1", "yes", "on")
|
|
115
|
+
on_val = _get_checkbox_on_value(field)
|
|
116
|
+
pdf_val = on_val if truthy else "/Off"
|
|
117
|
+
field.update({
|
|
118
|
+
NameObject("/V"): NameObject(pdf_val),
|
|
119
|
+
NameObject("/AS"): NameObject(pdf_val),
|
|
120
|
+
})
|
|
121
|
+
filled.append(full)
|
|
122
|
+
|
|
123
|
+
elif ftype in ("dropdown", "listbox"):
|
|
124
|
+
allowed = _get_dropdown_values(field)
|
|
125
|
+
if allowed and str(value) not in allowed:
|
|
126
|
+
errors.append({
|
|
127
|
+
"field": full,
|
|
128
|
+
"error": f"Value '{value}' not in allowed choices: {allowed}"
|
|
129
|
+
})
|
|
130
|
+
continue
|
|
131
|
+
field.update({NameObject("/V"): TextStringObject(str(value))})
|
|
132
|
+
filled.append(full)
|
|
133
|
+
|
|
134
|
+
elif ftype == "radio":
|
|
135
|
+
# Radio value must start with /
|
|
136
|
+
pdf_val = str(value) if str(value).startswith("/") else f"/{value}"
|
|
137
|
+
field.update({
|
|
138
|
+
NameObject("/V"): NameObject(pdf_val),
|
|
139
|
+
NameObject("/AS"): NameObject(pdf_val),
|
|
140
|
+
})
|
|
141
|
+
filled.append(full)
|
|
142
|
+
|
|
143
|
+
else:
|
|
144
|
+
errors.append({"field": full, "error": f"Unsupported field type: {ftype}"})
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def fill(pdf_path: str, out_path: str, data: dict) -> dict:
|
|
148
|
+
try:
|
|
149
|
+
reader = PdfReader(pdf_path)
|
|
150
|
+
except Exception as e:
|
|
151
|
+
return {"status": "error", "error": str(e)}
|
|
152
|
+
|
|
153
|
+
writer = PdfWriter()
|
|
154
|
+
writer.clone_document_from_reader(reader)
|
|
155
|
+
|
|
156
|
+
acroform = writer._root_object.get("/AcroForm") # type: ignore[attr-defined]
|
|
157
|
+
if acroform is None or "/Fields" not in acroform:
|
|
158
|
+
return {
|
|
159
|
+
"status": "error",
|
|
160
|
+
"error": "This PDF has no fillable form fields.",
|
|
161
|
+
"hint": "Run fill_inspect.py first to confirm the PDF has fields.",
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
# Enable appearance regeneration so viewers show the new values
|
|
165
|
+
acroform.update({NameObject("/NeedAppearances"): BooleanObject(True)})
|
|
166
|
+
|
|
167
|
+
filled: list[str] = []
|
|
168
|
+
errors: list[dict] = []
|
|
169
|
+
_walk_and_fill(list(acroform["/Fields"]), data, filled, errors)
|
|
170
|
+
|
|
171
|
+
# Warn about requested fields that were never found
|
|
172
|
+
not_found = [k for k in data if k not in filled and not any(e["field"] == k for e in errors)]
|
|
173
|
+
|
|
174
|
+
try:
|
|
175
|
+
os.makedirs(os.path.dirname(os.path.abspath(out_path)), exist_ok=True)
|
|
176
|
+
with open(out_path, "wb") as f:
|
|
177
|
+
writer.write(f)
|
|
178
|
+
except Exception as e:
|
|
179
|
+
return {"status": "error", "error": f"Write failed: {e}"}
|
|
180
|
+
|
|
181
|
+
result = {
|
|
182
|
+
"status": "ok",
|
|
183
|
+
"out": out_path,
|
|
184
|
+
"filled_count": len(filled),
|
|
185
|
+
"filled_fields": filled,
|
|
186
|
+
"size_kb": os.path.getsize(out_path) // 1024,
|
|
187
|
+
}
|
|
188
|
+
if errors:
|
|
189
|
+
result["validation_errors"] = errors
|
|
190
|
+
if not_found:
|
|
191
|
+
result["not_found"] = not_found
|
|
192
|
+
result["hint"] = "Run fill_inspect.py to see all available field names."
|
|
193
|
+
return result
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def main():
|
|
197
|
+
parser = argparse.ArgumentParser(description="Fill PDF form fields")
|
|
198
|
+
parser.add_argument("--input", required=True, help="Input PDF with form fields")
|
|
199
|
+
parser.add_argument("--out", required=True, help="Output PDF path")
|
|
200
|
+
group = parser.add_mutually_exclusive_group(required=True)
|
|
201
|
+
group.add_argument("--data", help="Path to JSON file with field values")
|
|
202
|
+
group.add_argument("--values", help="Inline JSON string with field values")
|
|
203
|
+
args = parser.parse_args()
|
|
204
|
+
|
|
205
|
+
if not os.path.exists(args.input):
|
|
206
|
+
print(json.dumps({"status": "error", "error": f"File not found: {args.input}"}),
|
|
207
|
+
file=sys.stderr)
|
|
208
|
+
sys.exit(1)
|
|
209
|
+
|
|
210
|
+
# Load data
|
|
211
|
+
try:
|
|
212
|
+
if args.data:
|
|
213
|
+
with open(args.data) as f:
|
|
214
|
+
data = json.load(f)
|
|
215
|
+
else:
|
|
216
|
+
data = json.loads(args.values)
|
|
217
|
+
except Exception as e:
|
|
218
|
+
print(json.dumps({"status": "error", "error": f"JSON parse error: {e}"}),
|
|
219
|
+
file=sys.stderr)
|
|
220
|
+
sys.exit(1)
|
|
221
|
+
|
|
222
|
+
result = fill(args.input, args.out, data)
|
|
223
|
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
|
224
|
+
|
|
225
|
+
if result["status"] == "ok":
|
|
226
|
+
print(f"\n── Fill complete ───────────────────────────────────────",
|
|
227
|
+
file=sys.stderr)
|
|
228
|
+
print(f" Output : {result['out']}", file=sys.stderr)
|
|
229
|
+
print(f" Filled : {result['filled_count']} field(s)", file=sys.stderr)
|
|
230
|
+
if result.get("validation_errors"):
|
|
231
|
+
print(f" Errors :", file=sys.stderr)
|
|
232
|
+
for e in result["validation_errors"]:
|
|
233
|
+
print(f" • {e['field']}: {e['error']}", file=sys.stderr)
|
|
234
|
+
if result.get("not_found"):
|
|
235
|
+
print(f" Not found: {result['not_found']}", file=sys.stderr)
|
|
236
|
+
print("", file=sys.stderr)
|
|
237
|
+
else:
|
|
238
|
+
sys.exit(3)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
if __name__ == "__main__":
|
|
242
|
+
main()
|