@hugex/artifact 0.4.1 → 0.6.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.
Files changed (76) hide show
  1. package/dist/artifact/mcp/domains/draftAccess.d.ts +6 -0
  2. package/dist/artifact/mcp/domains/guide.d.ts +11 -0
  3. package/dist/{mcp → artifact/mcp}/domains/read.d.ts +18 -0
  4. package/dist/artifact/mcp/domains/secrets.d.ts +5 -0
  5. package/dist/{mcp → artifact/mcp}/domains/tools.d.ts +3 -2
  6. package/dist/artifact/mcp/domains/worker-authoring-io.d.ts +19 -0
  7. package/dist/artifact/mcp/domains/worker-authoring.d.ts +22 -0
  8. package/dist/artifact/mcp/domains/worker-write.d.ts +109 -0
  9. package/dist/{mcp → artifact/mcp}/index.d.ts +1 -1
  10. package/dist/artifact/mcp/registry.d.ts +13 -0
  11. package/dist/artifact/mcp/scopes.d.ts +37 -0
  12. package/dist/{mcp → artifact/mcp}/tools.d.ts +3 -0
  13. package/dist/common/constants/clef-models.d.ts +48 -0
  14. package/dist/common/constants/tools-registry.d.ts +8 -0
  15. package/dist/common/flow-graph/catalog.d.ts +40 -0
  16. package/dist/common/flow-graph/classifier.d.ts +2 -0
  17. package/dist/common/flow-graph/composio.d.ts +2 -0
  18. package/dist/common/flow-graph/credentials.d.ts +3 -0
  19. package/dist/common/flow-graph/index.d.ts +11 -0
  20. package/dist/common/flow-graph/ops.d.ts +21 -0
  21. package/dist/common/flow-graph/refs.d.ts +18 -0
  22. package/dist/common/flow-graph/schema.d.ts +570 -0
  23. package/dist/common/flow-graph/templates.d.ts +2 -0
  24. package/dist/common/flow-graph/validate.d.ts +77 -0
  25. package/dist/common/types/classifier-types.d.ts +57 -0
  26. package/dist/common/types/classifier-validation.d.ts +2 -0
  27. package/dist/common/types/crawl-types.d.ts +59 -0
  28. package/dist/common/types/node-types.d.ts +12 -0
  29. package/dist/common/types/trigger-types.d.ts +106 -0
  30. package/dist/common/types/var-scope.d.ts +43 -0
  31. package/dist/common/utils/agentMemory.d.ts +31 -0
  32. package/dist/common/utils/crawlClient.d.ts +38 -0
  33. package/dist/common/utils/flowInputs.d.ts +19 -0
  34. package/dist/common/utils/flowScope.d.ts +16 -0
  35. package/dist/common/utils/httpPayload.d.ts +4 -0
  36. package/dist/common/utils/outVars.d.ts +6 -0
  37. package/dist/common/utils/templateUtils.d.ts +37 -0
  38. package/dist/index.js +45 -45
  39. package/package.json +3 -3
  40. package/dist/mcp/registry.d.ts +0 -3
  41. package/dist/mcp/scopes.d.ts +0 -12
  42. /package/dist/{catalog.d.ts → artifact/catalog.d.ts} +0 -0
  43. /package/dist/{dev-prefix.d.ts → artifact/dev-prefix.d.ts} +0 -0
  44. /package/dist/{do → artifact/do}/ArtifactDO.d.ts +0 -0
  45. /package/dist/{do → artifact/do}/ArtifactIndexDO.d.ts +0 -0
  46. /package/dist/{do → artifact/do}/file-storage.d.ts +0 -0
  47. /package/dist/{do → artifact/do}/index-upsert.d.ts +0 -0
  48. /package/dist/{do → artifact/do}/meta-migrate.d.ts +0 -0
  49. /package/dist/{do → artifact/do}/ora-index.d.ts +0 -0
  50. /package/dist/{hash.d.ts → artifact/hash.d.ts} +0 -0
  51. /package/dist/{host-route.d.ts → artifact/host-route.d.ts} +0 -0
  52. /package/dist/{host.d.ts → artifact/host.d.ts} +0 -0
  53. /package/dist/{index.d.ts → artifact/index.d.ts} +0 -0
  54. /package/dist/{inject.d.ts → artifact/inject.d.ts} +0 -0
  55. /package/dist/{internal.d.ts → artifact/internal.d.ts} +0 -0
  56. /package/dist/{limits.d.ts → artifact/limits.d.ts} +0 -0
  57. /package/dist/{mcp → artifact/mcp}/access.d.ts +0 -0
  58. /package/dist/{mcp → artifact/mcp}/auth.d.ts +0 -0
  59. /package/dist/{mcp → artifact/mcp}/authz.d.ts +0 -0
  60. /package/dist/{mcp → artifact/mcp}/context.d.ts +0 -0
  61. /package/dist/{mcp → artifact/mcp}/domains/artifacts.d.ts +0 -0
  62. /package/dist/{mcp → artifact/mcp}/domains/memos.d.ts +0 -0
  63. /package/dist/{mcp → artifact/mcp}/domains/skills.d.ts +0 -0
  64. /package/dist/{mcp → artifact/mcp}/domains/workers.d.ts +0 -0
  65. /package/dist/{mcp → artifact/mcp}/oauth/config.d.ts +0 -0
  66. /package/dist/{mcp → artifact/mcp}/oauth/contract.d.ts +0 -0
  67. /package/dist/{mcp → artifact/mcp}/oauth/provider.d.ts +0 -0
  68. /package/dist/{rpc.d.ts → artifact/rpc.d.ts} +0 -0
  69. /package/dist/{runtime → artifact/runtime}/artifact-app-source.d.ts +0 -0
  70. /package/dist/{sql.d.ts → artifact/sql.d.ts} +0 -0
  71. /package/dist/{templates.d.ts → artifact/templates.d.ts} +0 -0
  72. /package/dist/{types.d.ts → artifact/types.d.ts} +0 -0
  73. /package/dist/{url.d.ts → artifact/url.d.ts} +0 -0
  74. /package/dist/{validate.d.ts → artifact/validate.d.ts} +0 -0
  75. /package/dist/{version.d.ts → artifact/version.d.ts} +0 -0
  76. /package/dist/{worker-client.d.ts → artifact/worker-client.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hugex/artifact",
3
- "version": "0.4.1",
3
+ "version": "0.6.0",
4
4
  "description": "HugeX Artifacts runtime for Cloudflare Workers",
5
5
  "author": "a@hugex.co",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -19,11 +19,11 @@
19
19
  ],
20
20
  "main": "./dist/index.js",
21
21
  "module": "./dist/index.js",
22
- "types": "./dist/index.d.ts",
22
+ "types": "./dist/artifact/index.d.ts",
23
23
  "exports": {
24
24
  ".": {
25
25
  "import": "./dist/index.js",
26
- "types": "./dist/index.d.ts"
26
+ "types": "./dist/artifact/index.d.ts"
27
27
  }
28
28
  }
29
29
  }
@@ -1,3 +0,0 @@
1
- import { type McpDomain } from './domains/artifacts';
2
- export declare function domainForPath(pathname: string, resourcePath: string): McpDomain[] | null;
3
- export declare function domainForTool(name: string): McpDomain | null;
@@ -1,12 +0,0 @@
1
- export declare const ARTIFACT_READ_SCOPE = "artifacts:read";
2
- export declare const ARTIFACT_WRITE_SCOPE = "artifacts:write";
3
- export declare const WORKER_READ_SCOPE = "workers:read";
4
- export declare const WORKER_RUN_SCOPE = "workers:run";
5
- export declare const ARTIFACT_SCOPES: readonly ["artifacts:read", "artifacts:write"];
6
- export declare const SKILL_READ_SCOPE = "skills:read";
7
- export declare const TOOL_READ_SCOPE = "tools:read";
8
- export declare const MEMO_READ_SCOPE = "memos:read";
9
- export declare const MCP_SCOPES: readonly ["artifacts:read", "artifacts:write", "workers:read", "workers:run", "skills:read", "tools:read", "memos:read"];
10
- export declare function effectiveScopes(scopes: ReadonlySet<string>): ReadonlySet<string>;
11
- export declare function requiredScope(tool: string, args: Record<string, unknown>): string;
12
- export declare function hasScope(scopes: ReadonlySet<string>, required: string): boolean;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes