Skip to content
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
1753f96
feat: setup project for cli with optique
sij411 Aug 24, 2025
49cd086
feat: add skeletons
sij411 Aug 24, 2025
b67763e
feat: add options for lookup
sij411 Aug 24, 2025
be5391e
chores: add packages
sij411 Aug 25, 2025
71cf164
feat: implement lookup with format and output options with optique
sij411 Aug 27, 2025
c14e80a
refactor: implement dependent options with flag
sij411 Aug 29, 2025
ee1b5bb
refactor: change writeObjectToStream's params
sij411 Aug 29, 2025
1e92c70
test: test for lookup optique imple
sij411 Aug 29, 2025
bec2852
chores: update optique version to 0.3.0
sij411 Aug 29, 2025
211112a
chores: remove redundancy
sij411 Aug 29, 2025
cb799ce
fix: remove relative import
sij411 Aug 29, 2025
be3fd5d
fix: add time sleep to wait the content is written in file
sij411 Aug 30, 2025
9bc4166
fix: replace cli-optique to cli
sij411 Aug 30, 2025
94ad983
chores: update pnpm-lock.yaml
sij411 Aug 30, 2025
c2f55ac
feat: setup project for cli with optique
sij411 Aug 24, 2025
6efb903
feat: add skeletons
sij411 Aug 24, 2025
e53de66
feat: add options for lookup
sij411 Aug 24, 2025
d78d2c2
chores: add packages
sij411 Aug 25, 2025
ec3acaf
feat: implement lookup with format and output options with optique
sij411 Aug 27, 2025
9a71ab4
refactor: implement dependent options with flag
sij411 Aug 29, 2025
045c8e8
refactor: change writeObjectToStream's params
sij411 Aug 29, 2025
146e6a1
test: test for lookup optique imple
sij411 Aug 29, 2025
d4a91fd
chores: update optique version to 0.3.0
sij411 Aug 29, 2025
ea8bf3d
chores: remove redundancy
sij411 Aug 29, 2025
54a6920
fix: remove relative import
sij411 Aug 29, 2025
73dce61
fix: add time sleep to wait the content is written in file
sij411 Aug 30, 2025
9ffada4
fix: replace cli-optique to cli
sij411 Aug 30, 2025
bdcb7e3
chores: update pnpm-lock.yaml
sij411 Aug 30, 2025
973f58a
chores: resovle pnpm-lock merge conflict with next
sij411 Aug 31, 2025
fa8d91f
Merge branch 'next' into feat/optique
sij411 Aug 31, 2025
716a6fa
chores: update pnpm lock
sij411 Aug 31, 2025
656c5e5
Merge branch 'feat/optique' of https://github.com/sij411/fedify into …
sij411 Aug 31, 2025
8052ed9
chores: remove original tunnel test
sij411 Aug 31, 2025
945d67a
feat: add pack.ts
sij411 Aug 31, 2025
6dec69e
feat: add pack.ts
sij411 Aug 31, 2025
8712a26
Merge branch 'feat/optique' of https://github.com/sij411/fedify into …
sij411 Aug 31, 2025
1b343a9
chores: update pnpm-lock
sij411 Aug 31, 2025
4d77a9c
fix: add pack command
sij411 Aug 31, 2025
9203681
feat: add README
sij411 Aug 31, 2025
53e492c
chores: exclude zip file
sij411 Aug 31, 2025
7ca0d59
fix: apply requested changes
sij411 Sep 2, 2025
df369e0
fix: wrap lookup parser with command to work lookup as a subcommand
sij411 Sep 3, 2025
fc96a90
feat(log): add log script
sij411 Sep 3, 2025
37d1188
feat(log): add debug option gloabally
sij411 Sep 4, 2025
f2bda78
feat(log): register debug option for every subcommands
sij411 Sep 4, 2025
e5bacbe
fix: move debug configurelogging to each subcommand
sij411 Sep 4, 2025
609e0dc
fix: add PORT value range
sij411 Sep 4, 2025
6b7cdef
Merge remote-tracking branch 'upstream/next' into feat/optique
sij411 Sep 5, 2025
5f11b65
Merge remote-tracking branch 'upstream/next' into feat/optique
sij411 Sep 5, 2025
fa06f6b
Merge branch 'feat/optique' of https://github.com/sij411/fedify into …
sij411 Sep 5, 2025
a8ede25
fix: update pnpm-lock.yaml
sij411 Sep 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/cli/.gitignore

This file was deleted.

41 changes: 9 additions & 32 deletions packages/cli/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,21 @@
"license": "MIT",
"exports": "./src/mod.ts",
"imports": {
"@cliffy/ansi": "jsr:@cliffy/ansi@1.0.0-rc.4",
"@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.4",
"@cliffy/prompt": "jsr:@cliffy/prompt@1.0.0-rc.4",
"@cliffy/table": "jsr:@cliffy/table@1.0.0-rc.4",
"@cross/dir": "jsr:@cross/dir@^1.1.0",
"@david/dax": "jsr:@david/dax@^0.41.0",
"@david/dax": "jsr:@david/dax@^0.43.2",
"@optique/core": "jsr:@optique/core@^0.3.0",
"@optique/run": "jsr:@optique/run@^0.3.0",
"@std/fmt": "jsr:@std/fmt@^1.0.8",
"ora": "npm:ora@^8.2.0",
"@hongminhee/localtunnel": "jsr:@hongminhee/localtunnel@^0.2.0",
Comment thread
dahlia marked this conversation as resolved.
Outdated
"@jimp/core": "npm:@jimp/core@^1.6.0",
"@jimp/wasm-webp": "npm:@jimp/wasm-webp@^1.6.0",
"@poppanator/http-constants": "npm:@poppanator/http-constants@^1.1.1",
"@std/assert": "jsr:@std/assert@^1.0.13",
"@std/fmt/colors": "jsr:@std/fmt@^0.224.0/colors",
"@std/testing": "jsr:@std/testing@^1.0.8",
"@std/dotenv": "jsr:@std/dotenv@^0.225.2",
"@std/semver": "jsr:@std/semver@^1.0.5",
"cli-highlight": "npm:cli-highlight@^2.1.11",
"fetch-mock": "npm:fetch-mock@^12.5.2",
"hono": "jsr:@hono/hono@^4.8.3",
"icojs": "npm:icojs@^0.19.4",
"jimp": "npm:jimp@^1.6.0",
"ora": "npm:ora@^8.0.1",
"shiki": "npm:shiki@^1.6.4",
"sharp": "npm:sharp@^0.34.3"
"@jimp/core": "npm:@jimp/core@^1.6.0",
"@std/fmt/colors": "jsr:@std/fmt@^0.224.0/colors"
},
"exclude": [
".vscode",
"fedify-cli-*.tar.xz",
"fedify-cli-*.tgz",
"fedify-cli-*.zip",
"package.json",
"src/install.mjs",
"src/run.mjs"
"fedify-cli-*.zip"
],
"tasks": {
"codegen": "deno task -f @fedify/fedify codegen",
Expand All @@ -51,13 +34,7 @@
"codegen"
]
},
"publish": {
"command": "deno publish",
"dependencies": [
"codegen"
]
},
"publish-dry-run": "deno task publish --dry-run --allow-dirty",
"runi": "deno run --allow-all src/mod.ts",
"pack": {
"command": "deno run -A scripts/pack.ts",
"dependencies": [
Expand Down
47 changes: 22 additions & 25 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,7 @@
{
"name": "@fedify/cli",
"version": "2.0.0",
"type": "module",
"files": [
"README.md",
"package.json",
"src/install.mjs",
"src/run.mjs"
],
"bin": {
"fedify": "./src/run.mjs"
},
"scripts": {
"postinstall": "node src/install.mjs"
},
"engines": {
"node": ">=18.0.0"
},
"os": [
"darwin",
"linux",
"win32"
],
"cpu": [
"x64",
"arm64"
],
"private": true,
"description": "CLI toolchain for Fedify and debugging ActivityPub",
"keywords": [
"fedify",
Expand All @@ -51,5 +27,26 @@
"type": "git",
"url": "git+https://github.com/fedify-dev/fedify.git",
"directory": "packages/cli"
},
"type": "module",
"engines": {
"node": ">=20.0.0",
"bun": ">=1.2.0",
"denp": ">=2.0.0"
},
"dependencies": {
"@fedify/fedify": "workspace:",
"@optique/core": "^0.3.0",
"@optique/run": "^0.3.0",
"cli-highlight": "^2.1.11",
"jimp": "^1.6.0",
"@jimp/core": "^1.6.0",
"@jimp/wasm-webp": "^1.6.0",
"ora": "^8.2.0",
"@cross/dir": "jsr:@cross/dir@^1.1.0",
"cli-highlight": "^2.1.11",
Comment thread
sij411 marked this conversation as resolved.
Outdated
"@hongminhee/localtunnel": "jsr:@hongminhee/localtunnel@^0.2.0",
Comment thread
dahlia marked this conversation as resolved.
Outdated
"@std/fmt/colors": "jsr:@std/fmt@^0.224.0/colors",
"@david/dax": "jsr:@david/dax@^0.43.2"
}
}
77 changes: 0 additions & 77 deletions packages/cli/src/inbox.test.ts

This file was deleted.

24 changes: 24 additions & 0 deletions packages/cli/src/inbox.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import {
command,
constant,
type InferValue,
message,
object,
} from "@optique/core";

export const inboxCommand = command(
"inbox",
object({
command: constant("inbox"),
}),
{
description:
message`Spins up an ephemeral server that serves the ActivityPub inbox with an one-time actor, through a short-lived public DNS with HTTPS. You can monitor the incoming activities in real-time.`,
},
);

export function runInbox(
command: InferValue<typeof inboxCommand>,
) {
console.debug(command);
}
Loading
Loading