create-allyhub 0.8.0 → 0.10.0
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Feature highlights from each AllyHub release.
|
|
4
4
|
|
|
5
|
+
## 0.10.0
|
|
6
|
+
|
|
7
|
+
- **Word, Excel and PowerPoint files that hold up in Office.** A deck's file holds what its preview shows; a workbook keeps iterative calculation, data tables and combination charts; a chart over dates shows dates.
|
|
8
|
+
- **Docs for professional work.** Figures and tables numbered, table heads and columns that never break a word, memo and business-letter pages; `allyhub render` says how a doc's pages printed.
|
|
9
|
+
- **`allyhub inspect` shows the important part first.** The most notable findings of each kind, with `--kind` and `--all` for the rest; a long answer is kept whole in a file.
|
|
10
|
+
- **A screen filmed by a phone looks filmed by default**, its colours following what fills the frame, and renders several times faster.
|
|
11
|
+
- **Mark up anywhere.** Mark up on a picture, an animation as it plays and an app in the conversation; a project's page shows its work as cards.
|
|
12
|
+
|
|
13
|
+
## 0.9.0
|
|
14
|
+
|
|
15
|
+
- **A project lists its work.** `allyhub.yaml` names each piece's file, which can have any name in any folder. A project made before this version needs one for Studio to show its work.
|
|
16
|
+
- **Images and canvases.** An image is boards of Photoshop's layers, exported as PNG, JPEG, WebP, AVIF, PDF or a layered PSD, and changed by marking up what you want. A canvas lays a project's work out with notes and links.
|
|
17
|
+
- **Posts and articles for X**, checked against X's limits and drawn as X shows them.
|
|
18
|
+
- **Every measurement in the cloud.** Word times, text in pictures, cut-outs and faces need nothing downloaded, only a signed-in computer. The media tools are named for what they do, one each.
|
|
19
|
+
- **See the agent at work.** Every editor outlines where the agent changes or looks, and follows it until you take over.
|
|
20
|
+
- **A mailbox for your agents.** An address of your own to sign up to sites, read their codes and answer mail (`allyhub mail`).
|
|
21
|
+
- **Studio and the editors in nine languages**: English, Simplified and Traditional Chinese, Japanese, Korean, Spanish, Portuguese, German and French. Another language chosen before reads as the system's.
|
|
22
|
+
- **`cursor()` replaces `pointer()`.** It moves like a mouse; `handPath()` is the old motion, for a finger or something held.
|
|
23
|
+
|
|
5
24
|
## 0.8.0
|
|
6
25
|
|
|
7
26
|
- **Docs read like reports.** Charts drawn from numbers or a sheet, equations, diagrams, columns, footnotes, page breaks and page numbers, a cover and a page style, all kept in PDF and Word.
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{mkdir as c,readFile as
|
|
2
|
+
import{mkdir as c,readFile as m,writeFile as d}from"node:fs/promises";import{basename as f,join as o,resolve as h}from"node:path";export const PROJECT_PACKAGES={cli:"allyhub",sdk:"@allyhub/sdk"},PROJECT_TYPESCRIPT="~5.9.3",PROJECT_GITIGNORE=`node_modules/
|
|
3
3
|
.allyhub/
|
|
4
4
|
.playwright-cli/
|
|
5
|
-
`,
|
|
5
|
+
`,REGISTRY="https://allyhub.com/r",MASTER_SKILL="allyhub";export function workSkills(s){return s.filter(e=>e.type==="allyhub:skill"&&e.name!==MASTER_SKILL).map(e=>({name:e.name,description:e.description.replaceAll(/\s+/gu," ").trim()}))}export const AGENT_RULES_BEGIN="<!-- BEGIN:allyhub-agent-rules -->",AGENT_RULES_END="<!-- END:allyhub-agent-rules -->";export function agentRules(){return[AGENT_RULES_BEGIN,"",`Before writing or changing a piece (a video, a deck, an image, a doc, a sheet, a 3D scenery or model), read the files it needs in the SDK's docs, for the version this project builds with: \`node_modules/${PROJECT_PACKAGES.sdk}/docs/\` once the project has installed it, its \`README.md\` saying what each file covers; without it, \`allyhub help\` says where they are (the SDK the CLI lends). The API has changed from what you may know; the docs and the SDK's types are right.`,"","`allyhub help` lists AllyHub's commands (`npx allyhub help` once the project has installed it); `allyhub help <command>` says what one does.","","`allyhub skills` lists AllyHub's work skills, each how to make one kind of work; `allyhub skills show <name>` prints one, `allyhub add skill/<name>` adds it to this project.","",AGENT_RULES_END].join(`
|
|
6
6
|
`)}export function projectAgents(){return`# AllyHub project
|
|
7
7
|
|
|
8
|
-
This folder is an AllyHub project. Videos, 3D sceneries and 3D models are TypeScript, docs MDX, sheets YAML and CSV, and a website any web project
|
|
8
|
+
This folder is an AllyHub project. Videos, decks, images, 3D sceneries and 3D models are TypeScript, docs MDX, sheets YAML and CSV, a canvas JSON Canvas, and a website any web project; their files are yours to name and lay out as suits the project, and a model is made once and put in any scenery that imports it. \`${WORK_FILE}\` lists the work a person sees, in the order they see it: each piece's \`kind\` (\`video\`, \`slides\`, \`image\`, \`doc\`, \`sheet\`, \`scenery\`, \`model\`, \`website\`; none for a \`.canvas\`, which its editor opens by its name), its \`file\` from this folder and, if its file says none, a \`title\`, under \`group\` headings if you like. List a piece when you make it; a file not listed (a scenery a video imports, a helper, a draft) is yours alone.
|
|
9
9
|
|
|
10
10
|
- A video or a scenery is code: where the project has no package.json yet, \`npm create allyhub@latest .\` then \`npm install\`.
|
|
11
11
|
|
|
12
12
|
${agentRules()}
|
|
13
13
|
`}export const PROJECT_CLAUDE=`@AGENTS.md
|
|
14
|
+
`,WORK_FILE="allyhub.yaml",PROJECT_WORK=`work: []
|
|
14
15
|
`,PROJECT_TSCONFIG=`${JSON.stringify({compilerOptions:{target:"ES2022",module:"ESNext",moduleResolution:"Bundler",lib:["ES2022","DOM","DOM.Iterable"],types:[`${PROJECT_PACKAGES.sdk}/client`,`${PROJECT_PACKAGES.cli}/client`],strict:!0,noEmit:!0,skipLibCheck:!0,verbatimModuleSyntax:!0,allowImportingTsExtensions:!0},include:["**/*.ts",".allyhub/cache/types"],exclude:["node_modules"]},null,2)}
|
|
15
|
-
`;export function packageName(
|
|
16
|
-
`],["tsconfig.json",PROJECT_TSCONFIG],[".gitignore",PROJECT_GITIGNORE]];await c(
|
|
16
|
+
`;export function packageName(s){const e=s.toLowerCase().normalize("NFKD").replace(/\p{M}/gu,"").replace(/[^\w.-]+/gu,"-").replace(/^[-._]+|[-._]+$/gu,"").slice(0,214);return e===""?"allyhub-project":e}const r=s=>m(s).then(()=>!0,()=>!1);export async function writeAgentFiles(s){const e=h(s);await c(e,{recursive:!0});const t=[];for(const[n,i]of[["AGENTS.md",projectAgents()],["CLAUDE.md",PROJECT_CLAUDE],[WORK_FILE,PROJECT_WORK]])await r(o(e,n))||(await d(o(e,n),i,{flag:"wx"}),t.push(n));return t}export async function startProject(s,e){const t=h(s);if(await r(o(t,"package.json")))throw new Error(`${t} already has a package.json: add AllyHub to it with npm install ${PROJECT_PACKAGES.cli} ${PROJECT_PACKAGES.sdk}.`);const n=packageName(f(t)),i=a=>e.packages?.[a]??e.version,p={name:n,version:"0.0.0",private:!0,type:"module",scripts:{dev:"allyhub dev",check:"allyhub check",render:"allyhub render",typecheck:"tsc --noEmit"},dependencies:{[PROJECT_PACKAGES.cli]:i(PROJECT_PACKAGES.cli),[PROJECT_PACKAGES.sdk]:i(PROJECT_PACKAGES.sdk)},devDependencies:{typescript:PROJECT_TYPESCRIPT}},u=[["package.json",`${JSON.stringify(p,null,2)}
|
|
17
|
+
`],["tsconfig.json",PROJECT_TSCONFIG],[".gitignore",PROJECT_GITIGNORE]];await c(t,{recursive:!0});const l=[];for(const[a,y]of u)await r(o(t,a))||(await d(o(t,a),y,{flag:"wx"}),l.push(a));return l.push(...await writeAgentFiles(t)),{folder:t,name:n,files:l}}
|