executor 1.1.8 → 1.1.10-beta.5

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 (34) hide show
  1. package/README.md +42 -12
  2. package/bin/emscripten-module.wasm +0 -0
  3. package/bin/executor.mjs +367241 -157868
  4. package/bin/impl/edit.js +201 -0
  5. package/bin/impl/format.js +275 -0
  6. package/bin/impl/parser.js +682 -0
  7. package/bin/impl/scanner.js +456 -0
  8. package/bin/impl/string-intern.js +42 -0
  9. package/bin/openapi-extractor-wasm/openapi_extractor_bg.wasm +0 -0
  10. package/package.json +1 -1
  11. package/resources/web/assets/__vite-browser-external-BIHI7g3E.js +1 -0
  12. package/resources/web/assets/{highlighted-body-TPN3WLV5-Cy1EFOo2.js → highlighted-body-TPN3WLV5-CNtoUE2O.js} +1 -1
  13. package/resources/web/assets/{index-3N-BEhR_.js → index-Dyhx5qgf.js} +2 -2
  14. package/resources/web/assets/mermaid-O7DHMXV3-CfqEcqYS.js +658 -0
  15. package/resources/web/assets/mermaid-O7DHMXV3-D1toCiZx.css +1 -0
  16. package/resources/web/assets/openapi_extractor_bg-IMRXzuHp.wasm +0 -0
  17. package/resources/web/index.html +2 -2
  18. package/bin/pglite.data +0 -0
  19. package/bin/pglite.wasm +0 -0
  20. package/resources/migrations/20260306091536_abnormal_martin_li/migration.sql +0 -158
  21. package/resources/migrations/20260306091536_abnormal_martin_li/snapshot.json +0 -1937
  22. package/resources/migrations/20260306094249_large_giant_girl/migration.sql +0 -39
  23. package/resources/migrations/20260306094249_large_giant_girl/snapshot.json +0 -2425
  24. package/resources/migrations/20260307090915_blue_bullseye/migration.sql +0 -70
  25. package/resources/migrations/20260307090915_blue_bullseye/snapshot.json +0 -3122
  26. package/resources/migrations/20260307134000_openapi_tool_identity/migration.sql +0 -37
  27. package/resources/migrations/20260307152000_source_document_text/migration.sql +0 -1
  28. package/resources/migrations/20260308041000_credentials_model/migration.sql +0 -41
  29. package/resources/migrations/20260308120000_search_and_indexes/migration.sql +0 -16
  30. package/resources/migrations/20260308140000_secret_materials_name/migration.sql +0 -1
  31. package/resources/migrations/20260309103000_policy_scope_and_interaction_purpose/migration.sql +0 -17
  32. package/resources/web/assets/mermaid-O7DHMXV3-2oBmyuDr.js +0 -393
  33. package/resources/web/assets/mermaid-O7DHMXV3-DgCU8P81.css +0 -1
  34. package/resources/web/assets/openapi_extractor_bg-DZrbVm4x.wasm +0 -0
@@ -1,37 +0,0 @@
1
- ALTER TABLE "tool_artifacts" ADD COLUMN "openapi_raw_tool_id" text;--> statement-breakpoint
2
- ALTER TABLE "tool_artifacts" ADD COLUMN "openapi_operation_id" text;--> statement-breakpoint
3
- ALTER TABLE "tool_artifacts" ADD COLUMN "openapi_tags_json" text;--> statement-breakpoint
4
- UPDATE "tool_artifacts"
5
- SET
6
- "openapi_raw_tool_id" = "tool_id",
7
- "openapi_operation_id" = "tool_id",
8
- "openapi_tags_json" = '[]'
9
- WHERE "provider_kind" = 'openapi';--> statement-breakpoint
10
- ALTER TABLE "tool_artifacts" DROP CONSTRAINT "tool_artifacts_mcp_shape_check";--> statement-breakpoint
11
- ALTER TABLE "tool_artifacts" DROP CONSTRAINT "tool_artifacts_openapi_shape_check";--> statement-breakpoint
12
- ALTER TABLE "tool_artifacts"
13
- ADD CONSTRAINT "tool_artifacts_mcp_shape_check" CHECK (
14
- "provider_kind" <> 'mcp'
15
- OR (
16
- "mcp_tool_name" is not null
17
- and "openapi_method" is null
18
- and "openapi_path_template" is null
19
- and "openapi_operation_hash" is null
20
- and "openapi_raw_tool_id" is null
21
- and "openapi_operation_id" is null
22
- and "openapi_tags_json" is null
23
- and "openapi_request_body_required" is null
24
- )
25
- );--> statement-breakpoint
26
- ALTER TABLE "tool_artifacts"
27
- ADD CONSTRAINT "tool_artifacts_openapi_shape_check" CHECK (
28
- "provider_kind" <> 'openapi'
29
- OR (
30
- "mcp_tool_name" is null
31
- and "openapi_method" in ('get', 'put', 'post', 'delete', 'patch', 'head', 'options', 'trace')
32
- and "openapi_path_template" is not null
33
- and "openapi_operation_hash" is not null
34
- and "openapi_raw_tool_id" is not null
35
- and "openapi_tags_json" is not null
36
- )
37
- );
@@ -1 +0,0 @@
1
- ALTER TABLE "sources" ADD COLUMN "source_document_text" text;
@@ -1,41 +0,0 @@
1
- CREATE TABLE "credentials" (
2
- "id" text PRIMARY KEY NOT NULL,
3
- "workspace_id" text NOT NULL,
4
- "auth_kind" text NOT NULL,
5
- "auth_header_name" text NOT NULL,
6
- "auth_prefix" text NOT NULL,
7
- "token_provider_id" text NOT NULL,
8
- "token_handle" text NOT NULL,
9
- "refresh_token_provider_id" text,
10
- "refresh_token_handle" text,
11
- "created_at" bigint NOT NULL,
12
- "updated_at" bigint NOT NULL,
13
- CONSTRAINT "credentials_auth_kind_check" CHECK ("auth_kind" in ('bearer', 'oauth2'))
14
- );
15
- --> statement-breakpoint
16
- CREATE INDEX "credentials_workspace_idx" ON "credentials" ("workspace_id","updated_at","id");
17
- --> statement-breakpoint
18
- ALTER TABLE "sources" DROP CONSTRAINT "sources_auth_kind_check";
19
- --> statement-breakpoint
20
- ALTER TABLE "sources" DROP COLUMN "auth_kind";
21
- --> statement-breakpoint
22
- ALTER TABLE "sources" DROP COLUMN "auth_header_name";
23
- --> statement-breakpoint
24
- ALTER TABLE "sources" DROP COLUMN "auth_prefix";
25
- --> statement-breakpoint
26
- DROP INDEX IF EXISTS "source_credential_bindings_workspace_idx";
27
- --> statement-breakpoint
28
- DROP TABLE "source_credential_bindings";
29
- --> statement-breakpoint
30
- CREATE TABLE "source_credential_bindings" (
31
- "id" text PRIMARY KEY NOT NULL,
32
- "workspace_id" text NOT NULL,
33
- "source_id" text NOT NULL,
34
- "credential_id" text NOT NULL,
35
- "created_at" bigint NOT NULL,
36
- "updated_at" bigint NOT NULL
37
- );
38
- --> statement-breakpoint
39
- CREATE UNIQUE INDEX "source_credential_bindings_workspace_source_idx" ON "source_credential_bindings" ("workspace_id","source_id");
40
- --> statement-breakpoint
41
- CREATE INDEX "source_credential_bindings_workspace_idx" ON "source_credential_bindings" ("workspace_id","updated_at","source_id");
@@ -1,16 +0,0 @@
1
- DROP INDEX IF EXISTS "organization_memberships_org_idx";--> statement-breakpoint
2
- DROP INDEX IF EXISTS "organization_memberships_account_idx";--> statement-breakpoint
3
- CREATE INDEX "organization_memberships_org_updated_idx" ON "organization_memberships" ("organization_id","updated_at","id");--> statement-breakpoint
4
- CREATE INDEX "organization_memberships_account_updated_idx" ON "organization_memberships" ("account_id","updated_at","id");--> statement-breakpoint
5
- DROP INDEX IF EXISTS "workspaces_org_idx";--> statement-breakpoint
6
- CREATE INDEX "workspaces_org_updated_idx" ON "workspaces" ("organization_id","updated_at","id");--> statement-breakpoint
7
- CREATE INDEX "sources_workspace_updated_idx" ON "sources" ("workspace_id","updated_at","source_id");--> statement-breakpoint
8
- CREATE INDEX "tool_artifacts_search_text_idx" ON "tool_artifacts" USING gin (to_tsvector('simple', "search_text"));--> statement-breakpoint
9
- DROP INDEX IF EXISTS "tool_artifact_parameters_lookup_idx";--> statement-breakpoint
10
- DROP INDEX IF EXISTS "tool_artifact_request_body_content_types_lookup_idx";--> statement-breakpoint
11
- DROP INDEX IF EXISTS "tool_artifact_ref_hint_keys_lookup_idx";--> statement-breakpoint
12
- CREATE INDEX "source_auth_sessions_pending_idx" ON "source_auth_sessions" ("workspace_id","source_id","status","updated_at","id");--> statement-breakpoint
13
- DROP INDEX IF EXISTS "policies_workspace_idx";--> statement-breakpoint
14
- CREATE INDEX "policies_workspace_priority_idx" ON "policies" ("workspace_id","priority" DESC,"updated_at","id");--> statement-breakpoint
15
- CREATE INDEX "local_installations_organization_idx" ON "local_installations" ("organization_id");--> statement-breakpoint
16
- CREATE INDEX "local_installations_workspace_idx" ON "local_installations" ("workspace_id");
@@ -1 +0,0 @@
1
- ALTER TABLE "secret_materials" ADD COLUMN "name" text;
@@ -1,17 +0,0 @@
1
- ALTER TABLE "policies" ADD COLUMN "scope_type" text;--> statement-breakpoint
2
- ALTER TABLE "policies" ADD COLUMN "organization_id" text;--> statement-breakpoint
3
- UPDATE "policies" AS "pol"
4
- SET
5
- "scope_type" = 'workspace',
6
- "organization_id" = "ws"."organization_id"
7
- FROM "workspaces" AS "ws"
8
- WHERE "pol"."workspace_id" = "ws"."id";--> statement-breakpoint
9
- ALTER TABLE "policies" ALTER COLUMN "scope_type" SET NOT NULL;--> statement-breakpoint
10
- ALTER TABLE "policies" ALTER COLUMN "organization_id" SET NOT NULL;--> statement-breakpoint
11
- ALTER TABLE "policies" ALTER COLUMN "workspace_id" DROP NOT NULL;--> statement-breakpoint
12
- ALTER TABLE "policies" ADD CONSTRAINT "policies_scope_type_check" CHECK ("scope_type" in ('organization', 'workspace'));--> statement-breakpoint
13
- ALTER TABLE "policies" ADD CONSTRAINT "policies_scope_consistency_check" CHECK (("scope_type" = 'organization' and "workspace_id" is null) or ("scope_type" = 'workspace' and "workspace_id" is not null));--> statement-breakpoint
14
- DROP INDEX IF EXISTS "policies_workspace_priority_idx";--> statement-breakpoint
15
- CREATE INDEX "policies_organization_priority_idx" ON "policies" ("organization_id","priority" DESC,"updated_at","id");--> statement-breakpoint
16
- CREATE INDEX "policies_workspace_priority_idx" ON "policies" ("workspace_id","priority" DESC,"updated_at","id");--> statement-breakpoint
17
- ALTER TABLE "execution_interactions" ADD COLUMN "purpose" text NOT NULL DEFAULT 'elicitation';