server: https://community.mattermost.com
me_token: XXX
bot_token: XXXurl: $server| modes: { | |
| markdown: { | |
| handlers: { | |
| preview: [ | |
| "!Tools:Preview" | |
| "Github:Markdown:Preview" | |
| ] | |
| } | |
| } | |
| } |
| #!/usr/bin/python | |
| ## Usage: webfs.py [rootPath] [port] | |
| ## rootPath defaults to $HOME | |
| ## port defaults to 1338 | |
| from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
| import os, os.path | |
| import sys | |
| import cgi |
| { | |
| // whatever was already there, and add: | |
| modes: { | |
| javascript: { | |
| extensions: ["ejs"] | |
| } | |
| } | |
| } |
| export class Focalboard { | |
| constructor(url, token, workspaceId) { | |
| this.url = url; | |
| this.token = token; | |
| this.workspaceId = workspaceId; | |
| } | |
| async allBlocks() { | |
| let result = await fetch(`${this.url}/api/v1/workspaces/${this.workspaceId}/blocks?type=view`, { | |
| headers: { |
#meta
Proof of concept (and WIP) AI features for SilverBullet.
Currently implemented commands:
AI: Chat (bound to Cmd-Enter/Ctrl-Enter)AI: Analyze With Prompt (see below for an example)