me.wilb.kasta.code

wilb.me

Documentation

An immutable snapshot of a kast's source code. Each write creates a new version; the pointer record controls which version is active.

main record

An immutable snapshot of a kast's source code. Each write creates a new version; the pointer record controls which version is active.

Record Key tid Timestamp-based ID

Properties

createdAt string datetime Required

An RFC 3339 formatted timestamp.

maxLength: 64 bytes
entrypoint string Required

Path of the entry file within the files array (e.g. 'main.ts').

maxLength: 512 bytes
files array of ref #file Required

Source files that make up this kast. For single-file kasts this array has one element.

minLength: 1 items
lang string Required

Programming language of the kast.

maxLength: 64 bytes
Known values: typescript
name string Required

The kast name. Must match the rkey of the corresponding me.wilb.pointer record.

maxLength: 128 bytes
View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "name",
      "files",
      "entrypoint",
      "lang",
      "createdAt"
    ],
    "properties": {
      "lang": {
        "type": "string",
        "maxLength": 64,
        "description": "Programming language of the kast.",
        "knownValues": [
          "typescript"
        ]
      },
      "name": {
        "type": "string",
        "maxLength": 128,
        "description": "The kast name. Must match the rkey of the corresponding me.wilb.pointer record."
      },
      "files": {
        "type": "array",
        "items": {
          "ref": "#file",
          "type": "ref"
        },
        "minLength": 1,
        "description": "Source files that make up this kast. For single-file kasts this array has one element."
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "maxLength": 64
      },
      "entrypoint": {
        "type": "string",
        "maxLength": 512,
        "description": "Path of the entry file within the files array (e.g. 'main.ts')."
      }
    }
  },
  "description": "An immutable snapshot of a kast's source code. Each write creates a new version; the pointer record controls which version is active."
}
file object

A single source file within a kast.

Properties

content string Required

Full source code of the file.

maxGraphemes: 100000 graphemes
path string Required

File path relative to the kast root (e.g. 'main.ts', 'lib/utils.ts').

maxLength: 512 bytes
View raw schema
{
  "type": "object",
  "required": [
    "path",
    "content"
  ],
  "properties": {
    "path": {
      "type": "string",
      "maxLength": 512,
      "description": "File path relative to the kast root (e.g. 'main.ts', 'lib/utils.ts')."
    },
    "content": {
      "type": "string",
      "description": "Full source code of the file.",
      "maxGraphemes": 100000
    }
  },
  "description": "A single source file within a kast."
}

Lexicon Garden

@