@hugomrdias/fil 0.0.0 → 0.1.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/README.md +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/skills/fil/SKILL.md +24 -11
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
`fil` calls [synapse-core](https://github.com/FilOzone/synapse-sdk/tree/master/packages/synapse-core) directly. It uses [clipact](../clipact/README.md) for the agent output contract and [iso-conf](https://github.com/hugomrdias/iso-repo/tree/main/packages/iso-conf) for configuration. The design follows the [CLI interface research](../../docs/fil/interface-research.md) and the [CLI guidelines for agents](../../docs/agent-cli/guidelines.md). The [architecture](../../docs/fil/architecture.md) describes the modules and flows.
|
|
6
6
|
|
|
7
|
-
Releases publish to npm as [`@hugomrdias/fil`](https://www.npmjs.com/package/@hugomrdias/fil). It needs Node.js 24 or newer
|
|
7
|
+
Releases publish to npm as [`@hugomrdias/fil`](https://www.npmjs.com/package/@hugomrdias/fil). It needs Node.js 24 or newer. Install it, or run it without installing with `npx -y @hugomrdias/fil`:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
npm install --global @hugomrdias/fil
|
package/dist/main.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
import{a as f}from"./chunks/chunk-ZD6MKB4J.js";import{a as u}from"./chunks/chunk-XQRC2SUG.js";import{a as s}from"./chunks/chunk-2KPBBDBJ.js";import{a as m}from"./chunks/chunk-UVXTIEPU.js";import{a as p}from"./chunks/chunk-46FBFEBX.js";import{a as n}from"./chunks/chunk-CU3SGKNA.js";import{a as l}from"./chunks/chunk-VTR7BON5.js";import{a}from"./chunks/chunk-QYPR6473.js";import{a as c}from"./chunks/chunk-EDF5XCIN.js";import{a as d}from"./chunks/chunk-7WN6TT5U.js";import{a as t}from"./chunks/chunk-LOTWVNDB.js";import{a as r}from"./chunks/chunk-NPYAGWD6.js";import{l as e}from"./chunks/chunk-UJQDDRQD.js";import{a as o}from"./chunks/chunk-GVAFHRPJ.js";import{i}from"./chunks/chunk-4BBXH7CB.js";import"./chunks/chunk-YIAP3JO3.js";var g={name:"@hugomrdias/fil",version:"0.
|
|
2
|
+
import{a as f}from"./chunks/chunk-ZD6MKB4J.js";import{a as u}from"./chunks/chunk-XQRC2SUG.js";import{a as s}from"./chunks/chunk-2KPBBDBJ.js";import{a as m}from"./chunks/chunk-UVXTIEPU.js";import{a as p}from"./chunks/chunk-46FBFEBX.js";import{a as n}from"./chunks/chunk-CU3SGKNA.js";import{a as l}from"./chunks/chunk-VTR7BON5.js";import{a}from"./chunks/chunk-QYPR6473.js";import{a as c}from"./chunks/chunk-EDF5XCIN.js";import{a as d}from"./chunks/chunk-7WN6TT5U.js";import{a as t}from"./chunks/chunk-LOTWVNDB.js";import{a as r}from"./chunks/chunk-NPYAGWD6.js";import{l as e}from"./chunks/chunk-UJQDDRQD.js";import{a as o}from"./chunks/chunk-GVAFHRPJ.js";import{i}from"./chunks/chunk-4BBXH7CB.js";import"./chunks/chunk-YIAP3JO3.js";var g={name:"@hugomrdias/fil",version:"0.1.0",description:"Command-line interface for Filecoin storage",license:"MIT",author:"Hugo Dias <hugomrdias@gmail.com>",homepage:"https://github.com/hugomrdias/fil/tree/main/packages/fil-cli#readme",repository:{type:"git",url:"git+https://github.com/hugomrdias/fil.git",directory:"packages/fil-cli"},bugs:{url:"https://github.com/hugomrdias/fil/issues"},type:"module",bin:{fil:"./bin/fil.js"},files:["bin","dist","skills","README.md"],scripts:{clean:"rm -rf dist skills",build:"node scripts/build.ts",typecheck:"tsc -p tsconfig.json",test:"node --test 'test/**/*.test.ts'",lint:"biome check .",check:"pnpm typecheck && pnpm test && pnpm lint"},devDependencies:{"@filoz/synapse-core":"^0.10.0","@ipld/car":"^5.4.7","@types/node":"catalog:",clipact:"workspace:*","env-paths":"^4.0.0",esbuild:"0.28.2","ipfs-unixfs-exporter":"^16.2.3","ipfs-unixfs-importer":"^16.1.5","iso-conf":"^0.4.2",multiformats:"^14.0.5",typescript:"catalog:",viem:"^2.56.9",zod:"4.6.5"},engines:{node:">=24"},publishConfig:{access:"public"}};var y=i({name:"operations",description:"Find, inspect, and resume saved put and delete jobs",commands:[c,a,d]}),h=[p,n,u,r,f,s,l,m,t,y];var b=o({name:"fil",version:g.version,description:"Store files and folders on Filecoin and get retrieval links",envPrefix:"FIL",commands:h,aliases:{publish:"put",rm:"delete"},skills:new URL("../skills/",import.meta.url),mapError:()=>import("./chunks/map-error-7POTPJ7R.js"),errors:e});await b.run();
|
|
3
3
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../package.json", "../src/commands/index.ts", "../src/cli.ts", "../src/main.ts"],
|
|
4
|
-
"sourcesContent": ["{\n \"name\": \"@hugomrdias/fil\",\n \"version\": \"0.
|
|
4
|
+
"sourcesContent": ["{\n \"name\": \"@hugomrdias/fil\",\n \"version\": \"0.1.0\",\n \"description\": \"Command-line interface for Filecoin storage\",\n \"license\": \"MIT\",\n \"author\": \"Hugo Dias <hugomrdias@gmail.com>\",\n \"homepage\": \"https://github.com/hugomrdias/fil/tree/main/packages/fil-cli#readme\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/hugomrdias/fil.git\",\n \"directory\": \"packages/fil-cli\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/hugomrdias/fil/issues\"\n },\n \"type\": \"module\",\n \"bin\": {\n \"fil\": \"./bin/fil.js\"\n },\n \"files\": [\n \"bin\",\n \"dist\",\n \"skills\",\n \"README.md\"\n ],\n \"scripts\": {\n \"clean\": \"rm -rf dist skills\",\n \"build\": \"node scripts/build.ts\",\n \"typecheck\": \"tsc -p tsconfig.json\",\n \"test\": \"node --test 'test/**/*.test.ts'\",\n \"lint\": \"biome check .\",\n \"check\": \"pnpm typecheck && pnpm test && pnpm lint\"\n },\n \"devDependencies\": {\n \"@filoz/synapse-core\": \"^0.10.0\",\n \"@ipld/car\": \"^5.4.7\",\n \"@types/node\": \"catalog:\",\n \"clipact\": \"workspace:*\",\n \"env-paths\": \"^4.0.0\",\n \"esbuild\": \"0.28.2\",\n \"ipfs-unixfs-exporter\": \"^16.2.3\",\n \"ipfs-unixfs-importer\": \"^16.1.5\",\n \"iso-conf\": \"^0.4.2\",\n \"multiformats\": \"^14.0.5\",\n \"typescript\": \"catalog:\",\n \"viem\": \"^2.56.9\",\n \"zod\": \"4.6.5\"\n },\n \"engines\": {\n \"node\": \">=24\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n }\n}\n", "import { type CommandNode, defineGroup } from 'clipact'\nimport { remove } from './delete.ts'\nimport { doctor } from './doctor.ts'\nimport { get } from './get.ts'\nimport { inspect } from './inspect.ts'\nimport { login } from './login.ts'\nimport { logout } from './logout.ts'\nimport { ls } from './ls.ts'\nimport { inspect as inspectOperation } from './operations/inspect.ts'\nimport { ls as listOperations } from './operations/ls.ts'\nimport { resume } from './operations/resume.ts'\nimport { put } from './put.ts'\nimport { status } from './status.ts'\n\n/** `fil operations`: find, inspect, and resume saved put and delete jobs. */\nexport const operations = defineGroup({\n name: 'operations',\n description: 'Find, inspect, and resume saved put and delete jobs',\n commands: [listOperations, inspectOperation, resume],\n})\n\n/** The `fil` command tree: definitions only, no handlers or SDKs. */\nexport const commands: CommandNode[] = [\n login,\n logout,\n status,\n doctor,\n put,\n get,\n ls,\n inspect,\n remove,\n operations,\n]\n", "import { defineCli } from 'clipact'\nimport pkg from '../package.json' with { type: 'json' }\nimport { commands } from './commands/index.ts'\nimport { errors } from './errors.ts'\n\n/**\n * The `fil` CLI. This module and the definitions it imports load only zod and\n * clipact, so `--help`, `--version`, and `schema` never load an SDK; each\n * handler is imported when its command runs.\n *\n * @see ../../../docs/agent-cli/framework-design.md\n * @see ../../../docs/fil/interface-research.md\n */\nexport const cli = defineCli({\n name: 'fil',\n version: pkg.version,\n description: 'Store files and folders on Filecoin and get retrieval links',\n envPrefix: 'FIL',\n commands,\n aliases: { publish: 'put', rm: 'delete' },\n skills: new URL('../skills/', import.meta.url),\n mapError: () => import('./map-error.ts'),\n errors,\n})\n", "import { cli } from './cli.ts'\n\nawait cli.run()\n"],
|
|
5
5
|
"mappings": ";0tBAAA,IAAAA,EAAA,CACE,KAAQ,kBACR,QAAW,QACX,YAAe,8CACf,QAAW,MACX,OAAU,mCACV,SAAY,sEACZ,WAAc,CACZ,KAAQ,MACR,IAAO,4CACP,UAAa,kBACf,EACA,KAAQ,CACN,IAAO,0CACT,EACA,KAAQ,SACR,IAAO,CACL,IAAO,cACT,EACA,MAAS,CACP,MACA,OACA,SACA,WACF,EACA,QAAW,CACT,MAAS,qBACT,MAAS,wBACT,UAAa,uBACb,KAAQ,kCACR,KAAQ,gBACR,MAAS,0CACX,EACA,gBAAmB,CACjB,sBAAuB,UACvB,YAAa,SACb,cAAe,WACf,QAAW,cACX,YAAa,SACb,QAAW,SACX,uBAAwB,UACxB,uBAAwB,UACxB,WAAY,SACZ,aAAgB,UAChB,WAAc,WACd,KAAQ,UACR,IAAO,OACT,EACA,QAAW,CACT,KAAQ,MACV,EACA,cAAiB,CACf,OAAU,QACZ,CACF,ECvCO,IAAMC,EAAaC,EAAY,CACpC,KAAM,aACN,YAAa,sDACb,SAAU,CAACC,EAAgBC,EAAkBC,CAAM,CACrD,CAAC,EAGYC,EAA0B,CACrCC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAT,EACAC,EACAS,EACAZ,CACF,ECpBO,IAAMa,EAAMC,EAAU,CAC3B,KAAM,MACN,QAASC,EAAI,QACb,YAAa,8DACb,UAAW,MACX,SAAAC,EACA,QAAS,CAAE,QAAS,MAAO,GAAI,QAAS,EACxC,OAAQ,IAAI,IAAI,aAAc,YAAY,GAAG,EAC7C,SAAU,IAAM,OAAO,gCAAgB,EACvC,OAAAC,CACF,CAAC,ECrBD,MAAMC,EAAI,IAAI",
|
|
6
6
|
"names": ["package_default", "operations", "defineGroup", "ls", "inspect", "resume", "commands", "login", "logout", "status", "doctor", "put", "get", "remove", "cli", "defineCli", "package_default", "commands", "errors", "cli"]
|
|
7
7
|
}
|