{"draft":null,"from":33,"to":34,"files":[{"path":"client/src/main.ts","added":33,"removed":4,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -43,6 +43,7 @@\n import { runBlame, runWhere, runWho, runWhy } from \"./history.ts\";\n import { runAnswer, runAsk, runIssue, runIssues, runSearch, runWaiting } from \"./issues.ts\";\n import { adminToken, issuedPublic, keyList, keyListText, keyNew, keyRevoke } from \"./key-admin.ts\";\n+import { initInOrg, runOrg, runOrgs } from \"./orgs.ts\";\n import { runUnqueue } from \"./queue.ts\";\n import { runNote, runNotes, runReview } from \"./review.ts\";\n import { installSkill, SKILL, skillPath } from \"./skill.ts\";\n@@ -86,11 +87,14 @@\n \n const COMMANDS: Readonly<Record<string, CommandDef>> = {\n \tinit: {\n-\t\tflags: { server: \"string\", project: \"string\", agent: \"string\", \"as-is\": \"boolean\" },\n-\t\tusage: \"abso init [folder] --server <url> --project <name> --agent <name> [--as-is]\",\n+\t\tflags: { server: \"string\", project: \"string\", agent: \"string\", \"as-is\": \"boolean\", org: \"string\" },\n+\t\tusage: \"abso init [folder] --server <url> --project <name> --agent <name> [--as-is] [--org <org>]\",\n \t\tabout:\n-\t\t\t\"Create a project on the server from a folder's text files. The folder becomes that agent's folder. It writes a starting .absoignore, and, when the folder has no avcs.json and package.json gives a check or a build to guess, an avcs.json (setup, check, build and out): what the server's CI runs on each new version of shared. Without one, CI runs what it can guess itself, or nothing. --as-is writes neither: the folder goes up exactly as it is (an import).\",\n-\t\trun: runInit,\n+\t\t\t\"Create a project on the server from a folder's text files. The folder becomes that agent's folder. It writes a starting .absoignore, and, when the folder has no avcs.json and package.json gives a check or a build to guess, an avcs.json (setup, check, build and out): what the server's CI runs on each new version of shared. Without one, CI runs what it can guess itself, or nothing. --as-is writes neither: the folder goes up exactly as it is (an import). --org <org> makes it an organization's project: for now that is done on the website, and abso says where.\",\n+\t\trun: (args, env) => {\n+\t\t\tconst org = str(args, \"org\");\n+\t\t\treturn org === undefined ? runInit(args, env) : initInOrg(org, boxServer(args, env));\n+\t\t},\n \t},\n \tkey: {\n \t\tflags: {\n@@ -207,6 +211,31 @@\n \t\t\t};\n \t\t},\n \t},\n+\torgs: {\n+\t\tflags: { server: \"string\" },\n+\t\tusage: \"abso orgs [--server <url>]\",\n+\t\tabout:\n+\t\t\t\"Your organizations and your role in each, and invitations waiting for you. It reads as the person who approved this box's sign-in (abso login).\",\n+\t\trun: (args, env) => runOrgs(boxServer(args, env)),\n+\t},\n+\torg: {\n+\t\tflags: {\n+\t\t\tserver: \"string\",\n+\t\t\tname: \"string\",\n+\t\t\tinvite: \"string\",\n+\t\t\tas: \"string\",\n+\t\t\trole: \"string\",\n+\t\t\tremove: \"string\",\n+\t\t\tleave: \"boolean\",\n+\t\t\tmembers: \"string\",\n+\t\t\t\"projects-by\": \"string\",\n+\t\t},\n+\t\tusage:\n+\t\t\t\"abso org <name> [--invite <person>|link [--as owner] | --role <person>=owner|member | --remove <person> | --leave | --members read|write | --projects-by members|owners] | abso org new <name> [--name <shown name>]\",\n+\t\tabout:\n+\t\t\t\"An organization: its projects, people, open invites and settings, as the person who approved this box's sign-in sees them (people and settings only to members). One change at a time. Changes and abso org new are made on the website for now, and abso says where.\",\n+\t\trun: (args, env) => runOrg(args, boxServer(args, env)),\n+\t},\n \tskill: {\n \t\tflags: { dir: \"string\" },\n \t\tusage: \"abso skill install [--dir <skills folder>] | abso skill show\","}],"unmatched":[]}