gibi-bot 1.0.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 (43) hide show
  1. package/.context.json +185 -0
  2. package/.env.example +4 -0
  3. package/DISTRIBUTION.md +55 -0
  4. package/GEMINI.md +20 -0
  5. package/LICENSE +21 -0
  6. package/README.md +192 -0
  7. package/assets/gibi_avatar.png +0 -0
  8. package/conductor/code_styleguides/general.md +23 -0
  9. package/conductor/code_styleguides/ts.md +52 -0
  10. package/conductor/product-guidelines.md +28 -0
  11. package/conductor/product.md +20 -0
  12. package/conductor/setup_state.json +1 -0
  13. package/conductor/tech-stack.md +15 -0
  14. package/conductor/tracks/slack_bot_20260107/metadata.json +8 -0
  15. package/conductor/tracks/slack_bot_20260107/plan.md +26 -0
  16. package/conductor/tracks/slack_bot_20260107/spec.md +18 -0
  17. package/conductor/tracks.md +8 -0
  18. package/conductor/workflow.md +338 -0
  19. package/dist/agents.js +90 -0
  20. package/dist/agents.test.js +65 -0
  21. package/dist/app.js +740 -0
  22. package/dist/config.js +102 -0
  23. package/dist/context.js +146 -0
  24. package/dist/context.test.js +95 -0
  25. package/dist/prompts.js +20 -0
  26. package/jest.config.js +11 -0
  27. package/nodemon.json +10 -0
  28. package/package.json +44 -0
  29. package/src/agents.test.ts +85 -0
  30. package/src/agents.ts +112 -0
  31. package/src/app.d.ts +2 -0
  32. package/src/app.d.ts.map +1 -0
  33. package/src/app.js +55 -0
  34. package/src/app.js.map +1 -0
  35. package/src/app.ts +809 -0
  36. package/src/config.ts +72 -0
  37. package/src/context.test.ts +75 -0
  38. package/src/context.ts +130 -0
  39. package/src/prompts.ts +17 -0
  40. package/test_gemini.js +23 -0
  41. package/test_gemini_approval.js +24 -0
  42. package/test_gemini_write.js +23 -0
  43. package/tsconfig.json +13 -0
package/src/app.js ADDED
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ const bolt_1 = require("@slack/bolt");
37
+ const dotenv = __importStar(require("dotenv"));
38
+ dotenv.config();
39
+ const app = new bolt_1.App({
40
+ token: process.env.SLACK_BOT_TOKEN,
41
+ signingSecret: process.env.SLACK_SIGNING_SECRET,
42
+ socketMode: true, // Recommended for local development
43
+ appToken: process.env.SLACK_APP_TOKEN
44
+ });
45
+ // Listens to incoming messages that contain "ping"
46
+ app.message('ping', async ({ message, say }) => {
47
+ // say() sends a message to the channel where the event was triggered
48
+ await say(`pong`);
49
+ });
50
+ (async () => {
51
+ // Start your app
52
+ await app.start(process.env.PORT || 3000);
53
+ console.log('⚡️ Bolt app is running!');
54
+ })();
55
+ //# sourceMappingURL=app.js.map
package/src/app.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAkC;AAClC,+CAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,GAAG,GAAG,IAAI,UAAG,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;IAClC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB;IAC/C,UAAU,EAAE,IAAI,EAAE,oCAAoC;IACtD,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;CACtC,CAAC,CAAC;AAEH,mDAAmD;AACnD,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE;IAC7C,qEAAqE;IACrE,MAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC;AAEH,CAAC,KAAK,IAAI,EAAE;IACV,iBAAiB;IACjB,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC;IAE1C,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;AACzC,CAAC,CAAC,EAAE,CAAC"}