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,374 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
reformat_parse.py — Convert an existing document into content.json,
|
|
4
|
+
then hand off to the CREATE pipeline (render_body.py).
|
|
5
|
+
|
|
6
|
+
Supported input formats:
|
|
7
|
+
.md / .txt — Markdown / plain text
|
|
8
|
+
.pdf — Extract text from existing PDF (layout preserved as best-effort)
|
|
9
|
+
.json — Pass-through if already content.json format
|
|
10
|
+
|
|
11
|
+
Usage:
|
|
12
|
+
python3 reformat_parse.py --input doc.md --out content.json
|
|
13
|
+
python3 reformat_parse.py --input old.pdf --out content.json
|
|
14
|
+
python3 reformat_parse.py --input data.json --out content.json
|
|
15
|
+
|
|
16
|
+
Then pipe into the CREATE pipeline:
|
|
17
|
+
python3 render_body.py --tokens tokens.json --content content.json --out body.pdf
|
|
18
|
+
|
|
19
|
+
Or use make.sh reformat which does both steps:
|
|
20
|
+
bash make.sh reformat --input doc.md --type report --title "My Report" --out output.pdf
|
|
21
|
+
|
|
22
|
+
Exit codes: 0 success, 1 bad args / unsupported format, 2 dep missing, 3 parse error
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
import argparse
|
|
26
|
+
import json
|
|
27
|
+
import os
|
|
28
|
+
import re
|
|
29
|
+
import sys
|
|
30
|
+
import importlib.util
|
|
31
|
+
from pathlib import Path
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def ensure_deps():
|
|
37
|
+
missing = []
|
|
38
|
+
if importlib.util.find_spec("pypdf") is None:
|
|
39
|
+
missing.append("pypdf")
|
|
40
|
+
if missing:
|
|
41
|
+
import subprocess
|
|
42
|
+
subprocess.check_call(
|
|
43
|
+
[sys.executable, "-m", "pip", "install", "--break-system-packages", "-q"] + missing
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
ensure_deps()
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# ── Markdown / plain text parser ───────────────────────────────────────────────
|
|
51
|
+
def parse_markdown(text: str) -> list:
|
|
52
|
+
"""
|
|
53
|
+
Convert Markdown to content.json blocks.
|
|
54
|
+
Supports: # headings, **bold**, bullet lists, > blockquotes (→ callout),
|
|
55
|
+
| tables |, plain paragraphs.
|
|
56
|
+
"""
|
|
57
|
+
blocks = []
|
|
58
|
+
lines = text.splitlines()
|
|
59
|
+
i = 0
|
|
60
|
+
|
|
61
|
+
def flush_para(buf: list):
|
|
62
|
+
t = " ".join(buf).strip()
|
|
63
|
+
if t:
|
|
64
|
+
blocks.append({"type": "body", "text": _md_inline(t)})
|
|
65
|
+
|
|
66
|
+
para_buf = []
|
|
67
|
+
|
|
68
|
+
while i < len(lines):
|
|
69
|
+
line = lines[i]
|
|
70
|
+
stripped = line.strip()
|
|
71
|
+
|
|
72
|
+
# Blank line — flush paragraph buffer
|
|
73
|
+
if not stripped:
|
|
74
|
+
flush_para(para_buf)
|
|
75
|
+
para_buf = []
|
|
76
|
+
i += 1
|
|
77
|
+
continue
|
|
78
|
+
|
|
79
|
+
# ATX Headings: # ## ###
|
|
80
|
+
m = re.match(r'^(#{1,3})\s+(.*)', stripped)
|
|
81
|
+
if m:
|
|
82
|
+
flush_para(para_buf)
|
|
83
|
+
para_buf = []
|
|
84
|
+
level = len(m.group(1))
|
|
85
|
+
htype = {1: "h1", 2: "h2", 3: "h3"}.get(level, "h3")
|
|
86
|
+
blocks.append({"type": htype, "text": _md_inline(m.group(2))})
|
|
87
|
+
i += 1
|
|
88
|
+
continue
|
|
89
|
+
|
|
90
|
+
# Display math block: $$expr$$ on one line, or opening $$ ... closing $$
|
|
91
|
+
if stripped.startswith("$$"):
|
|
92
|
+
flush_para(para_buf)
|
|
93
|
+
para_buf = []
|
|
94
|
+
inline_expr = stripped[2:].rstrip("$").strip()
|
|
95
|
+
if inline_expr:
|
|
96
|
+
# Single-line: $$E = mc^2$$
|
|
97
|
+
blocks.append({"type": "math", "text": inline_expr})
|
|
98
|
+
i += 1
|
|
99
|
+
else:
|
|
100
|
+
# Multi-line: opening $$ alone, then expression lines, then closing $$
|
|
101
|
+
math_lines = []
|
|
102
|
+
i += 1
|
|
103
|
+
while i < len(lines) and lines[i].strip() != "$$":
|
|
104
|
+
math_lines.append(lines[i])
|
|
105
|
+
i += 1
|
|
106
|
+
if i < len(lines):
|
|
107
|
+
i += 1 # skip closing $$
|
|
108
|
+
blocks.append({"type": "math", "text": "\n".join(math_lines).strip()})
|
|
109
|
+
continue
|
|
110
|
+
|
|
111
|
+
# Fenced code block: ``` or ~~~
|
|
112
|
+
if stripped.startswith("```") or stripped.startswith("~~~"):
|
|
113
|
+
flush_para(para_buf)
|
|
114
|
+
para_buf = []
|
|
115
|
+
fence = stripped[:3]
|
|
116
|
+
code_lines = []
|
|
117
|
+
i += 1
|
|
118
|
+
while i < len(lines) and not lines[i].strip().startswith(fence):
|
|
119
|
+
code_lines.append(lines[i])
|
|
120
|
+
i += 1
|
|
121
|
+
if i < len(lines):
|
|
122
|
+
i += 1 # skip closing fence
|
|
123
|
+
blocks.append({"type": "code", "text": "\n".join(code_lines)})
|
|
124
|
+
continue
|
|
125
|
+
|
|
126
|
+
# Blockquote → callout
|
|
127
|
+
if stripped.startswith(">"):
|
|
128
|
+
flush_para(para_buf)
|
|
129
|
+
para_buf = []
|
|
130
|
+
qt = re.sub(r'^>\s*', '', stripped)
|
|
131
|
+
blocks.append({"type": "callout", "text": _md_inline(qt)})
|
|
132
|
+
i += 1
|
|
133
|
+
continue
|
|
134
|
+
|
|
135
|
+
# Unordered bullet: -, *, +
|
|
136
|
+
if re.match(r'^[-*+]\s+', stripped):
|
|
137
|
+
flush_para(para_buf)
|
|
138
|
+
para_buf = []
|
|
139
|
+
text_part = re.sub(r'^[-*+]\s+', '', stripped)
|
|
140
|
+
blocks.append({"type": "bullet", "text": _md_inline(text_part)})
|
|
141
|
+
i += 1
|
|
142
|
+
continue
|
|
143
|
+
|
|
144
|
+
# Ordered list: 1. 2. etc. → numbered (preserves counter in render_body)
|
|
145
|
+
if re.match(r'^\d+\.\s+', stripped):
|
|
146
|
+
flush_para(para_buf)
|
|
147
|
+
para_buf = []
|
|
148
|
+
text_part = re.sub(r'^\d+\.\s+', '', stripped)
|
|
149
|
+
blocks.append({"type": "numbered", "text": _md_inline(text_part)})
|
|
150
|
+
i += 1
|
|
151
|
+
continue
|
|
152
|
+
|
|
153
|
+
# Table: | col | col |
|
|
154
|
+
if stripped.startswith("|"):
|
|
155
|
+
flush_para(para_buf)
|
|
156
|
+
para_buf = []
|
|
157
|
+
table_lines = []
|
|
158
|
+
while i < len(lines) and lines[i].strip().startswith("|"):
|
|
159
|
+
table_lines.append(lines[i].strip())
|
|
160
|
+
i += 1
|
|
161
|
+
# Remove separator rows (|---|---|)
|
|
162
|
+
data_rows = [r for r in table_lines if not re.match(r'^\|[-:| ]+\|$', r)]
|
|
163
|
+
parsed = []
|
|
164
|
+
for row in data_rows:
|
|
165
|
+
cells = [c.strip() for c in row.strip("|").split("|")]
|
|
166
|
+
parsed.append(cells)
|
|
167
|
+
if len(parsed) >= 2:
|
|
168
|
+
blocks.append({
|
|
169
|
+
"type": "table",
|
|
170
|
+
"headers": parsed[0],
|
|
171
|
+
"rows": parsed[1:],
|
|
172
|
+
})
|
|
173
|
+
elif len(parsed) == 1:
|
|
174
|
+
# Single row — treat as paragraph
|
|
175
|
+
blocks.append({"type": "body", "text": " | ".join(parsed[0])})
|
|
176
|
+
continue
|
|
177
|
+
|
|
178
|
+
# Horizontal rule → spacer
|
|
179
|
+
if re.match(r'^[-*_]{3,}$', stripped):
|
|
180
|
+
flush_para(para_buf)
|
|
181
|
+
para_buf = []
|
|
182
|
+
blocks.append({"type": "spacer", "pt": 16})
|
|
183
|
+
i += 1
|
|
184
|
+
continue
|
|
185
|
+
|
|
186
|
+
# Plain text → accumulate into paragraph
|
|
187
|
+
para_buf.append(stripped)
|
|
188
|
+
i += 1
|
|
189
|
+
|
|
190
|
+
flush_para(para_buf)
|
|
191
|
+
return blocks
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def _md_inline(text: str) -> str:
|
|
195
|
+
"""Convert inline Markdown to ReportLab XML markup."""
|
|
196
|
+
# Bold: **text** or __text__
|
|
197
|
+
text = re.sub(r'\*\*(.+?)\*\*', r'<b>\1</b>', text)
|
|
198
|
+
text = re.sub(r'__(.+?)__', r'<b>\1</b>', text)
|
|
199
|
+
# Italic: *text* or _text_
|
|
200
|
+
text = re.sub(r'\*(.+?)\*', r'<i>\1</i>', text)
|
|
201
|
+
text = re.sub(r'_(.+?)_', r'<i>\1</i>', text)
|
|
202
|
+
# Inline code: `code`
|
|
203
|
+
text = re.sub(r'`(.+?)`', r'<font name="Courier">\1</font>', text)
|
|
204
|
+
# Strip markdown links, keep text
|
|
205
|
+
text = re.sub(r'\[(.+?)\]\(.+?\)', r'\1', text)
|
|
206
|
+
return text
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
# ── PDF text extractor ─────────────────────────────────────────────────────────
|
|
210
|
+
def parse_pdf(pdf_path: str) -> list:
|
|
211
|
+
"""
|
|
212
|
+
Extract text from an existing PDF and convert to content.json blocks.
|
|
213
|
+
Best-effort: detects headings by font size heuristics if available,
|
|
214
|
+
otherwise falls back to paragraph splitting.
|
|
215
|
+
"""
|
|
216
|
+
from pypdf import PdfReader
|
|
217
|
+
|
|
218
|
+
reader = PdfReader(pdf_path)
|
|
219
|
+
all_text = []
|
|
220
|
+
|
|
221
|
+
for page in reader.pages:
|
|
222
|
+
text = page.extract_text()
|
|
223
|
+
if text:
|
|
224
|
+
all_text.append(text.strip())
|
|
225
|
+
|
|
226
|
+
full_text = "\n\n".join(all_text)
|
|
227
|
+
|
|
228
|
+
# Treat extracted PDF text as plain text / light markdown
|
|
229
|
+
# (most PDFs lose formatting — we do our best)
|
|
230
|
+
return parse_plain(full_text)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
def parse_plain(text: str) -> list:
|
|
234
|
+
"""
|
|
235
|
+
Heuristic plain-text parser.
|
|
236
|
+
Short ALL-CAPS or title-case lines → headings.
|
|
237
|
+
Everything else → paragraphs.
|
|
238
|
+
"""
|
|
239
|
+
blocks = []
|
|
240
|
+
paragraphs = re.split(r'\n{2,}', text.strip())
|
|
241
|
+
|
|
242
|
+
for para in paragraphs:
|
|
243
|
+
para = para.strip()
|
|
244
|
+
if not para:
|
|
245
|
+
continue
|
|
246
|
+
|
|
247
|
+
lines = para.splitlines()
|
|
248
|
+
|
|
249
|
+
# Single short line that looks like a heading
|
|
250
|
+
if len(lines) == 1 and len(para) < 80:
|
|
251
|
+
if para.isupper() or re.match(r'^[A-Z][^.!?]*$', para):
|
|
252
|
+
blocks.append({"type": "h1", "text": para.title()})
|
|
253
|
+
continue
|
|
254
|
+
|
|
255
|
+
# Bullet lists
|
|
256
|
+
if lines[0].startswith(("- ", "• ", "* ")):
|
|
257
|
+
for line in lines:
|
|
258
|
+
text_part = re.sub(r'^[-•*]\s+', '', line.strip())
|
|
259
|
+
if text_part:
|
|
260
|
+
blocks.append({"type": "bullet", "text": text_part})
|
|
261
|
+
continue
|
|
262
|
+
|
|
263
|
+
# Regular paragraph
|
|
264
|
+
blocks.append({"type": "body", "text": " ".join(lines)})
|
|
265
|
+
|
|
266
|
+
return blocks
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
# ── Pass-through validator ─────────────────────────────────────────────────────
|
|
270
|
+
VALID_TYPES = {"h1","h2","h3","body","bullet","numbered","callout","table",
|
|
271
|
+
"image","code","math","divider","caption","pagebreak","spacer"}
|
|
272
|
+
|
|
273
|
+
def validate_content_json(data: list) -> tuple[list, list]:
|
|
274
|
+
"""Return (valid_blocks, warnings)."""
|
|
275
|
+
valid, warnings = [], []
|
|
276
|
+
for i, block in enumerate(data):
|
|
277
|
+
if not isinstance(block, dict):
|
|
278
|
+
warnings.append(f"Block {i}: not a dict, skipped")
|
|
279
|
+
continue
|
|
280
|
+
btype = block.get("type")
|
|
281
|
+
if btype not in VALID_TYPES:
|
|
282
|
+
warnings.append(f"Block {i}: unknown type '{btype}', kept as-is")
|
|
283
|
+
valid.append(block)
|
|
284
|
+
return valid, warnings
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
# ── Dispatcher ─────────────────────────────────────────────────────────────────
|
|
288
|
+
def parse_file(input_path: str) -> tuple[list, list]:
|
|
289
|
+
"""Return (blocks, warnings)."""
|
|
290
|
+
ext = Path(input_path).suffix.lower()
|
|
291
|
+
|
|
292
|
+
if ext in (".md", ".txt", ".markdown"):
|
|
293
|
+
with open(input_path, encoding="utf-8", errors="replace") as f:
|
|
294
|
+
text = f.read()
|
|
295
|
+
blocks = parse_markdown(text)
|
|
296
|
+
return blocks, []
|
|
297
|
+
|
|
298
|
+
if ext == ".pdf":
|
|
299
|
+
blocks = parse_pdf(input_path)
|
|
300
|
+
return blocks, ["PDF text extraction is best-effort — review content.json before rendering"]
|
|
301
|
+
|
|
302
|
+
if ext == ".json":
|
|
303
|
+
with open(input_path) as f:
|
|
304
|
+
data = json.load(f)
|
|
305
|
+
if isinstance(data, list):
|
|
306
|
+
return validate_content_json(data)
|
|
307
|
+
# Maybe it's a meta-wrapper {"content": [...]}
|
|
308
|
+
if isinstance(data, dict) and "content" in data:
|
|
309
|
+
return validate_content_json(data["content"])
|
|
310
|
+
return [], [f"JSON file does not contain a list of content blocks"]
|
|
311
|
+
|
|
312
|
+
return [], [f"Unsupported file type: {ext}. Supported: .md .txt .pdf .json"]
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
# ── CLI ────────────────────────────────────────────────────────────────────────
|
|
316
|
+
def main():
|
|
317
|
+
parser = argparse.ArgumentParser(description="Parse a document into content.json")
|
|
318
|
+
parser.add_argument("--input", required=True, help="Input file (.md, .txt, .pdf, .json)")
|
|
319
|
+
parser.add_argument("--out", default="content.json", help="Output content.json path")
|
|
320
|
+
args = parser.parse_args()
|
|
321
|
+
|
|
322
|
+
if not os.path.exists(args.input):
|
|
323
|
+
print(json.dumps({"status": "error", "error": f"File not found: {args.input}"}),
|
|
324
|
+
file=sys.stderr)
|
|
325
|
+
sys.exit(1)
|
|
326
|
+
|
|
327
|
+
try:
|
|
328
|
+
blocks, warnings = parse_file(args.input)
|
|
329
|
+
except Exception as e:
|
|
330
|
+
import traceback
|
|
331
|
+
print(json.dumps({"status": "error", "error": str(e),
|
|
332
|
+
"trace": traceback.format_exc()}), file=sys.stderr)
|
|
333
|
+
sys.exit(3)
|
|
334
|
+
|
|
335
|
+
if not blocks:
|
|
336
|
+
print(json.dumps({
|
|
337
|
+
"status": "error",
|
|
338
|
+
"error": "No content blocks extracted",
|
|
339
|
+
"warnings": warnings,
|
|
340
|
+
}), file=sys.stderr)
|
|
341
|
+
sys.exit(3)
|
|
342
|
+
|
|
343
|
+
with open(args.out, "w", encoding="utf-8") as f:
|
|
344
|
+
json.dump(blocks, f, indent=2, ensure_ascii=False)
|
|
345
|
+
|
|
346
|
+
result = {
|
|
347
|
+
"status": "ok",
|
|
348
|
+
"out": args.out,
|
|
349
|
+
"block_count": len(blocks),
|
|
350
|
+
"warnings": warnings,
|
|
351
|
+
}
|
|
352
|
+
print(json.dumps(result, indent=2))
|
|
353
|
+
|
|
354
|
+
print(f"\n── Parsed {args.input} ─────────────────────────────────────",
|
|
355
|
+
file=sys.stderr)
|
|
356
|
+
print(f" Blocks : {len(blocks)}", file=sys.stderr)
|
|
357
|
+
|
|
358
|
+
type_counts: dict = {}
|
|
359
|
+
for b in blocks:
|
|
360
|
+
type_counts[b.get("type","?")] = type_counts.get(b.get("type","?"), 0) + 1
|
|
361
|
+
for t, n in sorted(type_counts.items()):
|
|
362
|
+
print(f" {t:12} × {n}", file=sys.stderr)
|
|
363
|
+
|
|
364
|
+
if warnings:
|
|
365
|
+
print(f" Warnings:", file=sys.stderr)
|
|
366
|
+
for w in warnings:
|
|
367
|
+
print(f" ⚠ {w}", file=sys.stderr)
|
|
368
|
+
print(f"\n Next: bash make.sh run --content {args.out} --title '...' --type ...",
|
|
369
|
+
file=sys.stderr)
|
|
370
|
+
print("", file=sys.stderr)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
if __name__ == "__main__":
|
|
374
|
+
main()
|