MCPcopy Create free account

hub / github.com/Lap-Platform/LAP / functions

Functions1,430 in github.com/Lap-Platform/LAP

↓ 5 callersFunctionlap_to_openapi
Convert a LAPSpec to an OpenAPI 3.0 dict.
lap/core/converter.py:79
↓ 5 callersFunctionmetadataPath
(target: SkillTarget)
sdks/typescript/src/cli.ts:158
↓ 5 callersFunctionresolveInstallDir
(target: SkillTarget, skillName: string, customDir?: string)
sdks/typescript/src/cli.ts:104
↓ 5 callersFunctionstripHtml
(text: string)
sdks/typescript/src/compilers/openapi.ts:13
↓ 5 callersFunctionstripHtml
(text: string)
sdks/typescript/src/compilers/postman.ts:20
↓ 5 callersMethodto_context
Format for LLM context injection.
sdks/python/lap/client.py:80
↓ 5 callersMethodto_lap
(self, lean: bool = False)
lap/core/formats/lap_tools.py:131
↓ 5 callersMethodto_lap
Produce compact GraphQL-native LAP output.
lap/core/compilers/graphql.py:452
↓ 5 callersFunctionvalidateRegistryUrl
(value: string)
sdks/typescript/src/auth.ts:64
↓ 4 callersFunction_detect_version
Return 2 or 3 for AsyncAPI major version.
lap/core/compilers/asyncapi.py:119
↓ 4 callersMethod_find_api_name
Find a real API name from the registry.
tests/test_lap_skill.py:668
↓ 4 callersFunction_flatten_items
Flatten nested folder items into a flat list of request items.
lap/core/compilers/postman.py:49
↓ 4 callersFunction_make_get_args
(**overrides)
tests/test_search.py:451
↓ 4 callersMethod_mock_response
(self, content=MOCK_LAP_CONTENT)
tests/test_lap_skill.py:364
↓ 4 callersFunction_parse_errors
Parse @errors {400: desc, 401: desc} or @errors {400, 401}.
lap/core/parser.py:318
↓ 4 callersFunction_parse_output_line
Parse '@out name:type description' into a ToolOutput.
lap/core/compilers/lap_tools_parser.py:59
↓ 4 callersFunction_register_codex_hook
Add SessionStart and TaskStarted hooks to .codex/hooks.json (idempotent).
lap/cli/main.py:895
↓ 4 callersFunction_register_cursor_hook
Add sessionStart hook to .cursor/hooks.json (idempotent).
lap/cli/main.py:862
↓ 4 callersMethod_run
(self, *args, **kwargs)
tests/test_lap_skill.py:712
↓ 4 callersFunction_singularize
Naive singularization -- strips trailing 's' if present.
lap/core/compilers/skill.py:587
↓ 4 callersFunction_type_ref
Compact type reference like SDL: User!, [Issue!]!, String
lap/core/compilers/graphql.py:68
↓ 4 callersFunctioncheck_compatibility
Check backward compatibility between two spec versions.
lap/core/differ.py:211
↓ 4 callersFunctioncompile
(specPath: string, options?: { format?: string })
sdks/typescript/src/compilers/index.ts:123
↓ 4 callersFunctiondetect_format
Auto-detect API spec format from file extension and content. Returns one of: openapi, graphql, asyncapi, protobuf, postman, smithy, aws_sdk.
lap/core/compilers/__init__.py:13
↓ 4 callersFunctionextractType
(schema: Obj, spec: Obj)
sdks/typescript/src/compilers/asyncapi.ts:64
↓ 4 callersFunctiongenerateSkill
(spec: LAPSpec, options?: SkillOptions)
sdks/typescript/src/skill.ts:437
↓ 4 callersFunctiongetToken
()
sdks/typescript/src/auth.ts:103
↓ 4 callersMethodget_endpoint
Find an endpoint by method and path.
sdks/python/lap/client.py:72
↓ 4 callersFunctiongroupName
(path: string)
sdks/typescript/src/serializer.ts:14
↓ 4 callersFunctionheading
(msg)
lap/cli/main.py:94
↓ 4 callersFunctionslugify
(name: string)
sdks/typescript/src/skill.ts:84
↓ 4 callersFunctionsplitTopLevel
Split top-level comma-separated items (respecting nested braces, parens, brackets).
sdks/typescript/src/parser.ts:129
↓ 4 callersFunctionstripHtml
(text: string)
sdks/typescript/src/compilers/smithy.ts:33
↓ 4 callersFunctiontoLap
(spec: LAPSpec, options?: { lean?: boolean })
sdks/typescript/src/serializer.ts:150
↓ 4 callersMethodto_lap
(self, lean: bool = False, depth: int = 0)
lap/core/formats/lap_tools.py:53
↓ 4 callersFunctionwarn
(msg: string)
sdks/typescript/src/cli.ts:68
↓ 4 callersFunctionwriteMetadata
(target: SkillTarget, data: LapMetadata)
sdks/typescript/src/cli.ts:190
↓ 3 callersFunction_collect_spec_files
Collect spec files from a directory, excluding known oversized specs.
lap/cli/main.py:132
↓ 3 callersFunction_collect_variables
Collect variables from collection-level variable array.
lap/core/compilers/postman.py:380
↓ 3 callersFunction_compute_spec_hash
Compute SHA-256 hex digest of spec content.
lap/cli/main.py:788
↓ 3 callersFunction_extract_uri_params
Parse {param} placeholders from URI pattern. Examples: "/cities/{cityId}" → ["cityId"] "/users/{userId}/posts/{postId}" → ["
lap/core/compilers/smithy.py:446
↓ 3 callersFunction_fields_from_dict
Create ResponseField list from a sample dict.
lap/core/compilers/postman.py:294
↓ 3 callersMethod_find_api_with_skill
Find an API that has a skill available.
tests/test_lap_skill.py:720
↓ 3 callersFunction_find_block
Find matching { } block starting from position of '{'. Returns (content, end_pos). Skips braces inside string literals.
lap/core/compilers/protobuf.py:181
↓ 3 callersFunction_group_name
Extract meaningful group name from endpoint path, skipping version prefixes.
lap/core/formats/lap.py:160
↓ 3 callersFunction_has_lap_hook
Check if any entry in a hook list contains a lapsh check command.
lap/cli/main.py:818
↓ 3 callersFunction_output
(text: str, path: str = None)
lap/core/compilers/lap_tools_advanced.py:78
↓ 3 callersFunction_remove_md_hook_instruction
Remove LAP hook instruction from a markdown config file.
lap/cli/main.py:1156
↓ 3 callersFunction_resolve_ai
Resolve whether to use AI enhancement. Returns 2 (AI) or 1 (no AI). - --ai flag: force AI enhancement - --no-ai flag: skip AI - --lay
lap/cli/main.py:111
↓ 3 callersFunction_resolve_skill_target
Find which target has the skill installed. Returns (target, metadata).
lap/cli/main.py:1363
↓ 3 callersFunction_resolve_type
Resolve a proto type to a LAP type string.
lap/core/compilers/protobuf.py:472
↓ 3 callersFunction_resource_from_path
Extract resource name from the last non-parameter path segment.
lap/core/compilers/skill.py:568
↓ 3 callersMethod_run
(self, *args, **kwargs)
tests/test_lap_skill.py:773
↓ 3 callersMethod_run
(self, *args, **kwargs)
tests/test_lap_skill.py:809
↓ 3 callersFunction_structure_to_response_fields
Convert structure to nested response fields. Args: struct_shape: Structure shape definition shapes: Shape index dept
lap/core/compilers/smithy.py:376
↓ 3 callersFunctioncmd_skill_uninstall
Uninstall one or more skills.
lap/cli/main.py:1054
↓ 3 callersFunctioncompileOpenapi
(specPath: string)
sdks/typescript/src/compilers/openapi.ts:420
↓ 3 callersFunctioncompile_smithy
Main entry point for Smithy compilation. Accepts: - .json files (Smithy JSON AST) → parse directly - .smithy files (Smithy IDL) → co
lap/core/compilers/smithy.py:68
↓ 3 callersFunctionenhance_skill
Add LLM-generated content to a Layer 1 skill. Primary: claude CLI subprocess. Fallback: anthropic SDK. Raises ImportError if neither is avail
lap/core/compilers/skill_llm.py:104
↓ 3 callersFunctionextractType
(schema: Record<string, unknown>, spec: Record<string, unknown>)
sdks/typescript/src/compilers/openapi.ts:48
↓ 3 callersFunctionextract_type
Extract a concise type string from an OpenAPI schema.
lap/core/compilers/openapi.py:21
↓ 3 callersFunctionflattenItems
Flatten nested folder items into a flat list of request items.
sdks/typescript/src/compilers/postman.ts:141
↓ 3 callersFunctiongetUrlString
(url: unknown)
sdks/typescript/src/compilers/postman.ts:73
↓ 3 callersFunctionget_token
Shortcut: load credentials and return token, or None.
lap/cli/auth.py:108
↓ 3 callersFunctionhasClaudeCli
()
sdks/typescript/src/skill_llm.ts:37
↓ 3 callersFunctionhasLapHook
(entries: any[])
sdks/typescript/src/cli.ts:721
↓ 3 callersFunctionloadCredentials
()
sdks/typescript/src/auth.ts:79
↓ 3 callersFunctionparseFieldList
(inner: string)
sdks/typescript/src/parser.ts:147
↓ 3 callersFunctionparseTypeExpr
(raw: string)
sdks/typescript/src/parser.ts:67
↓ 3 callersFunctionprintSpecDiff
(oldSpec: any, newSpec: any, oldLabel: string, newLabel: string)
sdks/typescript/src/cli.ts:1333
↓ 3 callersFunctionresolveRef
(spec: Obj, ref: string, _visited?: Set<string>)
sdks/typescript/src/compilers/asyncapi.ts:32
↓ 3 callersMethodto_lap
(self, lean: bool = False)
lap/core/formats/lap.py:181
↓ 3 callersMethodto_lap
(self, lean: bool = False)
lap/core/formats/lap_tools.py:71
↓ 2 callersFunction_all_postman_specs
()
tests/test_postman_compiler.py:239
↓ 2 callersMethod_approx_tokens
Rough token count (~4 chars per token).
tests/test_protobuf_compiler.py:361
↓ 2 callersFunction_aws_sdk_type_to_lap
Convert AWS SDK type to LAP type string. Args: shape_name: Shape name reference shapes: Shape definitions visited: S
lap/core/compilers/aws_sdk.py:138
↓ 2 callersFunction_build_description
Build skill description text from spec metadata. Returns escaped string safe for YAML quoting.
lap/core/compilers/skill.py:183
↓ 2 callersFunction_compact_type_def
One-line compact type definition.
lap/core/compilers/graphql.py:192
↓ 2 callersFunction_compile_message
Compile a message object into (params, headers_params, summary, response_fields). Returns (payload_params, header_params, summary, response_f
lap/core/compilers/asyncapi.py:230
↓ 2 callersMethod_count_tokens
Rough token count: words + punctuation splits.
tests/test_asyncapi_compiler.py:325
↓ 2 callersMethod_count_tokens_approx
Approximate token count (chars / 4).
tests/test_graphql_compiler.py:233
↓ 2 callersFunction_detect_auth_param
Safety net: detect auth-like parameters when spec.auth_scheme is empty. Scans common_fields first (most likely location after deduplication),
lap/core/compilers/skill.py:140
↓ 2 callersMethod_ensure_lap
(self)
tests/test_integration.py:317
↓ 2 callersMethod_ensure_lap
(self)
tests/test_integration.py:347
↓ 2 callersFunction_extract_protocol_binding
Extract a short protocol binding summary string.
lap/core/compilers/asyncapi.py:97
↓ 2 callersFunction_extract_security_schemes
Extract auth scheme string from AsyncAPI components.securitySchemes.
lap/core/compilers/asyncapi.py:150
↓ 2 callersFunction_extract_service_metadata
Extract version, description from service shape.
lap/core/compilers/smithy.py:238
↓ 2 callersMethod_fetch
(url: string, headers?: Record<string, string>)
sdks/typescript/src/client.ts:43
↓ 2 callersFunction_get_groups
Group endpoints by resource name, preserving order.
lap/core/compilers/skill.py:535
↓ 2 callersFunction_get_servers_url
Extract first server URL.
lap/core/compilers/asyncapi.py:125
↓ 2 callersFunction_get_skills_dir
Find bundled skills directory (repo root or installed package).
lap/cli/main.py:702
↓ 2 callersFunction_infer_auth_from_async_params
Heuristic: scan channel message headers and parameters for auth-like names. Called when securitySchemes are empty. Returns e.g. "ApiKey X-API-Key
lap/core/compilers/asyncapi.py:172
↓ 2 callersFunction_is_connection_type
Check if this is a standard Relay connection pattern.
lap/core/compilers/graphql.py:98
↓ 2 callersFunction_parse_enum
(name: str, body: str, parent: str = "")
lap/core/compilers/protobuf.py:214
↓ 2 callersFunction_parse_http_trait
Extract HTTP method, URI pattern, status code from @http trait. Returns: (method, uri_pattern, status_code)
lap/core/compilers/smithy.py:432
↓ 2 callersFunction_remove_hook_entries
Remove LAP hook entries from a JSON config file.
lap/cli/main.py:1108
↓ 2 callersFunction_type_to_openapi
Convert LAP type string to OpenAPI schema.
lap/core/converter.py:19
↓ 2 callersFunction_validate_web_url
Validate a web URL, allowing plaintext HTTP only for loopback hosts.
lap/cli/auth.py:29
↓ 2 callersMethod_wrap_endpoint
(self, ep: Endpoint)
sdks/python/lap/client.py:60
↓ 2 callersFunctionawsSdkTypeToLap
( shapeName: string, shapes: Record<string, AwsSdkShape>, visited?: Set<string>, )
sdks/typescript/src/compilers/aws-sdk.ts:193
← previousnext →101–200 of 1,430, ranked by callers