@hugomrdias/fil 0.1.0 → 0.2.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 CHANGED
@@ -100,7 +100,7 @@ Ctrl+C, SIGTERM, or SIGHUP stops the work at the next step. `fil` returns an `in
100
100
  | `fil schema --list` | Every command, offline |
101
101
  | `fil schema <command>` | The command's input and output as JSON Schema, and its error codes |
102
102
  | `fil completion <shell>` | A completion script for `bash`, `zsh`, or `fish` |
103
- | `fil skills install` | Installs the bundled [agent skill](../../skills/fil/SKILL.md), which the build copies from the repository root |
103
+ | `fil skills install` | Installs the bundled [agent skill](../../plugins/fil/skills/fil/SKILL.md), which the build copies from the [fil plugin](../../plugins/fil/README.md) |
104
104
 
105
105
  | Error code | Meaning |
106
106
  | --- | --- |
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.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();
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.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.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"],
4
+ "sourcesContent": ["{\n \"name\": \"@hugomrdias/fil\",\n \"version\": \"0.2.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
  }